1 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
3 * tests/util/grub-shell.in: Support --files also for netboot.
5 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
7 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
8 memory leak (CID 73645, 73782).
9 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
12 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
14 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
15 inline array (CID 73610).
17 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
19 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
20 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
21 (Coverity CID 73813, 73710)
22 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
23 and use after free (Coverity CID 73813, 73710, 73730)
24 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
26 * util/grub-install-common.c (grub_install_get_target): Check return
27 value of grub_util_fd_read (Coverity CID 73819).
28 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
29 to hd.magic (Coverity CID 73587, 73888, bug 43690).
31 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
33 * tests/util/grub-fs-tester.in: Consistently print output
34 of grub ls if test fails.
36 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
38 * grub-core/kern/efi/init.c: check value of *path before
41 2014-11-03 Michael Chang <mchang@suse.com>
43 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
44 of neighbor solicitation packet in grub_netbuff_pull.
46 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
48 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
49 avoid fatal warnings with older gcc (probably before 4.7).
50 * grub-core/loader/arm64/linux.c: Likewise.
51 * grub-core/loader/i386/linux.c: Likewise.
52 * grub-core/loader/i386/pc/linux.c: Likewise.
53 * grub-core/loader/ia64/efi/linux.c: Likewise.
54 * grub-core/loader/mips/linux.c: Likewise.
55 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
56 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
58 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
60 Fix in-tree --platform=none
62 * configure.ac: Only remove include/grub/cpu and
63 include/grub/machine in the --platform=none case, not all of
66 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
68 Add a new "none" platform that only builds utilities
70 * configure.ac: Add "none" platform. Default to it for unsupported
71 CPUs rather than stopping with a fatal error. Don't downgrade
72 x86_64-none to i386. Define COND_real_platform Automake conditional
73 if the platform is anything other than "none". Don't do any include
74 directory linking for "none".
75 * Makefile.am: Skip building grub-core and all bootcheck targets if
77 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
80 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
82 Use grub_cpu_to_XXX_compile_time for constants.
84 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
86 The AML parser implements only a small subset of possible AML
87 opcodes. On the Fujitsu Lifebook E744 this and another bug in
88 the parser (incorrect handling of TermArg data types) would lead
89 to the laptop not turning off (_S5 not found).
91 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
92 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
93 aren't always simply strings!); Add function to skip TermArgs
94 * include/grub/acpi.h: Add new opcodes
96 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
98 * grub-core/normal/main.c: Don't drop to rescue console in
99 case of password-protected prompt and no menu entries.
101 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
103 * grub-core/commands/keylayouts.c: Ignore unknown keys.
105 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
107 * grub-core/gmodule.pl.in: Accept newer binutils which output
108 empty column rather than 0x0.
110 2014-09-21 Michael Chang <mchang@suse.com>
112 * grub-core/osdep/unix/config.c: Remove extraneous comma.
114 2014-09-21 Peter Jones <pjones@redhat.com>
116 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
117 we don't free a random pointer from the stack.
118 * grub-core/loader/arm64/linux.c: Likewise.
119 * grub-core/loader/i386/linux.c: Likewise.
120 * grub-core/loader/i386/pc/linux.c: Likewise.
121 * grub-core/loader/ia64/efi/linux.c: Likewise.
122 * grub-core/loader/mips/linux.c: Likewise.
123 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
124 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
126 2014-09-15 Khem Raj <raj.khem@gmail.com>
128 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
129 _BSD_SOURCE to avoid warnings under glibc 2.20+.
131 2014-09-08 Michael Chang <mchang@suse.com>
133 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
134 check; comparing &data->extent against addresses in the region it
135 points to is unpredictable.
137 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
139 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
141 * configure.ac: Remove -m64 from checks for -mcmodel=large and
142 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
143 already in TARGET_CFLAGS at this point, and they produce incorrect
144 results when building for x32.
145 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
146 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
147 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
148 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
150 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
152 * configure.ac: Remove several unnecessary semicolons.
154 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
156 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
157 Initialise pend to pacify GCC.
159 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
161 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
164 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
166 * grub-core/term/at_keyboard.c: Retry probing keyboard if
167 scancode setup failed.
169 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
171 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
173 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
175 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
176 safety to avoid triggerring VirtualBox bug.
178 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
180 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
182 Fixes hang on virtualbox.
184 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
186 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
187 kernels whose paths contain regex metacharacters.
188 * util/grub.d/10_kfreebsd.in: Likewise.
189 * util/grub.d/10_linux.in: Likewise.
190 * util/grub.d/20_linux_xen.in: Likewise.
192 Reported by: Heimo Stranner.
194 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
196 * docs/grub-dev.texi (Finding your way around): The build system no
197 longer uses AutoGen directly.
199 2014-06-21 Роман Пехов <roman_pekhov>
201 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
203 2014-06-21 Glenn Washburn <development@efficientek.com>
205 * util/grub-install.c: Fix handling of --disk-module.
207 2014-06-21 Stephane Rochoy <sheda>
209 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
212 2014-06-21 Stephane Rochoy <sheda>
214 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
215 EFI system table physical address.
217 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
219 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
221 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
225 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
227 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
230 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
232 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
234 Reported by: Yves Blusseau <blusseau@zetam.org>.
236 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
238 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
239 GDT in conventional memory.
241 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
243 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
244 UUID. Other parts of grub-mkconfig tolerate these, they were
245 previously allowed here up to commit
246 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
247 practice when the system has active LVM snapshots.
248 Fixes Ubuntu bug #1287436.
250 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
252 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
253 "logical_volumes" block a little more accurately.
255 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
259 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
261 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
264 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
266 Replace few instances of memcmp/memcpy in the code that should be
267 grub_memcmp/grub_memcpy.
269 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
271 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
274 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
276 btrfs: fix get_root key comparison failures due to endianness
278 * grub-core/fs/btrfs.c (get_root): Convert
279 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
281 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
283 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
285 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
286 no longer to be forgiving of trailing spaces on grub-probe output
287 lines, which among other things means that util/grub.d/10_linux.in
288 no longer detects LVM. To fix this, make grub-probe's output
289 delimiting more consistent. As a bonus, this improves the coverage
292 Fixes Debian bug #735935.
294 * grub-core/disk/cryptodisk.c
295 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
296 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
298 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
300 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
301 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
302 probe_mods): Adjust for extra user-data arguments.
303 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
304 probe_abstraction): Use configured delimiter. Update callers.
306 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
308 * util/grub-probe,c (options): Make -0 work again (broken by
310 (main): Simplify logic.
312 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
314 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
316 2014-03-26 Fu Wei <fu.wei@linaro.org>
318 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
320 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
322 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
323 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
325 Suggested by: Markus Müller.
327 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
329 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
330 if E820 failed to return any regions.
332 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
334 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
335 tables for low memory calculations.
337 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
339 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
342 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
344 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
347 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
349 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
352 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
354 Add bootpath parser for open firmware.
356 It enables net boot even when there is no bootp/dhcp server.
358 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
359 and call it at grub_ieee1275_net_config_real.
360 * grub-core/kern/ieee1275/init.c: Add bootpath to
361 grub_ieee1275_net_config.
362 * include/grub/ieee1275/ieee1275.h: Likewise.
365 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
367 Add grub_env_set_net_property function.
369 * grub-core/net/bootp.c: Remove set_env_limn_ro.
370 * grub-core/net/net.c: Add grub_env_set_net_property.
371 * include/grub/net.h: Likewise.
373 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
375 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
377 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
379 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
381 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
383 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
384 7 seconds to recover if last poweroff was bad.
386 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
388 * grub-core/disk/ahci.c: Properly handle transactions with no
391 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
393 * grub-core/disk/ahci.c: Add safety cleanups.
395 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
397 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
398 slots to avoid pointing to uninited area.
400 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
402 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
403 enabling busmaster for the end.
405 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
407 * util/grub-mkfont.c: Downgrade warnings about unhandled features
410 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
412 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
414 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
416 * .gitignore: add missing files and .exe variants.
418 2014-01-26 Mike Gilbert <floppym@gentoo.org>
420 grub-install: support for partitioned partx loop devices.
422 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
423 /dev/loopX as being the parent of /dev/loopXpY.
425 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
427 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
428 Ensure that pointers are inited to NULL and that pointers are not
431 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
433 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
434 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
435 * include/grub/emu/misc.h: ... and here.
436 * include/grub/err.h: ... and here.
437 * util/import_gcry.py: ... and here (in files g10lib.h).
439 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
441 * util/grub-mkimage.c: Make prefix argument mandatory.
443 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
445 Fix several translatable strings.
447 Suggested by: D. Prévot.
449 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
451 * util/grub-install.c: List available targets.
453 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
455 * util/grub-install.c (write_to_disk): Add an info message.
457 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
459 * Makefile.am: Allow adding extra files to generated Windows ZIP
460 archive by setting GRUB_WINDOWS_EXTRA_DIST.
462 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
464 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
465 Show detected font path in summary.
467 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
469 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
471 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
472 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
473 * grub-core/net/tftp.c (tftp_open): Likewise.
474 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
476 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
478 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
481 In net/net.c there is a while (1) that only exits if there is a stop
482 condition and more then 10 packages or if there is no package received.
484 If GRUB is idle and enter in this loop, the only condition to leave is
485 if it doesn't have incoming packages. In a network with heavy traffic
488 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
490 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
491 EPERM when modifying kern.geom.debugflags. It is only a problem for
492 such things as installing GRUB to the MBR, in which case there'll be
493 an error later anyway, not for opening files during tests.
495 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
497 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
498 instead of MOD_FILES.
499 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
500 both with and without .exe.
501 * grub-core/genemuinitheader.sh: Same.
503 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
505 * util/grub-install.c: Fix a typo.
507 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
509 * grub-core/normal/main.c (read_config_file): Buffer config file.
512 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
514 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
515 symbolic link to directory. It fails in Msys shell on Windows 2003.
517 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
519 * Makefile.am (default_payload.elf): Add modules
520 multiboot cbmemc linux16 gzio echo help.
522 2014-01-18 Mike Gilbert <floppym@gentoo.org>
524 * Makefile.util.def: Link grub-ofpathname with zfs libs.
526 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
528 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
531 Reported by: Andrey Borzenkov.
533 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
535 * include/grub/misc.h: Move macros for compiler features to ...
536 * include/grub/compiler.h: ... new file.
537 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
538 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
539 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
540 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
541 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
542 * grub-core/video/capture.c: Include <grub/misc.h>.
543 * include/grub/command.h: Include <grub/misc.h>.
544 * include/grub/dl.h: Include <grub/misc.h>.
545 * include/grub/procfs.h: Include <grub/misc.h>.
547 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
549 * configure.ac: Add support for BUILD_EXEEXT and use it ...
550 * Makefile.am: ... here.
551 * Makefile.util.def: ... and here.
552 * grub-core/Makefile.am: ... and here.
554 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
556 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
557 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
559 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
561 * grub-core/term/terminfo.c: Recognize keys F1-F12.
563 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
565 * configure.ac: Add support for BUILD_LDFLAGS.
566 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
567 * grub-core/Makefile.am: ... and here.
568 * INSTALL: Mention BUILD_LDFLAGS.
570 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
572 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
574 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
576 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
579 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
581 * NEWS: Add few missing entries.
583 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
585 * util/grub.d/00_header.in (make_timeout): Use && rather than test
587 * util/grub.d/10_windows.in: Likewise.
588 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
590 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
593 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
595 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
596 redundant preprocessor conditional.
598 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
600 * Makefile.util.def (grub-macbless): Change mansection to 8.
602 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
604 * grub-core/loader/arm64/linux.c: correctly set device path end length.
606 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
608 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
609 arm64 to comply with EFI specification. Also use grubaa64.efi for
611 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
613 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
615 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
616 on MinGW-64 when compiling for 32 bits.
618 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
620 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
622 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
624 * NEWS: Add few missing entries. Correct existing ones.
626 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
628 Don't abort() on unavailable coreboot tables if not running on coreboot.
630 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
632 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
635 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
637 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
638 mention of it from 2.02.
640 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
642 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
644 As these functions are used on pre-ARMv6 CPUs as well we don't want
645 to make assembler assume that architecture is higher than default one.
647 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
649 * NEWS: First draft of 2.02 entry.
651 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
653 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
654 * docs/grub.texi (Getting the source code): Likewise.
656 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
658 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
661 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
663 * configure.ac: Set version to 2.02~beta2.
665 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
667 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
669 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
671 * util/grub-probe.c: Improve help message and simplify list handling.
673 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
675 Fix buffer overflow in grub_efi_print_device_path.
677 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
679 Show SATA device path.
681 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
683 Revert grub-file usage in grub-mkconfig.
685 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
687 Make newly-created files other than grub.cfg world-readable.
689 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
691 * util/grub.d/00_header.in: Improve compatibility with old config.
693 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
695 Make rijndael.c respect aliasing rules.
697 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
699 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
701 Make grub_util_device_is_mapped_stat available in grub-emu core.
703 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
705 Add -Qn to TARGET_CFLAGS if it's supported.
706 Fixes compilation on cygwin.
708 Reported by: Andrey Borzenkov.
709 Suggested by: Andrey Borzenkov.
711 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
713 Save TARGET_CC version in modinfo.sh.
715 Suggested by: Andrey Borzenkov.
717 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
719 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
720 follow the same algorithm to avoid method mismatch. Don't assume
721 DMRAID- UUID to mean full disk but instead check that mapping is linear.
723 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
725 Declare GRUB_EFI_VENDOR_APPLE_GUID.
727 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
729 Dump type and vendor specific data when printing device path.
731 2013-12-23 Colin Watson <cjwatson@debian.org>
733 Update some documentation to refer to Git rather than Bazaar.
735 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
737 * po/README: Likewise. Fix spelling mistake.
739 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
741 Don't distribute config.h.
743 * Makefile.am (platform_HEADERS): Move to ...
744 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
745 failure when building from a distributed tarball.
747 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
749 * configure.ac: Fix spelling.
750 * grub-core/commands/parttool.c: Fix grammar.
751 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
752 Embedding Partition".
754 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
756 ARM64 support for grub-mkrescue.
758 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
760 Install modinfo.sh to keep build information around.
762 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
764 * grub-core/modinfo.sh.in: Add build config information.
766 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
768 ARM64 grub-file and grub-mkconfig support.
770 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
772 Remove leftover options defines.
774 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
776 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
778 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
780 * grub-core/loader/arm64/linux.c: Add missing bracket.
782 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
784 Add arm64-efi recognition to grub-file.
786 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
788 Fix ia64-efi recognition in grub-file.
790 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
792 Recognize raspberry pi kernel in grub-file.
794 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
796 Enable cache on ARM U-Boot port.
798 Without it the port is reidiculously slow.
800 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
802 Fix ARM cache maintainance.
804 More code was converted from ASM to C for easier handling.
806 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
808 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
811 Suggested by: Leif Lindholm.
813 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
815 * util/grub-mkconfig.in: Fix Xen platform conditions.
817 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
819 * util/grub-mkrescue.c: Split single help message string in several
820 strings used in previous shell version.
822 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
824 Add arm64 Linux loader.
826 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
828 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
830 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
832 Add module loading and parsing boot time checkpoints.
834 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
836 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
839 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
841 * util/grub-mkconfig.in: Skip non-executable files.
843 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
845 Workaround buggy timer in raspberry pie by using our own timer
848 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
850 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
851 Increase to 16 MiB to allow loading the whole memdisk.
853 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
855 Fix ARM Linux Loader on non-FDT platforms.
857 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
859 * configure.ac: Choose link format based on host_os on emu.
861 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
863 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
865 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
867 * grub-core/kern/emu/main.c: Build fix for emu.
869 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
871 Build fixes for argp.h with older gcc.
873 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
875 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
878 Suggested by: David Prévot.
880 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
882 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
884 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
886 Enable -Wformat=2 if it's supported.
888 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
890 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
891 -Wmissing-declarations if supported.
893 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
895 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
896 u32 as both HFS and HFS+ have 32-bit inodes.
898 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
900 * include/grub/misc.h (grub_strtol): Fix overflow.
902 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
904 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
905 as return type in both conditionals.
907 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
909 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
910 to use uint8_t for color.
912 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
914 * util/misc.c (grub_util_get_image_size): Check for overflow.
916 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
918 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
921 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
923 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
924 for pointer difference.
926 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
928 * util/import_gcry.py: Skip sample keys.
930 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
932 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
934 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
936 * configure.ac: Remove duplicate warning arguments.
938 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
940 Add missing static qualifiers.
942 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
944 Add missing includes.
946 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
948 Inline printf templates when possible to enable format checking.
950 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
952 * include/grub/crypto.h: Don't discard const attribute.
954 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
956 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
959 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
961 * grub-core/lib/crypto.c: Don't discard const attribute.
963 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
965 * grub-core/lib/disk.c: Fix potential overflow.
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
969 * grub-core/lib/arg.c: Don't discard const attribute.
971 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
973 * grub-core/kern/dl.c: Don't discard const attribute.
975 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
977 * grub-core/kern/disk.c: Fix potential overflow.
979 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
981 * conf/Makefile.common: Don't include non-existing directory
982 grub-core/lib/libgcrypt-grub/include.
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
986 Clarify several translatable messages.
988 2013-12-21 David Prévot <david@tilapin.org>
990 Correct some translatable strings.
992 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
994 * util/grub-mkrescue.c: Rephrase mkrescue description.
996 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
997 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
999 Clarify several translatable messages.
1001 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1003 Be more verbose about some configure failures.
1005 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1007 Fix various build problems on GNU/Hurd.
1009 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1011 (xgetcwd): Likewise.
1012 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1013 [__GNU__]: Add prototype.
1014 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1015 long int using %ld rather than %d.
1017 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1019 * util/grub-install.c: Inform user about install platform.
1021 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1023 * configure.ac: Set version to 2.02~beta1.
1025 2013-12-18 Allen Pais <allen.pais@oracle.com>
1026 2013-12-18 Bob Picco <bob.picco@oracle.com>
1028 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1030 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1032 Make grub_zlib_decompress handle incomplete chunks.
1036 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1038 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1041 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1043 * grub-core/disk/usbms.c: Retry on unknown errors.
1044 Reuse the same tag on retries.
1046 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1048 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1050 Avoid confusing them with already completed transfers.
1052 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1056 Due to XEN bug it prevents Linux boot. Remove it at least, until
1057 workaround is found.
1059 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1061 * po/exclude.pot: Add 2 missing excludes.
1063 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1065 Add missing license section in macbless.mod and macho.mod.
1067 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1069 Allow compilation without thumb-interwork as long as no thumb is
1070 involved or only thumb2 is used.
1072 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1074 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1076 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1078 Add __attribute__ ((sysv_abi)) only if it's really needed.
1080 Some compilers don't support it.
1082 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1084 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1086 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1088 Remove -Wold-style-definition.
1090 Not very useful and interaction of it with regexp depends on GCC
1093 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1095 Make grub_util_get_windows_path_real static.
1097 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1099 * grub-core/commands/fileXX.c: Silence cast-align.
1100 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1102 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1104 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1105 rather than LL suffix.
1107 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1109 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1111 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1113 * grub-core/loader/arm/linux.c: Use common initrd functions.
1115 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1117 Decrease number of strings to translate.
1119 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1123 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1125 Mark strings for translation and add remaining ones to exclude list.
1127 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1129 * util/grub-file.c (main): Fix sizeof usage.
1131 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1133 Silence spurious warning.
1135 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1137 Remove check_nt_hiberfil as it's been superseeded by file command.
1139 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1143 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1145 Implement syslinux parser.
1147 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1151 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1153 Support cpuid --pae.
1155 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1157 Use AT keyboard on Yeeloong 3A.
1159 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1161 Add Yeeloong 3A reboot and halt.
1163 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1165 Add Radeon Yeeloong 3A support.
1167 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1169 Add bonito 3A support.
1171 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1173 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1175 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1177 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1179 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1181 * grub-core/loader/macho.c: Fix compilation on non-i386.
1183 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1185 Add missing format_arg attribute to check that printf with translated
1186 messages has proper arguments.
1188 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1190 Use grub_xasprintf to format translated error messages containing
1193 2013-12-17 Jon McCune <jonmccune@google.com>
1195 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199 Unify message for unsupported relocation.
1201 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1203 Mark miscompile error for translation.
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1207 Use %I64 and not %ll when using OS printf if compiling for windows.
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211 Update Mac code to match new register_efi prototype.
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215 Implement better integration with Mac firmware.
1217 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1219 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1222 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1224 Include serial module in default_payload.elf.
1226 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1228 Add explicit thumb interwork bx in asm files.
1230 Shouldn't matter for armv >= 5 but let's be safe.
1232 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1234 Implement Truecrypt ISO loader.
1236 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1240 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1242 Implement grub_file tool and use it to implement generating of config
1245 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1247 Change to v1 xen grants.
1249 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1251 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1253 GRUB relied on %ebx being preserved across hypercall which isn't true.
1255 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1257 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1259 GRUB relied on %rdi being preserved across hypercall which isn't true.
1261 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1263 Implement XEN VFB support.
1265 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1267 Remove grub_bios_interrupt on coreboot.
1269 It's not used currently and cannot be used safely currently.
1271 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1273 Update exclude.pot and mark few strings for translation.
1275 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1277 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1279 Reported by: Jon McCune
1281 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1283 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1284 Add verbose information which firmware directories were tried.
1286 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1288 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1289 function to optionally redirect all three standard descriptors.
1290 Redefine grub_util_exec, grub_util_exec_redirect and
1291 grub_util_exec_redirect_null to use it.
1292 * include/grub/emu/exec.h: Define it.
1293 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1294 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1295 Use grub_util_exec_redirect_all to redirect error to NULL.
1297 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1299 * grub-core/tests/sleep_test.c: Silence spurious warning.
1301 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1303 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1304 linker trying to "fixup" the code.
1306 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1308 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1310 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1312 Add support for converting PE+ to Elf64.
1314 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1316 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1318 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1320 Remove practice of assigning random const pointers to device id.
1322 This is not required as cache code already checks driver id as well.
1324 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1326 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1329 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1331 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1332 mingw or cygwin as API already matches.
1334 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1336 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1338 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1340 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1343 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1345 Handle X86_64_PC64 relocation.
1347 Those are generated by some cygwin compilers.
1349 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1351 Determine the need for mingw-related stubs at compile time rather than
1352 using not very significant $target_os.
1354 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1356 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1357 may not work with ELF.
1359 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1361 Use unix functions for temporary files and special files on cygwin.
1363 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1365 Define functions explicitly rather than using --defsym in tests
1366 whenever possible. Respect locality in remaining cases.
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1370 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1372 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1374 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1375 unlikely errors when getting EFI variables and make exhaustive search
1376 for all BootNNNN variables to find matching one.
1378 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1380 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1382 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1384 New functional test for sleep function.
1386 This test allows to check sleep without qemu. Keep qemu version as
1387 well as functional test won't notice if all clocks are going too fast
1390 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1392 Add explicit sysv_abi on amd64 asm routines.
1394 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1396 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1399 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1401 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1404 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1406 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1409 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1411 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1413 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1415 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1418 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1420 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1422 In case of quick removal of loopback and adding another one it may
1423 get same ID, confusing the cache system.
1425 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1427 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1430 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1432 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1433 than converting to long.
1435 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1437 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1439 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1441 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1442 than almost useless pointer.
1444 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1446 Add gcc_struct to all packed structures when compiling with mingw.
1448 Just "packed" doesn't always pack the way we expect.
1450 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1452 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1454 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1456 * util/grub-pe2elf.c: Fix handling of .bss.
1458 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1460 Implement windows flavour of EFI install routines.
1462 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1464 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1466 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1468 Change grub_install_register_efi interface to pass GRUB device.
1470 This allows grub_install_register_efi to request partition info
1473 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1475 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1477 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1479 Do not use TCHAR string functions as they are not available on cygwin.
1481 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1483 Workaround windows bug when querying EFI system partition parameters.
1485 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1487 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1490 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1492 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1494 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1496 Make i386-* other than i386-pc compileable under cygwin.
1498 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1500 Fix definition of grub_efi_hard_drive_device_path. Take care that
1501 existing code would work even if by some reason bogus definition is
1502 used by EFI implementations.
1504 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1508 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1513 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1515 * util/config.c: Remove trailing newline from distributor in simple
1518 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1520 * include/grub/efi/api.h: Rename protocol and interface to avoid
1523 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1525 * .gitignore: add .exe variants. add missing files. remove few outdated
1528 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/osdep/exec.c: Use unix version on cygwin.
1532 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1534 Implement multiboot2 EFI BS specification.
1536 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1538 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1539 Crash happened only in some cases like a string starting at the
1540 half of the screen of same length.
1542 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1544 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1545 with EFI counterpart.
1547 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1549 Propagate the EFI commits to x86-efi specific parts.
1551 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1553 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1555 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1557 Introduce grub_efi_packed_guid and use it where alignment is not
1560 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1562 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1563 unaligned u16 rather than u8[2].
1565 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1567 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1568 for relocation range.
1570 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1572 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1573 non-function pcrel21b relocation. It happens with .text.unlikely
1576 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1578 * make MAX_USABLE_ADDRESS platform-specific
1579 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1581 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1583 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1585 2013-12-09 Jon McCune <jonmccune@google.com>
1587 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1588 in grub-install and grub-bios-setup for x86 BIOS targets.
1590 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1592 Add missing compile and link options for sparc64-emu.
1594 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1596 Implement sparc64 trampolines (needed for sparc64-emu).
1598 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1600 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1601 range of R_SPARC_HI22.
1602 Implement R_SPARC_LM22.
1604 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1606 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1607 Do not explicitly check for symbol table as it's already checked in
1608 platform-independent layer.
1610 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1613 on ia64 as __clear_cache is a dummy on ia64.
1615 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1617 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1618 Do not explicitly check for symbol table as it's already checked in
1619 platform-independent layer.
1621 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1623 * util/grub-mkconfig.in: Add missing newline to output.
1625 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1628 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1630 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1632 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1633 compilation with GCC <= 4.2.
1634 * grub-core/kern/emu/argp_common.c: Likewise.
1636 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1638 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1639 right platform rather than leaking to sparc64-emu.
1641 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1643 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1644 But ensure that the variables in question are indeed unsigned.
1646 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1648 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1650 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1652 Remove grub_memalign on emu.
1654 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1656 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1657 truncate incomplete lines but instead flushes them.
1659 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1661 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1662 and implement windows variant.
1664 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1666 Fix mips-emu compilation.
1668 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1670 * configure.ac: Check for freetype library usability.
1672 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1676 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1678 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1680 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1682 * docs/grub.texi (Environment): Update color_normal and color_highlight
1683 defaults (light-gray instead of white).
1685 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1687 * grub-core/normal/main.c (INIT): Set default color to light-gray
1688 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1689 and apparently BIOS defaults.
1691 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1693 Transform -C option to grub-mkstandalone to --core-compress available
1694 in all grub-install flavours.
1696 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1698 Merge GRUBFS and GRUB_FS variables.
1700 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1702 Revert commit 69ca97c820, it caused failures when using OS device name
1703 in grub-install. Instead just strip off parenthesis in grub-install
1704 if (hdX) was passed.
1706 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1708 * util/grub-install.c (push_partmap_module): Add helper to convert
1709 partmap names to module names and use it in probe_mods(). Fixes
1710 failure to find partmap modules in diskfilter case.
1712 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1714 * configure.ac: Make unifont mandatory on coreboot.
1716 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1718 * configure.ac: Skip unifont 6.3 pcf and bdf.
1720 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1722 * Makefile.am: Remove partial font files if generation failed.
1724 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1726 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1728 * include/grub/util/misc.h: Define it ...
1729 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1731 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1733 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1736 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1738 Don't add -mlong-calls when compiling with clang.
1740 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1742 * configure.ac: Fix a typo.
1744 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1746 Revamp relocation handling.
1748 Move more code to common dl.c. Add missing veneers for arm and arm64.
1749 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1751 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1753 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1755 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1757 * INSTALL: Raise minimum python version to 2.6.
1758 * gentpl.py: Use python3-style print function.
1760 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1762 * util/grub-install.c: Mention Boot* variable.
1764 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1766 * grub-core/osdep/linux/hostdisk.c
1767 (grub_util_find_partition_start_os): Initialise start to avoid
1768 spurious compiler warning.
1770 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1772 On Linux, read partition start offsets from sysfs if possible, to
1773 cope with block device drivers that don't implement HDIO_GETGEO.
1774 Fixes Ubuntu bug #1237519.
1776 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1778 (sysfs_partition_start): Likewise.
1779 (grub_util_find_partition_start_os): Try sysfs_partition_start
1782 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1784 * grub-core/kern/fdt.c: Update struct size when adding node.
1786 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1788 Handle unaligned .bss on sparc64.
1790 Current code improperly assumes that both __bss_start and _end are
1791 aligned to 8-bytes. Eliminating this assumption and explicitly align
1794 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1796 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1797 so it doesn't land in the middle of loaded image.
1799 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1801 * configure.ac: Move all warning options that may be absent in
1802 gcc >= 3.1 to optional.
1804 Note: while this allows to compile with older GCC, official requirements
1805 remain the same and no support for older GCC.
1807 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1809 Copying the themes directory in grub-shell isn't
1810 parallel-test-friendly and breaks on the second test when the source
1811 directory is read-only (as in "make distcheck"). Instead, add a
1812 hidden --themes-directory option to grub-mkrescue et al, and use it
1815 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1817 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1818 as it's no longer necessarry.
1820 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1822 * configure.ac: Allow compilation with older GCC for ARM.
1824 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1826 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1827 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1830 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1832 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1834 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1836 Pass font config to config.h and not by TARGET_CFLAGS as adding
1837 arguments doesn't work if TARGET_CFLAGS is specified on command
1840 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1842 * configure.ac: Add -Wvla if compiler supports it.
1844 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1847 Remove variable length arrays.
1848 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1850 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1852 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1854 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1856 * include/grub/types.h: Declare all byteswaps as inline functions
1857 except compile-time ones.
1859 Solves variable shadowing in constructions like
1860 cpu_to_le (le_to_cpu(x) + 1).
1862 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1864 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1866 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1868 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1871 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1873 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1874 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1876 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1878 * grub-core/Makefile.core.def (setjmp): Distribute
1881 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1883 Add a new timeout_style environment variable and a corresponding
1884 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1885 controls hidden-timeout handling more simply than the previous
1886 arrangements, and pressing any hotkeys associated with menu entries
1887 during the hidden timeout will now boot the corresponding menu entry
1890 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1891 generates a warning, and if it shows the menu it will do so as if
1892 the second timeout were not present. Other combinations are
1893 translated into reasonable equivalents.
1895 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1897 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1899 * util/config.c: Add missing pointer adjustment.
1900 Reported by: qwertial
1902 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1904 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1905 directly, not via `cpu' link, to fix libgrub.pp generation.
1907 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1911 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1913 * docs/grub.texi (sleep): Document exit codes.
1915 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1917 Ensure that -mno-unaligned-access or some equivalent option is used.
1919 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1921 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1924 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1926 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1928 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1930 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1931 builds, since we don't have an EPS version of font_char_metrics.png.
1932 Add leading dot to image extension per the Texinfo documentation.
1934 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1936 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1937 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1938 * util/grub-gen-widthspec.c: Likewise.
1939 * util/grub-mkfont.c: Likewise.
1941 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1943 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1944 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1945 failed to install on (hdX).
1946 * util/grub-setup.c (get_device_name): Remove, not needed after
1949 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1951 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1953 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1955 * util/grub-fstest.c: Remove variable length arrays.
1957 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1959 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1961 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1963 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1964 computing crc32 rather than handling with md fundtions directly.
1966 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1968 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1969 checking fwstart.img rather than md fundtions directly.
1971 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1973 * util/grub-mkrescue.c (main): Check that fread succeeded.
1975 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1977 * conf/Makefile.common: Remove -mexplicit-relocs and
1978 -DUSE_ASCII_FALLBACK on yeeloong.
1980 -DUSE_ASCII_FALLBACK is already added by font snippets.
1981 -mexplicit-relocs isn't needed is compiler/assemblera are
1982 configured properly.
1983 If they're not we shouldn't attempt to fix it by ourselves.
1984 Binary compare between before and after shows no difference.
1986 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1988 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1989 sources in dependencies directly.
1991 This was the only instance of "library" in core config. A bug was
1992 reported that -fno-stack-protector wasn't passed to it. Instead of
1993 figuring out why it failed just remove this construction used
1996 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1998 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2001 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2003 * docs/grub.texi (ls): Fix command description in case of a device name
2006 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2008 Eliminate variable length arrays in grub_vsnprintf_real.
2010 A bit tricky because this function has to continue to work without
2011 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2012 but make all stack references use 32-bit offset rather than 8-bit one.
2013 So split va_args preparsing to separate function and put the prealloc
2016 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2018 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2019 Fixes build for windows.
2021 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2023 * gentpl.py: Don't generate platform-dependent conditionals for
2024 platform-independent targets.
2026 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2028 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2029 references to mdadm from otherwise generic code.
2030 (grub_util_exec_pipe): Likewise.
2031 (grub_util_exec_pipe_stderr): Likewise.
2032 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2033 This function calls vgs, not mdadm; adjust variable names
2036 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2038 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2039 of Autogen. The Autogen definitions files remain intact as they
2040 offer a useful abstraction.
2042 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2044 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2045 into no-ops, and use it in programs that copy files but do not need
2046 to take special care to sync writes (grub-mknetdir, grub-rescue,
2049 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2051 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2052 than hardcoding /usr/local/bin/xorriso.
2054 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2056 Add PCI command activation to all PCI drivers as required for coreboot
2057 and maybe some other firmwares.
2059 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2061 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2062 and non-Apple variants of efiemu compile.
2064 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2066 * configure.ac: Add explicit check for linking format of
2067 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2068 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2069 hardcoding linking format.
2071 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2073 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2076 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2077 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2079 Add a --locale-directory option to grub-install and related tools.
2081 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2082 --locale-directory option.
2083 (enum grub_install_options): Add
2084 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2085 * util/grub-install-common.c (grub_install_help_filter): Handle
2086 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2087 (grub_install_parse): Likewise.
2088 (get_localedir): New function to check for a user-provided option
2089 before trying grub_util_get_localedir.
2090 (copy_locales): Use get_localedir rather than
2091 grub_util_get_localedir. Handle differing locale directory layouts.
2092 (grub_install_copy_files): Likewise.
2094 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2096 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2097 Don't rely on PATH_MAX.
2099 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2101 * grub-core/genmoddep.awk: Use more portable && rather than and.
2103 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2105 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2106 an object after data. While it doesn't seem right solution, it
2107 works well enough and OSX isn't main compilation platform.
2109 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2111 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2112 While it doesn't seem right solution, it works well enough and
2113 OSX isn't main compilation platform.
2115 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2117 * configure.ac: Add -static to LDFLAGS when using apple linker to
2118 prevent it from pulling in dynamic linker.
2120 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2122 Apple assembly doesn't handle symbol arithmetic well. So define an
2123 offset symbol in boot.S and use it.
2125 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2127 Apple assembly doesn't handle symbol arithmetic well. So instead
2128 of getting addres of kernel_sector + 4 define kernel_sector_high.
2129 It also makes code more readable.
2131 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2133 With Apple assembly in .macro environvemnt you have to use $$ instead
2134 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2135 to $$x on Apple and to $x on everything else.
2137 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2139 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2142 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2144 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2145 and non-Apple. This instruction is shorter and faster,
2146 so no reason not to use it on both.
2148 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2150 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2151 .text when compiling for Apple.
2153 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2155 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2157 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2159 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2160 %dx restore the probe worked on non-existant drive. Reorganize the
2161 code a little bit to free 2 bytes necessary for push/pop.
2163 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2165 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2166 Add missing cast to silence warning.
2168 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2170 * util/grub-install.c (update_nvram): Support --no-nvram flag
2173 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2175 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2177 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2179 * util/garbage-gen.c: Add missing include of sys/time.h.
2181 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2183 Don't add -mflush-func if it's not supported by compiler.
2185 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2187 Move common BIOS/coreboot memory map declarations to
2188 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2190 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2192 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2194 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2196 * INSTALL: Document why older clang versions aren't appropriate.
2198 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2200 * INSTALL: Document about clang for mips.
2202 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2204 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2207 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2209 Add *-xen to the list of grub-install-common platforms.
2211 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2213 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2216 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2218 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2220 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2222 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2223 with -mcmodel=large.
2225 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2227 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2228 range-checking for 32-bit quantities.
2230 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2232 * configure.ac: Compile with -fPIC when compiling with clang on
2235 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2237 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2238 when compiling with clang.
2240 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2242 clang emits calls to abort () under some unknown conditions.
2243 Export abort () when compiling with clang.
2245 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2247 * docs/grub-dev.texi: Document stack and heap sizes.
2249 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2251 * include/grub/i386/pc/memory.h: Decrease
2252 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2253 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2254 The binary doesn't change (checked). It's more to better reflect actual
2257 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2260 at compile time that enough of scratch size is available.
2262 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2265 Previously we misaligned stack by 8 in startup.S and compensated
2266 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2267 right behaviour is to align stack in startup.S and keep it aligned
2268 in callwrap.S. startup.S part was committed few commits before. This
2269 takes care of callwrap.S.
2270 Reported by: Gary Lin.
2272 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2274 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2275 .data and .bss. May happen if compiler and assembly use different
2278 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2280 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2283 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2285 Add support for a new magic symbol _gp_disp on mips to handle PIC
2288 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2290 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2292 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2294 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2295 when rest of GRUB is compiled for hisher stepping. Instead use
2296 .set mips3/.set mips1 around cache and sync opcodes.
2298 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2300 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2301 do essentially the same thing, do it in similar way.
2303 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2305 * util/grub-mkrescue.c (main): If a source directory is not
2306 specified, read platform-specific files from subdirectories of
2307 pkglibdir, not pkgdatadir.
2309 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2311 * grub-core/normal/progress.c: Remove unused file.
2313 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2315 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2318 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2320 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2323 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2325 * coreboot.cfg: Add missing file.
2327 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2329 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2331 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2333 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2334 selectively skipping systems.
2336 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2338 * Makefile.util.def (grub-mkimage): Add
2339 grub-core/osdep/aros/config.c to extra_dist.
2340 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2341 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2342 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2343 grub-core/gnulib-no-gets.diff.
2345 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2347 Add automated filesystem checking based on scripts I've used now for
2348 quite some time locally. Most of the test require root so they are
2349 skipped when run without necessarry privelegies.
2351 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2353 * util/grub-install.c (main): Adjust info messages to match
2354 installed paths of grub-bios-setup and grub-sparc64-setup.
2356 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2358 * util/grub-install-common.c (copy_locales): Consistently use
2359 grub_util_get_localedir () rather than LOCALEDIR.
2360 (grub_install_copy_files): Likewise.
2362 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2364 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2365 16-byte boundary, as required by the x86-64 ABI, before calling
2366 grub_main. In some cases, GCC emits code that assumes this
2367 alignment, which crashes if not aligned. The EFI firmware is also
2368 entitled to assume that stack alignment without checking.
2370 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2372 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2373 4k page boundaries as expected by firmware rather than 1k
2375 (grub_mmap_malign_and_register): Likewise.
2377 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2379 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2380 fragmentation 512M is enough.
2382 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2384 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2385 pointer to 32K. This is the size of cache element which is the most
2386 common allocation >1K. This way the pointer is always around blocks
2387 of 32K and so we keep performance while decreasing fragmentation.
2389 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2391 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2392 current memory when allocating large chunks. This significantly
2393 decreases memory fragmentation.
2395 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2397 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2399 * tests/lzocompress_test.in: Skip if lzop is not installed.
2400 * tests/xzcompress_test.in: Skip if xz is not installed.
2402 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2404 * util/grub-mkrescue.c (main): Fix typo.
2406 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2408 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2409 clock frequency to 200 MHz,
2411 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2413 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2415 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2417 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2418 Load config file from (cbfsdisk)/etc/grub.cfg.
2420 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2422 * util/grub-install-common.c (grub_install_copy_files): Fix module
2423 destination directory.
2425 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2427 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2428 files have not been built.
2430 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2432 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2433 Handle errors from mkstemp.
2434 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2436 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2438 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2439 on primary master on pseries.
2441 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2443 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2444 already loaded. This saves memory needed for tests,
2446 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2448 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2451 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2453 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2458 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2459 master since with some combinations of qemu and firmware only primary
2460 IDE channel is available.
2462 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2464 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2465 low-memory platforms where we don't have enough memory for them.
2466 * grub-core/tests/videotest_checksum.c: Likewise.
2468 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2470 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2471 already loaded. This saves memory needed for tests,
2473 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2475 Fix handling of install lists.
2477 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2479 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2481 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2483 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2484 the devices before accessing them.
2486 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2488 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2491 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2495 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2497 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2498 (grub_file_close): Free file->name.
2500 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2502 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2503 (grub_load_public_key): Likewise.
2504 (grub_verify_signature_real): Likewise.
2505 (grub_cmd_verify_signature): Likewise.
2507 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2512 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2514 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2515 (grub_longjmp): Restore r31.
2516 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2518 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2520 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2521 modules to be in line with make_image_abs.
2523 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2525 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2527 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2529 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2531 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2533 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2535 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2536 to leave some memory to firmware.
2538 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2540 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2541 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2542 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2545 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2547 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2548 now needs full arguments.
2550 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2552 * util/grub-mkrescue.c (main): Add trailing \n in
2553 .disk_label.contentDetails to be in line with previous shell script.
2555 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2557 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2559 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2561 * util/grub-install-common.c (grub_install_parse): Recognize
2562 --compress=none like shell script did.
2564 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2566 * include/grub/misc.h: Replace check for __sparc64__ with one for
2567 __sparc__ as __sparc64__ isn't actually defined.
2569 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2571 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2572 counterpart of fixing the naming of escc ports.
2574 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2576 * util/grub-install-common.c (platforms): Fix the order of entries and
2577 remove useless field val.
2579 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2581 * util/grub-install.c: Add new option --no-bootsector to skip
2582 installing of bootsector. Accept --grub-setup=/bin/true as
2583 backwards-compatible synonym.
2585 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2587 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2588 order of qsort arguments (number of elements vs. element size).
2590 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2592 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2593 the function of these files exceeds what can be sanely handled in shell
2594 in posix-comaptible way. Also writing it in C extends the functionality
2595 to non-UNIX-like OS and minimal environments.
2597 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2599 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2600 compiling to thumb2.
2601 * grub-core/kern/arm/cache_armv7.S: Likewise.
2602 * grub-core/lib/arm/setjmp.S: Likewise.
2604 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2606 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2607 in grub_uboot_syscall
2609 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2611 Decrease stack usage in lexer.
2613 We have only 92K of stack and using over 4K per frame is wasteful
2615 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2616 as macros so that compiler would remove useless structure on stack.
2617 Better solution would be to fix flex not to put this structure on
2618 the stack but flex is external program.
2620 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2622 Decrease stack usage in signature verification.
2624 We have only 92K of stack and using over 4K per frame is wasteful
2626 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2628 (grub_verify_signature_real): Likewise.
2630 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2632 Decrease stack usage in mdraid 0.9x.
2634 We have only 92K of stack and using over 4K per frame is wasteful
2636 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2639 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2641 Decrease stack usage in BtrFS.
2643 We have only 92K of stack and using over 4K per frame is wasteful
2645 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2648 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2650 Decrease stack usage in JFS.
2652 We have only 92K of stack and using over 4K per frame is wasteful
2654 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2655 stack. Note: this function is recursive.
2656 (grub_jfs_read_inode): Read only part we care about.
2658 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2660 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2663 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2665 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2667 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2669 * docs/grub.texi (Environment): Document cmdpath.
2671 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2673 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2674 Remove "unused" attribute from arguments, they are used.
2676 2013-11-15 Colin Watson <cjwatson@debian.org>
2678 * .gitignore: Only ignore grub-mk* at the top level.
2680 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2682 * util/grub-reboot.in (usage): Fix a typo.
2684 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2686 Replace libgcc version of ctz with our own.
2688 On upcoming arm64 port libgcc ctz* are not usable in standalone
2689 environment. Since we need ctz* for this case and implementation is
2690 in C we may as well use it on all concerned platforms.
2692 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2694 * configure.ac: Probe for linking format rather than guessing it based
2697 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2699 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2700 "1" prior to handoff.
2702 Reported by: M A Young.
2704 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2706 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2709 Reported by: M A Young.
2711 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2713 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2714 compilation on NetBSD.
2716 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2718 * acinclude.m4: Don't add -P on initial nm test.
2720 Note: even though this patch postdates Andrey's it bears 14 Nov as
2721 date due to timezone difference.
2723 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2725 * grub-core/Makefile.core.def (signature_test): Add missing
2728 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2730 * util/grub-install_header: Set localedir here, since this file is
2732 * util/grub-install.in: Remove setting of localedir.
2733 * util/grub-mkrescue.in: Likewise.
2735 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2737 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2739 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2741 * configure.ac: Move nm checks to the end.
2742 Call grub_PROG_NM_WORKS.
2743 * acinclude.m4: New check grub_PROG_NM_WORKS.
2744 Use $TARGET_CFLAGS -c when compiling test binary.
2746 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2748 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2751 2013-11-14 Matthew Garrett <mjg@redhat.com>
2753 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2754 cmdpath to firmware directory.
2756 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2758 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2759 at the start of second iteration.
2761 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2763 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2765 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2767 * Makefile.am (default_payload.elf): New target for easier coreboot
2770 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2772 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2773 clang (not necessarry with -no-integrated-as).
2774 * include/grub/symbol.h [__arm__]: Likewise.
2776 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2778 * configure.ac: Use -no-integrated-as on arm with clang.
2779 * INSTALL: Mention ARM compilation with clang.
2781 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2783 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2786 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2788 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2789 code for indirect block handling.
2791 Saves 185 bytes on compressed image.
2793 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2797 * Makefile.am: Remove build-grub-* in make clean.
2799 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2801 New files to gitignore.
2803 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2804 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2806 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2808 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2810 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2812 * .gitignore: fix rules for .dep* and add *.a post git migration
2814 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2816 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2819 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2821 * grub-core/kern/misc.c: Don't redirect divisions in the
2823 * include/grub/misc.h: Likewise.
2825 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2827 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2828 systems that require checking the return value of write.
2830 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2832 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2833 efibootmgr quiet when --debug is not used, rather than when it is.
2835 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2837 * gentpl.py (define_macro_for_platform_dependencies): Remove
2838 first (and thus unused) of two definitions for this function.
2839 (platform_dependencies): Likewise.
2841 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2843 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2844 functions, we only need to check this for the target, not the host.
2845 * configure.ac (grub_apple_cc): Likewise.
2847 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2849 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2850 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2851 asm to stay in arm even if surrounding is thumb.
2853 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2856 helper functions are needed for thumb.
2858 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2860 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2861 level / 3 division explicitly unsigned. Saves few bytes.
2863 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2865 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2867 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2869 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2872 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2875 grub_uboot_boot_data to asm part.
2877 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2881 (grub_uboot_syscall): Save/restore r9 and align stack.
2883 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2887 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2889 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2890 occurencies with END.
2892 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2894 * util/grub-editenv.c (help_filter, argp): Document how to delete
2895 the whole environment block.
2896 Reported by Dan Jacobson. Fixes Debian bug #726265.
2898 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2900 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2903 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2905 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2906 increment/decrement.
2908 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2910 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2911 compiling with clang.
2913 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2915 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2918 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2920 Redirect all divisions to grub_divmod64.
2922 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2926 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2928 Add missing includes of loader.h.
2930 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2932 * configure.ac: Allow disabling themes.
2934 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2936 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2938 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2941 until it becomes operational.
2943 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/Makefile.core.def (legacy_password_test): Disable
2946 on platforms where no legacycfg is compiled.
2947 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2948 load legacy_password_test.
2950 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2954 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2956 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2958 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2960 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2961 strict-aliasing warning.
2962 (fsync): Silence cast warning.
2964 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/commands/verify.c: Remove variable length arrays.
2967 Load gcry_dsa/gcry_rsa automatically.
2969 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2971 * grub-core/tests/signature_test.c: New test.
2973 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2975 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2978 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2981 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2983 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2985 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2987 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/fs/proc.c: Allow \0 in proc files.
2991 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2993 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2995 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2999 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/fs/ext2.c: Remove variable length arrays.
3003 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3005 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3008 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3011 * grub-core/disk/cryptodisk.c: Likewise.
3012 * grub-core/disk/geli.c: Likewise.
3013 * grub-core/disk/luks.c: Likewise.
3015 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3017 * grub-core/tests/legacy_password_test.c: New test.
3018 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3020 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3022 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3024 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3026 * grub-core/tests/pbkdf2_test.c: New test.
3028 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3030 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3034 * grub-core/io/lzopio.c: Remove variable length arrays.
3036 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3038 * include/grub/crypto.h: Add maximums on hash size and cipher block
3041 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3043 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3045 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3047 * grub-core/tests/xnu_uuid_test.c: New test.
3049 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3051 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3054 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3056 * grub-core/commands/hashsum.c: Remove variable length arrays.
3058 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3062 * tests/grub_func_test.in: Increase memory allocation.
3064 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3066 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3067 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3070 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3072 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3073 (grub_util_get_fd_size_os): ...this.
3074 (grub_hostdisk_flush_initial_buffer): New empty function.
3076 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3078 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3079 without --defined-only.
3081 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3084 rip-relative addressing in prologue.
3086 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3088 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3089 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3091 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3093 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3094 Add missing semicolon.
3096 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3098 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3100 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3102 * configure.ac: Check for lzma.h for enabling liblzma and allow
3105 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3107 Add missing includes of loader.h.
3109 2013-11-11 Fam Zheng <famcool@gmail.com>
3111 * util/grub.d/30_os-prober.in: Add minix entry.
3113 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3115 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3116 right buffer for temporary load.
3118 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3120 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3122 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3124 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3127 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3129 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3131 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3133 (LzmaDec_InitDicAndState): Make static.
3135 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3137 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3139 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3141 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3143 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3145 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3147 * docs/grub-dev.texi: Replace bzr references with git ones.
3149 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3151 * docs/grub.texi (Simple configuration): Remove reference to
3152 grub-reboot from saved default entry description - grub-default
3153 does not use it anymore.
3155 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3157 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3160 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3162 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3164 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3166 Fix grub_machine_fini bitrot.
3168 Reported by: Glenn Washburn.
3170 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3172 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3174 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3176 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3178 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3181 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3183 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3184 Add -march=core2 when testing compile of efiemu64.
3186 Thanks Andrey Borzenkov for spotting this.
3188 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3190 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3191 XEN PV environment and load kernels.
3193 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3195 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3196 * grub-core/loader/multiboot_mbi2.c: Likewise.
3198 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3200 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3203 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3205 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3207 Tested by: Denis 'GNUtoo' Carikli.
3209 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3211 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3213 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3215 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3216 Use to get rounded angle rather than truncated.
3218 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3220 * grub-core/term/serial.c: Add option for enabling/disabling
3221 RTS/CTS flow control.
3223 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3225 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3228 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3231 Use grub_fatal rather than divide by zero.
3232 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3234 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3236 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3238 (grub_fixed_fsf_divide): Likewise.
3240 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3242 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3243 division by-zero and senseless negative divisions.
3245 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3247 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3248 division by-zero and senseless negative divisions.
3249 (circprog_set_property): Don't accept negative num_ticks.
3251 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3253 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3254 division by-zero and senseless negative divisions.
3256 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3258 * configure.ac: Use elf_*_fbsd on kfreebsd.
3260 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3262 * grub-core/tests/div_test.c: New test.
3264 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3266 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3267 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3268 * grub-core/gfxmenu/view.c: Likewise.
3269 * grub-core/video/fb/video_fb.c: Introduce new functions:
3270 grub_video_set_area_status, grub_video_get_area_status,
3271 grub_video_set_region, grub_video_get_region.
3272 * grub-core/video/bochs.c: Likewise.
3273 * grub-core/video/capture.c: Likewise.
3274 * grub-core/video/video.c: Likewise.
3275 * grub-core/video/cirrus.c: Likewise.
3276 * grub-core/video/efi_gop.c: Likewise.
3277 * grub-core/video/efi_uga.c: Likewise.
3278 * grub-core/video/emu/sdl.c: Likewise.
3279 * grub-core/video/radeon_fuloong2e.c: Likewise.
3280 * grub-core/video/sis315pro.c: Likewise.
3281 * grub-core/video/sm712.c: Likewise.
3282 * grub-core/video/i386/pc/vbe.c: Likewise.
3283 * grub-core/video/i386/pc/vga.c: Likewise.
3284 * grub-core/video/ieee1275.c: Likewise.
3285 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3286 * include/grub/video.h: Likewise.
3287 * include/grub/video_fb.h: Likewise.
3288 * include/grub/fbfill.h: Updated render_target structure.
3289 grub_video_rect_t viewport, region, area
3290 int area_offset_x, area_offset_y, area_enabled
3291 * include/grub/gui.h: New helper function
3292 grub_video_bounds_inside_region.
3293 * docs/grub-dev.texi: Added information about new functions.
3295 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3297 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3300 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3302 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3304 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3306 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3308 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3309 simple division on arm and ia64.
3311 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3313 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3316 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3318 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3320 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3322 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3323 prefix symbol, not @.
3325 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3327 * INSTALL: Add note about older gcc and clang.
3329 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3331 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3333 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3336 NULL pointer dereference.
3338 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3343 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3348 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3350 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3352 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3353 * grub-core/disk/geli.c (ascii2hex): Likewise.
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3357 * configure.ac: Run linker tests without -Werror.
3358 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3359 Change all occurences of -static-libgcc resp -lgcc to
3360 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3362 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3364 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3366 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3368 Allow compiling with clang (not really supported though).
3370 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3372 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3373 Add -mrtd -mregparm=3 on i386 when not using clang.
3374 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3376 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3380 * grub-core/lib/reed_solomon.c: Likewise.
3381 * include/grub/i386/gdb.h: Likewise.
3382 * include/grub/i386/pc/int.h: Likewise.
3383 * include/grub/i386/pc/pxe.h: Likewise.
3384 * include/grub/ieee1275/ieee1275.h: Likewise.
3386 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388 Import libgcrypt 1.5.3.
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392 * configure.ac: Don't add -Wcast-align on x86.
3394 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3396 * configure.ac: Add -freg-struct-return on all platforms that
3399 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401 * acinclude.m4: Use -Werror on parameter tests.
3402 * configure.ac: Likewise.
3404 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3408 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3410 * configure.ac: Check that -malign-loops works rather than assuming that
3411 either -falign-loops or -malign-loops work.
3413 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3415 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419 * configure.ac: Prevent cflags leaking to subsequent tests by always
3420 resetting cflags to target_cflags in target tests.
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3429 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3431 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3435 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3437 * grub-core/normal/cmdline.c (grub_cmdline_get):
3438 Remove nested functions.
3440 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3442 * tests/test_sha512sum.in: Make it work on emu.
3444 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3446 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3448 (grub_bidi_line_logical_to_visual): Likewise.
3450 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3452 Remove vestiges of -Wunsafe-loop-optimisations.
3454 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3455 -Wno-unsafe-loop-optimisations.
3456 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3458 * grub-core/io/gzio.c: Likewise.
3459 * grub-core/script/parser.y: Likewise.
3460 * grub-core/script/yylex.l: Likewise.
3461 * util/grub-mkfont.c: Likewise.
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3465 * util/grub-mkfont.c (process_cursive): Remove nested function.
3467 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3469 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3470 (grub_boot_time): Likewise.
3472 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3474 * include/grub/symbol.h (FUNCTION): Use @function rather than
3476 (VARIABLE): Likewise.
3478 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3480 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3484 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3485 (parse_dhcp_vendor): Likewise.
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3489 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3494 Define after defining type and not before.
3496 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3500 (grub_gcm_decrypt): Likewise.
3501 (algo_decrypt): Likewise.
3502 (grub_zfs_decrypt_real): Transform error type.
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3506 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3508 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3510 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3511 (grub_usbms_cbi_reset): Likewise.
3512 (grub_usbms_bo_reset): Likewise.
3513 (grub_usbms_reset): Likewise.
3514 (grub_usbms_attach): Likewise.
3515 (grub_usbms_transfer_cbi): Likewise.
3517 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3519 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3520 "checksum = checksum;".
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3527 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3529 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3534 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3536 (grub_ehci_fini_hw): Likewise.
3537 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3539 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3541 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3542 return grub_usb_err_t for cosistency. All users updated.
3544 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3546 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3547 assigning to itself.
3549 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3550 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3552 Issue separate DNS queries for ipv4 and ipv6
3554 Adding multiple questions on a single DNS query is not supportted by
3555 most DNS servers. This patch issues two separate DNS queries
3556 sequentially for ipv4 and then for ipv6.
3558 Fixes: https://savannah.gnu.org/bugs/?39710
3560 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3561 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3562 * (grub_net_dns_lookup): Now using separated dns packages.
3563 * (grub_cmd_nslookup): Add error condition.
3564 * (grub_cmd_list_dns): Print DNS option.
3565 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3566 --prefer-ipv4, and --prefer-ipv6.
3567 * include/grub/net.h (grub_dns_option_t): New enum.
3568 * (grub_net_network_level_address): option added.
3570 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3572 * grub-core/video/fb/video_fb.c: Merge two blit functions
3575 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/term/terminfo.c: Add sequences for home and end.
3579 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3581 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3584 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3586 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3589 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3591 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3592 e-mail by Per Öberg.
3594 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3596 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3599 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3601 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3603 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3605 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3607 * docs/grub.texi: Document usage of menuentry id.
3609 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3611 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3613 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3615 * grub-core/commands/i386/nthibr.c: New command.
3617 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3619 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3621 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3623 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3626 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3628 Support GRUB_DISABLE_SUBMENU config.
3630 Inspired by patch from Prarit Bhargava.
3632 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3634 * docs/grub.texi: Mention RSA support.
3636 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3638 * grub-core/commands/verify.c: Add RSA support.
3640 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3642 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3643 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3644 device is known to be ATAPI.
3646 2013-11-03 Mike Frysinger <vapier>
3648 * configure.ac: Don't add target-prefix.
3650 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3655 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3657 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3658 if language is English.
3660 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3664 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3666 * configure.ac: Don't add -m32/-m64 on emu.
3670 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3671 broken linux headers.
3673 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3675 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3677 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3679 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3680 Reed-Solomon recovery if more than half of redundancy info is 0.
3682 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3684 * util/grub-mount.c: Handle symlinks to directories.
3686 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3688 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3689 find_file recursively for symlink.
3691 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3693 * tests/util/grub-shell.in: Copy themes.
3695 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3697 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3699 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3701 * configure.ac: Use 0x8000 for address instead of 8000.
3703 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3705 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3708 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3710 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3713 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3715 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3717 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3719 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3720 file_progress_read_hook.
3721 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3723 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3725 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3728 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3730 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3732 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3734 Rewrite blocklist functions in order to get progress when
3735 reading large extents and decrease amount of blocklist hook calls.
3737 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3742 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3744 Support --base-clock for serial command to handle weird cards with
3745 non-standard base clock.
3747 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3749 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3751 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3752 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3753 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3754 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3755 + strcpy rather than strncpy.
3757 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3759 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3760 (check_pool_label): Likewise. Fixes overflow.
3761 (nvlist_find_value): Fix comparison.
3763 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3765 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3766 more appropriate functions.
3768 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3770 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3773 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3775 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3777 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3779 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3782 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3784 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3786 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3789 (initialize_tables): reset tl and td to NULL after freeing.
3791 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3793 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3795 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3800 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3804 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3806 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3809 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3811 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3812 a page in protected space.
3814 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3816 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3817 allocate space for zero-sized modules.
3819 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3821 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3823 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3825 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3827 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3829 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3830 safeguards. Fixes a crash with i386/pc/console.c.
3832 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3834 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3835 and grub_hostfs_init.
3837 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3839 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3840 windows method on other platforms without good stat as well.
3842 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3844 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3846 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3848 Make / in btrfs refer to real root, not the default volume.
3849 Modify mkrelpath to work even if device is mounted with subvolid option.
3851 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3853 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3855 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3858 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3860 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3863 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3865 * docs/autoiso.cfg: New file.
3867 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3869 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3870 COND_GRUB_PE2ELF conditions.
3872 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3875 "vnd", "rd" and "fd" disks.
3877 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3879 Move grub_disk_write out of kernel into disk.mod.
3881 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3883 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3886 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/kern/misc.c (grub_abort): Make static
3890 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3892 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3893 transform invalid unicode codepoints.
3895 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3897 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3900 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3902 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3904 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3906 Consolidate cpuid code.
3908 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3910 Move cpuid code to cpuid.h and TSC code to tsc.c.
3912 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3914 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3916 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3918 * util/grub-mkconfig.in: Replace $0 with $self.
3919 * util/grub-reboot.in: Likewise.
3920 * util/grub-set-default.in: Likewise.
3922 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3924 * docs/osdetect.cfg: New file.
3926 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3928 * tests/util/grub-shell.in: Add new --debug option.
3930 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3932 * tests/test_unset.in: New test.
3934 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3936 * tests/test_sha512sum.in: New test.
3938 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3940 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3941 * include/grub/misc.h: Remove strncat.
3942 * grub-core/lib/posix_wrap/string.h: Likewise.
3944 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3946 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3947 Try to handle more than 0xFFFF packets.
3948 Reported by: Bernhard Übelacker <bernhardu>.
3949 He also spotted few overflows in first version of this patch.
3951 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3953 * tests/date_unit_test.c: New test.
3955 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3957 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3958 of first three years after start of validity of unixtime.
3960 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3962 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3963 division as the one making more sense.
3964 (update_screen): Likewise.
3965 (complete): Likewise.
3967 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3969 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3971 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3973 Make char and string width grub_size_t rather than grub_ssize_t.
3975 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3977 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3979 (grub_history_replace): Likewise.
3981 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3983 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3986 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3988 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3991 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3993 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3994 Use unsigned divisions rather than signed variants.
3996 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3998 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3999 unsigned arithmetics.
4002 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4004 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4006 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4008 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4009 rather than signed one.
4010 (recovery): Likewise.
4012 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4014 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4016 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4021 2013-10-25 Jon McCune <jonmccune@google.com>
4023 * docs/grub.texi: Cleanup security documentation around signatures.
4025 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4029 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4031 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4034 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4036 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4037 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4038 functions when compiling for kernel.
4040 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4042 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4043 unsigned long long when using %llu.
4045 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4047 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4048 terminal after updating progress.
4050 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4052 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4053 argument. We don't disable Gate A20 in this code.
4055 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4058 Conceptually based on change in branch "vbe-on-coreboot".
4060 2013-10-24 Robert Millan <rmh@gnu.org>
4062 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4063 numeric constants with their symbolic equivalent.
4064 Taken from branch "vbe-on-coreboot".
4066 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4068 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4070 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4073 divmod64 for offset division.
4075 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4077 Rename .bzrignore to .gitignore. Add "*.o" rule.
4079 * .bzrignore: Renamed to...
4080 * .gitignore: ...this.
4082 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4084 Add new progress module that displays the load progress of files.
4086 * grub-core/lib/progress.c: New file.
4087 * grub-core/Makefile.core.def (progress): New module.
4088 * grub-core/kern/file.c (grub_file_open): File name added.
4089 * (grub_file_read): Progress hook added.
4090 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4091 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4092 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4093 * include/grub/file.h (struct grub_file): Add progress module members.
4094 * include/grub/term.h (struct grub_term_output): Likewise.
4095 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4096 Terminal velocity added.
4097 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4098 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4099 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4100 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4101 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4102 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4103 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4104 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4105 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4106 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4107 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4108 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4110 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4112 Verify signatures of signatures unless --skip-sig is specified.
4114 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4116 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4119 Saves 70 bytes on compressed image.
4121 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4123 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4126 Saves 10 bytes on compressed image.
4128 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4130 * grub-core/kern/misc.c (grub_isprint): Move to ...
4131 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4133 Saves 20 bytes on compressed image due to remving exporting.
4135 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4137 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4139 Saves 5 bytes on compressed image.
4141 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4143 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4146 Saves 379 bytes on compressed image.
4148 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4150 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4152 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4156 Saves 40 bytes on compressed image.
4158 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4160 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4161 mask rather than 64-bit type.
4163 Saves 20 bytes on compressed image.
4165 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4168 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4170 Saves 273 bytes on compressed image.
4172 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4174 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4175 variable length arrays.
4177 Saves 50 bytes on compressed image.
4179 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4183 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/fs/ufs.c: Remove variable length arrays.
4187 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4189 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4191 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/fs/zfs.c: Remove variable length arrays.
4194 Reduces zfs.mod by 160 bytes (208 compressed).
4196 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4198 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4200 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4202 * grub-core/net/arp.c: Remove variable length arrays.
4203 * grub-core/net/bootp.c: Likewise.
4204 * grub-core/net/dns.c: Likewise.
4205 * grub-core/net/icmp6.c: Likewise.
4206 * grub-core/net/net.c: Likewise.
4208 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/fs/ntfs.c: Remove variable length arrays.
4211 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4214 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/fs/hfs.c: Remove variable length arrays.
4217 Reduces hfs.mod by 8 bytes (52 compressed).
4219 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4221 * grub-core/fs/udf.c: Remove variable length arrays.
4222 Increases udf.mod by 128 bytes (but decreases by 13 when
4225 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4227 * grub-core/fs/iso9660.c: Remove variable length arrays.
4228 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4231 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4233 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4234 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/fs/xfs.c: Remove variable length arrays.
4240 Reduces xfs.mod by 40 bytes (43 compressed).
4242 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4244 * grub-core/fs/fshelp.c: Remove variable length arrays.
4245 Reduces fshelp.mod by 116 bytes (23 compressed).
4247 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4249 * grub-core/normal/completion.c: Remove variable length arrays.
4250 * grub-core/normal/menu_entry.c: Likewise.
4252 Reduces normal.mod by 496 bytes.
4254 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4256 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4257 by 356 bytes (158 compressed).
4259 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4261 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4262 by 364 bytes (169 compressed).
4264 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4266 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4267 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4268 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4270 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4272 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4273 bitmasks to small structures of size chosen to fit in registers.
4275 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4277 * conf/Makefile.common: Use -freg-struct-return on i386. This
4278 decreases code size and improves performance.
4280 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4282 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4284 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4286 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4288 Simplify expressions to save around 256 bytes in kernel.img.
4289 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4291 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4293 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4294 Use GRUB_UTIL_FD_O_* rather than O_*.
4296 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4298 Add haiku-specific functions.
4300 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4302 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4304 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4306 Move stat () and device mode checking into OS-dependent files as
4307 long as performance doesn't suffer.
4309 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4311 Split make_system_path_relative_to_its_root into separate file
4312 relpath.c from getroot.c as it's common between unix and haiku
4313 but otherwise haiku doesn't use any functions from unix getroot.c.
4315 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4319 (grub_util_is_special_file): Likewise.
4321 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4323 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4324 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4326 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4328 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4329 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4331 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4333 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4334 (load_image): Likewise.
4336 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4338 * util/grub-render-label.c: Move backend part to ...
4339 * util/render-label.c: ... here.
4341 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4343 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4344 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4346 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4348 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4350 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4352 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4353 CD-ROM in case when it's declared as having subpartitions.
4355 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4357 Don't add -lm on haiku.
4359 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4361 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4364 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4366 * configure.ac: Use -melf_*_haiku as target on haiku.
4368 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4370 * Makefile.util.def: Add util/setup.c to extra_dist.
4372 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4375 unknown types through.
4377 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4380 (grub_util_check_char_device): Likewise.
4381 * include/grub/emu/getroot.h: Likewise.
4383 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4386 memset rather than inline static function.
4388 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4390 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4391 not doing embedded decompressor.
4393 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4395 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4397 * grub-core/kern/disk.c: Likewise.
4398 * grub-core/kern/misc.c: Likewise.
4399 * include/grub/parser.h: Likewise.
4400 * include/grub/script_sh.h: Likewise.
4401 * include/grub/zfs/zfs.h: Likewise.
4403 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4405 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4407 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4409 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4410 defined before trying to use it.
4412 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4414 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4417 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4419 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4420 Use __unused__ rather than __used__ on gcc < 3.2.
4422 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4424 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4426 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4428 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4430 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4432 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4434 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4435 * include/grub/emu/misc.h: Likewise.
4437 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4439 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4442 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4444 * grub-core/tests/checksums.h: Regenerated due to progress bar
4445 get_minimal_size changes.
4447 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4449 Added `tr' command support.
4451 * grub-core/commands/tr.c: New file.
4452 * grub-core/Makefile.core.def: Build rules for new module.
4454 * tests/grub_cmd_tr.in: New test.
4455 * Makefile.util.def: Build rules for new test.
4457 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4459 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4461 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4463 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4464 * docs/gurb.texi: Likewise.
4466 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4468 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4469 Pixmap highlighted section with east and west slices was displayed
4470 incorrectly due to negative width of the central slice.
4472 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4474 * docs/grub.texi: Graphical options information update.
4475 Removed outdated. Updated current. Inserted missed.
4477 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4479 * docs/grub.texi: Mention few new platform-specific commands.
4481 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4483 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4484 currently used so this doesn't really have any effect.
4485 Reported by: Douglas Ray <dougray>
4487 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4489 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4490 compilation but prevents gcc from displaying messages in non-Latin
4492 * conf/Makefile.common: Likewise.
4494 2013-10-16 Hiroyuki YAMAMORI
4496 Handle Japanese special keys.
4497 Reported by: Hiroyuki YAMAMORI.
4498 Codes supplied by: Hiroyuki YAMAMORI.
4500 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4502 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4504 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4506 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4507 * docs/grub.texi: Likewise.
4509 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4512 value in case of incomplete read.
4513 (grub_util_fd_write): Likewise.
4515 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4517 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4519 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4521 * util/grub-editenv.c (create_envblk_file): More from here ...
4522 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4524 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4526 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4527 canonicalize file name before doing the rest.
4529 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4531 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4534 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4536 Define grub_util_is_directory/regular/special_file and
4537 use OS-dependent versions rather than to rely on stat().
4539 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4541 * util/grub-mkimage.c: Move backend part to ...
4542 * util/mkimage.c: ... here.
4544 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4546 Allow compilation with mingw64 albeit with warnings due to lack of
4549 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4550 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4551 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4552 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4554 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4556 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4558 Remove leftover references to some of the system headers.
4560 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4562 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4565 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4567 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4570 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4572 Split out blocklist retrieving from setup.c to
4573 grub-core/osdep/blocklist.c and add windows implementation since
4574 generic version doesn't work on NTFS on Windows due to aggressive
4577 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4579 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4582 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4584 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4585 Cut tailing newline. Remove arbitrary limitation. Always use
4586 grub_util_tchar_to_utf8.
4588 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4590 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4591 * tests/printf_unit_test.c (printf_test): Add %% tests.
4592 Reported by: Paulo Flabiano Smorigo.
4594 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4596 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4599 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4601 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4602 use nvlist_lookup_string and don't use nvlist_print.
4604 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4606 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4607 closedir to handle filename charset translation.
4609 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4611 * include/grub/emu/hostdisk.h: Move file operations to
4612 * include/grub/emu/hostfile.h: ... here.
4614 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4616 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4619 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4621 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4623 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4625 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4626 and remove export.h.
4628 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4630 * grub-core/kern/emu/error.c: Removed.
4631 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4632 explicitly as it's already in libgnu.a.
4634 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4637 config-util.h include.
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641 Split emunet into platform-dependent and GRUB-binding parts. Keep
4642 platform-dependent part in kernel for easy access to OS functions.
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4649 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4651 * grub-core/osdep/windows/emuconsole.c: New file.
4653 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4655 * conf/Makefile.extra-dist: Add osdep/*/init.c
4657 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4659 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4661 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4663 * util/grub-probe.c (probe): Separate different drives in hint-str
4664 by spaces and not newlines.
4665 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4667 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4669 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4672 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4674 Pass-through unknown E820 types. It required reorganisation of mmap
4677 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4679 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4681 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4683 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4686 2013-10-14 qwertial <qwertial>
4688 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4690 2013-10-14 Jon McCune <jonmccune@google.com>
4692 * docs/grub.texi: Document new signatures possibility.
4694 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4696 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4698 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4700 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4702 (grub_util_tchar_to_utf8): Likewise.
4704 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4706 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4707 * grub-core/kern/emu/main.c: Add missing include.
4708 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4709 Don't call grub_util_init_nls.
4710 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4713 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4715 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4718 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4720 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4722 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4724 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4726 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4728 Add a wrapper for fopen. On unix-like systems just pass-through. On
4729 windows use unicode version.
4731 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4733 Move set_program_name and init_nls to host_init. On windows
4734 fix in this fuction console and argument charset as well.
4736 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4738 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4739 GRUB_ENABLE_CRYPTODISK.
4741 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4742 GRUB_ENABLE_CRYPTODISK.
4743 * util/grub-mkconfig_lib.in: Likewise.
4745 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4747 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4749 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4751 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4752 error when enabling debug.
4754 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4756 * configure.ac: Use -melf_*_obsd on openbsd.
4758 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4760 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4762 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4764 * include/grub/misc.h: Use gnu_printf rather than printf as format
4765 template since our functions are independent of libc.
4767 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4769 * util/grub-setup.c (setup): Move copying of partition table as
4770 futher up as possible to avoid possible overwrite by floppy routines.
4772 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4774 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4776 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4778 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4779 * docs/grub.texi: Likewise.
4781 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4783 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4784 it's mostly unused. Move vestiges to the callers.
4786 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4788 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4789 version of salt and hash. Use grub_snprintf rather than snprintf.
4791 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4793 * docs/grub.texi: Fix problem with braces.
4795 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4797 * conf/Makefile.extra-dist: Fix extra-dist list.
4798 * grub-core/Makefile.core.def: Likewise.
4800 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4802 * docs/grub.texi: Document disk names used on Windows and AROS.
4804 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4806 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4808 * grub-core/osdep/aros/hostdisk.c: Likewise.
4810 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4812 Avoid including hostfile.h when not necessarry as it pulls
4813 in OS-specific headers which may redefine generic names
4816 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4818 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4819 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4820 scrollbar_bottom_pad
4821 * docs/grub.texi: Likewise.
4823 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4825 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4827 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4829 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4831 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4833 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4835 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4838 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4840 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4843 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4845 Move OS-specific driver configuration to grub_util_fd_open. This
4846 moves OS-dependent parts from kern/emu/hostdisk.c to
4847 grub-core/osdep/*/hostdisk.c.
4849 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4851 * util/grub-mkimage.c (generate_image): Use size_t instead of
4853 * util/grub-mkimagexx.c (locate_sections): Likewise.
4854 (load_image): Likewise.
4856 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4858 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4860 (grub_util_write_image): Likewise.
4862 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4864 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4865 get random when no RNG is available.
4866 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4868 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4870 * include/grub/util/lvm.h: Removed.
4872 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4874 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4875 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4877 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4879 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4881 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4883 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4885 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4887 * grub-core/net/drivers/emu/emunet.c: Move to ..
4888 * grub-core/osdep/linux/emunet.c: ..here.
4890 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4892 * util/ieee1275/ofpath.c: Move to ...
4893 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4894 * grub-core/osdep/basic/ofpath.c: ..here.
4896 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4898 Move password-querying (util-version) routines to grub-core/osdep.
4900 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4902 Move sleep routines to grub-core/osdep.
4904 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4906 Move OS-dependent files to grub-core/osdep and document it.
4908 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4911 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4913 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4915 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4917 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4919 * util/misc.c: Remove leftover inclusion of malloc.h.
4921 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4923 * include/grub/setjmp.h: Remove leftover GRUBOF.
4925 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4927 * util/raid.c: Fold into ...
4928 * util/getroot_linux.c: ... here. Make all functions static.
4930 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4932 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4933 macros to GRUB ones.
4935 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4937 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4938 occasional bug. If there are too many boot entries or too low
4939 scrollbar height then we need to use another formula to calculate
4940 the position and size of the scrollbar thumb.
4942 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4944 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4946 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4948 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4949 * docs/grub.texi: Likewise.
4951 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4953 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4956 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4958 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4959 minimal width calculations.
4961 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4963 * docs/grub.texi: Update note on colors on emu console.
4965 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4967 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4968 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4969 it's FS and not GRUB limitation.
4971 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4973 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4975 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4977 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4979 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4981 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4982 kernels by version order.
4984 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4986 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4988 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4990 Add AROS hostdisk and getroot routines.
4992 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4994 Make cryptodisk and diskfilter probe data retrievable programmatically
4995 and not just printable.
4997 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4999 Split random retrieving code into separate files.
5001 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5003 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5006 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5008 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5010 * grub-core/tests/fake_input.c: Likewise.
5011 * grub-core/tests/cmdline_cat_test.c: Likewise.
5013 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5015 * grub-core/video/capture.c: Do not do finalization when .fini
5016 is called as there is explicit capture_end.
5018 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5020 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5021 changing windows to avoid crash.
5023 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5025 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5027 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5029 * po/exclude.pot: Add several strings to exclude.
5031 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5033 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5035 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5037 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5038 ./util/grub-gen-asciih.c to exclude list.
5040 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5042 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5043 and don't mark error strings for translation.
5045 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5048 properly in case of missing block size.
5050 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5052 * grub-core/lib/arm/setjmp.S: Add missing license section.
5054 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5056 * po/swiss.sed: Add replacement for key names and for term computer.
5058 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5060 * grub-core/gfxmenu/theme_loader.c: New global options for the
5061 theme background image handling. desktop-image-scale-method,
5062 desktop-image-h-align, desktop-image-v-align.
5063 * grub-core/gfxmenu/view.c: Likewise.
5064 * include/gfxmenu_view.h: Likewise.
5065 * include/bitmap_scale.h: Proportional scale functions introduced.
5066 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5067 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5068 cases of unexpected input variables for scale functions.
5069 * docs/grub.texi: Updated documentation for new options.
5071 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5073 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5075 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5077 * grub-core/tests/checksums.h: Corrected due to changes in
5078 bilinear interpolation function.
5080 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5082 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5083 to eliminate artefacts in bilinear interpolation.
5085 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/video/readers/tga.c: Support paletted tga.
5089 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5091 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5092 incorrect cbcr setting when in color mode.
5094 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5096 * grub-core/video/readers/png.c: Support paletted images and clean up
5099 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5101 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5102 usage of wrong table which resulted in mishandling of 4-byte
5105 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5107 * grub-core/term/terminfo.c: Add Home and End key sequences.
5109 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5111 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5112 Fix formula for computing total number of bytes.
5114 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5116 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5117 image processing, fix big-endian and support grayscale.
5119 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5121 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5122 Correctly will with maximum transparency when using index color.
5124 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5126 * grub-core/video/readers/png.c: Support grayscale
5128 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/video/readers/jpeg.c: Support grayscale.
5132 2013-09-26 Jon McCune <jonmccune@google.com>
5134 * grub-core/commands/loadenv.c: Support skipping signature check
5135 and variable names filtering.
5137 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5139 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5140 * grub-core/kern/emu/hostfs.c: Likewise.
5141 * util/getroot_unix.c: Likewise.
5143 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5145 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5146 Migrate all explicit defines to this new one.
5148 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5151 grub_util_fd_strerror when using grub_util_fd_*.
5152 (grub_util_fd_open_device): Likewise.
5153 (grub_util_biosdisk_read): Likewise.
5154 (grub_util_biosdisk_write): Likewise.
5155 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5156 (grub_util_fd_strerror): Likewise.
5157 (grub_util_fd_sync): Likewise.
5158 (grub_util_fd_close): Likewise.
5159 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5160 (grub_util_fd_close): Likewise.
5161 (grub_util_fd_strerror): Likewise.
5162 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5163 function proto rather than macro.
5164 (grub_util_fd_sync): Likewise.
5165 (grub_util_fd_open): Likewise.
5166 (grub_util_fd_strerror): New proto.
5168 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5170 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5171 platforms on which it doesn't work.
5173 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5176 stat immediately to where it's used.
5178 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5180 * util/getroot.c (grub_util_check_block_device): Move to ...
5181 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5182 * util/getroot.c (grub_util_check_char_device): Move to ...
5183 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5185 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5190 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5192 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5194 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5196 * docs/grub.texi (File name syntax): Document ZFS filenames
5197 (/volume@snapshot/...).
5199 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5201 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5202 Always return full path. Fixes a problem with mkrelpath.
5204 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5206 * util/grub-install.in: Add GPT PReP support.
5207 * util/grub-probe.c (probe): Support GPT partition type.
5208 (main): Support -t gpt_parttype.
5210 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5212 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5214 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5216 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5218 2013-09-23 Tim Hardeck <thardeck>
5220 * util/grub.d/10_hurd.in: Filter out character for the class.
5221 * util/grub.d/10_kfreebsd.in: Likewise.
5222 * util/grub.d/10_linux.in: Likewise.
5223 * util/grub.d/20_linux_xen.in: Likewise.
5225 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5227 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5230 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5232 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5235 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5237 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5238 doesn't use posix_wrap. Keep literal -fno-builtin however.
5240 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5242 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5244 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5247 * configure.ac: Do not enable -Wmissing-noreturn as its
5248 usefulness is limited and creates problems on some OS notably with
5249 code generated by bison.
5251 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5254 * configure.ac: Do not explicitly enable -Waddress as it's not
5255 supported by all gcc and when it is, it's already enabled by -Wall.
5257 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5259 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5260 desactivated use of EDID at all.
5262 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5265 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5266 video if no text is available.
5268 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5271 * configure.ac: Substitute TARGET_RANLIB.
5273 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5276 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5278 Based on patches from AROS.
5280 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5283 * grub-core/Makefile.am: Override STRIP and RANLIB.
5284 * configure.ac: compute TARGET_RANLIB.
5285 * INSTALL: Document TARGET_RANLIB
5287 Based on patches from AROS.
5289 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5291 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5292 that floppies are unpartitioned.
5294 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5296 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5297 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5299 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5301 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5302 less nice but more portable.
5303 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5305 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5307 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5309 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5311 (grub_cryptodisk_cheat_insert): Likewise.
5312 (grub_cryptodisk_close): Likewise.
5314 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5316 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5317 Use windows path for DEFAULT_DIRECTORY.
5319 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5322 difference was likely just gcc version, not anything mingw-related.
5324 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5326 Use Winapi on both cygwin and mingw32 to share more code between both.
5328 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5330 * util/grub-install.in: Add --grub-editenv option.
5331 * util/grub-install_header (grub_compress_file): Explicitly check for
5332 plain file to avoid cp error.
5334 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5336 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5337 names; fix LVM driver name (lvm, not lv).
5338 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5341 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5343 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5344 files rather than one file with loads of #if's.
5345 * util/getroot.c: Likewise.
5347 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5349 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5351 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5353 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5354 GNU/Hurd to the list of checked PRNG.
5356 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5358 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5360 2013-09-21 Ales Nesrsta <starous@volny.cz>
5362 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5364 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5366 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5367 * grub-core/disk/lvm.c: Add LVM UUIDs.
5368 * util/getroot.c: Use LVM UUIDs whenever possible.
5370 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5372 * docs/grub.texi (Networking commands): Add documentation for
5373 network related commands.
5375 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5377 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5378 to determine if device is handled by devmapper.
5379 (convert_system_partition_to_system_disk): Likewise.
5380 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5381 already done in grub_util_open_dm.
5383 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5385 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5386 Clean up stack manipulation (sync_caches_armv*)
5388 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5390 * util/lvm.c: Remove since unused. Remove remaining references.
5392 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5394 Handle the case of partitioned LVM properly.
5396 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5397 Stop on meeting LVM, mpath or DMRAID.
5398 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5399 (read_device_map): Likewise.
5400 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5401 device is full disk rather than erroring out on LVM and similar cases.
5403 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5405 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5407 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5409 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5411 Reported by: Leif Lindholm
5413 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5414 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5416 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5419 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5421 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5422 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5424 2013-09-18 Douglas Ray <dougray@cpan.org>
5426 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5429 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5431 * docs/grub.texi: Fix broken link.
5433 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5435 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5436 to break endless loop.
5438 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5440 * util/grub-fstest.c: Fix several printf formats.
5441 * util/grub-mkimage.c: Likewise.
5442 * util/grub-mkimagexx.c: Likewise.
5443 * util/grub-script-check.c: Likewise.
5445 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5447 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5450 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5452 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5454 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5456 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5457 removed in current versions cygwin_conv_*.
5459 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5461 * configure.ac: Disable efiemu runtime on cygwin.
5463 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5465 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5466 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5468 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5470 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5473 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5475 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5477 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5480 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5482 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5483 when on x86 and not cygwin.
5484 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5487 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5489 * configure.ac: Set CPP to build one when checkoing for freetype for
5492 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5494 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5495 [!GRUB_BUILD]: Remove has_argument.
5497 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5499 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5500 Replace with a dummy.
5502 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5504 * configure.ac: Don't change host_os from mingw to cygwin.
5506 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5508 * configure.ac: Change target_os from windows to cygwin.
5510 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5512 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5514 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5515 (build-grub-gen-asciih): Likewise.
5516 (build-grub-gen-widthspec): Likewise.
5517 * Makefile.util.def (grub-pe2elf): Remove.
5518 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5519 * configure.ac: Separate tests for build.
5520 Move ./build-grub-pe2elf to grub-core.
5522 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5523 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5525 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5527 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5528 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5529 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5531 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5533 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5534 mingw32 as well based on grub_util_get_disk_size.
5535 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5536 grub_util_get_fd_size.
5538 (fsync): Moved to ...
5539 * grub-core/kern/emu/misc.c (fsync): ... here.
5541 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5543 * include/grub/mm.h (grub_extend_alloc): Remove.
5544 * grub-core/loader/i386/pc/plan9.c: Use own version of
5545 grub_extend_alloc with appropriate types.
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5549 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5551 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5553 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5555 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5557 Fix dependencies on cygwin.
5559 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5560 dependencies when used and defined.
5561 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5563 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5565 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5566 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5568 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5570 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5571 implementation available to cause compile-time rather than runtime
5574 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5576 * util/grub-fstest.c: Don't check for symlinks on windows.
5578 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5580 * INSTALL: Mention unavailability of man pages when cross-compiling.
5582 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5584 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5586 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5588 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5590 * INSTALL: Document cross-compilation.
5591 * acinclude.m4: Determine whether nm support -P and --defined-only.
5592 * configure.ac: Add TARGET_ to all variables pertaining to target
5593 that don't have it yet.
5594 * gentpl.py: Likewise.
5595 * grub-core/Makefile.am: Likewise.
5596 * grub-core/genmod.sh.in: Likewise.
5597 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5600 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5602 * configure.ac: Remove -Wempty-body. It's not essential and needs
5605 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5607 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5608 * util/getroot.c: Likewise.
5610 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5612 * grub-core/disk/ahci.c: Add needed explicit cast.
5613 * grub-core/lib/backtrace.c: Likewise.
5614 * grub-core/net/ip.c: Likewise.
5615 * grub-core/net/tcp.c: Likewise.
5616 * grub-core/net/udp.c: Likewise.
5618 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5620 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5622 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5624 * util/import_gcry.py: Add final newline in visibility.h.
5626 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5628 * conf/Makefile.common: Fix typo.
5630 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5632 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5634 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5636 * Makefile.am (widthspec.h): Fix typo.
5637 * util/grub-gen-widthspec.c: Likewise.
5639 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5641 Move ascii.h and widthspec.h generation to a separate build-time-only
5644 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5646 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5647 Always fill bootdisk info and improve check for NetBSD disklabel.
5649 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5651 * conf/Makefile.extra-dist: Add util/bin2h.c.
5652 Reported by: floppym.
5654 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5656 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5658 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5660 * configure.ac: Disable unifont and starfield if no freetype was found.
5662 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5664 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5665 on NetBSD and OpenBSD.
5667 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5669 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5671 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5673 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5674 reduced. Inheritant options are processed during the theme loading.
5676 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5678 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5680 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5682 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5684 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5686 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5689 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5691 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5692 remove-potcdate.sed.
5694 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5696 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5697 unused attribute from pull argument.
5699 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5701 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5704 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5706 * util/getroot.c (pull_lvm_by_command): add --separator option
5707 to vgs call to disable padding of output to 10 characters.
5709 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5711 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5713 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5716 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5718 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5721 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5723 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5724 full Canadian cross. Tested with build=x86_64, host=arm,
5725 target=ppc-ieee1275.
5727 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5729 * configure.ac: Error if no $BUILD_CC could be found.
5732 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5734 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5737 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5739 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5740 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5742 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5744 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5745 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5746 falling back to the partition device, otherwise a later call to this
5747 function may fail spuriously.
5748 Reported by Axel Beckert. Fixes Debian bug #708614.
5750 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5752 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5754 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5756 Prevent shadowing of stdlib's devname(3) on BSD.
5758 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5759 and devlast to diskname and disklast, respectively.
5761 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5763 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5765 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5767 * docs/grub.texi: Introduce terminal window position options:
5768 terminal-left: terminal window's left position
5769 terminal-top: terminal window's top position
5770 terminal-width: terminal window's width
5771 terminal-height: terminal window's height
5772 terminal-border: terminal window's border width
5773 * grub-core/gfxmenu/theme-loader.c: Likewise.
5774 * include/grub/gfxmenu_view.h: Likewise.
5775 * po/exlude.pot: Likewise.
5776 * grub-core/gfxmenu/view.c: Likewise.
5777 Also updated minimal window size.
5778 Also terminal_sanity_check function has been introduced.
5779 * grub-core/tests/checksums.h: Update (terminal window height
5780 is adjusted now for low resolution screen)
5782 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5784 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5787 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5789 * po/exclude.pot: Add few recent exceptions.
5791 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5793 * tests/grub_func_test.in: Add unicode.pf2.
5795 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5797 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5798 standard rather than noral color, in line with other terminals.
5800 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5802 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5805 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5807 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5809 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5811 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5812 inappropriate printf.
5814 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5816 * .bzrignore: Remove grub-core/lib/dtc-grub,
5817 grub-core/Makefile.libfdt.def
5818 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5820 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5822 * include/grub/video.h (grub_video_register): Keep double-linked as
5823 well as single-linked invariants.
5824 Reported by: qwertial.
5826 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5828 * grub-core/commands/nativedisk.c (get_uuid): Handle
5829 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5831 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5833 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5834 maximum of NW, N, NE heights instead of N's height and maximum of
5835 NW, W, SW widths instead of W's width. (So the box will be always
5838 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5840 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5841 Fix misuse of variable count.
5843 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5844 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5845 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5847 New ports to arm-uboot and arm-efi.
5848 Mostly by Leif Lindholm with some additions from
5849 Francesco Lavra and cleanup by Vladimir Serbinenko.
5851 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5853 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5855 Reported by: Leon Drugi.
5857 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5859 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5860 Reported by: Paulo Flabiano Smorigo.
5862 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5864 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5866 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5868 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5870 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5872 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5874 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5876 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5878 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5880 * grub-core/net/bootp.c: Export net_* variables.
5881 * grub-core/net/net.c: Likewise.
5883 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5885 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5887 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5889 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5891 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5893 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5895 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5897 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5899 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5901 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5904 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5906 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5909 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5911 * grub-core/fs/zfs/zfs_lz4.c: New file.
5912 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5914 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5916 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5918 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5920 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5921 (check_pool_label): Likewise.
5922 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5924 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5926 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5928 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5930 * docs/grub.texi (Commands): Document postition parameters
5931 for menuentry command.
5933 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5935 * util/grub-mknetdir.in: Remove stray line from help output.
5937 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5939 Remove early sm712 init as there is no reason for it (the "watchdog"
5940 effect was due to wrong GPIO map).
5942 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5944 * grub-core/commands/pcidump.c: Remove static variables.
5946 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5948 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5950 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5952 * configure.ac: Move delimiter after the infos.
5954 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5956 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5958 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5960 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5961 not filling whole 8x16 space.
5963 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5965 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5967 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5969 * configure.ac: Indicate which liblzma is used if any.
5971 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5972 2013-06-21 Craig Sanders <savannah@taz.net.au>
5974 * util/grub-reboot.in: Document submenu usage.
5976 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5978 * .bzrignore: Update with a number of new test-related files.
5980 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5982 * util/grub-script-check.c: Fail on scripts containing no
5983 commands, to guard against corrupted grub-mkconfig setups that
5984 produce no useful output.
5985 * tests/grub_script_no_commands.in: New test.
5986 * Makefile.util.def (grub_script_no_commands): Add.
5987 Reported by Hans Putter. Fixes Debian bug #713886.
5989 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5991 * grub-core/disk/diskfilter.c: Forgot to remove comment
5992 from previous commit.
5994 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5996 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5997 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5999 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6001 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6003 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6005 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6006 rescan diskfilter devices until nothing new is found.
6008 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6010 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6012 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6014 Don't try to detect cbfs on *-emu.
6016 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6018 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6020 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6022 Add support for processed coreboot payload chainloading.
6024 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6026 Enable coreboot information commands even when not loaded as
6027 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6029 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6031 Support for cbfs. Also factor out the part which is common
6032 for all archives to a separate module. This splits tar from cpio
6033 as they are very different but keeps cpio, cpio_be, odc and newc
6034 together since they're very similar.
6036 2013-06-15 David Michael <fedora.dm0@gmail.com>
6038 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6039 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6041 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6043 * tests/grub_script_eval.in: Really add the eval test.
6045 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6047 Move flavour-specific parts out of common cpio.c file and
6048 rename remaining to cpio_common.c
6050 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6052 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6053 off new function grub_script_execute_new_scope. Change callers to use
6054 either of them as appropriate.
6055 * grub-core/commands/eval.c: New command eval.
6056 * docs/grub.texi (Commands): Document it.
6058 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6060 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6061 to fetch values when listing.
6063 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6065 Fix make dist on non-pc.
6067 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6069 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6070 without a device name.
6072 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6074 Remove enable_executable_check as it's not needed anymore.
6075 Reported by: dougray.
6077 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6079 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6080 ambigouos RAID before discovering RAIDs on top of it.
6083 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6085 Fix typo (failback vs fallback).
6087 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6089 * util/grub.d/30_os-prober.in: Add support for probing EFI
6090 System Partition (as of os-prober 1.58).
6092 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6094 * configure.ac: Add yet another path to unifont. For parabola.
6096 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6098 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6099 handling to copy the killed characters to the kill buffer as
6100 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6101 stored as char. Eliminates UCS4 truncation and corruption
6102 observed when killing characters with Ctrl-u and yanking them
6105 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6107 Detach optional parts of gfxterm and integrate in with coreboot init.
6109 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6111 Move blit and fill dispatcher to appropriate files to decrease export
6112 and relocation overhead.
6114 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6116 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6119 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6121 * grub-core/Makefile.am: Fix compilation problem with some
6124 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6126 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6128 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6130 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6133 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6135 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6138 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6140 * grub-core/partmap/dfly.c: New partition map.
6142 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6144 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6146 Reported by: Francesco Lavra.
6148 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6150 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6151 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6153 * conf/Makefile.common: define dist_grubconf_DATA
6155 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6157 Progressively skip menu elements on small terminals rather
6160 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6162 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6163 to avoid losing last column.
6165 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6167 * po/exclude.pot: Add missing string "%C".
6169 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6171 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6174 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6176 * util/grub-install.in: Gettextize "Not found" message.
6178 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6181 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6183 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6185 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6187 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6189 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6191 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6193 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6195 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6196 attribute since structure is not necessarily aligned.
6198 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6200 * docs/grub.texi (Device syntax): Clarify description of network
6203 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6205 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6206 for vasprintf presence.
6208 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6210 * util/grub-install.in: Handle efibootmgr presence check.
6211 Reported by: Leif Lindholm.
6213 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6215 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6216 new strings to translate.
6218 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6220 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6221 yet another string (pun intended) to translate.
6223 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6225 * po/POTFILES-shell.in: Autogenerate it.
6227 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6229 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6231 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6233 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6236 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6238 * docs/grub.texi (Network): Add description of net_default_interface,
6239 net_default_ip and net_default_mac. Rewrite variables description
6240 to emphasize that they are per-interface.
6242 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6244 New test: cmdline and cat.
6246 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6248 * grub-core/commands/cat.c: Show UTF-8 characters.
6250 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6252 * conf/Makefile.common: Poison float and double on non-emu.
6254 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6256 * configure.ac: Don't disable extended registers on emu.
6258 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6260 * configure.ac: Don't use extended registers on x86_64.
6261 Reported by: Peter Jones.
6263 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/term/efi/console.c: Fix compile error.
6267 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6269 Compressed HFS+ support.
6271 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6273 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6276 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6280 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6282 * grub-core/tests/setjmp_test.c: New test.
6284 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6286 New variables 'net_default_*' to determine MAC/IP of default interface.
6288 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6290 * tests/gettext_strings_test.in: A test to check for strings not
6291 marked for translation.
6293 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6295 * autogen.sh: Exclude unused libgcrypt files from translation.
6297 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6299 Simplify few strings.
6301 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6303 Mark few forgotten strings for translation.
6305 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6307 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6310 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6312 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6314 * grub-core/video/readers/tga.c: Likewise.
6316 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6318 * tests/priority_queue_unit_test.cc: New test.
6320 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6322 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6325 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6327 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6328 variable for one time boot menu entry.
6330 2013-05-05 Bean <bean123ch@gmail.com>
6332 * grub-core/commands/testspeed.c: New command testspeed.
6334 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6336 Factor-out human-size printing.
6338 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6340 Agglomerate more mallocs to speed-up gfxterm.
6342 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6344 Speed-up gfxterm by slightly agglomerating mallocs.
6346 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6350 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6352 Speed-up gfxterm by saving intermediate results in index+alpha
6355 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6357 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6360 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6362 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6363 line of timeout as it may contain the rest of long line.
6365 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6367 * grub-core/normal/main.c: Fix freed memory dereference.
6369 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6371 Fix several memory leaks.
6373 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6375 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6377 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6379 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6381 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6383 Fix test -a and -o precedence.
6384 Reported by: adrian15.
6386 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6388 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6390 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6392 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6393 and add it as source to functional_test module.
6395 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6397 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6399 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6401 New series of tests for gfxterm and gfxmenu.
6403 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6405 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6406 the theme path relative to $prefix/themes.
6408 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6410 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6412 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6414 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6416 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6419 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6421 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6422 grub_gfxmenu_timeout_notifications.
6423 (grub_gfxmenu_view_destroy): Likewise.
6425 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6429 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6431 Several fixes to ieee1275 and big-endian video.
6433 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6435 Add missing exports on mips.
6437 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6439 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6440 if no unifont is found.
6441 Restore original keyboard.
6443 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6446 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6448 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6450 First automated video test (running videotest and comparing results)
6452 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6454 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6455 instead of 2 to have full RGB/CMY test pattern.
6457 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6461 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6463 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6464 ARCS. All users updated.
6466 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6468 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6470 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6472 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6474 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6476 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6477 Reported by: qwertial.
6479 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6481 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6482 with syntax "XXX deg"/"XXX °".
6484 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6486 Make PCI init in i386-qemu port more robust.
6488 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6490 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6491 cached view is reused.
6492 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6495 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6497 Unify more code in grub-install_header.
6499 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6503 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6505 Enforce disabling of firmware disk drivers when native drivers kick in.
6507 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6509 * grub-core/commands/nativedisk.c: Customize the list of modules on
6510 platform. Don't try to search for disks already using native drivers.
6512 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6514 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6517 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6520 handling of variables containing backslash.
6522 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6524 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6526 Reported by: qwertial.
6528 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6530 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6532 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6534 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6536 Reported by: qwertial.
6538 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6540 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6542 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6544 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6546 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6548 New command `nativedisk'.
6550 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6552 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6553 * grub-core/loader/i386/bsd.c: Likewise.
6555 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6557 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6559 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6561 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6562 grub_get_unaligned16 rather than shifts.
6564 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6566 * grub-core/kern/file.c: Use const char * rather than casting to
6569 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6571 * grub-core/commands/probe.c: Add missing grub_device_close.
6573 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6575 * INSTALL: Document linguas.sh.
6577 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6579 Remove POTFILES.in and regenerate it in autogen.sh.
6581 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6583 Move --directory/--override-directorry to grub-install_header and unify.
6585 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6587 * grub-core/term/morse.c: Macroify dih and dah.
6589 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6591 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6593 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6595 * grub-core/term/ns8250.c: Systematically probe ports by writing
6596 to SR before using them.
6598 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6600 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6602 (check_sas): Get sas_adress info.
6604 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6606 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6609 2013-04-27 Leon Drugi <eyak>
6611 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6614 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6616 Core compression test.
6618 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6620 Implement grub_machine_get_bootlocation for ARC.
6622 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6624 Improve AHCI detection and command issuing.
6626 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6630 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6632 Make 'make check' work on emu.
6634 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6636 Replace libcurses with our own vt100 handling for the ease of testing
6637 and decreasing prerequisites.
6639 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6641 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6643 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6645 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6646 compile when not needed.
6648 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6650 * tests/pseries_test.in: New test.
6652 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6654 Add test to check that different boot mediums work.
6656 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6658 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6659 ofw limited ISO support.
6661 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6663 * configure.ac: Fix loongson conditional.
6665 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6669 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6671 Add serial on ARC platform.
6673 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6675 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6678 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6680 * tests/partmap_test.in: Add missing double semicolon.
6682 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6684 * util/grub-mkrescue.in: Fix loongson filename.
6686 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6688 * util/grub-mkrescue.in: Move all files that don't have a location
6689 set in stone under /boot/grub. Use ISO hard links rather than copies
6692 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6694 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6697 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6699 Make check work on mips-arc.
6701 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6703 * util/grub-mkrescue.in: Alias sashARCS as sash.
6705 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6707 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6710 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6712 * util/grub-install.in: Fix target fo qemu_mips.
6713 Fix extension on EFI.
6715 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6717 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6718 in front of chosen entry to mark it even if highlighting is lost.
6720 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6722 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6723 gfxpayload=keep if cbfb is active.
6725 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6727 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6729 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6731 Add missing video ids to coreboot and ieee1275 video.
6733 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6735 * util/grub-mkrescue.in: Add mips-arc support.
6737 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6739 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6741 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6743 Move mips-arc link address. Previous link address was chosen
6744 in belief that RAM on SGI platforms grows down while in fact it
6745 grows up from an unusual base.
6747 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6749 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6750 Fix a type which prevented CD-ROM and floppy boot.
6752 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6754 Support coreboot framebuffer.
6756 * grub-core/video/i386/coreboot/cbfb.c: New file.
6758 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6761 detecting too small regions.
6763 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6765 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6767 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6769 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6771 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6773 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6775 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6776 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6777 * grub-core/loader/powerpc/ieee1275/linux.c
6778 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6780 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6782 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6783 Look for /boot-rom as well as /rom/boot-rom.
6785 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6787 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6788 handling when creating text_layer failed.
6789 * grub-core/video/video.c (grub_video_create_render_target):
6790 Set result to 0 on error.
6791 (grub_video_delete_render_target): Do not dereference NULL.
6793 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6795 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6796 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6797 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6798 (grub_linux_load64): Mask out 2 high bits.
6800 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6802 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6805 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6807 Add support for pseries and other bootinfo machines to grub-mkrescue.
6809 Tested by: Paulo Flabiano Smorigo.
6811 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6813 * util/grub-mkrescue.in: Add GPT for EFI boot.
6815 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6817 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6818 It improves performance in qemu.
6820 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6822 * build-aux/snippet: Add missing gnulib files.
6824 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6826 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6828 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6830 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6832 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6833 2013-04-15 Peter Jones <pjones@redhat.com>
6835 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6837 Based on patch by Peter Jones.
6839 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6841 Fix DMRAID partition handling.
6843 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6845 * tests/grub_cmd_date.in: Skip on sparc64.
6847 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6849 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6850 firmware error messages.
6852 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6854 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6855 source and destination differ.
6857 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6859 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6862 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6864 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6865 match config-util.h to avoid warnings and increase compatibility.
6867 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6868 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6870 Add option to compress files on install/image creation.
6872 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6874 * docs/grub-dev.texi: Rearrange menu to match the section order.
6875 Reported by: Bryan Hundven.
6877 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6879 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6881 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6883 Move GRUB out of system area when using xorriso 1.2.9 or later.
6885 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6887 * tests/grub_cmd_date.in: Add missing exit 1.
6889 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6891 * tests/partmap_test.in: Skip on sparc64.
6893 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6895 Support grub-shell on sparc64.
6897 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6899 Support mkrescue on sparc64.
6901 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6903 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6904 Needed on OpenBIOS due to incomplete device tree.
6906 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6908 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6909 would be otherwise excluded.
6911 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6913 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6914 Inline name defines used only once.
6916 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6918 Fix memory leaks in ofnet.
6919 Reported by: Francesco Lavra.
6921 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6923 * docs/man/grub-glue-efi.h2m: Add missing file.
6925 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6927 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6929 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6931 Better support Apple Intel Macs on CD.
6933 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6935 Replace stpcpy with grub_stpcpy in tools.
6937 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6939 Handle Japanese special keys.
6940 Reported by: Hiroyuki YAMAMORI.
6941 Codes supplied by: Hiroyuki YAMAMORI.
6943 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6945 * util/grub-mkimage.c: Document memdisk implying --prefix.
6947 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6949 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6950 much we can do about it anyway.
6952 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6954 Fix handling of split transfers.
6956 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6958 * grub-core/net/http.c: Fix bad free.
6960 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6962 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6965 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6967 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6969 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6971 * tests/util/grub-shell.in: Fix it on powerpc.
6973 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6975 Turn off QEMU ACPI-way since new releases don't have shutdown port
6978 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6980 * docs/grub.texi: Update coreboot status info.
6982 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6984 * tests/grub_cmd_date.in: New test for datetime.
6986 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6988 * tests/partmap_test.in: Fix missing qemudisk setting.
6990 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6992 Support i386-ieee1275 grub-mkrescue and make check on it.
6994 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6996 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6999 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7001 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7002 GRUB_CMDLINE_XEN_DEFAULT.
7003 Reported by: Marc Warne (GigaTux) <gigatux>
7005 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7009 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7011 Use ACPI shutdown intests as traditional port was removed.
7013 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7015 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7018 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7020 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7021 Fix few warining messages and leaks while on it.
7023 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7025 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7026 links under grub-core/lib/libgcrypt-grub/mpi.
7028 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7030 Fix ia64-efi image generation on big-endian machines. Deduplicate
7031 some code while on it.
7032 Reported by: Leif Lindholm.
7034 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7036 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7039 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7041 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7043 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7045 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7048 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7050 * grub-core/normal/term.c: Few more fixes for menu entry editor
7052 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7054 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7056 * grub-core/normal/term.c: Few more fixes for menu entry editor
7058 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7060 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7062 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7063 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7065 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7067 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7068 instead of hardcoding grub.mo.
7070 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7072 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7074 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7076 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7077 grub-core/disk/geli.c.
7079 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7081 * util/grub-mkfont.c: Prefer enum to #define.
7083 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7085 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7087 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7089 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7091 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7093 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7095 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7097 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7099 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7101 * include/grub/bsdlabel.h: Use enums.
7103 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7105 Move GRUB_CHAR_BIT to types.h.
7107 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7109 * docs/grub.texi: Document more user commands.
7111 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7113 * docs/grub.texi: Document menuentry --id option.
7115 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7117 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7119 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7121 Unify file copying setup across different install scripts. Add
7122 options for performing partial install.
7124 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7125 2013-04-04 Peter Jones <pjones@redhat.com>
7127 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7129 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7131 Use TSC as a possible time source on i386-ieee1275.
7133 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7135 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7138 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7140 * util/grub-setup.c (setup): Handle some corner cases.
7142 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7144 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7146 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7148 * grub-core/commands/verify.c: Save verified file to avoid it being
7149 tampered with after verification was done.
7151 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7153 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7154 reported width by one to compensate for curesor algorithm problem.
7156 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7158 Fix screen corruption in menu entry editor and simplify the code
7161 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7163 * util/grub-mount.c (fuse_init): Return error if fuse_main
7166 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7168 * include/grub/elf.h: Add missing ARM relocation codes and fix
7171 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7173 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7175 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7176 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7178 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7179 into account when calculating radius.
7181 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7183 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7185 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7187 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7189 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7191 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7192 missing closing bracket.
7194 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7196 * INSTALL: Mention xorriso requirement.
7198 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7200 * grub-core/commands/verify.c: Fix hash algorithms values for
7201 the first three hashes - they start with 1, not with 0.
7203 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7205 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7206 Try terminating EFI services several times due to quirks in some
7209 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7211 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7212 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7213 BankField extended opcodes.
7214 (get_sleep_type): Add minimal scope handling (just enough to
7215 handle setting the scope to the root path).
7216 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7217 * include/grub/acpi.h: Add enumeration values for Event, Device,
7218 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7220 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7222 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7225 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7227 * grub-core/disk/ahci.c: Give more time for AHCI request.
7229 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7231 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7234 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7236 Replace the region at 0 from coreboot tables to available in BSD
7239 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7241 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7244 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7246 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7249 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7251 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7252 handling of multi-device filesystems.
7254 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7256 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7259 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7261 Add new 'proc' filesystem framework and put luks_script into it.
7263 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7265 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7268 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7270 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7272 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7274 Add ability to generate newc additions on runtime.
7276 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7278 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7281 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7283 * po/POTFILES.in: Regenerate.
7285 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7287 * grub-core/commands/verify.c (hashes): Add several hashes
7290 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7292 Slight improve in USB-related boot-time checkpoints.
7294 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7296 * grub-core/commands/boottime.c: Fix copyright header.
7298 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7300 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7301 coreboot tables content. Support for cbmemc.
7303 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7305 Fix a conflict between ports structures with 2 controllers of
7308 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7310 * include/grub/boottime.h: Add missing file.
7312 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7314 Initialize USB ports in parallel to speed-up boot.
7316 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7318 Fix USB devices not being detected when requested
7319 due to delayed attach.
7321 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7323 Implement boot time analysis framework.
7325 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7327 Remove get_endpoint_descriptor and change all functions needing
7328 descriptor to just receive it as argument rather than endpoint
7331 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7333 Better estimate the maximum USB transfer size.
7335 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7337 Resend a packet if we got the wrong buffer in status.
7339 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7341 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7342 multiplication rather than division.
7344 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7346 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7349 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7351 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7352 operations to have intended shifts and not divisions.
7354 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7356 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7357 intended shifts rather than division.
7359 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7361 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7362 computation for some years before epoch. Avode confusing division
7365 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7367 * grub-core/video/i386/pc/vbe.c
7368 (grub_video_vbe_print_adapter_specific_info): Replace division by
7371 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7373 Adjust types in gdb module to have intended unsigned shifts rather than
7376 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7378 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7379 maximum size is 4G - 1 on hfs
7381 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7383 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7385 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7387 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7390 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7392 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7393 causing gcc error with gcc 4.7.1.
7395 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7397 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7398 dereference null pointer. While the code is technically correct, gcc
7399 may eliminate a null check if pointer is already dereferenced.
7401 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7403 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7405 * grub-core/normal/term.c (read_terminal_list): Likewise.
7407 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7409 Lift up core size limits on some platforms. Fix potential memory
7410 corruption with big core on small memory systems. Document remaining
7413 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7415 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7418 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7420 Remove all trampoline support. Add -Wtrampolines when
7421 present. Remove symbols used for trampolines to make
7422 link fail if trampolines are present.
7424 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7426 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7427 append out of its parent.
7429 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7431 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7434 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7436 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7437 all vars to a macro. All users updated.
7439 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7441 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7446 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7448 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7450 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7452 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7454 Move to more hookless approach in IEEE1275 devices handling.
7456 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7458 * grub-core/kern/term.c (grub_term_normal_color),
7459 (grub_term_highlight_color): Add back lost defaults.
7461 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7463 Make elfload not use hooks. Opt for flags and iterators instead.
7465 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7468 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7470 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7474 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7477 hook pass-through parameter. All users updated and unnested.
7479 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7484 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7486 * grub-core/fs/hfs.c: Remove nested functions.
7488 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7490 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7491 the context through.
7492 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7494 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7496 * util/grub-editenv.c (list_variables): Move print_var out of its
7499 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7501 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7504 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7506 * grub-core/gentrigtables.c: Make tables const.
7508 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7510 Remove nested functions from videoinfo iterators.
7512 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7515 for 64-bit platforms.
7517 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7519 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7520 a FOR_CHILDREN macro.
7522 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7525 platform from firmware path.
7527 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7529 Enable linux16 on non-BIOS systems for i.a. memtest.
7531 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7533 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7535 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7537 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7538 Fix end of table condition.
7540 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7542 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7545 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7547 * grub-core/fs/jfs.c: Remove nested functions.
7549 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/fs/minix.c: Remove nested functions.
7553 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7555 * grub-core/fs/iso9660.c: Remove nested functions.
7557 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7559 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7562 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7564 * util/grub-fstest.c: Remove nested functions.
7566 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7568 * grub-core/loader/machoXX.c: Remove nested functions.
7570 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7572 Remove nested functions from disk and file read hooks.
7574 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7575 (struct grub_disk): Add read_hook_data member.
7576 * include/grub/file.h (struct grub_file): Likewise.
7577 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7582 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7584 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7585 Fix off by one error in enumerating extended partitions.
7587 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7589 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7590 memory leak if device name is not found.
7592 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7594 * grub-core/normal/menu_entry.c (update_screen): remove
7595 unused variable `off' which caused scroll down arrow to be always shown.
7597 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7599 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7600 access to unallocated memory.
7602 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7604 * Makefile.util.def: Add partmap/msdos.c to common library.
7605 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7606 * grub-core/disk/ldm.c: Check for existence of
7607 GRUB_PC_PARTITION_TYPE_LDM.
7609 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7611 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7612 sizes and display sector size.
7614 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7616 Implement new command cmosdump.
7618 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7620 Support Openfirmware disks with non-512B sectors.
7622 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7624 * (grub_ofdisk_get_block_size): New function.
7625 * (grub_ofdisk_prepare): Use the correct block size.
7626 * (grub_ofdisk_read): Likewise.
7627 * (grub_ofdisk_write): Likewise.
7628 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7631 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7633 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7635 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7637 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7640 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7642 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7645 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7647 Implement USBDebug (full USB stack variant).
7649 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7651 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7652 unless they have unexpected values.
7654 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7656 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7659 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7661 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7662 zero-out of port structure.
7664 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7667 of extended attributes.
7669 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7671 * util/grub-install.in: change misleading comment about
7674 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7676 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7677 when menu highlight color isn't set.
7679 2013-01-27 C. Masloch <pushbx@38.de>
7681 Improve FreeDOS direct loading support compatibility.
7683 * include/grub/i386/relocator.h (grub_relocator16_state):
7685 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7687 (grub_relocator16_boot): Handle %ebp.
7688 * grub-core/lib/i386/relocator16.S: Likewise.
7689 * grub-core/loader/i386/pc/freedos.c:
7690 Load BPB to pass kernel which partition to load from.
7691 Check that kernel file is not too large.
7692 Set register dl to BIOS unit number as well.
7694 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7696 * util/grub-reboot.in (usage): Document the need for
7698 * util/grub-set-default.in (usage): Likewise.
7699 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7701 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7703 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7704 than defining WORDS_BIGENDIAN manually.
7706 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7708 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7711 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7713 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7715 (blit_comb: add_device_width): Likewise.
7717 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7719 Remove nested functions from USB iterators.
7721 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7722 (grub_usb_controller_iterate_hook_t): Likewise.
7723 (grub_usb_iterate): Add hook_data argument.
7724 (grub_usb_controller_iterate): Likewise.
7725 (struct grub_usb_controller_dev.iterate): Likewise.
7727 Update all implementations and callers.
7729 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7731 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7732 margin when not needed.
7734 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7736 Make color variables global instead of it being per-terminal.
7738 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7740 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7743 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7745 Fix powerpc and sparc64 build failures caused by un-nesting memory
7748 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7750 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7751 parameter declarations.
7753 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7755 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7757 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7759 Improve spkmomdem reliability by adding a separator between bytes.
7761 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7763 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7764 an Acer registration utility with several sightings in the wild.
7765 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7767 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7769 Remove nested functions from filesystem directory iterators.
7771 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7772 (struct grub_fs.dir): Add hook_data argument.
7774 Update all implementations and callers.
7776 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7778 * docs/grub.texi (Multi-boot manual config): Fix typo for
7781 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7783 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7784 until after its use in generate_image.
7786 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7788 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7789 initrd size to addr_min, since the initrd will be allocated after
7792 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7794 * conf/Makefile.common: Fix autogen rules to pass definition
7795 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7797 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7799 * include/grub/elf.h: Update ARM definitions based on binutils.
7801 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7803 Split long USB transfers into short ones.
7805 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7807 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7808 is interrupted by ESC.
7810 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7812 * util/grub-script-check.c (main): Uniform the error message.
7814 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7816 Remove nested functions from ELF iterators.
7818 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7820 Remove nested functions from device iterators.
7822 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7823 (grub_arc_iterate_devs): Add hook_data argument.
7824 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7825 (struct grub_ata_dev.iterate): Add hook_data argument.
7826 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7827 (grub_device_iterate): Add hook_data argument.
7828 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7829 (struct grub_disk_dev.iterate): Add hook_data argument.
7830 (grub_disk_dev_iterate): Likewise.
7831 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7833 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7835 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7837 (struct grub_partition_map.iterate): Add hook_data argument.
7838 (grub_partition_iterate): Likewise.
7839 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7840 (struct grub_scsi_dev.iterate): Add hook_data argument.
7844 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7846 Fix typos for "developer" and "development".
7848 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7850 Add license header to spkmodem-recv.c.
7852 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7854 Rewrite spkmodem to use PIT for timing. Double the speed.
7856 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7858 Add new command pcidump.
7860 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7862 New terminal outputs using serial: morse and spkmodem.
7864 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7866 Improve bidi handling in entry editor.
7868 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7870 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7871 argument to prevent name collision.
7873 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7875 Remove nested functions from script reading and parsing.
7877 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7878 getline_data argument, passed to getline.
7879 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7880 getline_data argument, passed to grub_parser_split_cmdline.
7881 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7882 lexerstate->getline_data to lexerstate->getline.
7883 (grub_script_lexer_init): Add getline_data argument, saved in
7884 lexerstate->getline_data.
7885 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7886 argument, passed to grub_script_parse.
7887 * grub-core/script/script.c (grub_script_parse): Add getline_data
7888 argument, passed to grub_script_lexer_init.
7889 * include/grub/parser.h (grub_parser_split_cmdline): Update
7890 prototype. Update all callers to pass appropriate getline data.
7891 (struct grub_parser.parse_line): Likewise.
7892 (grub_rescue_parse_line): Likewise.
7893 * include/grub/reader.h (grub_reader_getline_t): Add void *
7895 * include/grub/script_sh.h (struct grub_lexer_param): Add
7896 getline_data member.
7897 (grub_script_parse): Update prototype. Update all callers to pass
7898 appropriate getline data.
7899 (grub_script_lexer_init): Likewise.
7900 (grub_normal_parse_line): Likewise.
7902 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7904 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7905 static instead of nested. Rename to ...
7906 (grub_parser_execute_getline): ... this.
7907 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7909 * grub-core/normal/main.c (read_config_file: getline): Make static
7910 instead of nested. Rename to ...
7911 (read_config_file_getline): ... this.
7912 (grub_normal_read_line): Add unused data argument.
7913 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7914 getline): Make static instead of nested. Rename to ...
7915 (grub_script_execute_sourcecode_getline): ... this.
7916 * util/grub-script-check.c (main: get_config_line): Make static
7919 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7921 Remove nested functions from memory map iterators.
7923 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7924 argument, passed to hook.
7925 * grub-core/kern/i386/coreboot/mmap.c
7926 (grub_linuxbios_table_iterate): Likewise.
7927 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7929 (grub_machine_mmap_iterate): Add hook_data argument.
7930 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7931 Add hook_data argument, passed to hook.
7932 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7934 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7936 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7938 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7940 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7942 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7944 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7945 (grub_machine_mmap_iterate): Likewise.
7946 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7947 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7949 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7950 Remove NESTED_FUNC_ATTR from here and from all users.
7951 (grub_mmap_iterate): Update prototype.
7952 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7953 pass appropriate hook data.
7954 (grub_machine_mmap_iterate): Likewise.
7956 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7957 static instead of nested.
7958 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7960 (lsmmap_hook): ... this.
7961 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7963 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7964 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7965 heap_init): Likewise.
7966 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7968 (mmap_iterate_hook): ... this.
7969 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7971 * grub-core/lib/ieee1275/relocator.c
7972 (grub_relocator_firmware_get_max_events: count): Likewise.
7973 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7975 (grub_relocator_firmware_fill_events_iter): ... this.
7976 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7977 hook): Likewise. Rename to ...
7978 (grub_relocator_alloc_chunk_align_iter): ... this.
7979 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7981 (generate_e820_mmap_iter): ... this.
7982 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7984 (count_hook): ... this.
7985 (grub_linux_boot: hook): Likewise. Rename to ...
7986 (grub_linux_boot_mmap_find): ... this.
7987 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7988 (grub_linux_boot_mmap_fill): ... this.
7989 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7990 hook): Likewise. Rename to ...
7991 (grub_fill_multiboot_mmap_iter): ... this.
7992 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7993 hook): Likewise. Rename to ...
7994 (count_hook): ... this.
7995 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7996 hook): Likewise. Rename to ...
7997 (grub_fill_multiboot_mmap_iter): ... this.
7998 * grub-core/loader/powerpc/ieee1275/linux.c
7999 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8000 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8001 Likewise. Rename to ...
8002 (alloc_phys_choose): ... this.
8003 (determine_phys_base: get_physbase): Likewise.
8004 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8005 find_hook): Likewise.
8006 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8007 (malloc_hook: count_hook): Likewise.
8008 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8009 Likewise. Rename to ...
8010 (lower_hook): ... this.
8011 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8012 (upper_hook): ... this.
8013 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8014 (post64_hook): ... this.
8015 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8016 Likewise. Rename to ...
8017 (lower_hook): ... this.
8018 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8019 (upper_hook): ... this.
8020 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8021 (grub_mmap_iterate: fill_hook): Likewise.
8022 (fill_mask): Pass addr and mask within a single struct.
8023 (grub_cmd_badram: hook): Make static instead of nested. Rename
8025 (badram_iter): ... this.
8026 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8027 (cutmem_iter): ... this.
8029 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8031 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8032 delimit path in strings using quotes.
8033 * util/getroot.c (grub_guess_root_devices): Likewise.
8034 (grub_make_system_path_relative_to_its_root): Likewise.
8035 * util/grub-probe.c (probe): Likewise.
8036 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8037 (xrealpath): Likewise.
8039 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8041 Fix compilation with older compilers.
8043 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8044 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8046 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8047 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8048 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8050 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8051 * include/grub/crypto.h: Add type defines.
8052 * util/import_gcrypth.sed: Remove duplicate type defines.
8054 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8056 New command list_trusted.
8058 * grub-core/commands/verify.c (grub_cmd_list): New function.
8060 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8062 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8065 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8067 Remove nested functions from PCI iterators.
8069 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8070 passed to hook. Update all callers to pass appropriate hook data.
8071 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8072 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8073 Remove NESTED_FUNC_ATTR from here and from all users.
8074 (grub_pci_iterate): Update prototype.
8075 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8076 instead of nested. Rename to ...
8077 (grub_cs5536_find_iter): ... this.
8078 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8079 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8081 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8083 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8085 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8087 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8088 * grub-core/video/radeon_fuloong2e.c
8089 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8090 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8091 find_card): Likewise.
8092 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8095 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8097 * grub-core/commands/verify.c: Mark messages for translating.
8099 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8101 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8104 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8106 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8109 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8111 * autogen.sh: Do not try to delete nonexistant files.
8112 * util/import_gcrypth.sed: Add some missing header removals.
8114 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8116 Clean up dangling references to grub-setup.
8117 Fixes Ubuntu bug #1082045.
8119 * docs/grub.texi (Images): Refer generally to grub-install rather
8120 than directly to grub-setup.
8121 (Installing GRUB using grub-install): Remove direct reference to
8123 (Device map) Likewise.
8124 (Invoking grub-install): Likewise.
8125 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8126 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8127 * util/grub-install.in (usage): Likewise.
8129 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8130 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8132 * configure.ac: Remove grub_setup output variable.
8134 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8136 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8137 grub-setup to grub-sparc64-setup.
8139 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8141 Import gcrypt public-key cryptography and implement signature checking.
8143 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8145 * grub-core/fs/ntfs.c: Ue more appropriate types.
8146 * grub-core/fs/ntfscomp.c: Likewise.
8147 * include/grub/ntfs.h: Likewise.
8149 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8151 Support Apple FAT binaries on non-Apple platforms.
8153 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8154 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8156 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8159 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8161 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8164 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8166 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8167 explicitly zeroing elements.
8168 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8169 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8170 of elements in a structure already allocated using grub_zalloc.
8171 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8173 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8175 * docs/grub.texi (grub_cpu): New subsection.
8176 (grub_platform): Likewise.
8178 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8180 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8182 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8184 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8187 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8189 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8190 * grub-core/fs/ntfscomp.c: Likewise.
8191 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8192 (grub_ntfs_comp): Likewise.
8194 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8196 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8198 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8199 of groups_per_block. All users updated.
8201 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8203 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8204 grub_error properly.
8205 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8206 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8208 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8210 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8211 always in /boot/zfs.
8212 Reported by: Yuta Satoh.
8214 2013-01-03 Yuta Satoh <nigoro>
8216 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8219 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8221 * configure.ac: Extend -Wno-trampolines to host.
8223 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8225 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8228 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8230 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8231 (Invoking grub-script-check): Likewise.
8233 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8235 * docs/grub.texi (Invoking grub-mount): New section.
8236 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8238 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8240 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8241 test failures, so that a failing unit test correctly causes 'make
8244 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8246 Fix failing printf test.
8248 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8249 '$' in the correct order when collecting type information.
8251 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8253 * docs/grub.texi (configfile): Explain environment variable
8255 (source): New section.
8256 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8258 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8260 Remove several trivially-unnecessary uses of nested functions.
8262 * grub-core/commands/i386/pc/sendkey.c
8263 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8265 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8267 (legacy_file_getline): ... this.
8268 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8270 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8271 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8273 (probe_dummy_iter): ... this.
8274 * grub-core/kern/i386/coreboot/mmap.c
8275 (grub_linuxbios_table_iterate: check_signature): Likewise.
8276 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8277 check_varstate): Likewise. Mark inline.
8278 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8279 an additional parameter.
8280 (find_long: fnd_long): Likewise. Pass two additional parameters.
8281 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8282 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8283 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8284 Likewise. Rename to ...
8285 (grub_cmos_find_port_iter): ... this.
8286 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8288 (find_rtc_iter): ... this.
8290 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8291 function directly into the function body, since it is only called
8294 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8296 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8297 __attribute__ ((unused)).
8298 * grub-core/video/bochs.c (find_card): Likewise.
8299 * grub-core/video/cirrus.c (find_card): Likewise.
8300 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8301 * grub-core/video/sis315pro.c (find_card): Likewise.
8302 * grub-core/video/sm712.c (find_card): Likewise.
8304 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8306 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8307 Fixes Savannah bug #37821.
8309 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8311 Apply program name transformations at build-time rather than at
8312 run-time. Fixes Debian bug #696465.
8314 * acinclude.m4 (grub_TRANSFORM): New macro.
8315 * configure.ac: Create output variables with transformed names for
8317 * util/bash-completion.d/grub-completion.bash.in: Use
8318 pre-transformed variables for program names.
8319 * util/grub-install.in: Likewise.
8320 * util/grub-kbdcomp.in: Likewise.
8321 * util/grub-mkconfig.in: Likewise.
8322 * util/grub-mkconfig_lib.in: Likewise.
8323 * util/grub-mknetdir.in: Likewise.
8324 * util/grub-mkrescue.in: Likewise.
8325 * util/grub-mkstandalone.in: Likewise.
8326 * util/grub-reboot.in: Likewise.
8327 * util/grub-set-default.in: Likewise.
8328 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8329 * tests/util/grub-shell-tester.in: Remove unused assignment.
8330 * tests/util/grub-shell.in: Likewise.
8331 * util/grub.d/00_header.in: Likewise.
8333 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8335 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8337 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8339 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8341 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8343 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8344 Reported by: Eriks Latosheks <foresterlv>.
8346 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8348 * docs/grub.texi (Network): Update instructions on generating netboot
8351 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8353 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8354 around device name if necessarry.
8356 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8358 * util/grub-install.in: Follow the symbolic link parameter added
8359 to the file command.
8361 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8363 * util/grub-install.in: Remove stale TODO.
8365 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8367 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8368 dynamic allocation for the bootpath buffer.
8370 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8372 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8375 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8377 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8378 argument rather than font name. All users updated.
8379 (grub_gfxterm_set_window): Likewise.
8381 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8383 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8386 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8388 * util/getroot.c (convert_system_partition_to_system_disk): Support
8391 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8393 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8394 infinite loop on corrupted FS.
8396 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8398 Fix big-endian mtime.
8400 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8401 together sec and usec.
8402 (grub_ufs_dir): Use correct byteswapping for UFS time.
8404 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8406 Support big-endian UFS1.
8408 * Makefile.util.def (libgrubmods): Add ufs_be.c
8409 * grub-core/Makefile.core.def (ufs1_be): New module.
8410 * grub-core/fs/ufs_be.c: New file.
8411 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8414 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8416 * include/grub/types.h: Fix functionality unaffecting typo in
8417 GRUB_TARGET_WORDSIZE conditional macro.
8419 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8421 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8423 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8425 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8426 that /netbsd appears first (when it exists).
8428 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8430 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8431 Fixes Savannah bug #37558.
8433 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8435 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8436 description of extract_entries_configfile.
8438 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8440 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8442 (grub_cmd_linux): Likewise.
8443 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8444 preferred_lifetime. Update all users.
8446 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8448 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8449 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8451 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8453 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8454 errors from grub-probe to /dev/null, not stdout.
8456 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8458 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8461 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8463 * util/grub-install.in: Make the error message if $source_dir
8464 doesn't exist more useful.
8466 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8468 Fix grub-emu build on FreeBSD.
8470 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8471 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8473 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8474 implementation is currently Linux-specific.
8475 * util/getroot.c (exec_pipe): Define only on Linux or when either
8476 libzfs or libnvpair is unavailable.
8477 (find_root_devices_from_poolname): Remove unused path variable.
8479 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8481 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8482 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8483 should fit before end == 63.
8485 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8487 * util/grub-setup.c (write_rootdev): Remove unused core_img
8488 parameter. Update all callers.
8489 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8490 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8493 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8495 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8496 (grub_add_tab): New function.
8497 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8498 * util/grub.d/10_illumos.in: Likewise.
8499 * util/grub.d/10_kfreebsd.in: Likewise.
8500 * util/grub.d/10_linux.in: Likewise.
8501 * util/grub.d/10_netbsd.in: Likewise.
8502 * util/grub.d/10_windows.in: Likewise.
8503 * util/grub.d/10_xnu.in: Likewise.
8504 * util/grub.d/20_linux_xen.in: Likewise.
8505 * util/grub.d/30_os-prober.in: Likewise.
8507 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8509 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8510 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8511 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8512 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8513 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8515 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8516 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8518 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8522 Reported by: BURETTE, Bernard.
8524 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8526 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8529 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8531 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8532 IEEE1275 machines. Fixes powerpc-emu compilation.
8533 * include/grub/terminfo.h: Likewise.
8535 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8537 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8539 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8541 (efiemu_set_variable): Make vendor_guid a const pointer.
8543 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8545 Don't require grub-mkconfig_lib to generate manpages for programs.
8547 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8548 dependencies, don't add grub-mkconfig_lib.
8549 (program): Pass empty adddeps.
8550 (script): Pass grub-mkconfig_lib as adddeps.
8552 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8554 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8555 * util/getroot.c (grub_find_device): Likewise.
8556 (get_mdadm_uuid): Likewise.
8557 (grub_util_is_imsm): Likewise.
8558 (grub_util_pull_device): Likewise.
8559 * util/grub-probe.c (probe): Likewise.
8561 2012-09-10 Benoit Gschwind <gschwind>
8563 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8564 (devs): Add devpath_8.
8566 2012-09-08 Peter Jones <pjones@redhat.com>
8568 * grub-core/Makefile.core.def (efifwsetup): New module.
8569 * grub-core/commands/efi/efifwsetup.c: New file.
8570 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8571 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8573 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8575 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8577 * configure.ac: Add SuSe path.
8579 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8583 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8585 * util/import_gcry.py: Sort cipher_files, to make build system
8586 generation more deterministic.
8588 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8590 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8591 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8592 (grub_set_datetime): Likewise.
8594 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8596 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8599 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8601 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8603 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8605 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8607 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8609 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8610 required for checkouts from bzr, but it may be useful for users or
8611 distributors wishing to update translations against a tarball
8612 distribution, and it can be helpful for the tarball to be a superset
8615 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8617 * Makefile.am (EXTRA_DIST): Add
8618 grub-core/tests/boot/linux.init-mips.S,
8619 grub-core/tests/boot/linux.init-ppc.S, and
8620 grub-core/tests/boot/linux-ppc.cfg.
8622 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8624 * grub-core/mmap/mips/loongson: Remove empty directory.
8626 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8628 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8631 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8633 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8636 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8638 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8640 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8642 * po/POTFILES.in: Regenerated.
8644 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8646 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8647 (NetBSD): New subsection.
8649 2012-07-22 Ales Nesrsta <starous@volny.cz>
8651 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8652 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8654 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8656 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8657 * util/grub.d/10_hurd.in: Add missing quoting.
8658 * util/grub.d/10_illumos.in: Likewise.
8659 * util/grub.d/10_kfreebsd.in: Likewise.
8660 * util/grub.d/10_linux.in: Likewise.
8661 * util/grub.d/20_linux_xen.in: Likewise.
8663 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8665 New command `lsefi'.
8667 * grub-core/Makefile.core.def (lsefi): New module.
8668 * grub-core/commands/efi/lsefi.c: New file.
8669 * include/grub/efi/api.h: Add more GUIDs.
8671 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8673 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8674 (grub_bsd_elf32_hook): Likewise.
8675 (grub_bsd_elf64_size_hook): Likewise.
8676 (grub_bsd_elf64_hook): Likewise.
8677 (grub_bsd_load_elf): Likewise.
8679 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8681 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8682 if hash function is unavailable.
8683 (dec_stream_header): Likewise.
8685 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8687 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8690 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8692 Fix coreboot compilation.
8694 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8695 (grub_vga_text_init_real): ... this.
8696 (grub_vga_text_fini): Rename to ...
8697 (grub_vga_text_fini_real): ... this.
8699 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8701 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8703 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8705 * grub-core/lib/legacy_parse.c: Support clear and testload.
8707 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8709 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8711 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8713 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8715 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8717 * grub-core/net/tftp.c (ack): Fix endianness problem.
8718 (tftp_receive): Likewise.
8719 Reported by: Michael Davidsaver.
8721 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8723 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8725 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8727 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8728 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8729 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8731 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8733 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8735 Reported by: Stuart Hayes.
8737 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8739 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8741 * grub-core/Makefile.core.def (mda_text): New module.
8742 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8743 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8744 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8745 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8747 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8748 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8749 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8751 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8753 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8755 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8757 * grub-core/term/i386/vga_common.c: Removed.
8758 * include/grub/i386/vga_common.h: Likewise.
8759 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8760 (grub_vga_cr_bw_read): Likewise.
8761 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8762 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8763 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8764 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8765 grub_vga_cr_read/grub_vga_cr_write.
8766 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8768 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8770 * configure.ac: Bump version to 2.00.
8771 * grub-core/normal/main.c (features): Add feature_200_final.
8773 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8774 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8776 * NEWS: Fix unclarity and language mistakes.
8778 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8780 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8781 additional size to 3 pages.
8782 Reported by: Stuart Hayes.
8784 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8786 * NEWS: Add 2.00 entry.
8788 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8790 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8791 put explicit "/" for empty path.
8792 (wildcard_expand): Improve dprintf.
8794 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8796 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8797 it's equal to currnode. This can happen with "" symlink.
8799 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8801 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8802 echo shell command by printf command.
8804 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8806 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8807 the value returned by firmware is the maximal position, not diumension.
8808 (grub_terminfo_output_state): Use a more sane fallback.
8810 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8812 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8814 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8816 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8817 frequency to 150 MHz.
8819 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8823 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8825 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8827 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8829 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8831 Handle slash in HFS label.
8833 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8834 (grub_hfs_dir): Tanslate slash.
8835 (grub_hfs_label): Don't translate slash.
8837 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8839 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8840 network protocol listing since it introduces problematic dependency on
8843 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8845 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8847 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8849 Init video early on yeeloong to avoid being rebooted by watchdog.
8851 * grub-core/Makefile.am (gensm712): New target.
8852 (sm712_start.S): Likewise.
8853 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8854 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8855 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8857 * include/grub/vga.h: Move registry definitions to...
8858 * include/grub/vgaregs.h: ... here.
8860 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8862 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8865 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8867 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8868 platforms with firmware disk drivers in the core.
8870 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8872 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8873 informative verbose message.
8874 (read_lv): Handle 64-bit segment size.
8876 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8878 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8880 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8882 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8883 character but still remove trainling spaces.
8884 (grub_fat_label): Ignore archive flag.
8886 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8889 cast between linux_kernel_header and linux_kernel_params.
8891 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8893 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8895 (grub_raid6_recover_func_t): Likewise.
8896 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8897 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8899 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8901 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8903 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8907 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8908 [__NetBSD__]: Add explicit cast before bitshift.
8910 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8912 * configure.ac: Bump to 2.00~rc1.
8914 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8916 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8919 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8920 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8922 * docs/grub.texi: Fix search syntax.
8923 (Multi-boot manual config): Put msdos rather than GPT example.
8924 Grammar corrections.
8926 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8928 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8930 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8932 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8934 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8936 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8937 message on double free. Put the value of magic in case of mismatch.
8939 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8941 Speed-up video on yeeloong.
8943 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8945 (grub_video_sm712_video_fini): Unmap cached_ptr.
8946 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8947 (grub_video_sm712_set_active_render_target): Removed.
8948 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8949 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8952 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8954 Avoid flushing the same line multiple times on loongson.
8956 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8957 Step in 32 bytes and not 1 byte.
8958 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8961 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8963 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8966 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8968 Implement flow control for http.
8970 * grub-core/net/http.c (parse_line): Handle response 206.
8971 (http_receive): Stall if too many packets are in the queue.
8972 (http_establish): Fix range header.
8973 (http_seek): Fix double free.
8974 (http_close): Likewise.
8975 (http_packets_pulled): New function.
8976 (grub_http_protocol): Set http_seek
8977 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8978 (ack_real): Set window depending on i_stall.
8979 (grub_net_send_tcp_packet): Likewise.
8980 (grub_net_tcp_stall): New function.
8981 (grub_net_tcp_unstall): Likewise.
8982 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8983 (grub_net_tcp_unstall): Likewise.
8985 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8987 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8989 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8991 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8993 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8995 * tests/util/grub-shell.in: Fix a typo.
8997 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8999 Implement flow control for tftp.
9001 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9002 packets but stop only if stop condition is satisfied.
9003 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9004 `stall' instead of `eof' as stop condition.
9005 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9006 (http_err): Likewise.
9007 * grub-core/net/tftp.c (ack): Replace the first argument with data
9009 (tftp_receive): Stall if too many packets are in wait queue.
9010 (tftp_packets_pulled): New function.
9011 (grub_tftp_protocol): Set packets_pulled.
9012 * include/grub/net.h (grub_net_packets): New field count.
9013 (grub_net_put_packet): Increment count.
9014 (grub_net_remove_packet): Likewise.
9015 (grub_net_app_protocol): New field `packets_pulled'.
9016 (grub_net): New field `stall'.
9018 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9020 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9021 sync part to handle them.
9023 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9025 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9026 * grub-core/net/drivers/ieee1275/ofnet.c
9027 (grub_ieee1275_net_config_real): Likewise.
9029 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9031 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9032 the direct route for server/gateway.
9034 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9036 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9037 IP address to server name since we may not hame the DNS.
9039 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9041 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9042 freeing random buffer on failure.
9043 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9045 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9047 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9049 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9051 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9053 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9054 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9055 Handle malloc error correctly.
9057 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9059 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9062 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9064 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9067 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9069 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9070 none is explicitly specified.
9072 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9074 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9077 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9079 Respect netmask from bootp/dhcp.
9081 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9082 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9083 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9085 (grub_net_add_ipv4_local): ... this.
9086 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9087 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9088 (grub_net_add_ipv4_local): New proto.
9090 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9093 determining EFI memory map size.
9095 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9097 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9099 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9101 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9102 when looking for partition separator.
9104 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9106 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9109 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9111 Restructure FAT driver to avoid hook in label reading as it hits a
9114 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9115 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9116 (grub_fat_iterate_dir): Split into ...
9117 (grub_fat_iterate_init): ... this, ...
9118 (grub_fat_iterate_fini): ... this, ...
9119 (grub_fat_iterate_dir_next): ... and this. All users updated.
9121 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9123 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9124 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9125 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9126 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9127 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9128 New fields last_key and last_key_time.
9129 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9130 extended key-esc into extended key-extended key.
9132 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9134 Avoid unnecessary memcpy of whole video buffer.
9136 * grub-core/video/fb/video_fb.c (dirty): New struct.
9137 (framebuffer): Add members current_dirty and previous_dirty.
9138 (dirty): New function.
9139 (grub_video_fb_fill_rect): Update dirty.
9140 (common_blitter): Likewise.
9141 (grub_video_fb_scroll): Likewise.
9142 (doublebuf_blit_update_screen): Copy only dirty part.
9143 (doublebuf_pageflipping_update_screen): Likewise.
9144 (grub_video_fb_doublebuf_blit_init): Init dirty.
9145 (doublebuf_pageflipping_init): Likewise.
9146 (grub_video_fb_setup): Likewise.
9148 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9150 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9153 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9155 Fix wildcard regexp dot and other special characters handling.
9156 Reported by: Robert Mabee.
9158 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9159 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9160 (split_path): Trigger expansion on '?'.
9161 (unescape): New function.
9162 (wildcard_expand): Unescape parts copied without globbing.
9163 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9164 (grub_script_arglist_to_argv): Don't unescape expansions.
9166 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9168 * include/grub/net.h (grub_net_card): New member txbufsize.
9169 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9170 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9171 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9172 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9174 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9175 compatible property to check for macs. Set
9176 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9177 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9178 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9179 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9180 (send_card_buffer): Use txbuf.
9181 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9182 nested function out of the parent while on it.
9184 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9186 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9188 (grub_ieee1275_net_config_real): Fix config pointer.
9190 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9192 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9193 filename parsing to non-block devices.
9195 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9197 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9199 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9201 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9204 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9207 UUID search command even if hints probing failed.
9209 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9211 * po/POTFILES.in: Regenerated.
9213 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9215 Speed-up video on fuloong.
9217 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9219 (grub_pci_device_unmap_range): Handle non-cached address.
9220 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9222 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9223 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9224 (grub_video_sis315pro_set_active_render_target): Removed.
9225 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9226 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9227 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9229 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9232 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9234 * docs/grub.texi (Multi-boot manual config): New section.
9236 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9238 Avoid slow read-back from VRAM.
9240 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9242 * grub-core/video/fb/video_fb.c
9243 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9244 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9245 (front_target): Remove front_target. Add pages.
9246 (grub_video_fb_init): Skip setting front_pages.
9247 (grub_video_fb_fini): Likewise.
9248 (doublebuf_blit_update_screen): Use pages.
9249 (grub_video_fb_doublebuf_blit_init): Likewise.
9250 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9251 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9252 (grub_video_fb_setup): Prefer doublebuffing.
9254 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9256 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9259 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9263 * tests/util/grub-shell.in: Handle loongson.
9264 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9266 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9267 Reboot instead of shutdown if REBOOT is defined.
9269 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9271 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9272 sized ports since unlike on real hardware qemu supports only 32-bit
9275 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9277 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9278 * util/grub-mkrescue.in: Handle loongson.
9280 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9282 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9283 Set is_part appropriately.
9284 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9285 names. Canonicalize partition without full disk.
9287 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9289 Revert usb-quiesce since it's wrong.
9291 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9292 (grub_ofdisk_init): Don't do quiesce.
9294 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9297 PowerMac workaround to Xserves as well.
9298 Information supplied by: Benjamin Herrenschmidt.
9300 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9302 Don't assume that beginning address is also the entry point on ppc.
9304 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9305 (grub_linux_boot): Use linux_entry.
9306 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9307 (grub_linux_load64): Likewise.
9309 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9311 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9313 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9315 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9316 needlessly lose the console.
9318 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9320 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9323 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9325 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9326 than current grub_get_rtc() not implemented when booted with
9327 coreboot without TSC.
9329 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9330 Add machine/time.h to kernel headers on loongson.
9331 * grub-core/Makefile.core.def (kernel): Remove
9332 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9333 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9334 (grub_get_rtc): Likewise.
9335 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9336 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9337 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9338 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9339 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9340 rather than installing known non-working time source.
9341 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9342 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9343 * include/grub/time.h: Don't include machine/time.h.
9344 * include/grub/efi/time.h: Removed.
9345 * include/grub/i386/efi/time.h: Likewise.
9346 * include/grub/i386/ieee1275/time.h: Likewise.
9347 * include/grub/powerpc/ieee1275/time.h: Likewise.
9348 * include/grub/sparc64/ieee1275/time.h: Likewise.
9349 * include/grub/x86_64/efi/time.h: Likewise.
9351 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9353 Remove dot on i and j when combining with above diacritics.
9355 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9357 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9358 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9359 with dotless variants when any combining above is present.
9361 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9363 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9364 text and not binary.
9366 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9368 Stop polling as soon as we have the packet we were waiting for.
9370 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9372 * grub-core/net/arp.c (have_pending): New var.
9373 (pending_req): Likewise.
9374 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9376 (grub_net_arp_receive): Set have_pending.
9377 * grub-core/net/dns.c (recv_data): New field stop.
9378 (recv_hook): Set stop.
9379 (grub_net_dns_lookup): Init stop and use as stop condition.
9380 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9382 * grub-core/net/net.c (grub_net_poll_cards): New argument
9383 stop_condition. Stop when it goes true.
9384 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9386 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9388 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9390 Keep TX and RX buffers on EFI rather than always allocate new ones.
9392 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9393 card. All users updated.
9394 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9395 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9396 (get_card_packet): Likewise.
9397 (grub_efinet_findcards): Init new fields.
9399 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9401 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9402 compilation error on sparc64.
9404 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9406 Use ITC on IA64 rather than broken routine based on daytime.
9408 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9410 (grub_get_rtc) [__ia64__]: Likewise.
9411 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9412 (get_itc): New function.
9413 (grub_rtc_get_time_ms): Likewise.
9414 (grub_machine_init): Calibrate ITC.
9415 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9416 Keep only on non-ia64. Don't export since it's broken and used only
9417 if TSC is unavailable.
9419 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9421 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9423 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9424 Skip if parent is unused.
9426 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9428 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9430 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9432 Fix wildcard escaping.
9434 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9435 * grub-core/script/execute.c (wildcard_escape): .. to here.
9437 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9438 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9440 * grub-core/script/execute.c (gettext_append): Always escape.
9441 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9442 * grub-core/script/yylex.l: Don't cut away the escaping.
9443 * tests/grub_script_echo1.in: Add tests with wildcard.
9445 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9447 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9448 (ftdi_hw_configure): Likewise.
9449 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9451 (real_config): Handle 1.5 stop bits.
9452 (pl2303_hw_configure): Likewise.
9454 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9456 * Makefile.am: Add ppc linux bootcheck.
9457 * grub-core/tests/boot/linux-ppc.cfg: New file.
9458 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9460 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9462 * tests/grub_script_expansion.in: Skip network protocols.
9464 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9466 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9468 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9470 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9474 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9476 ESCC serial driver for conducting sautomated tests in qemu.
9477 Not tested on real hardware.
9479 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9480 * grub-core/term/ieee1275/escc.c: New file.
9481 * grub-core/Makefile.core.def (escc): New module.
9483 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9485 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9487 (serial_hw_fetch): Don't read invalid handle.
9488 (serial_hw_put): Don't write into invalid handle.
9490 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9492 Add a 1.5 stop bits value.
9494 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9495 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9496 GRUB_SERIAL_STOP_BITS_1_5.
9498 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9501 value rather than let it uninited.
9503 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9505 * grub-core/commands/wildcard.c (+check_file): New function.
9506 (wildcard_expand): Don't expand to non-existing files, expand with
9507 suffix and not attempt to expand if not needed.
9509 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9511 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9512 out of partitions containing other partitions.
9514 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9516 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9517 on some qemu versions with GRUB.
9519 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9521 (grub_openbsd_bootarg_pcibios): New struct.
9522 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9525 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9527 * tests/util/grub-shell.in: Trim firmware output on EFI.
9529 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9531 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9532 and coreboot since it's already in kernel.
9534 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9536 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9537 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9538 to here. New return value start. All users updated.
9539 Recursively scan linear mappings.
9540 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9542 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9543 Use grub_util_get_dm_node_linear_info.
9544 * util/getroot.c (convert_system_partition_to_system_disk): Use
9545 grub_util_info rather than grub_dprintf.
9546 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9548 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9550 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9552 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9553 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9555 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9557 * include/grub/types.h (grub_set_unaligned64): New function.
9558 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9561 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9563 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9564 (grub_ofdisk_fini): Quiesce USB devices.
9566 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9568 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9571 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9573 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9575 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9577 * grub-core/disk/pata.c (grub_pata_pio_read)
9578 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9579 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9581 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9583 Extend automated tests to qemu-mips.
9585 * Makefile.am: reorganise tests and enable qemu-mips.
9586 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9587 * grub-core/tests/boot/linux.init-mips.S: New file.
9588 * tests/partmap_test.in: Handle ata0 disks.
9589 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9592 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9594 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9596 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9599 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9601 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9602 (grub_halt): Likewise.
9603 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9605 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9607 * grub-core/term/serial.c (grub_serial_register)
9608 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9609 the behaviour in line with x86 platforms.
9611 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9613 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9614 (grub_ata_strncpy): Likewise.
9615 (grub_ata_identify): Add missing byteswaps.
9617 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9619 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9621 (screen_read_char): Likewise.
9622 (grub_vga_text_cls): Likewise.
9624 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9626 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9628 (make_file_path): Likewise.
9630 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9632 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9634 Tested by: Paulo Flabiano Smorigo.
9635 Crucial information about API supplied by: Coleen <Last name unknown>.
9636 Reviewed by: Coleen <Last name unknown>.
9638 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9640 * util/grub-mkimage.c: Disable -Wcast-align.
9642 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9644 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9647 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9649 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9651 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9653 * util/grub-probe.c (escape_of_path): Fix double free.
9655 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9657 * grub-core/commands/videoinfo.c (hook): Show pitch.
9659 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9661 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9663 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9665 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9666 (probe): Add ieee1275 to OFW devices.
9668 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9670 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9672 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9674 Handle IBM OFW path.
9676 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9678 (of_path_of_scsi): Handle vdevice.
9680 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9682 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9683 Allocate in multiples of 16 to avoid adding a few bytes free region the
9686 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9688 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9689 Allocate in multiples of 16 to avoid adding a few bytes free region the
9691 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9693 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9695 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9697 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9698 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9700 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9702 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9704 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9706 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9707 resulted in \\ at the end of the line.
9709 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9711 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9712 (grub_parser_cmdline_state): Likewise.
9713 (grub_parser_split_cmdline): Likewise.
9715 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9717 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9718 /dev/root and /dev/dm-*.
9720 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9722 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9723 fix partially stale display.
9725 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9727 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9730 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9733 Fix MBR remapping workaround.
9734 (grub_util_biosdisk_read) [__linux__]: Likewise.
9736 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9738 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9740 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9742 * configure.ac: Bump to beta6.
9744 2012-05-31 Christer Weinigel <christer@weinigel.se>
9746 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9748 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9750 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9751 (grub_cmd_linux): Likewise.
9753 2012-05-31 Christer Weinigel <christer@weinigel.se>
9757 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9758 (GRUB_EHCI_MULT_TWO): Likewise.
9759 (GRUB_EHCI_MULT_THREE): Likewise.
9760 (GRUB_EHCI_CMASK_MASK): New enum value.
9761 (GRUB_EHCI_SMASK_MASK): Likewise.
9762 (GRUB_EHCI_CMASK_OFF): Likewise.
9763 (GRUB_EHCI_SMASK_OFF): Likewise.
9764 (grub_ehci_pci_iter): Enable periodic schedule.
9765 (grub_ehci_parse_notrun): Likewise.
9766 (grub_ehci_restore_hw): Likewise.
9767 (grub_ehci_setup_qh): Set flags for low speed transfers.
9768 (grub_ehci_find_qh): Use periodic list for low speed.
9769 (grub_ehci_setup_transfer): Check periodic queue as well.
9770 (grub_ehci_check_transfer): Likewise.
9771 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9773 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9775 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9778 2012-05-31 Peter Jones <pjones@redhat.com>
9780 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9781 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9782 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9784 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9786 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9787 uninited variable. Allocate at least setup_sects.
9789 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9791 Fix handling of EFI with big memory maps.
9793 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9794 (real_mode_mem): Likewise.
9795 (real_mode_target): Likewise.
9796 (real_mode_pages): Likewise.
9797 (prot_mode_pages): Likewise.
9798 (linux_params): New var.
9799 (linux_cmdline): Likewise.
9800 (free_pages): Don't set real mode variables.
9801 (allocate_pages): Don't allocate real mode memory.
9802 (grub_e820_add_region): Remove the limit.
9803 (grub_linux_boot): Allocate and copy real mode memory.
9804 (grub_linux_unload): Free linux_cmdline.
9805 (grub_cmd_linux): Use temporary storage for parameters.
9806 (grub_cmd_initrd): Likewise.
9807 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9808 (linux_kernel_params): Make it 1K big.
9810 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9812 * Makefile.util.def: Remove -Wno-format.
9813 * grub-core/Makefile.core.def: Likewise.
9815 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9817 * tests/cmp_unit_test.c: Add missing failure message.
9818 * tests/example_unit_test.c: Likewise.
9819 * tests/printf_unit_test.c: Likewise.
9821 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9823 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9824 relaxation of protective MBR requirements.
9826 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9828 * configure.ac: Add condition for COND_HOST_XNU.
9829 * Makefile.util.def (10_xnu): New script.
9830 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9832 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9834 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9837 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9839 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9840 Binary on other platforms stays identical.
9842 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9844 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9847 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9849 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9851 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9853 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9854 rather than defining size_t ourselves to avoid conflict.
9856 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9858 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9859 initialisation to avoid __bzero reference.
9861 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9863 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9865 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9866 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9867 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9868 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9869 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9871 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9873 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9874 * grub-core/kern/misc.c: Likewise.
9875 * grub-core/loader/i386/xnu.c: Likewise.
9876 * include/grub/i386/tsc.h: Likewise.
9877 * include/grub/symbol.h: Likewise.
9879 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9881 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9882 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9885 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9887 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9888 Implement Apple flavour.
9889 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9891 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9893 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9894 (memmove) [__APPLE__]: Likewise.
9895 (memcpy) [__APPLE__]: Likewise.
9896 (memset) [__APPLE__]: Likewise.
9897 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9898 (memmove) [__APPLE__]: Likewise.
9899 (memcpy) [__APPLE__]: Likewise.
9900 (memset) [__APPLE__]: Likewise.
9902 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9904 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9907 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9909 * grub-core/normal/main.c (read_config_file): Provide config_file and
9911 * util/grub.d/41_custom.in: Use config_directoy when available.
9913 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9915 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9916 (grub_bfs_dir): Likewise.
9918 2012-05-27 Peter Jones <pjones@redhat.com>
9920 The old code gives arguments to a printf function which can't work
9921 correctly, and the compiler complains.
9923 * grub-core/tests/example_functional_test.c (example_test): Add
9925 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9926 * include/grub/test.h (grub_test_assert_helper): New declaration.
9927 (grub_test_assert): Use grub_test_assert_helper.
9929 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9931 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9932 (exfctest): ... this to avoid overlong filenames.
9935 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9937 Handle "." and ".." on squashfs.
9939 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9940 Make inode numbers into stack.
9941 (grub_squash_read_symlink): Use stack.
9942 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9943 (make_root_node): Fill stack.
9944 (grub_squash_open): Use stack.
9946 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9948 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9951 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9953 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9954 stderr on test calls.
9956 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9958 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9960 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9962 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9964 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9966 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9969 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9971 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9972 (grub_hfsplus_iterate_dir): Add "." and "..".
9974 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9976 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9977 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9979 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9981 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9982 (find_path): Handle "." and "..".
9984 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9986 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9987 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9988 (grub_affs_iterate_dir): Handle hardlinks.
9990 2012-05-26 Matthew Garrett <mjg@redhat.com>
9992 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9993 (grub_efi_console_fini): Likewise.
9994 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9995 (grub_video_gop_fill_mode_info): Rename to ...
9996 (grub_video_gop_fill_real_mode_info): ... this.
9997 (grub_video_gop_fill_mode_info): New function.
9998 (grub_video_gop_setup): Setup double framebuffer.
9999 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10001 (grub_video_gop_swap_buffers): Copy framebuffer.
10002 (grub_video_gop_fini): Free offscreen buffer.
10003 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10005 (grub_efi_gop_blt_pixel): New struct.
10007 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10009 * gentpl.py: Remove error disabling for objconv.
10011 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10013 * configure.ac: Remove -Wunitialized as it's not available on older
10016 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10018 Fix extent overflow comparator.
10020 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10021 (grub_hfsplus_read_block): Set type.
10022 (grub_hfsplus_cmp_extkey): Compare type.
10024 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10026 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10028 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10030 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10033 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10035 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10036 (dejavu_bold_14.pf2): New target.
10038 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10040 * configure.ac: Fix djvu font detection.
10042 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10044 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10045 ext* instead of ext2.
10047 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10049 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10052 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10054 * docs/grub-dev.texi: Remove dot from .png.
10056 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10058 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10059 protective entry in any slot.
10060 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10061 if protective entry is found in any slot.
10063 Protective entry in non-first slot make no sense but is a widespread
10066 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10068 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10070 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10072 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10074 (grub_reiserfs_open): Don't free root.
10076 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10078 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10079 after freeing for safety.
10081 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10083 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10084 Reported by: Jordan Uggla.
10086 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10088 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10089 actual implementation. Specifically, clarify that the grub menu will
10090 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10093 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10095 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10098 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10100 Remove unjustified hard dependency of normal.mod on gfxterm.
10102 * include/grub/term.h (grub_term_output): New member fullscreen.
10103 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10104 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10105 (grub_gfxterm): Set .fullscreen.
10106 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10107 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10109 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10111 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10112 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10113 Mention case-insensitive AFFS, SFS and JFS.
10115 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10117 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10119 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10121 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10124 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10126 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10127 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10129 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10131 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10132 (grub_jfs_mount): Fill caseins.
10133 (grub_jfs_find_file): Respect caseins.
10135 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10137 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10140 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10142 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10143 New argument origpath. All users updated.
10145 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10147 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10148 (read_attr): Ensure that we read start of possibly compressed block.
10150 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10152 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10153 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10156 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10158 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10159 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10160 (dejavu.pf2): Replace with ...
10161 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10164 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10166 * util/grub.d/20_linux_xen.in: Add missing line.
10168 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10170 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10171 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10172 (grub_utf16_to_utf8): Likewise.
10174 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10176 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10177 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10178 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10179 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10181 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10183 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10185 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10188 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10190 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10191 (grub_udf_read_symlink): Handle read_string failure.
10193 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10195 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10198 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10200 Fix handling of UDF symlinks.
10202 * grub-core/fs/udf.c (read_string): New argument outbuf.
10204 (grub_ufs_read_symlink): Rename to ...
10205 (grub_udf_read_symlink): ... this. All users updated.
10206 Handle symlinks with more than one component.
10208 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10210 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10211 symlinks. Replace leading colon with a slash.
10213 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10215 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10218 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10220 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10221 match in inner node.
10223 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10225 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10226 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10227 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10228 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10229 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10230 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10231 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10232 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10233 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10235 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10237 Use grub-probe and not cmp to check that disk is empty.
10239 * util/grub-install.in: Use grub-probe for zero-check.
10240 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10241 (probe): Handle PRINT_ZERO_CHECK.
10242 (argp_parser): Handle -t zero_check.
10244 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10246 Flush block cache on adding disk to device map.
10248 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10249 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10251 (read_device_map): Likewise.
10252 (open_device): Flush on opening.
10254 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10256 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10257 (handle_symlink): Fix off-by-one error.
10258 Canonicalize the target.
10259 (grub_cpio_dir): Canonicalize the name.
10262 (grub_cpio_open): Canonicalize the name.
10264 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10266 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10269 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10271 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10272 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10274 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10276 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10277 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10280 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10282 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10285 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10287 Fix UFS1 big file support.
10289 * grub-core/fs/ufs.c (INODE): Removed.
10290 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10292 (INODE_MODE): Simplify.
10293 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10294 (grub_ufs_lookup_symlink): Don't use INODE.
10296 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10298 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10300 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10301 (grub_minix_data): Replace log_block_size with block_size.
10302 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10303 (grub_minix_mount): Fill block_size.
10305 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10307 * configure.ac: Bump to beta5.
10309 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10311 Fix wrapped HFS+ handling.
10313 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10314 blocks_start. All users updated.
10315 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10317 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10319 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10321 Fix long symlinks on reiserfs.
10323 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10324 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10325 (grub_reiserfs_iterate_dir): Save size for non-directories.
10326 (grub_reiserfs_open): Don't reread stat block as we already know the
10328 (grub_reiserfs_read): Split into...
10329 (grub_reiserfs_read_real): ... and ...
10330 (grub_reiserfs_read): ...this.
10332 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10334 Fix non-indexed JFS.
10336 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10337 (grub_jfs_data): New field namecomponentlen.
10338 (grub_jfs_mount): Fill namecomponentlen.
10339 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10341 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10343 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10344 * tests/grub_script_echo1.in: Add tests.
10346 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10348 * util/grub-install.in: Ignore empty devicetree directory.
10350 2012-05-08 Bean <bean123ch@gmail.com>
10352 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10354 (free_rsm): Free header as well.
10355 (free_old_fragments): Fix memory leak.
10356 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10357 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10358 (destroy_pq): Likewise.
10359 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10361 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10363 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10364 resulting hash as a precaution.
10366 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10368 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10369 '_' in variable names.
10370 * grub-core/net/net.c (grub_net_network_level_interface_register):
10373 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10375 Fix AFFS with non-512B blocks.
10377 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10378 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10379 (grub_affs_data): Replace blocksize with log_blocksize.
10380 (grub_affs_read_block): Fix non-512B blocks.
10381 (grub_affs_read_symlink): Likewise.
10382 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10383 (grub_affs_read): Fix non-512B blocks.
10384 (grub_affs_label): Likewise.
10385 (grub_affs_mtime): Likewise.
10386 (grub_affs_mount): Fix block detection routine.
10388 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10390 Add filesystem mtime to AFFS.
10392 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10393 (aftime2ctime): New function.
10394 (grub_affs_dir): Use aftime2ctime.
10395 (grub_affs_label): Fix return value.
10396 (grub_affs_mtime): New function.
10397 (grub_affs_fs): Add mtime.
10399 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10401 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10404 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10406 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10409 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10411 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10413 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10415 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10417 (FLAGS_CASE_SENSITIVE): New enum value.
10418 (cache_entry): New struct.
10419 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10420 cache_size and cache.
10421 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10422 Add log_blocksize and fshelp_flags.
10423 (grub_sfs_read_extent): Handle non-512 blocks.
10424 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10425 (grub_sfs_read_file): Handle non-512 blocks.
10426 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10428 (grub_sfs_read_symlink): Handle non-512 blocks.
10429 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10430 (grub_sfs_dir): Free cache.
10431 (grub_sfs_close): Likewise.
10433 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10435 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10438 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10440 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10442 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10444 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10446 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10449 (grub_sfs_read_extent): Likewise.
10450 (grub_sfs_read_block): Likewise.
10451 (grub_sfs_mount): Likewise.
10452 (grub_sfs_iterate_dir): Likewise.
10453 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10454 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10456 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10458 Fix errors on compressed NTFS with 512B clusters.
10460 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10462 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10464 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10465 Relax check for inline extents.
10466 (ntfscomp): Return correct -1 on error and not 0.
10468 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10470 * util/grub-install.in: Fix handling of prefix containing spaces.
10472 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10474 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10475 (grub_squash_read_data): Fix offset byte-swapping.
10477 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10479 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10480 per common usage and preffered in several parts of code.
10481 (grub_memcmp): Likewise.
10482 (grub_strncmp): Likewise.
10483 * include/grub/misc.h (grub_strcasecmp): Likewise.
10484 (grub_strncasecmp): Likewise.
10485 * Makefile.util.def (cmp_test): New test.
10486 (grub_script_strcmp): Likewise.
10487 * tests/cmp_unit_test.c: New file.
10488 * tests/grub_script_strcmp.in: Likewise.
10489 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10491 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10493 * include/grub/pci.h: Move enums into no-asm part.
10495 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10497 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10499 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10501 * util/getroot.c (find_hurd_root_device): Try to make error message
10502 and comments to translators clearer.
10504 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10506 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10508 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10510 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10513 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10515 * docs/grub.cfg: Update.
10517 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10519 * docs/grub.texi (PXE): Remove not present variables.
10521 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10523 * grub-core/net/net.c (defserver_set_env): New function.
10524 (defserver_get_env): Likewise.
10525 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10527 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10529 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10532 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10534 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10535 * grub-core/kern/emu/hostdisk.c: Likewise.
10537 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10539 Handle hurd userspace partitions.
10541 * util/getroot.c (find_hurd_root_device): New function.
10542 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10544 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10546 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10548 Reported by: Bastian Blank.
10550 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10552 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10553 crossing page boundary.
10555 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10557 Fix B-tree search in BFS, especially in presence of non-ASCII
10560 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10561 (find_in_b_tree): Use standard bsearch + btree algorithm.
10563 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10565 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10568 2012-05-03 Matthew Garrett <mjg@redhat.com>
10569 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10571 Suspend broadcom cards in order to stop their DMA.
10573 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10574 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10575 (pci): Don't build on x86 EFI.
10576 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10577 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10579 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10580 stop_broadcom if running on EFI.
10581 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10582 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10583 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10584 (grub_pci_find_capability): New proto.
10586 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10588 * docs/grub.texi: Remove dot from the extension as it apparently
10589 doesn't work with some makeinfo versions.
10591 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10593 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10594 with GRUB expectance.
10596 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10598 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10600 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10602 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10603 zero after directory block since last entry may be not 0-terminated if
10604 it ends on block boundary. Use continue instead of if spanning whole
10607 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10609 Support 4K sectors UDF inline files.
10611 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10612 (grub_udf_extended_file_entry): Likewise.
10613 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10615 (get_fshelp_size): New function.
10616 (grub_udf_read_icb): Read whole block.
10617 (grub_udf_iterate_dir): Likewise.
10618 (grub_udf_dir): Likewise.
10619 (grub_udf_open): Likewise.
10621 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10623 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10625 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10627 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10628 inline symlinks in addition to workaround.
10630 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10632 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10634 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10636 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10638 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10640 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10642 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10644 Fix reiserfs big seek times.
10646 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10647 exact. All users updated.
10648 (grub_reiserfs_read): Use nearest btree search for seeking.
10649 Fix return value on error.
10651 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10653 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10655 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10656 * docs/grub.texi: Update menuentry description.
10658 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10660 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10661 crash when embedding onto filesystem.
10663 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10665 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10668 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10670 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10672 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10674 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10677 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10678 2012-05-01 Bean <bean123ch@gmail.com>
10680 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10682 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10685 Special behaviour for len = 0 to read whole file isn't used anywhere and
10686 can cause buffer ovewrflows in several places.
10688 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10690 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10692 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10694 Handle RAIDZ on non-512B sectors.
10696 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10697 max_children_ashift.
10698 (fill_vdev_info_real): Fill max_children_ashift.
10699 (read_device): Use max_children_ashift.
10701 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10703 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10705 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10707 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10709 * docs/grub.texi: Update device.map parts.
10711 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10713 Don't scan into non-diskfilter devices having diskfilter names.
10715 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10716 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10718 (scan_disk_hook): New function.
10720 2012-04-29 Bean <bean123ch@gmail.com>
10722 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10725 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10727 * configure.ac: Detect starfield theme font path
10728 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10730 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10732 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10733 geometry on serial consoles.
10735 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10737 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10738 because of network consoles.
10740 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10742 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10745 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10747 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10748 falls on Q syndrom.
10750 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10752 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10753 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10755 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10757 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10758 Allocate at lest 8192 for temporary buffer as required for lzo.
10760 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10763 to cluster_bits, since it's already added in.
10764 (grub_fat_read_data): Likewise.
10766 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10768 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10769 as long as cluster size is multiple of 512 bytes.
10771 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10773 * util/grub-mkrescue.in: Fix locale directory.
10775 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10777 * grub-core/kern/emu/hostdisk.c (map): Make static.
10779 2012-04-23 Bean <bean123ch@gmail.com>
10781 * util/grub-fstest.c (fstest): Add missing break.
10783 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10787 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10788 not define nr variable.
10789 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10790 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10791 grub_find_device): Do not define.
10793 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10795 Fix kfreebsd compile and behaviour.
10797 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10799 * util/getroot.c: Fix wait.h include.
10800 (grub_guess_root_devices): Error if grub_find_device fails.
10801 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10802 (grub_util_get_dev_abstraction): Likewise.
10803 (grub_util_pull_device): Likewise.
10804 (grub_util_get_grub_dev): Likewise.
10805 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10807 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10809 Fix and unify wholedisk detection.
10811 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10812 is_part. All users updated.
10813 (device_is_wholedisk): Removed.
10814 (grub_util_biosdisk_get_grub_dev): Use is_part.
10816 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10818 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10821 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10823 * configure.ac: Bump to beta4.
10825 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10827 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10828 --fs-uuid --set UUID syntax.
10830 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10832 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10835 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10837 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10839 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10841 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10843 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10845 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10847 2012-04-18 Bean <bean123ch@gmail.com>
10849 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10852 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10854 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10856 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10857 corresponding to GRUB partitions.
10858 (grub_util_biosdisk_write): Likewise.
10860 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10862 Scan mdraid before LVM.
10864 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10865 (grub_diskfilter_register_front): ... this.
10866 (grub_diskfilter_register_back): New function.
10867 All users of grub_diskfilter_register updated.
10869 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10871 * util/grub-install.in: Fix an automatic target detection bug.
10873 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10875 * util/grub-install.in: New option --efi-directory.
10877 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10879 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10880 boot services if we have no other choice.
10882 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10884 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10886 * tests/util/grub-shell.in: Update to --directory.
10888 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10890 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10892 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10894 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10895 (grub_minix_read_file): Likewise.
10896 (grub_minix_read_inode): Likewise.
10897 (grub_minix_find_file): Likewise.
10898 (grub_minix_dir): Likewise.
10900 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10902 * util/grub-setup.c (setup): Fix partition handling and blocklist
10905 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10907 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10908 redundant buggy overlap check.
10910 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10912 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10915 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10917 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10918 kh.loadflags on pre-2.00 kernels.
10920 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10922 Terminate UNDI and PXE before launching the payload to avoid problems
10925 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10926 (grub_loader_flags): ... this. All users updated.
10927 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10928 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10929 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10930 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10932 (grub_pxe_restore): Likewise.
10933 (fini_hnd): New var.
10934 (GRUB_MOD_INIT): Register shutdown hook.
10935 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10936 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10937 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10938 (grub_loader_set): Rename second argument to flags.
10940 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10942 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10944 (grub_get_num_of_utf8_bytes): New function.
10945 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10946 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10948 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10949 (grub_ucs4_to_utf8): Change return type.
10951 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10953 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10955 * grub-core/fs/bfs.c (hop_level): Likewise.
10956 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10958 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10960 * grub-core/lib/adler32.c: Recode due to license unclearness.
10962 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10964 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10965 (test_header): Likewise.
10967 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10969 Fix --help formatting.
10971 * util/grub-mkconfig_lib.in (print_option_help): New function.
10972 (grub_fmt): Likewise.
10973 * util/grub-install.in: Use print_option_help and grub_fmt.
10974 * util/grub-kbdcomp.in: Likewise.
10975 * util/grub-mkconfig.in: Likewise.
10976 * util/grub-mknetdir.in: Likewise.
10977 * util/grub-mkrescue.in: Likewise.
10978 * util/grub-mkstandalone.in: Likewise.
10979 * util/grub-reboot.in: Likewise.
10980 * util/grub-set-default.in: Likewise.
10981 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10983 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10985 * linguas.sh: Remove autogenerated *.po.
10987 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10989 * po/README: Move language fetcing to ...
10990 * linguas.sh: ... here.
10991 * po/README: Point to linguas.sh.
10993 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10995 * po/README: Exclude ko.po due to disclaimer problems.
10997 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10999 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11001 (grub_gettext_translate_real): Handle 0th string.
11002 (grub_gettext_translate): Ensure that "" isn't translated.
11004 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11006 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11007 TRANSLATORS comment.
11008 (grub_diskfilter_print_partmap): Propagate changing of error into
11011 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11013 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11014 to uint64_t to prevent overflow.
11015 (grub_diskfilter_lv): Increase start_extent and extent_count
11016 to uint64_t to prevent overflow.
11018 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11020 * configure.ac: Increase version.
11022 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11024 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11026 * po/Rules-translit: New file.
11027 * po/arabic.sed: Likewise.
11028 * po/cyrillic.sed: Likewise.
11029 * po/greek.sed: Likewise.
11030 * po/hebrew.sed: Likewise.
11031 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11032 * po/Makefile.in.in: Add extra_dist4.
11034 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11036 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11038 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11039 modify names. Introduce MODE_BIGENDIAN.
11040 * grub-core/fs/minix_be.c: New file.
11041 * grub-core/fs/minix2_be.c: Likewise
11042 * grub-core/fs/minix3_be.c: Likewise.
11043 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11045 * grub-core/Makefile.core.def (minix_be): New module.
11046 (minix2_be): Likewise.
11047 (minix3_be): Likewise.
11049 2012-04-01 Felix <email@hamburg.de>
11051 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11052 (devs): Add MBP 2011.
11054 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11056 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11058 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11060 * grub-core/normal/cmdline.c (print_completion): New field
11062 (grub_cmdline_get): Handle width properly.
11064 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11066 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11068 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11070 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11071 after 29th of February.
11073 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11075 Fix exfat endianness handling.
11077 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11078 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11079 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11080 Byte-swap utf16 when necessary.
11081 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11083 2012-03-31 Anton Blanchard <anton@samba.org>
11084 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11086 Fix btrfs endianness handling.
11088 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11089 (lower_bound): Make root uint64_t. Use root in le.
11090 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11091 (find_path): Fix template key init.
11092 (grub_btrfs_dir): Fix mtime byteswap.
11093 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11095 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11097 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11098 recursion_depth. Break infinite resursions. All users updated.
11100 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11102 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11104 Reported by: Peter Jones.
11106 2012-03-31 Anton Blanchard <anton@samba.org>
11108 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11111 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11113 * util/grub-install.in: Fix nvram call for PreP.
11115 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11117 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11118 the error when some elements are missing into a warning.
11120 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11122 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11124 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11126 * docs/grub.texi (Invoking grub-probe): New section.
11127 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11129 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11131 Fix tab and wide character handling in editor and menu.
11133 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11134 agglomerate control characters with combining marks.
11135 (bidi_line_wrap): Allow break on tab.
11136 (grub_unicode_get_comb_start): New function.
11137 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11139 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11141 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11142 fixed_tab_size. All users updated.
11143 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11144 (grub_term_getcharwidth): Handle \t.
11145 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11148 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11150 Handle big-endian mdraid.
11152 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11153 * grub-core/Makefile.core.def (mdraid09_be): New module.
11154 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11155 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11156 * grub-core/disk/mdraid_linux_be.c: New file.
11158 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11160 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11162 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11164 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11165 missing quotes which caused confusion among translators.
11167 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11169 * util/grub-mkconfig_lib.in: Fix typo.
11171 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11173 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11175 * tests/grub_script_leading_whitespace.in: New file.
11176 * Makefile.util.def (grub_script_leading_whitespace): New test.
11178 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11180 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11183 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11185 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11186 starts with control character.
11188 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11190 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11192 (grub_gdb_outbuf): Likewise.
11194 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11196 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11197 zero terminator. Fixes a crash.
11199 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11201 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11203 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11204 images independently of preffered adderss field.
11206 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11208 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11209 * grub-core/commands/regexp.c: Likewise.
11210 * grub-core/loader/i386/linux.c: Likewise.
11211 * grub-core/partmap/msdos.c: Likewise.
11212 * grub-core/script/execute.c: Likewise.
11213 * grub-core/term/gfxterm.c: Likewise.
11215 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11217 Add variable parsing in $"..." and fix several mismatches with bash.
11219 * Makefile.util.def (grub_script_gettext): New test.
11220 * grub-core/script/execute.c (parse_string): New function.
11221 (gettext_append): Likewise.
11222 (grub_script_arglist_to_argv): Use gettext_append.
11223 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11224 * tests/grub_script_gettext.in: New file.
11226 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11228 Fix handling of leading spaces in scripts.
11230 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11232 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11233 other than skipping \r. All users updated.
11234 * tests/grub_script_echo1.in: Add space-related tests.
11235 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11237 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11239 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11241 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11243 * configure.ac: Bump up the version to beta2.
11245 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11247 Fix gettext reload bugs (e.g. inability to disable gettext
11250 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11251 main_context and secondary_context. All functions updated.
11252 (grub_gettext_translate): Rename to ...
11253 (grub_gettext_translate_real): ... this. Return NULL on failed
11255 (grub_gettext_translate): Handle secondary context.
11256 (grub_gettext_delete_list): Close file and zero-out the context.
11257 (grub_mofile_open): Don't call grub_gettext_delete_list.
11259 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11260 if locale="" to avoid pointless error message.
11261 (grub_gettext_env_write_lang): Update lang even if load fails.
11262 Handle secondary context.
11263 (grub_gettext_reread_prefix): New function.
11264 (read_main): Likewise.
11265 (read_secondary): Likewise.
11266 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11267 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11268 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11269 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11271 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11273 * configure.ac: Decrease warning level to avoid spurious warnings and
11274 to be able to compile with GCC 4.2.
11275 * Makefile.util.def: Remove -Wno-error=logical-op.
11277 2012-03-10 William Bittner <william.bittner@gmail.com>
11279 * util/import_unicode.py: Add missing brackets around string for
11282 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11284 Fix efi chainloader on network root.
11286 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11288 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11291 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11293 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11294 unused show_text member.
11295 * docs/grub.texi: Document "text" property.
11297 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11299 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11302 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11304 Fix IMSM handling on Fedora.
11306 * util/getroot.c (grub_util_is_imsm): New function.
11307 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11309 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11311 * Makefile.am: Strip gold section.
11312 * conf/Makefile.common: Likewise.
11313 * gentpl.py: Likewise.
11314 * grub-core/Makefile.core.def: Likewise.
11315 * grub-core/genmod.sh.in: Likewise.
11317 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11319 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11320 * util/grub.d/20_linux_xen.in: Likewise.
11321 Based on Debian patch.
11323 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11325 * util/grub.d/10_linux.in: Fix syntax error resulting in
11326 Richard Laager's patch.
11327 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11329 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11331 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11334 2012-03-10 Richard Laager <rlaager@wiktel.com>
11336 * util/grub.d/10_linux.in: Fix ZFS root passing.
11338 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11340 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11341 * grub-core/commands/xnu_uuid.c: Likewise.
11342 * grub-core/loader/efi/appleloader.c: Likewise.
11343 * grub-core/script/execute.c: Likewise.
11344 * grub-core/script/main.c: Likewise.
11345 * util/grub-mkfont.c: Likewise.
11347 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11349 * util/grub-mkfont.c (options): Use more appropriate "select" that
11350 "set" for face index.
11352 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11354 * util/grub-editenv.c (options): Gettextize command summaries.
11356 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11358 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11359 "out of memory" error messagge.
11361 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11363 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11364 of diskfilter for diskfilter on diskfilter support.
11366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11368 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11370 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11377 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11379 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11381 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11383 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11385 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11388 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11390 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11392 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11394 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11396 * util/grub-install.in: Fix and gettextize error message.
11398 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11400 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11402 * util/grub-mount.c (options): Likewise.
11404 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11406 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11408 * grub-core/commands/search_wrap.c (options): Likewise.
11410 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11412 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11414 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11416 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11418 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11421 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11423 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11424 "temporary" since it's used in identifier and is limited in space.
11426 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11428 * po/POTFILES.in: Regenerate. Include *.h since they contain
11429 translatable strings as well.
11431 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11433 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11434 byte-swap on big-endian.
11435 Reported by: Lennart Sorensen
11437 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11439 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11440 (allocate_pages): Improve dprintf.
11441 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11442 code32_start. Fill code32_start and kernel_alignment in params.
11443 (grub_cmd_initrd): Use prot_init_space.
11445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11447 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11449 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11451 * util/grub-install.in: Add missing dot at the end of sentence.
11453 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11455 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11456 * grub-core/commands/videotest.c: Likewise.
11457 * grub-core/loader/i386/linux.c: Likewise.
11459 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11461 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11463 Reported by: Milo Casagrande.
11465 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11468 * grub-core/commands/gptsync.c: Likewise.
11469 * grub-core/commands/hashsum.c: Likewise.
11470 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11471 * grub-core/commands/legacycfg.c: Likewise.
11472 * grub-core/io/gzio.c: Likewise.
11473 * grub-core/net/net.c: Likewise.
11474 * grub-core/term/gfxterm.c: Likewise.
11475 * grub-core/term/terminfo.c: Likewise.
11476 * grub-core/tests/test_blockarg.c: Likewise.
11477 * grub-core/video/video.c: Likewise.
11478 * util/grub-install.in: Likewise.
11479 * util/grub-mkfont.c: Likewise.
11481 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11483 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11485 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11487 * grub-core/commands/search_wrap.c (options): Fix a typo.
11488 Reported by: David Prévot.
11490 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11492 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11495 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11497 * util/grub-script-check.c (main): Fix a syntax error message which was
11500 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11502 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11504 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11506 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11509 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11511 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11513 * util/grub-mount.c (options): Likewise.
11515 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11517 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11519 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11521 * grub-core/net/http.c: Add TRANSLATORS comments.
11522 * grub-core/normal/cmdline.c: Likewise.
11523 * grub-core/normal/misc.c: Likewise.
11524 * grub-core/partmap/msdos.c: Likewise.
11525 * grub-core/parttool/msdospart.c: Likewise.
11526 * grub-core/script/execute.c: Likewise.
11527 * grub-core/script/main.c: Likewise.
11528 * grub-core/term/terminfo.c: Likewise.
11529 * grub-core/video/bitmap.c: Likewise.
11530 * util/grub-install.in: Likewise.
11531 * util/grub-mkimage.c: Likewise.
11532 * util/grub-mklayout.c: Likewise.
11533 * util/grub-setup.c: Likewise.
11535 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11537 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11538 with similar messages in grub-fstest.
11540 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11542 * util/grub-install.in: Unify "option requires an argument" message
11543 with similar messages in other files.
11544 * util/grub-mkconfig.in: Likewise.
11546 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11548 * util/grub-set-default.in: Replace printf with gettext_printf (the
11549 string in in question is already translated from grub-reboot)
11551 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11553 * configure.ac: Bump up the version to beta1.
11555 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11557 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11558 case when min_align = 0.
11560 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11562 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11563 and fix a case when line_start overflows.
11565 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11567 * util/grub-reboot.in (usage): Mention id posibility.
11568 * util/grub-set-default.in (usage): Likewise.
11570 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11572 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11573 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11574 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11575 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11576 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11577 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11578 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11580 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11582 * grub-core/commands/menuentry.c (options): Remove
11583 GRUB_ARG_OPTION_REPEATABLE.
11584 Reported by: Andreas Vogel
11586 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11588 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11590 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11592 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11595 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11597 Use sort -V by the idea of Georgi Georgiev.
11599 * util/grub-mkconfig_lib.in (version_sort): New function.
11600 (version_test_numeric): Use version_sort.
11602 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11604 Use submenus in grub-mkconfig.
11606 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11607 * util/grub-mkconfig_lib.in (grub_quote): New function.
11608 (gettext_printf): Use gettext and not gettext_quoted to fix several
11610 * util/grub.d/10_hurd.in: Use submenus.
11611 * util/grub.d/10_kfreebsd.in: Likewise.
11612 * util/grub.d/10_linux.in: Likewise.
11613 * util/grub.d/10_netbsd.in: Likewise.
11614 * util/grub.d/20_linux_xen.in: Likewise.
11615 * util/grub.d/30_os-prober.in: Likewise.
11616 * util/grub.d/10_illumos.in: Add missing quoting.
11617 * util/grub.d/10_windows.in: Likewise.
11619 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11621 Fix menu title instability bug.
11623 * grub-core/commands/menuentry.c (options): New option --id.
11624 (grub_normal_add_menu_entry): New argument id. All users updated.
11625 (grub_cmd_menuentry): Handle --id.
11626 (grub_menu_init): Accept unknown arguments.
11627 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11628 feature_menuentry_options.
11629 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11631 (get_entry_number): Match with id as well.
11632 * include/grub/menu.h (grub_menu_entry): New member id.
11633 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11634 * util/grub.d/00_header.in: Define menuentry_id_option.
11635 * util/grub.d/10_hurd.in: Define id.
11636 * util/grub.d/10_illumos.in: Likewise.
11637 * util/grub.d/10_kfreebsd.in: Likewise.
11638 * util/grub.d/10_linux.in: Likewise.
11639 * util/grub.d/10_netbsd.in: Likewise.
11640 * util/grub.d/10_windows.in: Likewise.
11641 * util/grub.d/20_linux_xen.in: Likewise.
11642 * util/grub.d/30_os-prober.in: Likewise.
11644 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11646 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11647 "scope" with "body".
11649 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11651 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11652 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11653 prot_size and prot_file_size.
11655 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11657 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11658 All users updated. If easily=1 require raid-5/-6 to be full.
11659 (is_node_readable): Likewise.
11660 (scan_devices): Scan incomplete but readable LVs at the end.
11661 (grub_diskfilter_memberlist): Pull missing devices.
11662 (insert_array): Skip scanning until device is complete or scan is
11664 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11666 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11667 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11669 2012-03-03 Matthew Garrett <mjg@redhat.com>
11670 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11672 Avoid EFI boot services when loading Linux.
11674 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11675 avoid_efi_bootservices. All users updated.
11676 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11677 argument avoid_efi_bootservices. All users updated.
11678 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11679 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11680 align, min_align, relocatable, prefered_address. All users updated.
11681 Allocate avoiding boot services if kernel is relocatable.
11682 (grub_cmd_linux): Check if kernel is relocatable.
11683 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11684 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11685 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11686 avoid_efi_boot_services.
11687 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11688 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11689 (linux_kernel_params): Likewise.
11691 2012-03-03 Matthew Garrett <mjg@redhat.com>
11692 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11696 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11698 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11699 modes. Set gop_handle.
11700 (grub_video_gop_get_edid): New function.
11701 (grub_gop_get_preferred_mode): Likewise.
11702 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11703 (grub_video_efi_gop_adapter): Set .get_edid.
11704 * include/grub/efi/edid.h: New file.
11705 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11707 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11709 * util/grub-install.in: Load efivars unconditionally.
11711 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11713 * po/Rules-piglatin: Change suffix from .po-update-en to
11714 .po-update-en-piglatin.
11716 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11720 * po/piglatin.sed: New file.
11721 * po/en@piglatin.header: Likewise.
11722 * po/Rules-piglatin: Likewise.
11723 * po/README: Add en@piglatin to autogenerated languages.
11725 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11727 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11729 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11730 "Check" since we don't check anything.
11731 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11733 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11734 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11735 (grub_md_sha512_real): Likewise.
11737 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11739 * grub-core/commands/gptsync.c: Fix typographic quoting.
11740 * grub-core/commands/ieee1275/suspend.c: Likewise.
11741 * grub-core/commands/parttool.c: Likewise.
11742 * grub-core/commands/search_wrap.c: Likewise.
11743 * grub-core/commands/videoinfo.c: Likewise.
11744 * grub-core/gfxmenu/gui_label.c: Likewise.
11745 * grub-core/hello/hello.c: Likewise.
11746 * grub-core/kern/emu/main.c: Likewise.
11747 * grub-core/net/net.c: Likewise.
11748 * grub-core/normal/menu.c: Likewise.
11749 * grub-core/normal/menu_text.c: Likewise.
11750 * grub-core/normal/misc.c: Likewise.
11751 * util/grub-editenv.c: Likewise.
11752 * util/grub-install.in: Likewise.
11753 * util/grub-kbdcomp.in: Likewise.
11754 * util/grub-mkconfig.in: Likewise.
11755 * util/grub-mknetdir.in: Likewise.
11756 * util/grub-mkrescue.in: Likewise.
11757 * util/grub-mkstandalone.in: Likewise.
11758 * util/grub-reboot.in: Likewise.
11759 * util/grub-set-default.in: Likewise.
11760 * util/grub-setup.c: Likewise.
11761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11763 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11765 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11766 * grub-core/commands/keystatus.c: Likewise.
11767 * grub-core/commands/loadenv.c: Likewise.
11768 * grub-core/commands/probe.c: Likewise.
11769 * grub-core/commands/regexp.c: Likewise.
11770 * grub-core/commands/true.c: Likewise.
11771 * grub-core/commands/videoinfo.c: Likewise.
11772 * grub-core/disk/cryptodisk.c: Likewise.
11773 * grub-core/disk/ldm.c: Likewise.
11774 * grub-core/disk/loopback.c: Likewise.
11775 * grub-core/disk/luks.c: Likewise.
11776 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11777 * grub-core/kern/disk.c: Likewise.
11778 * grub-core/kern/emu/hostdisk.c: Likewise.
11780 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11782 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11783 * util/grub-install.in: Add missing quote in the comment.
11785 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11787 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11788 * grub-core/commands/lsmmap.c: Likewise.
11789 * grub-core/commands/minicmd.c: Likewise.
11790 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11791 * grub-core/commands/regexp.c: Likewise.
11792 * grub-core/gdb/gdb.c: Likewise.
11793 * grub-core/term/gfxterm.c: Likewise.
11794 * util/grub-mkconfig.in: Likewise.
11795 * util/grub-mkfont.c: Likewise.
11796 * util/grub-mklayout.c: Likewise.
11797 * util/grub-mknetdir.in: Likewise.
11798 * util/grub-mkrescue.in: Likewise.
11799 * util/grub.d/30_os-prober.in: Likewise.
11801 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11803 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11804 with "Direct color" and "Packed" with "Packed pixel".
11805 (grub_cmd_videoinfo): Simplify legend.
11807 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11809 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11810 absolutely unclear error message.
11812 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11814 * util/grub-mkstandalone.in: Remove confusing leftover print.
11816 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11818 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11820 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11821 (GRUB_MOD_INIT): Likewise.
11822 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11824 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11826 * util/grub-install.in (usage): Likewise.
11827 Spell ID in whole letters.
11828 Add missing ending dot.
11830 * util/grub-reboot.in: Fix capitalisation.
11831 * util/grub-set-default.in: Likewise.
11833 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11835 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11836 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11837 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11838 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11839 Disable -Werror for -Wdeprecated-declarations.
11840 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11841 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11842 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11843 (grub_util_get_grub_dev): Make luks handling dependent on
11844 HAVE_DEVICE_MAPPER and not __linux__.
11845 (get_win32_path): Fix format security.
11846 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11847 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11848 Don't try grub_find_zpool_from_dir.
11849 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11850 #ifdef-out paresdir.
11852 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11854 * util/grub-pe2elf.c (usage): Add missing noreturn.
11855 (write_section_data): Rename name to shname to avoid shadowing.
11856 (write_symbol_table): Rename name to symname to avoid shadowing.
11857 Fix write_reloc_section call.
11859 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11861 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11862 to ensure that it's after the last byte of .text.
11864 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11866 * util/ieee1275/ofpath.c (my_isdigit): New function.
11867 (trailing_digits): Use my_isdigit.
11868 (strip_trailing_digits): Likewise.
11870 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11872 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11873 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11875 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11877 * grub-core/kern/i386/pc/startup.S: Define __start.
11879 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11881 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11882 strip already transforms he format.
11884 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11886 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11888 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11890 * util/grub-install.in: Add missing gettext init.
11891 * util/grub-kbdcomp.in: Likewise.
11892 * util/grub-mkconfig.in: Likewise.
11893 * util/grub-mknetdir.in: Likewise.
11894 * util/grub-mkrescue.in: Likewise.
11895 * util/grub-mkstandalone.in: Likewise.
11896 * util/grub-reboot.in: Likewise.
11897 * util/grub-set-default.in: Likewise.
11898 * util/grub.d/00_header.in: Likewise.
11899 * util/grub.d/10_hurd.in: Likewise.
11900 * util/grub.d/10_windows.in: Likewise.
11901 * util/grub.d/30_os-prober.in: Likewise.
11902 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11906 * po/Rules-swiss: Fix header comment.
11908 2012-02-29 Andreas Vogel <anvoit>
11910 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11911 resulted in leak of arguments.
11913 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11916 reed_solomon_size const definition instead of computing it since
11917 Apple assembler doesn't support the later.
11919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11921 * gentpl.py (kernel): Rewrite Apple part.
11923 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11925 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11927 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11929 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11931 (load_image): Likewise.
11933 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11935 * configure.ac: Fix a typo in previous commit.
11937 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11939 Don't add -Wl,-N on Apple platform.
11941 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11942 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11944 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11946 * grub-core/Makefile.core.def (lzma_decompress): Use
11947 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11949 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11951 * grub-core/genmod.sh.in: Rewrite the Apple part.
11953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11955 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11960 * acinclude.m4 (grub_CHECK_PIC): New test.
11961 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11965 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11966 to avoid the warning.
11968 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11970 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11971 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11972 after. All users updated.
11974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11976 Use the common size routine in hostfs so we can read disks as well.
11978 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11979 (grub_util_get_fd_size): ... this. Return size in bytes.
11981 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11982 grub_util_get_fd_size.
11984 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11986 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11987 Add blocksize retrieval.
11989 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11991 * configure.ac: Restore CFLAGS after efiemu check.
11993 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11995 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11998 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12000 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12004 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12005 (grub_cmd_halt): Likewise.
12007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12009 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12010 for local arithmetics.
12011 Break %sp init into 2 instructions.
12012 Add 0 byte at the end.
12014 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12016 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12019 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12021 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12024 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12026 * grub-core/disk/ldm.c (make_vg): Init part.name.
12027 (grub_ldm_detect): Silence spurious warning.
12028 (grub_util_is_ldm): Likewise.
12030 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12032 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12033 sane value to avoid a spurious warning.
12035 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12037 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12038 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12040 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12042 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12043 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12045 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12047 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12048 hardcoding the relevant info.
12050 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12052 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12053 missing const qualifiers.
12054 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12056 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12058 * util/getroot.c [__APPLE__]: Add missing includes.
12059 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12061 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12063 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12065 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12067 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12070 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12072 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12074 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12077 and grub_file_close call.
12079 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12081 Add LZSS Mach-O support (needed for new xnu kernelcache).
12083 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12084 * grub-core/loader/lzss.c: New file.
12085 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12086 on Mach-O open failure.
12087 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12088 Don't free cmdsXX in uncompressedXX is set.
12089 (grub_macho_file): Init new fields.
12090 New argument is_64bit. All users updated.
12091 Handle compressed. Error out if no suitable architecture is found.
12093 (grub_macho_open): New argument is_64bit. All users updated.
12094 * grub-core/loader/macho32.c: Add defines for new fields.
12095 * grub-core/loader/macho64.c: Likewise.
12096 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12097 (grub_macho_parse): Handle compressed.
12098 Defer actual processing if compressed.
12099 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12100 "filename". All users updated.
12101 (grub_macho_size): New argument "filename". All users updated.
12102 (grub_macho_get_entry_point): Likewise.
12103 (grub_macho_load): Handle compressed.
12104 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12105 (GRUB_MACHO_LZSS_OFFSET): New define.
12106 (grub_decompress_lzss): New proto.
12107 * include/grub/machoload.h (grub_macho_file): New fields to handle
12109 (grub_macho_contains_macho64): Remove proto.
12110 (grub_macho_contains_macho32): Likewise.
12111 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12117 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12121 * Makefile.am (starfield_theme_files): New var.
12122 (starfield_DATA): Use starfield_theme_files.
12123 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12124 Add bootcheck-related files.
12125 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12126 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12127 and font_char_metrics.txt.
12128 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12129 (setjmp): Add lib/ia64/longjmp.S.
12130 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12131 * po/POTFILES.in: Regenerate.
12132 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12133 DISTFILES.common.extra1.
12134 * util/devicemap.c: Removed.
12135 * grub-core/lib/i386/relocator_backward.S: Likewise.
12136 * util/import_gcry.py: Remove unused files. Add extra_dist for
12139 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12141 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12142 grub_gettext_delete_list before changing grub_gettext_max to avoid
12143 running out of array bounds.
12145 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12147 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12148 grub_vga_text_init/grub_vga_text_fini.
12150 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12152 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12154 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12156 * configure.ac: Bump to 2.00~beta0.
12158 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12160 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12161 missing initialisation.
12163 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12165 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12167 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12169 Support v2 xnu boot arguments.
12171 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12172 New argument fsbfreq_out.
12173 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12174 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12176 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12178 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12179 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12180 (grub_xnu_boot_params): Rename to ...
12181 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12182 (grub_xnu_boot_params_v2): New struct.
12184 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12186 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12187 zeroing of CRC field before computing CRC.
12189 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12191 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12192 Change order of allocations to decrease fragmentation.
12194 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12196 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12198 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12200 Use write-combining MTRR to speed up video with buggy BIOSes.
12202 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12203 (cpuid): New define.
12206 (mtrr_base): Likewise.
12207 (mtrr_mask): Likewise.
12208 (grub_vbe_enable_mtrr_entry): New function.
12209 (grub_vbe_enable_mtrr): Likewise.
12210 (grub_vbe_disable_mtrr): Likewise.
12211 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12212 control off to BIOS.
12213 (grub_video_vbe_init): Fill mtrr.
12214 (grub_video_vbe_fini): Disable mtrr.
12215 (grub_video_vbe_get_info_and_fini): Likewise.
12216 (grub_video_vbe_setup): Enable mtrr.
12218 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12220 * include/grub/partition.h (grub_partition_map): Change prototype of
12221 embed to take a maximum value for nsectors.
12222 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12223 * include/grub/fs.h (grub_fs): Likewise.
12224 * grub-core/partmap/msdos.c (embed_signatures): New array.
12225 (pc_partition_map_embed): Check for and avoid sectors matching any
12226 of the signatures in embed_signatures, up to max_nsectors.
12227 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12228 returned sector map to max_nsectors.
12229 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12230 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12231 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12232 * util/grub-setup.c (setup): Allow for the embedding area being
12233 split into multiple blocklists. Tell dest_partmap->embed the
12234 maximum number of sectors we care about.
12236 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12238 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12239 Specify blocklist_install and reserver_first_sector for all fs.
12240 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12243 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12245 * util/grub-install.in: Clarify strings.
12246 Fix source dir check.
12248 2012-02-27 Richard Laager <rlaager@wiktel.com>
12250 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12251 "zfs" and "fuse.zfs" as synonyms.
12253 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12255 * configure.ac: Put platform and target_cpu substitutions back since
12256 they are used for directories.
12258 2012-02-27 Richard Laager <rlaager@wiktel.com>
12259 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12261 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12262 * util/grub.d/20_linux_xen.in: Likewise.
12264 2012-02-27 Richard Laager <rlaager@wiktel.com>
12266 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12269 2012-02-27 Richard Laager <rlaager@wiktel.com>
12271 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12274 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12276 Don't use insecure popen in getroot.
12278 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12279 (exec_pipe): ... here.
12280 (find_root_devices_from_poolname): Use exec_pipe.
12282 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12284 Remove platform and target_cpu replacement.
12286 * configure.ac: Remove platform and target_cpu substitutions.
12287 * tests/util/grub-shell.in: Use modinfo.
12288 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12291 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12293 Autodetect platform in grub-install but allow override.
12295 * util/grub-install.in: Autodetect platform. Support --target and
12296 --directory. Read platform from modinfo.sh.
12298 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12300 Support btrfs multi-volume probe.
12302 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12303 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12304 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12305 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12306 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12307 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12308 grub_find_root_devices_from_btrfs if on btrfs.
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12312 Remove any awareness of *.c util files about target.
12314 * Makefile.util.def (grub-setup): Split to ...
12315 (grub-bios-setup): ... and this.
12316 (grub-sparc64-setup): ... and this.
12317 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12318 * docs/man/grub-setup.h2m: Split into ...
12319 * docs/man/grub-sparc64-setup.h2m: ... this.
12320 * docs/man/grub-bios-setup.h2m: ... and this.
12321 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12322 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12323 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12324 (grub_target_addr_t): Remove.
12325 (grub_target_size_t): Remove.
12326 (grub_target_ssize_t): Remove.
12327 * util/grub-install.in: Use new grub-*-setup.
12328 * util/grub-mkimagexx.c (Elf_Word): New define.
12329 (Elf_Half): Likewise.
12330 (Elf_Section): Likewise.
12331 (ELF_ST_TYPE): Likewise.
12332 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12333 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12335 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12337 Replace grub_target_addr with more appropriate types.
12339 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12340 grub_target_addr with grub_addr.
12341 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12342 grub_target_addr with grub_port.
12343 (grub_cmd_write): Likewise.
12344 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12345 grub_target_addr with grub_addr.
12346 (grub_cmd_write): Likewise.
12347 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12349 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12351 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12352 const qualifier for vendor_guid.
12354 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12356 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12358 (efiemu_memequal): Likewise.
12359 (find_variable): Likewise.
12361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12363 Fix missing console prototype on qemu-mips.
12365 * include/grub/mips/qemu_mips/console.h: New file.
12367 2012-02-27 Matthew Garrett <mjg@redhat.com>
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12371 * include/grub/efi/efi.h: Likewise.
12372 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12373 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12374 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12375 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12376 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12377 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12379 2012-02-27 Matthew Garrett <mjg@redhat.com>
12381 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12383 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12385 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12388 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390 * configure.ac: Remove inappropriate use of program_transform_name
12391 on grubdir and bootdir but allow explicit specification of those
12394 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12396 * util/grub-mknetdir.in (grub_prefix): Removed.
12397 (subdir): Use @bootdirname@ and @grubdirname@.
12399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12401 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12403 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12405 * po/POTFILES.in: Regenerated.
12407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12409 Remove improper use of program_transform_name on pkglibrootdir.
12411 * configure.ac (pkglibrootdir): Removed.
12412 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12413 * util/grub-mkimage.c: Likewise.
12415 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12417 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12420 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12422 * util/grub-install.in: Use file identifier if no UUID is available
12423 or user explicitly prompted for it.
12425 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12427 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12428 (freebsd_get_zfs): New function.
12429 (grub_freebsd_boot): Pass zfs UUID.
12430 (grub_cmd_freebsd): Set zfs UUID.
12432 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12434 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12437 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12439 Add configure flag to control libzfs integration.
12441 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12443 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12445 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12447 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12450 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12452 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12453 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12454 be used on non-modules.
12456 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12457 Rename to grub_boot_init.
12458 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12459 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12460 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12461 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12462 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12463 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12464 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12465 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12467 (grub_machine_init): Remove empty inits.
12468 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12470 (grub_machine_init): Remove empty inits.
12471 * grub-core/term/arc/console.c: Remove explicit proto.
12472 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12473 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12475 grub_at_keyboard_fini.
12476 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12477 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12478 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12480 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12481 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12482 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12484 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12485 * grub-core/term/serial.c (GRUB_MOD_INIT)
12486 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12487 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12489 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12490 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12491 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12492 grub_terminfo_fini.
12493 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12494 (GRUB_MOD_FINI): Likewise.
12495 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12496 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12497 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12498 grub_video_radeon_fuloong2e_fini.
12499 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12500 [LOONGSON]: Rename to grub_video_sis315pro_init.
12501 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12502 grub_video_sis315pro_fini.
12503 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12504 [LOONGSON]: Rename to grub_video_sm712_init.
12505 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12506 grub_video_sm712_fini.
12507 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12508 (grub_at_keyboard_fini): Likewise.
12509 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12510 Don't declare grub_{modname}_init.
12511 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12512 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12514 (grub_keylayouts_fini) [!EMU]: Likewise.
12515 * include/grub/serial.h (grub_serial_init) [!EMU]:
12517 (grub_serial_fini) [!EMU]: Likewise.
12518 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12520 (grub_terminfo_fini) [!EMU]: Likewise.
12521 * include/grub/video.h (grub_font_init) [!EMU]:
12523 (grub_font_fini) [!EMU]: Likewise.
12524 (grub_gfxterm_init) [!EMU]: Likewise.
12525 (grub_gfxterm_fini) [!EMU]: Likewise.
12526 (grub_video_sm712_init) [!EMU]: Likewise.
12527 (grub_video_sm712_fini) [!EMU]: Likewise.
12528 (grub_video_sis315pro_init) [!EMU]: Likewise.
12529 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12530 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12531 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12533 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12535 Make nand a prefix for nand devices.
12537 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12539 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12541 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12542 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12544 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12546 * include/grub/env.h (grub_env_find): Remove prototype.
12547 * grub-core/kern/env.c (grub_env_find): Make static.
12548 (grub_env_set): Remove useless set.
12550 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12552 * grub-core/kern/i386/realmode.S: Remove useless align.
12554 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12556 * include/grub/dl.h (grub_dl_load_file): Don't export.
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12563 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12565 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12567 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12568 not reloading whole superblock but only the part which is really needed.
12569 Remove useless grub_errors.
12570 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12573 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12575 Don't export grub_get_rtc.
12577 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12578 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12580 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12582 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12584 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12586 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12587 argument since it can be deduced from diskfilter. All users updated.
12589 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12593 * include/grub/list.h (grub_prio_list): Removed.
12594 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12595 GRUB_COMMAND_PRIO_MASK.
12596 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12597 GRUB_COMMAND_FLAG_ACTIVE.
12598 (grub_prio_list_insert): Removed.
12599 (grub_prio_list_remove): Likewise.
12600 (GRUB_AS_PRIO_LIST): Likewise.
12601 (GRUB_AS_PRIO_LIST_P): Likewise.
12602 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12603 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12604 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12605 * grub-core/kern/command.c (grub_register_command_prio): Inline
12606 the prio_list code.
12607 (grub_unregister_command): Likewise.
12609 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12611 Fix interrupt mixup from previous commit.
12613 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12614 (grub_realidt): New var.
12615 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12617 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12619 (grub_relocator16_boot): Set grub_relocator16_idt.
12620 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12621 (LOCAL(realidt)): ... this.
12622 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12623 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12624 (grub_realidt): New variable.
12626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12628 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12629 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12630 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12631 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12633 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12634 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12635 * po/POTFILES.in: Regenerate.
12637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12639 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12642 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12644 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12646 (add_length): Likewise.
12648 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12649 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12651 GDB serial and backtrace support.
12653 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12654 (prot_to_real): Likewise.
12655 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12656 * grub-core/Makefile.core.def (backtrace): New module.
12658 * grub-core/gdb/cstub.c: New file.
12659 * grub-core/gdb/gdb.c: Likewise.
12660 * grub-core/gdb/i386/idt.c: Likewise.
12661 * grub-core/gdb/i386/machdep.S: Likewise.
12662 * grub-core/gdb/i386/signal.c: Likewise.
12663 * grub-core/lib/i386/backtrace.c: Likewise.
12664 * grub-core/lib/backtrace.c: Likewise.
12665 * include/grub/backtrace.h: Likewise.
12666 * include/grub/gdb.h: Likewise.
12667 * include/grub/i386/gdb.h: Likewise.
12669 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12671 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12673 (add_length): Likewise.
12674 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12675 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12677 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12678 __argp_get_display_len.
12680 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12682 $"..." support in scripts.
12684 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12685 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12686 * grub-core/script/yylex.l: Likewise.
12687 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12690 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12692 * gentpl.py: Remove obsolete pkglib_DATA handling.
12694 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12696 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12699 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12700 * util/grub-kbdcomp.in: Likewise.
12701 * util/grub-mkconfig.in: Likewise.
12702 * util/grub-mkconfig_lib.in: Likewise.
12703 * util/grub-mknetdir.in: Likewise.
12704 * util/grub-mkrescue.in: Likewise.
12705 * util/grub-mkstandalone.in: Likewise.
12706 * util/grub-reboot.in: Likewise.
12707 * util/grub-set-default.in: Likewise.
12708 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12712 Remove GRUB_PREFIX.
12714 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12715 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12716 used for backward compatibility.
12718 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12720 Add new all_video module.
12722 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12723 * grub-core/Makefile.core.def (all_video): New module.
12724 * grub-core/genmoddep.awk: Generate dependency of all_video from
12726 * grub-core/lib/fake_module.c: New file.
12727 * grub-core/normal/main.c (features): Add feature_all_video_module.
12728 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12729 don't do explicit search again.
12730 insmod all_video in load_video if available.
12732 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12734 Another round of string clarification and adding TRANSLATORS comments.
12736 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12738 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12740 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12742 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12744 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12745 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12747 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12749 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12750 trailing newline implicitly. All users updated.
12752 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12754 Implement serial on IEEE1275 and EFI.
12756 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12757 on emu. Mention arc and emu as the only platforms without serial
12759 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12760 ieee1275 platforms.
12761 * grub-core/term/efi/serial.c: New file.
12762 * grub-core/term/ieee1275/serial.c: Likewise.
12763 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12764 specification if no ns8250 driver is available.
12765 (grub_cmd_serial): Likewise.
12766 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12767 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12768 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12769 (grub_efi_parity_type_t): New type.
12770 (grub_efi_stop_bits_t): Likewise.
12771 (grub_efi_serial_io_interface): New struct.
12772 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12773 available for all interfaces.
12774 Add EFI and IEEE1275 fields.
12775 (grub_ofserial_init): New proto.
12776 (grub_efiserial_init): Likeiwse.
12777 * util/grub.d/00_header.in: Don't check for the presence of serial
12780 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12782 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12783 name as if it was an alias.
12785 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12787 * grub-core/commands/lsacpi.c (options): Fix typo.
12789 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12791 Convert grub-emu to argp.
12793 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12795 * util/argp_common.c: Rename to ...
12796 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12797 Add missing includes.
12798 * grub-core/kern/emu/main.c: Convert to argp.
12799 * po/POTFILES.in: Regenerate.
12800 * util/grub-install.in (usage): Make first letter lowcase in messages
12802 * util/grub-setup.c (options): Likewise.
12804 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12806 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12807 Put back accidently commented-out code.
12809 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12811 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12812 loop check using Brent algorithm.
12813 (grub_hfsplus_btree_search): Likewise.
12815 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12817 * util/grub-install.in: Fix usage of wrong device for PreP install.
12819 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12821 * conf/Makefile.common (CFLAGS_GNULIB): Add
12822 -Wno-unsafe-loop-optimizations.
12823 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12825 * grub-core/commands/legacycfg.c: Add pragma to skip
12826 -Wunsafe-loop-optimizations.
12827 (check_password_md5_real): Fix loop counter type.
12828 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12830 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12831 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12833 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12834 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12835 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12837 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12838 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12839 avoid possible infinite loops.
12840 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12841 and -Wunsafe-loop-optimizations.
12842 * grub-core/script/yylex.l: Likewise.
12843 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12844 (print_glyphs): Avoid infinite loops.
12845 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12847 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12849 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12850 to avoid infinite loop.
12851 (disp_acpi_rsdt_table): Likewise.
12853 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12855 * grub-core/font/font.c (grub_font_load): Add support for default
12856 path for fonts ($prefix/fonts).
12857 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12858 for checking if string is a path.
12859 * grub-core/normal/main.c (features): Add feature_default_font_path.
12860 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12861 * util/grub.d/00_header.in: Use default directory if possible.
12862 * util/grub-install.in: Install unicode.pf2.
12864 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12866 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12867 * po/Rules-swiss: New file.
12868 * po/swiss.sed: Likewise.
12870 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12872 * grub-core/fs/btrfs.c (find_device): Fix typos.
12873 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12874 * util/grub-mkrelpath.c (argp_parser): Likewise.
12875 Reported by: Yuri Chornoivan.
12877 2012-02-23 Dalet Omega <daletomega@gmail.com>
12879 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12880 for usual informative messages.
12882 2012-02-23 Dalet Omega <daletomega@gmail.com>
12886 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12887 * conf/Makefile.common: Define starfielddir.
12888 * configure.ac: Configure starfield.
12889 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12890 * themes/starfield/README: Likewise.
12891 * themes/starfield/blob_w.png: Likewise.
12892 * themes/starfield/boot_menu_c.png: Likewise.
12893 * themes/starfield/boot_menu_e.png: Likewise.
12894 * themes/starfield/boot_menu_n.png: Likewise.
12895 * themes/starfield/boot_menu_ne.png: Likewise.
12896 * themes/starfield/boot_menu_nw.png: Likewise.
12897 * themes/starfield/boot_menu_s.png: Likewise.
12898 * themes/starfield/boot_menu_se.png: Likewise.
12899 * themes/starfield/boot_menu_sw.png: Likewise.
12900 * themes/starfield/boot_menu_w.png: Likewise.
12901 * themes/starfield/slider_c.png: Likewise.
12902 * themes/starfield/slider_n.png: Likewise.
12903 * themes/starfield/slider_s.png: Likewise.
12904 * themes/starfield/src/blob_nw.xcf: Likewise.
12905 * themes/starfield/src/bootmenu/: Likewise.
12906 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12907 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12908 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12909 * themes/starfield/src/slider_c.xcf: Likewise.
12910 * themes/starfield/src/slider_n.xcf: Likewise.
12911 * themes/starfield/src/slider_s.xcf: Likewise.
12912 * themes/starfield/src/terminalbox/: Likewise.
12913 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12914 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12915 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12916 * themes/starfield/starfield.png: Likewise.
12917 * themes/starfield/terminal_box_c.png: Likewise.
12918 * themes/starfield/terminal_box_e.png: Likewise.
12919 * themes/starfield/terminal_box_n.png: Likewise.
12920 * themes/starfield/terminal_box_ne.png: Likewise.
12921 * themes/starfield/terminal_box_nw.png: Likewise.
12922 * themes/starfield/terminal_box_s.png: Likewise.
12923 * themes/starfield/terminal_box_se.png: Likewise.
12924 * themes/starfield/terminal_box_sw.png: Likewise.
12925 * themes/starfield/terminal_box_w.png: Likewise.
12926 * themes/starfield/theme.txt: Likewise.
12928 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12930 * util/grub.d/00_header.in: Add missing export theme.
12932 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12934 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12936 Reported by: Eren D.
12938 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12940 * conf/Makefile.common (grubdatadir): Removed.
12941 (Makefile.am): Move eveything grubdata to pkgdata.
12943 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12945 * grub-core/commands/acpihalt.c (get_sleep_type):
12946 Remove unused variable.
12948 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12950 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12951 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12952 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12953 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12954 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12955 i18n with gettext no-op.
12956 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12957 GRUB_ACPI_OPCODE_STRING_CONST.
12958 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12959 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12961 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12963 * po/POTFILES.in: Regenerate.
12965 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12967 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12968 -Wno-error=missing-noreturn.
12970 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12972 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12973 condition to avoid possibly infinite loops.
12974 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12975 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12977 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12979 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12980 condition to avoid possibly infinite loops.
12982 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12984 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12987 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12989 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12991 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12993 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12995 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12997 * util/bin2h.c (usage): Add missing attribute noreturn.
12999 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13001 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13002 if the size isn't divisible by 512.
13004 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13006 Make list_push and list_remove functions rather than inline functions
13007 to decrease size and avoid aliasing violations.
13009 * include/grub/list.h (grub_list_push): Move to ...
13010 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13011 * include/grub/list.h (grub_list_remove): Move to ...
13012 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13014 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13016 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13017 and -Wunused-result.
13019 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13021 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13022 Reported by: Seth Goldberg
13024 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13026 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13028 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13030 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13031 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13033 * docs/grub.texi (Simple configuration): Document
13034 GRUB_CMDLINE_GNUMACH.
13036 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13038 * conf/Makefile.common (platform_SCRIPTS): New variable.
13039 (platform_PROGRAMS): Likewise.
13040 * gentpl.py: Mark *,module and *.image for install.
13041 * grub-core/gdb_grub.in: Add a notice of expected environment.
13042 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13043 (gmodule.pl): Likewise.
13045 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13047 Replace grub_checkkey with grub_getkey_noblock.
13049 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13050 (grub_getkey_noblock): ... this. All users updated.
13052 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13054 * grub-core/kern/emu/console.c: Move to ...
13055 * grub-core/term/emu/console.c: ...here.
13056 (grub_ncurses_getkey): Fix return value if no key is detected.
13058 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13060 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13061 (grub_unit_test_fini): Likewise.
13062 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13064 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13066 * include/grub/test.h (GRUB_UNIT_TEST)
13068 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13070 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13071 Better error handling.
13072 (grub_script_return): Likewise.
13073 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13075 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13078 rimplicit redifinition.
13080 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13082 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13085 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13087 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13088 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13091 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13093 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13094 as GRUB_ERR_BUG. Don't malloc if no device is available.
13096 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13098 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13099 Mark calling with invalid term as GRUB_ERR_BUG.
13101 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13103 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13104 packets rather than raising an error.
13106 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13108 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13111 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13113 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13114 diagnostic to dprintf.
13115 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13117 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13119 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13122 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13124 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13125 (grub_ntfs_iterate_dir): Likewise.
13127 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13129 Efiemu stylistic fixes and gettext.
13131 * grub-core/efiemu/i386/loadcore32.c
13132 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13133 * grub-core/efiemu/i386/loadcore64.c
13134 (grub_arch_efiemu_relocate_symbols64): Likewise.
13135 * grub-core/efiemu/i386/pc/cfgtables.c
13136 (grub_machine_efiemu_init_tables): Likewise.
13137 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13138 (grub_efiemu_loadcore_initXX): Add a filename argument.
13140 Improved error message.
13141 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13142 Add a filename argument.
13144 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13145 Reclassify double relocation as GRUB_ERR_BUG.
13147 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13149 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13152 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13154 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13157 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13159 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13161 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13163 Improve string. Gettextize.
13165 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13167 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13169 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13171 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13173 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13174 [GRUB_UTIL]: New function.
13175 (insert_array) [GRUB_UTIL]: Store partmaps.
13176 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13178 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13179 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13180 (probe_abstraction): Print diskfilter and not raid.
13181 Reported by: Lennart Sorensen
13183 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13185 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13186 * util/grub-mkimagexx.c (MASK3): New define.
13187 (add_value_to_slot_20b): Use MASK3.
13188 (add_value_to_slot_21): Likewise.
13189 (relocate_addresses): Fix format specification.
13190 (load_image): Explicitly init symtab_section.
13192 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13194 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13195 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13197 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13199 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13201 Reported by: Lennart Sorensen
13203 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13205 * gentpl.py: Add missing license header.
13206 * docs/grub.texi: Update copyright year.
13208 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13210 Source grub-mkconfig_lib from the build directory at build time.
13211 Suggested by: Vladimir Serbinenko.
13213 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13214 * util/grub-install.in: Define pkgdatadir if not already set, and source
13215 grub-mkconfig_lib from there.
13216 * util/grub-kbdcomp.in: Likewise.
13217 * util/grub-mkconfig.in: Likewise.
13218 * util/grub-mknetdir.in: Likewise.
13219 * util/grub-mkrescue.in: Likewise.
13220 * util/grub-mkstandalone.in: Likewise.
13221 * util/grub-reboot.in: Likewise.
13222 * util/grub-set-default.in: Likewise.
13223 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13225 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13227 Increase warning level.
13229 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13230 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13231 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13232 (TARGET_CFLAGS): Likewise.
13233 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13234 * grub-core/Makefile.core.def (decompressor_xz): Add
13235 -Wno-unreachable-code.
13236 (normal): Add -Wno-redundant-decls.
13237 (xzio): Add -Wno-unreachable-code.
13238 (lzopio): Add -Wno-redundant-decls -Wno-error.
13239 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13240 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13241 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13242 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13243 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13244 * grub-core/kern/i386/coreboot/init.c: Add exception to
13245 -Wsuggest-attribute=noreturn.
13246 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13247 * grub-core/kern/ia64/dl_helper.c: Likewise.
13248 * grub-core/kern/mips/dl.c: Likewise.
13249 * grub-core/kern/sparc64/dl.c: Likewise.
13250 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13251 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13252 (memcmp): Likewise.
13253 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13254 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13255 * grub-core/loader/mips/linux.c: Likewise.
13256 * grub-core/loader/multiboot_elfxx.c: Likewise.
13257 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13258 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13259 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13260 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13262 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13263 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13266 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13268 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13271 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13273 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13274 Avoid improper use of strings.
13275 (grub_cmd_legacy_initrdnounzip): Likewise.
13277 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13279 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13281 (grub_util_info): Likewise.
13282 (grub_util_error): Likewise.
13284 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13286 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13287 * util/grub-fstest.c (fstest): Likewise.
13289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13291 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13292 (grub_md_sha512_real): Likewise.
13293 (grub_util_get_geli_uuid): Likewise.
13294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13295 (grub_util_biosdisk_open): Fix format specification.
13296 Respect format security.
13297 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13298 (xrealloc): Likewise.
13299 (xasprintf): Likewise.
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13303 * util/import_gcry.py: Include grub/crypto.h in init.c.
13305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13307 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13308 (generate_image): Make prefix a const char *.
13309 Fix format specifications. Respect format security.
13310 Avoid void * arithmetics.
13312 (argp_parser): Remove unused variable. Respect format security.
13313 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13314 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13315 (count_funcs): Remove unused variable.
13316 (relocate_addresses): Fix format specification.
13317 Disable x86-64 with elf32. Remove unused variables.
13318 (add_fixup_entry): Avoid shadowing.
13319 (make_reloc_section): Fix format specification.
13321 (locate_sections): Fix format specifications.
13322 (load_image): Avoid shadowing.
13324 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13326 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13327 Fix format specifications. Respect format security.
13328 Don't translate already translated grub_errmsg.
13329 (argp_parser): Remove unused variable
13331 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13333 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13335 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13337 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13338 (main): Likewise. Use xmalloc. Respect format security.
13340 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13342 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13344 (argp_parser): Remove unused variable.
13346 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13348 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13349 (add_pixel): Make static.
13350 (add_font): Likewise.
13351 (write_string_section): Make name and str a const char *.
13352 (write_be16_section): Make name a const char *.
13353 (print_glyphs): Make static.
13354 (write_font_ascii_bitmap): Likewise.
13355 (write_font_width_spec): Likewise.
13356 (write_font_pf2): Likewise.
13357 (argp_parser): Remove unused variable.
13358 Respect format security.
13359 (main): Avoid shadowing. Respect format security.
13361 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13363 * util/grub-editenv.c (argp_parser): Make static.
13364 (create_envblk_file): Use xmalloc.
13365 (open_envblk_file): Likewise.
13366 Resepect format security.
13367 (set_variables): Respect format security.
13369 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13371 * util/getroot.c (grub_find_device): Respect format security.
13372 (get_mdadm_uuid): Remove unused variable.
13373 (grub_util_pull_device): Dont call gettext on already translated
13375 (find_system_device): Remove unused variable.
13376 (grub_util_get_grub_dev): Likewise.
13377 (grub_make_system_path_relative_to_its_root): Respect format security.
13379 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13381 * util/grub-fstest.c (execute_command): Make first argument
13383 (read_file): Avoid shadowing.
13384 Reuse underlying error message if device open fails.
13385 (cmd_cmp): Respect format security.
13386 (root): Make const char *.
13387 (fstest): Remove args argument and use global copy.
13388 Respect format security.
13389 (argp_parser): Make static.
13390 (main): Make default_root const char *.
13392 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13394 * util/grub-mount.c (root): Make const char *.
13395 (execute_command): Make first argument a const char *.
13396 (fuse_init): Respect format security.
13397 (argp_parser): Make static. Remove unused variable.
13398 (main): Make default_root a const char *.
13399 Respect format security.
13401 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13403 * util/grub-probe.c (probe): Don't call gettext on already translated
13405 Remove unused variables.
13406 (argp_parser): Remove unused variable.
13408 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13410 * util/grub-script-check.c (argp_parser): Remove unused variable.
13411 (main): Rename read to curread to avoid shadowing.
13413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13415 * util/misc.c (grub_util_write_image_at): Fix format specification.
13416 (grub_util_write_image): Likewise.
13417 (grub_script_execute_argument_to_string): Removed (unused).
13418 (grub_script_execute_menuentry): Likewise.
13419 (grub_putchar): Likewise.
13421 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13423 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13424 (FUNCTION) [GRUB_UTIL]: Likewise.
13425 (VARIABLE) [GRUB_UTIL]: Likewise.
13427 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13429 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13430 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13432 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13434 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13437 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13439 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13440 (LzmaEnc_SaveState): Removed (unused).
13441 (LzmaEnc_RestoreState): Likewise.
13442 (LzmaEnc_InitPriceTables): Made static.
13443 (LzmaEnc_Construct): Likewise.
13444 (LzmaEnc_FreeLits): Likewise.
13445 (LzmaEnc_Destruct): Likewise.
13446 (LzmaEnc_Init): Likewise.
13447 (LzmaEnc_InitPrices): Likewise.
13448 (LzmaEnc_Finish): Likewise.
13449 (LzmaEnc_PrepareForLzma2): Removed (unused).
13450 (LzmaEnc_MemPrepare): Likewise.
13451 (LzmaEnc_GetNumAvailableBytes): Likewise.
13452 (LzmaEnc_GetCurBuf): Likewise.
13453 (LzmaEnc_CodeOneMemBlock): Likewise.
13455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13457 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13458 (grub_util_ldm_embed): Likewise.
13460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13462 * util/grub-editenv.c (print_var): Rename name to varname to
13464 (main): Rename index to curindex to avoid shadowing.
13465 Make filename a const char *.
13467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13469 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13470 to arg_getline to avoid shadowing.
13472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13474 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13475 disk_ to avoid shadowing.
13477 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13479 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13480 curindex to avoid shadowing.
13482 (MatchFinder_GetNumAvailableBytes): Make static.
13484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13486 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13489 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13491 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13492 argument from encrypt to do_encrypt to avoid shadowing.
13494 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13496 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13497 incorrect nesting of #if's.
13499 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13501 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13502 checks which are always false on some platforms.
13503 (grub_cmd_lsacpi): Likewise.
13504 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13505 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13508 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13510 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13511 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13515 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13516 re_dfa_t to avoid breaking alignment invariants.
13517 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13518 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13520 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13523 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13525 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13527 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13530 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13532 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13533 conserve alignment invariants.
13534 (grub_ehci_ehcc_read16): Likewise.
13535 (grub_ehci_oper_read32): Likewise.
13536 (grub_ehci_oper_write32): Likewise.
13537 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13538 Conserve alignment invariants.
13540 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13542 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13543 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13546 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13548 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13549 Remove unused variable.
13551 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13553 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13556 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13558 * include/grub/net.h: Remove double declarations.
13560 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13562 Remove "payload" command in ia64 Linux loader since I couldn't
13563 find any evidence of it being used for anything.
13564 Replace "relocate" command with an environment variable
13566 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13568 (ia64_boot_payload): Removed.
13569 (last_payload): Likewise.
13570 (RELOCATE_OFF): Likewise.
13571 (RELOCATE_ON): Likewise.
13572 (RELOCATE_FORCE): Likewise.
13573 (relocate): Likewise.
13574 (free_pages): Don't free payloads.
13575 (grub_load_elf64): Use common error messages.
13576 Use "linux_relocate" variable.
13577 Increase the space after boot_params.
13578 (grub_cmd_payload): Removed.
13579 (grub_cmd_relocate): Likewise.
13580 (grub_cmd_fpswa): Improve messages.
13581 (cmd_payload): Removed.
13582 (cmd_relocate): Likewise.
13583 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13584 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13586 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13588 Convert UHCI to DMA framework.
13590 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13591 (grub_uhci_pci_iter): Fill new members
13592 (grub_alloc_td): Use P2V and V2P functions.
13593 (grub_free_queue): Likewise.
13594 (grub_alloc_qh): Likewise.
13595 (grub_uhci_setup_transfer): Likewise.
13596 (grub_uhci_check_transfer): Likewise.
13598 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13600 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13601 Remove assignment in if while on it.
13603 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13605 * util/grub-mkstandalone.in: Fix modules directory.
13607 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13609 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13611 (argp_parser): Accept "auto" as compression specification.
13613 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13615 Fix `help' with unloaded modules.
13617 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13618 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13619 (grub_dyncmd_dispatcher): Small stylistic fix.
13620 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13621 explicit help is requested.
13623 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13625 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13626 Explicitly init restart while on it.
13628 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13630 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13633 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13635 * util/grub-mknetdir.in: Use . rather than source for POSIX
13638 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13640 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13642 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13644 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13647 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13649 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13652 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13654 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13656 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13658 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13659 iteration of partitions.
13661 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13663 Improve gettext support. Stylistic fixes and error handling fixes while
13666 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13668 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13669 part. Instead setup the correct stack in RM.
13670 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13672 * include/grub/i386/relocator_private.h: New file.
13674 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13676 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13678 * util/grub-fstest.c (options): Add missing DEVICE part.
13680 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13682 Clarify and unify messages.
13684 * grub-core/commands/hashsum.c (options): Unify messages.
13685 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13686 literal-only message as translatable.
13687 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13688 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13689 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13691 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13692 key, not the key used to unlock. Clarify what it's used for.
13693 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13694 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13695 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13696 * util/grub-editenv.c (options): Unify "verbose" message.
13697 * util/grub-fstest.c (read_file): Unify error message.
13698 (fstest): Add quotes around commands.
13699 (options): Unify "verbose" message.
13700 * util/grub-install.in: Add quotes around variable name.
13701 * util/grub-kbdcomp.in: Unify error message.
13702 * util/grub-mkfont.c (main): Likewise.
13703 * util/grub-mkrescue.in: Likewise.
13704 * util/grub-mklayout.c (options): Unify "verbose" message.
13705 * util/grub-mkstandalone.in: Unify help and verbose messages.
13706 * util/grub-mount.c (options): Unify "verbose" message.
13707 * util/grub-probe.c (options): Likewise.
13708 * util/grub-script-check.c (options): Likewise.
13709 * util/grub-setup.c (setup): Unify no-terminator message.
13710 (options): Use DEVICE and not DEV.
13711 Unify "verbose" message.
13712 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13714 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13716 Improve and unify messages.
13718 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13719 name. All users updated.
13720 Print filename in error.
13721 (read_device_map): Print filename in error.
13722 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13723 (grub_util_get_os_disk): Likewise.
13724 (grub_util_biosdisk_get_grub_dev): Likewise.
13725 (grub_util_check_block_device): Likewise.
13726 (grub_util_check_char_device): Likewise.
13727 (grub_make_system_path_relative_to_its_root): Likewise.
13728 * util/grub-editenv.c (create_envblk_file): Likewise.
13729 (open_envblk_file): Likewise.
13730 (write_envblk): Likewise.
13731 * util/grub-fstest.c (cmd_cp): Likewise.
13732 (cmd_cat): Likewise.
13733 (cmd_cmp): Likewise.
13734 * util/grub-menulst2cfg.c (main): Likewise.
13735 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13736 (write_font_width_spec): Likewise.
13737 (write_font_pf2): Likewise.
13738 * util/grub-mkimage.c (generate_image): New argument outname.
13740 Remove unreacheable message.
13741 (options): Unify messages.
13742 (help_filter): Likewise.
13743 * util/grub-mklayout.c (usage): Removed (unused).
13744 (main): Print filename in error.
13745 * util/grub-mkrescue.in: Fix wrong quoting.
13746 * util/grub-setup.c (setup): Print filename in error.
13747 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13748 (check_sas): Likewise.
13749 * util/misc.c (grub_util_get_fp_size): Removed.
13750 (grub_util_get_image_size): Print filename in error.
13751 (grub_util_read_at): Removed.
13752 (grub_util_read_image): Print filename in error.
13753 (grub_util_load_image): Likewise.
13754 (grub_util_write_image_at): New argument filename. All users updated.
13755 Print filename in error.
13756 (grub_util_write_image): New argument filename. All users updated.
13757 Print filename in error.
13758 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13759 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13761 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13763 * grub-core/Makefile.core.def (pxechain): New module.
13764 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13765 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13767 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13768 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13770 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13772 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13773 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13774 * include/grub/err.h (grub_error_saved): New struct.
13775 (grub_errmsg): Make array size explicit.
13776 * include/grub/misc.h (grub_error_save): New function.
13777 (grub_error_load): Likewise.
13778 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13779 (grub_error_push): Update `errno' member name.
13780 (grub_error_pop): Likewise
13781 * grub-core/net/tftp.c (tftp_data): New member save_err.
13782 (tftp_receive): Save error.
13783 (tftp_open): Restore error.
13785 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13787 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13788 to real mode down to execute A20-related code in protected mode as
13791 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13793 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13794 NULL when the argument `level' has an unexpected value.
13796 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13798 Move platform-dependent files from $prefix to $prefix/$platform.
13800 * config.h.in (GRUB_TARGET_CPU): New definition.
13801 (GRUB_PLATFORM): Likewise.
13802 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13803 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13804 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13805 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13806 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13807 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13808 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13809 * grub-core/normal/term.c (read_terminal_list): Likewise.
13810 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13812 (grub_gettext_init_ext): Likewise.
13813 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13815 * util/grub-install.in: Update directories.
13816 * util/grub-mknetdir.in: Likewise.
13817 * util/grub-mkrescue.in: Likewise.
13819 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13821 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13822 grub_error framework. All users updated.
13824 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13826 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13827 lists (by always binsearching), improve caching (cache strings
13828 used for binsearch, not only results), improve
13829 maintainability (by using more structured binary search) and correct
13832 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13834 * grub-core/script/execute.c (grub_script_return): Fix warning.
13836 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13838 * grub-core/script/execute.c (grub_script_return): Fix potential
13840 Reported by: Jim Meyering.
13842 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13844 * po/POTFILES.in: Regenerate.
13845 * util/grub-install.in: Gettextize the strings missed in first pass.
13847 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13849 * Makefile.util.def (grub-mkdevicemap): Removed.
13850 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13851 * include/grub/util/deviceiter.h: Removed.
13852 * util/deviceiter.c: Likewise.
13853 * util/getroot.c (grub_util_get_os_disk): New function.
13854 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13855 replacement for EFI.
13856 * util/grub-mkdevicemap.c: Removed.
13857 * util/grub-probe.c (probe): Handle PRINT_DISK.
13858 (argp_parser): Handle -t disk.
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862 * util/grub-mkfont.c: Migrate to argp.
13863 * util/grub-mklayout.c: Likewise.
13864 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13865 * util/grub-mkrelpath.c: Likewise.
13866 * util/grub-probe.c: Likewise.
13867 * util/grub-script-check.c: Likewise.
13869 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13871 * util/grub-reboot.in: Add missing datarootdir.
13872 Add missing newline.
13873 * util/grub-set-default.in: Add missing datarootdir.
13874 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13875 * util/grub-mkrescue.in: Likewise.
13877 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13879 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13881 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13883 * util/grub-kbdcomp.in: Add decent help and gettextize.
13884 * docs/man/grub-kbdcomp.h2m: New file.
13886 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13888 Migrate grub-mkimage.c to argp.
13890 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13891 (grub-setup): Likewise.
13892 * util/grub-setup.c (print_version): Move to ...
13893 * util/argp_common.c (print_version): ... here.
13894 * util/grub-setup.c (argp_program_version_hook): Move to ...
13895 * util/argp_common.c (argp_program_version_hook): ... here.
13896 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13898 * util/grub-mkimage.c (main): Migrate to argp.
13900 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13902 * util/grub-mkrescue.in: Use same message as
13903 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13904 for better translations.
13906 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13908 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13909 options with generic grub-mkrescue.in with the goal of future
13912 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13914 * grub-core/kern/mm.c: Add missing include of i18n.h
13915 * grub-core/lib/relocator.c: Likewise.
13917 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13919 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13921 (allocate_pages): Check return value.
13922 Replace fatal with error.
13923 (grub_linux_boot): Replace printf with dprintf.
13924 Check find_mmap_size return value.
13925 Replace fatal with error.
13926 Don't call grub_machine_fini.
13927 (grub_load_elf64): Replace printf with dprintf.
13928 (grub_cmd_linux): Likewise.
13929 (grub_cmd_initrd): Likewise.
13930 (grub_cmd_payload): Likewise.
13932 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13934 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13936 * grub-core/video/radeon_fuloong2e.c
13937 (grub_video_radeon_fuloong2e_setup): Likewise.
13938 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13939 * grub-core/video/video.c (grub_video_set_mode): Don't override
13940 standard out of memory message.
13942 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13944 NetBSD disk wedge support.
13946 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13947 [__NetBSD__]: Handle NetBSD disk wedges.
13948 * util/getroot.c (convert_system_partition_to_system_disk)
13949 [__NetBSD__]: Likewise.
13951 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13953 * util/grub-mkconfig.in: Use umask rather than chmod to create
13954 grub.cfg.new to avoid insecure grub.cfg.
13956 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13958 * grub-core/commands/ls.c: Gettextize.
13959 * grub-core/commands/setpci.c: Likewise.
13960 * grub-core/commands/videotest.c: Likewise.
13961 * grub-core/disk/geli.c: Likewise.
13962 * grub-core/kern/mm.c: Likewise.
13963 * grub-core/lib/relocator.c: Likewise.
13964 * grub-core/loader/efi/appleloader.c: Likewise.
13965 * grub-core/loader/i386/xnu.c: Likewise.
13966 * grub-core/loader/ia64/efi/linux.c: Likewise.
13967 * grub-core/loader/xnu.c: Likewise.
13968 * grub-core/net/dns.c: Likewise.
13969 * grub-core/net/net.c: Likewise.
13970 * grub-core/script/lexer.c: Likewise.
13971 * grub-core/script/parser.y: Likewise.
13972 * grub-core/script/yylex.l: Likewise.
13973 * util/getroot.c: Likewise.
13974 * util/grub-setup.c: Likewise.
13976 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13978 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13981 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13983 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13985 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13987 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13989 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13990 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13992 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13994 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13995 * util/grub-install.in: Gettextize.
13996 * util/grub-mkconfig.in: Likewise.
13997 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13999 (grub_warn): Gettextize.
14000 * util/grub-mknetdir.in: Gettextize.
14001 * util/grub-mkrescue.in: Likewise.
14002 * util/grub-mkstandalone.in: Likewise.
14003 * util/grub-reboot.in: Likewise.
14004 * util/grub-set-default.in: Likewise.
14005 * util/grub.d/00_header.in: Likewise.
14006 * util/grub.d/10_hurd.in: Likewise.
14007 * util/grub.d/10_kfreebsd.in: Likewise.
14008 * util/grub.d/10_linux.in: Likewise.
14009 * util/grub.d/10_netbsd.in: Likewise.
14010 * util/grub.d/10_windows.in: Likewise.
14011 * util/grub.d/20_linux_xen.in: Likewise.
14012 * util/grub.d/30_os-prober.in: Likewise.
14013 * po/POTFILES-shell.in: Regenerate.
14015 2012-02-03 Richard Laager <rlaager@wiktel.com>
14017 * util/grub-mkimage.c (main): Fix format-security warning.
14018 * util/grub-mkrelpath.c (main): Likewise.
14019 * util/grub-probe.c (main): Likewise.
14021 2012-02-03 Richard Laager <rlaager@wiktel.com>
14023 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14025 Put back lost PRINT_DRIVE.
14027 2012-02-03 Richard Laager <rlaager@wiktel.com>
14029 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14030 (grub_guess_root_devices): Replace strlen with sizeof.
14032 (find_root_devices_from_poolname): Remove unused variable.
14035 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14037 Support install on multi-device filesystems.
14039 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14040 (grub_guess_root_devices): ...this. Return char **. All users updated.
14041 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14043 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14044 (find_root_devices_from_poolname): ... here.
14045 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14047 (grub_guess_root_device): Rename to ...
14048 (grub_guess_root_devices): ... this. Return char **. All users updated.
14049 * util/grub-install.in: Handle multi-device filesystems.
14050 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14051 argument. All users updated.
14052 Handle multi-device filesystems.
14053 Use 'delim' as separator.
14054 Remove device check to allow filesystems on file.
14055 (main): Support -0 argument. Handle multi-device.
14056 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14057 Fix a cross-device check while on it.
14058 (arguments): Remove root_dev.
14059 (argp_parser): Remove -r.
14060 (main): Remove root_dev.
14062 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14064 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14066 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14068 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14070 Reported by: NODA, Kai <nodakai>.
14072 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14076 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14078 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14079 (grub_ehci_setup_qh): Likewise.
14080 (grub_ehci_find_qh): Likewise.
14081 (grub_ehci_transaction): Likewise.
14082 (grub_ehci_setup_transfer): Likewise.
14083 (grub_ehci_check_transfer): Likewise.
14084 (grub_ehci_portstatus): Likewise.
14085 (grub_ehci_detect_dev): Likewise.
14086 (grub_ehci_transfer_controller_data): New field td_last_phys.
14087 (grub_ehci_setup_transfer): Fill td_last_phys.
14088 (grub_ehci_check_transfer): Use td_last_phys.
14090 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14092 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14093 if no submenu is present.
14095 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14099 * include/grub/usb.h (grub_usbms_protocol_t): New values
14100 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14101 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14102 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14103 (grub_usbms_dev): Add subclass, protocol and intrpt.
14104 Remove in_maxsz and out_maxsz.
14105 (grub_usbms_reset): Rename to ...
14106 (grub_usbms_bo_reset): .. this.
14107 (grub_usbms_cbi_cmd): New function.
14108 (grub_usbms_cbi_reset): Likewise.
14109 (grub_usbms_reset): Likewise.
14110 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14111 (grub_usbms_transfer): Rename to ...
14112 (grub_usbms_transfer_bo): ... this.
14113 (grub_usbms_transfer_cbi): Likewise.
14114 (grub_usbms_transfer): Likewise.
14116 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14117 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14119 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14120 the support for the CS5536 modification thereos and few bugfixes.
14122 * grub-core/Makefile.core.def (ehci): New module.
14123 * grub-core/bus/usb/ehci.c: New file.
14124 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14125 port and hubaddr. All users updated.
14126 Save port and hubaddr into dev structure.
14127 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14129 * include/grub/pci.h (grub_dma_phys2virt): New function.
14130 (grub_dma_virt2phys): Likewise.
14131 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14133 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14135 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14136 check as some mkfs implementations omit it.
14138 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14140 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14142 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14144 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14145 Add new member volname2.
14146 (grub_jfs_label): Use volname2 if available.
14148 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14150 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14151 over last_mounted as seen in image generated by mkfs.nilfs2.
14152 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14154 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14156 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14157 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14158 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14160 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14162 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14165 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14167 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14168 subvolume name (by removing a bogus and useless check).
14170 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14172 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14173 sizeof while on it.
14175 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14177 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14178 (grub_scsi_read_capacity10): ... this.
14179 (grub_scsi_read_capacity16): New function.
14180 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14182 Fix off-by-one error.
14183 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14185 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14186 (grub_scsi_read_capacity10): ... this.
14187 (grub_scsi_read_capacity_data): Rename to ...
14188 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14189 (grub_scsi_read_capacity16): New struct.
14190 (grub_scsi_read_capacity16_data): Likewise.
14191 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14192 grub_scsi_cmd_read_capacity10.
14193 New command grub_scsi_cmd_read_capacity16.
14195 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14197 SCSI >2TiB support.
14199 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14200 (grub_scsi_write16): Likewise.
14201 (grub_scsi_read): Use read16 when necessary.
14202 (grub_scsi_write): Likewise.
14203 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14204 (grub_scsi_write16): Likewise.
14205 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14207 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14209 SCSI write support (for usbms mainly).
14211 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14213 (grub_scsi_write): Implement.
14214 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14216 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14218 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14221 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14223 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14225 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14227 * po/POTFILES.in: Regenerate.
14229 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14231 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14232 with grub_printf to avoid unnecessary fatal failure.
14234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14236 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14237 (INT_MAX): Likewise.
14238 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14239 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14240 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14241 (strcpy): Likewise.
14242 (strstr): Likewise.
14243 (strchr): Likewise.
14244 (strncpy): Likewise.
14245 (strcat): Likewise.
14246 (strncat): Likewise.
14247 (strcoll): Likewise.
14248 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14249 (GRUB_INT_MAX): Likewise.
14251 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14253 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14255 (optimize_utf8): Likewise.
14256 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14258 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14260 * grub-core/boot/i386/pc/lnxboot.S: Use
14261 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14262 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14264 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14266 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14268 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14270 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14271 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14272 now to avoid double free.
14273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14275 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14276 * util/grub-probe.c (escape_of_path): Always return a new copy.
14277 (print_full_name): Escape path.
14278 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14279 Fix hints on abstractions.
14281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14283 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14284 Don't add "root" line if no compatibility hont is available.
14285 Suggested by: Seth Goldberg.
14287 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14289 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14290 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14291 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14292 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14294 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14296 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14298 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14300 * util/grub-pe2elf.c (ehdr): Make static.
14302 (num_sections): Likewise.
14303 (offset): Likewise.
14305 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14307 Eliminate ofpath limits and possible overflows.
14309 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14310 (OF_PATH_MAX): Removed.
14311 (MAX_DISK_CAT): New const.
14312 (find_obppath): Use allocated rather than preallocated buffer.
14313 Return result. Argument of_path removed. All users updated.
14314 Add missing fdstat.
14315 (xrealpath): New function.
14316 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14317 Allocate rather than use preallocated buffer. All users updated.
14318 (__of_path_common): Use allocated rather than preallocatecd buffer.
14319 Return result. Argument of_path removed. All users updated.
14320 (vendor_is_ATA): Read only needed part form the file.
14321 (check_sas): Allocate depending on contents rather than fixed.
14322 (main) [STANDALONE]: Handle NULL result.
14324 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14326 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14328 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14330 Cryptodisk write support.
14332 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14333 (grub_cryptodisk_decrypt): Moved logic to ...
14334 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14335 (grub_cryptodisk_write): Implement.
14336 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14337 (grub_util_fd_write): ... this. Make global.
14338 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14340 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342 * include/grub/list.h (grub_list_remove): Don't crash if element is
14345 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14347 Rename ofconsole to console.
14349 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14350 as sysnonym to console.
14351 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14352 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14353 Rename grub_ofconsole_ to grub_console_. All users updated
14354 (grub_console_term_output): Rename "ofconsole" to "console".
14355 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14358 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14360 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14362 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14363 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14364 GRUB_DISK_DEVICE_FILE_ID.
14366 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14368 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14369 and improve performance.
14371 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14373 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14374 missing ieee1275/ prefix on whole disk.
14376 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14378 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14379 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14381 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14383 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14385 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14387 Merge common RAID and LVM logic to an abstract diskfilter.
14388 Add LDM support using the same framework.
14390 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14391 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14392 (libgrubmods): Remove grub-core/disk/raid.c and
14393 grub-core/partmap/gpt.c.
14394 * grub-core/Makefile.core.def (ldm): New module.
14395 (raid): Renamed to diskfilter. All users updated.
14396 * grub-core/disk/raid.c: Moved to ...
14397 * grub-core/disk/diskfilter.c: ... here.
14398 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14400 (find_array): Renamed to ...
14401 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14402 (grub_is_array_readable): Renamed to ...
14403 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14404 (insert_array): New argument id.
14405 (is_node_readable): New function.
14406 (scan_device): Rename to ...
14407 (scan_disk): .. this. Restrict to one disk.
14408 (scan_devices): New function.
14409 (grub_diskfilter_iterate): Support multi-LV.
14410 Skip invisible and nameless LVs.
14411 (grub_diskfilter_memberlist): Support multi-LV.
14412 (grub_diskfilter_read_node): New function.
14413 (grub_raid_read): Most of logic moved to ...
14414 (read_segment): ... here
14415 (read_lv): New function.
14416 (grub_diskfilter_get_vg_by_uuid): New function.
14417 (grub_diskfilter_make_raid): Likewise.
14418 * grub-core/disk/ldm.c: New file.
14419 * grub-core/disk/lvm.c (vg_list): Removed.
14420 (lv_count): Likewise.
14421 (scan_depth): Likewise.
14422 (is_lv_readable): Likewise.
14423 (grub_lvm_getvalue): Advance pointer past the number.
14424 (find_lv): Removed.
14425 (do_lvm_scan): Refactored into ...
14426 (grub_lvm_detect): ... this. Support raid.
14427 (grub_lvm_iterate): Removed.
14428 (grub_lvm_memberlist): Likewise.
14429 (grub_lvm_open): Likewise.
14430 (grub_lvm_close): Likewise.
14431 (read_lv): Likewise.
14432 (read_node): Likewise.
14433 (is_node_readable): Likewise.
14434 (is_lv_readable): Likewise.
14435 (grub_lvm_read): Likewise.
14436 (grub_lvm_write): Likewise.
14437 (grub_lvm_dev): Use diskfilter
14438 (GRUB_MOD_INIT): Likewise.
14439 (GRUB_MOD_FINI): Likewise.
14440 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14442 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14443 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14444 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14445 grub_diskfilter_read_node.
14446 Fix a bug with xor.
14447 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14448 grub_diskfilter_read_node.
14449 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14450 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14451 (grub_disk_dev_iterate): Move from here...
14452 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14453 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14455 (grub_hostdisk_find_partition_start): Likewise.
14456 (grub_hostdisk_os_dev_to_grub_drive): New function.
14457 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14458 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14459 * util/getroot.c (make_device_name): ... here.
14460 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14462 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14463 * grub-core/kern/emu/hostdisk.c
14464 (convert_system_partition_to_system_disk): Move to ...
14465 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14466 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14467 * util/getroot.c (device_is_wholedisk): ... here.
14468 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14469 * util/getroot.c (find_system_device): ... here.
14470 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14472 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14473 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14475 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14479 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14480 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14481 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14483 * include/grub/raid.h: Renamed to ...
14484 * include/grub/diskfilter.h: ... this.
14485 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14486 (GRUB_RAID_LAYOUT_*): Make into array.
14487 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14488 (grub_diskfilter_vg): New struct.
14489 (grub_diskfilter_pv_id): Likewise.
14490 (grub_raid_member): Removed.
14491 (grub_raid_array): Likewise.
14492 (grub_diskfilter_pv): New struct.
14493 (grub_diskfilter_lv): Likewise.
14494 (grub_diskfilter_segment): Likewise.
14495 (grub_diskfilter_node): Likewise.
14496 (grub_diskfilter_get_vg_by_uuid): New proto.
14497 (grub_raid_register): Inline.
14498 (grub_diskfilter_unregister): Likewise.
14499 (grub_diskfilter_make_raid): New proto.
14500 (grub_diskfilter_vg_register): Likewise.
14501 (grub_diskfilter_read_node): Likewise.
14502 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14503 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14504 (grub_util_is_ldm): Likewise.
14505 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14506 (grub_hostdisk_find_partition_start): Likewise.
14507 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14508 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14510 (grub_gpt_partition_map_iterate): New proto.
14511 * include/grub/lvm.h (grub_lvm_vg): Removed.
14512 (grub_lvm_pv): Likewise.
14513 (grub_lvm_lv): Likewise.
14514 (grub_lvm_segment): Likewise.
14515 (grub_lvm_node): Likewise.
14516 * util/getroot.c [...]
14517 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14518 (probe_abstraction): Likewise.
14519 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14520 (main): Remove dead logic.
14522 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14524 Simplify root device discover and don't fail when trying to open
14527 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14529 (get_diskname_from_path): Likewise.
14530 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14533 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14535 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14537 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14539 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14542 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14544 * util/grub-install.in: Add missing \.
14545 Reported by: gentoofan
14547 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14549 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14550 (direct_read): Use correct compressed size.
14551 (grub_squash_read_data): Likewise.
14553 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14555 * docs/grub.texi (Platform limitations): New section.
14556 (Platform-specific operations): Likewise.
14557 * docs/grub-dev.texi (Porting): Likewise.
14559 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14561 IEEE1275 disk write support.
14563 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14566 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14567 and seek loginc to ...
14568 (grub_ofdisk_prepare): ... here.
14569 (grub_ofdisk_write): Implement.
14571 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14573 ARC disk write support.
14575 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14576 (reopen): New argument writable. All users updated.
14577 Handle required access mode.
14578 (grub_arcdisk_write): Implement.
14579 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14580 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14582 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14584 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14585 (read_sblock): Don't attempt to read superblocks outside the disk size.
14587 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14589 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14590 first superblock to find the second one when possible.
14592 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14594 * util/grub-install.in: Fix an ARC bug.
14595 Print a warning if no platform-specific setup is available.
14597 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14599 Use static allocation rather than scratch pointer in reed_solomon.
14600 It decreases its size significantly and avoids a variable in .text.
14602 * grub-core/lib/reed_solomon.c (scratch): Removed.
14603 (chosenstat): New const or static array.
14605 (errpot): Likewise.
14606 (errpos): Likewise.
14609 (errvals): Likewise.
14610 (eqstat): Likewise.
14611 (pol_evaluate): Replace x with log_x argument. All users updated.
14612 (syndroms): Removed.
14613 (gauss_solve): Use statically allocated arrays.
14614 (rs_recover): Likewise.
14615 Calculate syndroms directly.
14616 (decode_block): Use statically allocated arrays.
14617 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14618 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14620 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14622 Eliminate fixed limit on reed solomon decoder length.
14624 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14625 rather than hardcoding the address.
14626 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14627 no_reed_solomon_length.
14628 Move gate_a20 to no-reed-solomon part.
14629 Don't force a particular size of no reed-solomon part.
14630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14632 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14633 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14635 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14637 * grub-core/commands/wildcard.c (match_files): Handle filenames
14638 without explicit device.
14639 (wildcard_expand): Don't add explicit device if not already present.
14640 * tests/grub_script_echo1.in: Add a new expansion test.
14642 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14644 Replace single-linked with double-linked lists. It results in more
14645 compact and more efficient code.
14647 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14648 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14649 (grub_list_remove): Moved from here ...
14650 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14651 (grub_prio_list_insert): Set prev.
14652 * include/grub/list.h (grub_list): Add prev. All users updated.
14654 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14656 Handle newer autotools. Add some missing quotes while on it.
14658 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14659 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14660 (pkgdata_DATA): ... here.
14661 * Makefile.util.def (update-grub_lib): Removed.
14662 * conf/Makefile.common (pkglib_DATA): Removed.
14663 (pkglib_SCRIPTS): Likewise.
14664 (pkgdata_DATA): New variable.
14665 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14667 Add missing quotes.
14668 Remove unused variable while on it.
14669 * tests/util/grub-shell.in: Likewise.
14670 * util/grub-install.in: Likewise.
14671 * util/grub-mkconfig.in: Likewise.
14672 * util/grub-mknetdir.in: Likewise.
14673 * util/grub-mkrescue.in: Likewise.
14674 * util/grub-mkstandalone.in: Likewise.
14675 * util/grub.d/00_header.in: Likewise.
14676 * util/grub.d/10_hurd.in: Likewise.
14677 * util/grub.d/10_illumos.in: Likewise.
14678 * util/grub.d/10_kfreebsd.in: Likewise.
14679 * util/grub.d/10_linux.in: Likewise.
14680 * util/grub.d/10_netbsd.in: Likewise.
14681 * util/grub.d/10_windows.in: Likewise.
14682 * util/grub.d/20_linux_xen.in: Likewise.
14683 * util/grub.d/30_os-prober.in: Likewise.
14684 * util/update-grub_lib.in: Removed.
14686 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14688 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14689 a workaround for intel problem.
14691 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14692 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14693 2012-01-23 pfsmorigo
14695 * util/grub-install.in: Support dd'in into PreP partition.
14696 * util/grub-probe.c (probe): Support discovering partition type.
14697 (main): Support -t msdos_parttype.
14699 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14701 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14702 infinite recursion using counter.
14703 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14704 init to skip it if the magic check fails.
14705 (dec_stream_header): Init s->crc32.
14707 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14708 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14709 2012-01-22 Richard Laager <rlaager@wiktel.com>
14711 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14713 (find_bestub): Determine correct size.
14714 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14715 (scan_disk): Align the size down.
14716 Call check pool before find_bestub to have ashift.
14718 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14720 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14721 dprintf in no-malloc zone.
14723 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14725 * configure.ac: Add back in test for limits.h.
14727 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14729 Support 4K-sector NTFS.
14731 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14732 (grub_ntfs_data): Remove blocksize.
14733 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14734 Remove data argument. All users updated.
14736 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14738 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14739 being in .text to avoid dprel references.
14740 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14741 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14742 (grub_arch_highmemsize): Likewise.
14743 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14744 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14745 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14747 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14749 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14751 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14752 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14754 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14756 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14758 (grub_set_datetime_cmos): Likewise.
14760 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14762 Make XZ compression parameters dependent on target and not host CPU.
14764 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14765 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14767 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14769 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14770 set but not used variable.
14772 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14774 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14775 created when no uuid support is compiled into mkfs.reiser.
14777 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14779 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14780 (utf8_to_macroman): Do the opposite.
14781 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14783 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14785 * configure.ac: Refise build qemu_mips w/o unifont.
14787 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14789 Eliminate grub_min/grub_max prone to overflow usage.
14791 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14792 (poll_nonroot_hub): Likewise.
14793 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14794 (grub_affs_label): Likewise.
14795 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14796 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14797 (grub_hfs_label): Likewise.
14798 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14799 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14800 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14801 (zap_leaf_array_get): Likewise.
14802 (dnode_get_path): Likewise.
14803 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14804 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14805 * grub-core/script/execute.c (grub_script_break): Likewise.
14806 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14808 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14809 * include/grub/misc.h (grub_min): Removed.
14810 (grub_max): Likewise.
14812 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14814 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14817 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14819 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14821 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14823 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14825 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14827 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14828 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14830 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14832 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14833 rather than a hack for grub_strncasemap.
14835 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14837 Support multiple initrds
14838 Note: part of this was accidently committed in r3739.
14840 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14842 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14843 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14844 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14845 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14846 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14848 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14850 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14851 disks with unknown size.
14852 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14854 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14856 Remove defines pertaining to arbitrary limits not affecting GRUB
14859 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14860 (EXT2_MAX_SYMLINKCNT): Likewise.
14861 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14862 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14863 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14864 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14865 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14866 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14867 (DN_MAX_OBJECT_SHIFT): Likewise.
14868 (DN_MAX_OFFSET_SHIFT): Likewise.
14869 (DN_MAX_OBJECT): Likewise.
14870 (DNODES_PER_LEVEL_SHIFT): Likewise.
14871 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14872 (SPA_MAXBLOCKSIZE): Likewise.
14873 (SPA_BLOCKSIZES): Likewise.
14874 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14875 (MZAP_MAX_BLKSZ): Likewise.
14877 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14879 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14880 handle NULL appropriately.
14883 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14887 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14889 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14890 * configure.ac: Fix efiemu check.
14892 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14894 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14896 Reported by: adamwill
14898 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14900 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14902 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14904 Fix handling of wide characters in gfxterm.
14906 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14907 (clear_char): Likewise.
14908 (paint_char): Skip code == NULL chars.
14909 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14911 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14913 * grub-core/normal/charset.c: Move comment to right place.
14915 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14917 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14918 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14919 (grub_affs_mount): Revert the correct version checking.
14921 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14923 * docs/grub.texi (Unicode): Mention several other unsupported features.
14925 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14927 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14928 case statements as compile-time one.
14929 (direct_read): Prevent spurious warnings.
14930 (grub_squash_read_data): Likewise.
14932 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14934 Various squash4 fixes and LZO and XZ support.
14936 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14937 Add xzembed source files.
14938 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14939 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14940 (grub_squash_inode): New subtype long_dir.
14941 (SQUASH_TYPE_LONG_DIR): New inode type.
14942 (COMPRESSION): New enum.
14943 (XZBUFSIZ): New const.
14944 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14945 (read_chunk): Use data->decompress.
14946 (zlib_decompress): New function.
14947 (lzo_decompress): Likewise.
14948 (xz_decompress): Likewise.
14949 (squash_mount): Set new data fields.
14950 (grub_squash_iterate_dir): Handle long dir.
14951 (squash_unmount): Free xzdec and xzbuf.
14952 (grub_squash_open): Check ino type.
14953 (direct_read): Stylistic fixes. Use data->decompress.
14954 (grub_squash_read_data): Likewise.
14955 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14956 (get_byte): Likewise.
14957 (grub_zlib_disk_read): Removed.
14958 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14959 (GRUB_POSIX_BOOL_DEFINED): New define.
14960 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14961 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14962 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14963 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14965 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14967 Don't override more informative errors.
14969 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14970 * grub-core/font/font.c (open_section): Likewise.
14971 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14972 filename. Don't override errors.
14973 (grub_cmd_openbsd_ramdisk): Don't override errors.
14974 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14975 (grub_cmd_initrd): Likewise.
14976 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14977 (grub_cmd_initrd): Likewise.
14978 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14979 (grub_cmd_linux): Likewise.
14980 (grub_cmd_initrd): Likewise.
14981 (grub_cmd_payload): Likewise.
14982 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14983 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14984 (grub_cmd_module): Likewise.
14985 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14986 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14987 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14988 (grub_cmd_xnu_mkext): Likewise.
14989 (grub_cmd_xnu_ramdisk): Likewise.
14990 (grub_xnu_check_os_bundle_required): Likewise.
14991 (grub_xnu_load_kext_from_dir): Likewise.
14992 (grub_cmd_xnu_kextdir): Likewise.
14993 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14995 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14997 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14998 as 1024 in block size field. Found on one of my test images.
14999 Small optimisation while on it.
15001 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15003 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15004 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15005 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15006 performance fixes while on it.
15007 (grub_sfs_close): Fix memory leak while on it.
15008 (grub_sfs_label): Convert Latin1 to UTF-8.
15010 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15012 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15013 space to avoid overflows.
15014 (grub_hfs_label): Convert from macroman to UTF-8.
15016 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15018 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15020 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15022 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15024 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15026 * unicode: Import Unicode 6.0 data.
15028 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15030 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15033 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15035 Avoid cutting in the middle of UTF-8 character.
15037 * include/grub/charset.h (grub_getend): New function.
15038 * grub-core/script/function.c (grub_script_function_find): Use
15040 * grub-core/normal/completion.c (add_completion): Likewise.
15042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15044 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15045 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15046 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15047 (GRUB_UNICODE_TAG_END): Likewise.
15048 (GRUB_UNICODE_LAST_VALID): Likewise.
15050 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15052 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15053 len and make it smaller. All users updated.
15054 * util/import_unicode.py: Put length and not end character.
15057 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15059 Make better Unicode-compliant and unify some UTF-8 code pathes.
15061 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15063 (grub_is_valid_utf8): Use grub_utf8_process.
15064 Check resulting code range.
15065 (grub_utf8_to_ucs4): Use grub_utf8_process.
15066 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15071 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15073 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15075 * docs/grub.texi (Filesystems): Mention AFS.
15077 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15079 * docs/grub.texi (Filesystems): Clarify restrictions.
15080 (Regexp): Mention non-Unicode regexp behaviour.
15081 (Other): Mention non-Unicode matching behaviour.
15083 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15085 Make HFS implementation use MacRoman.
15087 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15088 (macroman): New const array.
15089 (macroman_to_utf8): New function.
15090 (utf8_to_macroman): Likewise.
15091 (grub_hfs_find_dir): Use utf8_to_macroman.
15092 (grub_hfs_dir): Use macroman_to_utf8.
15093 Set case_insensitive.
15095 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15097 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15099 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15101 Integrate hints into autogeneration scripts.
15103 * docs/grub.texi (Filesystems): Add a hostdisk example.
15104 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15105 (grub-probe): Add ofpath.
15106 * gentpl.py: Remove group nosparc64.
15107 * grub-core/commands/search.c (cache_entry): New struct.
15109 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15110 * grub-core/commands/search_wrap.c (options): Add platform-specific
15112 (grub_cmd_search): Handle platform-specific hints.
15113 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15114 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15115 (grub_util_biosdisk_data): Likewise.
15116 (grub_util_biosdisk_open): Set device_map.
15117 (read_device_map): Handle "" as indication of no map.
15119 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15120 (grub_util_biosdisk_get_compatibility_hint): New function.
15121 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15122 * include/grub/emu/hostdisk.h
15123 (grub_util_biosdisk_get_compatibility_hint): New proto.
15124 * util/grub-install.in: Don't call grub-mkdevicemap.
15125 Add platform-specific hint to load.cfg.
15126 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15127 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15128 hints. Set root preliminary to compatibility hint, not to OS name.
15129 * util/grub-probe.c (PRINT_*): Add hints.
15130 (print): Make static.
15131 (escape_of_path): New function.
15132 (guess_bios_drive): Likewise.
15133 (guess_efi_drive): Likewise.
15134 (guess_baremetal_drive): Likewise.
15135 (print_full_name): Likewise.
15136 (probe): Handle hints.
15138 * util/ieee1275/devicemap.c: Removed.
15139 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15141 (grub_util_devname_to_ofpath): Return NULL on failure.
15143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15145 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15147 * po/POTFILES.in: Regenerated.
15149 Allow purely long options
15151 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15152 (SHORT_ARG_USAGE): Likewise.
15153 (grub_arg_show_help): Compare opt with help_options.
15154 (parse_option): Receive opt as argument. If makes big simplificatons.
15157 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15160 Restructure to avoid warning.
15162 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15164 * util/grub-install.in: Account for possible escaped comma in device
15167 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15169 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15172 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15174 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15175 allocation and zero-setting.
15176 (grub_ieee1275_get_devname): Check that alias is complete.
15178 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15180 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15181 unaligned segments.
15183 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15187 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15188 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15189 Add ieee1275 prefix.
15191 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15193 * docs/grub.texi (Filesystems): Update.
15195 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15197 Support odc, newc and bigendian cpio formats.
15199 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15200 * grub-core/Makefile.core.def (newc): New module.
15202 (cpio_be): Likewise.
15203 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15205 (MAGIC2): Likewise.
15206 (head) [MODE_ODC]: Adapt for the format.
15207 (head) [MODE_NEWC]: Likewise.
15208 (head) [!MODE_*]: Write fields of interest as arrays.
15209 (MAGIC_USTAR): Removed.
15210 (read_number) [MODE_NEWC]: Change to hex.
15211 (read_number) [!MODE_*]: Parse binary arrays.
15212 (grub_cpio_find_file): Factor out the code for better structure and
15213 always use read_number.
15214 (grub_cpio_mount): Use MAGIC and MAGIC2.
15215 (grub_cpio_dir): Exit on first hook non-0 return.
15216 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15217 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15218 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15219 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15220 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15221 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15222 * grub-core/fs/newc.c: New file.
15223 * grub-core/fs/odc.c: Likewise.
15224 * grub-core/fs/cpio_be.c: Likewise.
15226 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15228 Fix handling of tar numbers occupying the whole field.
15230 * grub-core/fs/cpio.c (read_number): New function.
15231 (grub_cpio_find_file): Use read_number instead of strtoull.
15233 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15235 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15236 occupying the whole field size.
15238 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15240 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15242 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15244 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15246 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15248 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15249 TARGET_IMG_LDFLAGS.
15251 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15253 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15254 (mountinfo_entry): Increase the field size to take escaping into
15256 (find_root_device_from_libzfs): Add one byte to size of strings for
15259 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15261 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15263 * util/grub-setup.c (setup): Likewise.
15265 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15267 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15270 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15272 * docs/grub.texi (Internationalisation): New section.
15274 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15276 * docs/grub.texi (Loopback booting): New section.
15278 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15280 * util/grub-mkstandalone.in: Fix minor typo errors.
15282 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15284 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15286 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15287 net/icmp.c and net/icmp6.c.
15288 (http): New module.
15289 (priority_queue): Likewise.
15290 * grub-core/io/bufio.c: Rewritten.
15291 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15292 TYPE_WITH_CONFIGFILE_OPTION.
15293 (legacy_commands): Add bootp and dhcp.
15294 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15295 (grub_legacy_parse): Likewise.
15296 * grub-core/lib/priority_queue.c: New file.
15297 * grub-core/net/arp.c: Add missing license header.
15298 (arp_find_entry): Removed.
15299 (arp_find_entry): Likewise.
15300 (grub_net_arp_resolve): Rename to ...
15301 (grub_net_arp_send_request): ...this.
15302 (grub_net_arp_receive): New card argument.
15303 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15304 Set router and DNS server.
15305 (grub_net_configure_by_dhcp_ack): Handle routing information.
15306 (grub_cmd_bootp): Set checksum.
15307 (grub_bootp_init): Remove net_dhcp.
15308 * grub-core/net/dns.c: New file.
15309 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15311 (get_card_packet): Handle allocation.
15312 (grub_efinet_findcards): Set mtu.
15313 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15314 (get_card_packet): Handle allocation.
15315 (emucard): Set mtu.
15316 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15317 (GRUB_MOD_INIT): Set mtu.
15318 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15320 (get_card_packet): Handle allocation.
15321 (grub_ofnet_findcards): Set mtu.
15322 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15324 (grub_net_recv_ethernet_packet): Handle IPv6.
15325 * grub-core/net/http.c: New file.
15326 * grub-core/net/icmp.c: Likewise.
15327 * grub-core/net/icmp6.c: Likewise.
15328 * grub-core/net/ip.c (ip6addr): New type.
15329 (ip6hdr): Likewise.
15330 (reassemble): Likewise.
15331 (cmp): New function.
15332 (reassembles): New variable.
15333 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15334 (id): New variable.
15335 (send_fragmented): New function.
15336 (grub_net_send_ip_packet): Rename to ...
15337 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15339 (grub_net_recv_ip_packets): Rename to ...
15340 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15341 (free_rsm): New function.
15342 (free_old_fragments): Likewise.
15343 (grub_net_recv_ip4_packets): New function.
15344 (grub_net_send_ip6_packet): Likewise.
15345 (grub_net_send_ip_packet): Likewise.
15346 (grub_net_recv_ip6_packets): Likewise.
15347 (grub_net_recv_ip_packets): Likewise.
15348 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15349 (LINK_LAYER_CACHE_SIZE): New const.
15350 (link_layer_find_entry): New function.
15351 (grub_net_link_layer_add_address): Likewise.
15352 (grub_net_link_layer_resolve_check): Likewise.
15353 (grub_net_link_layer_resolve): Likewise.
15354 (grub_net_ipv6_get_slaac): Likewise.
15355 (grub_net_ipv6_get_link_local): Likewise.
15356 (grub_cmd_ipv6_autoconf): Likewise.
15357 (parse_ip): Handle one number representation.
15358 (parse_ip6): New functoion.
15359 (match_net): Handle IPv6.
15360 (grub_net_resolve_address): Handle IPv6 and DNS.
15361 (grub_net_resolve_net_address): Handle IPv6.
15362 (route_cmp): New function.
15363 (grub_net_route_address): Find best route.
15364 (grub_net_addr_to_str): Handle IPv6.
15365 (grub_net_addr_cmp): New function.
15366 (grub_net_add_addr): Register local route.
15367 (print_net_address): Handle net address.
15368 (grub_net_poll_cards): Retransmit TCP.
15369 (grub_net_poll_cards_idle_real): Likewise.
15370 (have_ahead): New function.
15371 (grub_net_seek_real): Use underlying seek.
15372 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15373 * grub-core/net/tcp.c: New file.
15374 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15375 (cmp): New function.
15377 (tftp_receive): Handle unordered input.
15378 (destroy_pq): New function.
15379 (tftp_close): Close pq.
15380 * grub-core/net/udp.c: Put missing license header.
15381 (grub_net_udp_socket): New function.
15382 (udp_socket_register): Likewise.
15383 (grub_net_udp_close): Likewise.
15384 (grub_net_recv_udp_packet): Check checksum.
15385 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15386 * include/grub/misc.h (grub_memchr): New function.
15387 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15388 (grub_net_card_driver): Return buf in recv.
15389 (grub_net_slaac_mac_list): New struct.
15390 (grub_network_level_protocol_id): Add ipv6.
15391 (grub_net_network_level_addr): Likewise.
15392 (grub_net_network_level_net_addr): Likewise.
15393 (grub_net_app_protocol): Add seek.
15394 (grub_net_socket): Removed.
15395 (grub_net_sockets): Likewise.
15396 (grub_net_socket_register): Likewise.
15397 (grub_net_socket_unregister): Likewise.
15398 (FOR_NET_SOCKETS): Likewise.
15399 (grub_net_add_addr): Add const.
15400 (GRUB_NET_BOOTP_*): New enum.
15401 (grub_net_addr_cmp): New proto.
15402 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15403 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15404 (grub_net_hwaddr_to_str): NEw proto.
15405 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15406 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15407 (grub_dns_init): New proto.
15408 (grub_dns_fini): Likewise.
15409 (grub_net_tcp_retransmit): Likewise.
15410 (grub_net_link_layer_add_address): Likewise.
15411 (grub_net_link_layer_resolve_check): Likewise.
15412 (grub_net_link_layer_resolve): Likewise.
15413 (grub_net_dns_lookup): Likewise.
15414 (grub_net_add_dns_server): Likewise.
15415 (grub_net_remove_dns_server): Likewise.
15416 (GRUB_NET_TRIES): New const.
15417 (GRUB_NET_INTERVAL): Likewise.
15418 * include/grub/net/arp.h: Mostly rewritten.
15419 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15420 * include/grub/net/ip.h: Mostly rewritten.
15421 * include/grub/net/netbuff.h: Indent.
15422 * include/grub/net/tcp.h: New file.
15423 * include/grub/net/udp.h: Mostly rewritten.
15424 * include/grub/priority_queue.h: New file.
15425 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15426 (grub_swap_bytes64_compile_time): Likewise.
15427 (grub_cpu_to_be16_compile_time): Likewise.
15428 (grub_cpu_to_be32_compile_time): Likewise.
15429 (grub_cpu_to_be64_compile_time): Likewise.
15430 (grub_be_to_cpu64_compile_time): Likewise.
15432 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15434 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15435 UINT_TO_PTR with cast.
15437 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15439 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15442 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15444 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15447 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15449 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15452 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15454 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15455 Add missing const attribute.
15456 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15458 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15463 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15465 (serpent_setkey): Likewise.
15466 (serpent_encrypt_internal): Likewise.
15467 (serpent_decrypt_internal): Likewise.
15468 (serpent_encrypt): Don't put an alignment-increasing cast.
15469 (serpent_decrypt): Likewise.
15470 (serpent_test): Likewise.
15472 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15474 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15476 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15478 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15480 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15482 (PTR_TO_UINT64): Likewise.
15483 (PTR_TO_UINT32): Likewise.
15485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15487 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15489 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15492 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15494 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15495 text_width > available width a bit more gracefully.
15497 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15499 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15500 current address calculation.
15502 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15504 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15506 (encode_block): Likewise.
15508 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15510 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15513 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15515 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15516 non-RS part to avoid RS messing with GDT.
15517 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15518 Increase to suit in realmode routines.
15520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15522 * grub-core/kern/i386/realmode.S: Increase alignment.
15523 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15525 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15527 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15529 (syndroms): Compute 0 syndrom.
15530 (rs_recover): Use 0 syndrom.
15532 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15534 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15536 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15538 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15543 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15545 (get_top_pad): Likewise.
15546 (get_right_pad): Likewise.
15547 (get_bottom_pad): Likewise.
15549 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15551 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15553 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15555 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15556 attribute as the structure isn't guaranteed to be properly aligned.
15557 (grub_efi_pci_device_path): Likewise.
15558 (grub_efi_pccard_device_path): Likewise.
15559 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15560 specify the size of `memory_type'.
15561 (grub_efi_vendor_device_path): Likewise.
15562 (grub_efi_controller_device_path): Likewise.
15563 (grub_efi_acpi_device_path): Likewise.
15564 (grub_efi_expanded_acpi_device_path): Likewise.
15565 (grub_efi_atapi_device_path): Likewise.
15566 (grub_efi_scsi_device_path): Likewise.
15567 (grub_efi_fibre_channel_device_path): Likewise.
15568 (grub_efi_1394_device_path): Likewise.
15569 (grub_efi_usb_device_path): Likewise.
15570 (grub_efi_usb_class_device_path): Likewise.
15571 (grub_efi_i2o_device_path): Likewise.
15572 (grub_efi_mac_address_device_path): Likewise.
15573 (grub_efi_ipv4_device_path): Likewise.
15574 (grub_efi_ipv6_device_path): Likewise.
15575 (grub_efi_infiniband_device_path): Likewise.
15576 (grub_efi_uart_device_path): Likewise.
15577 (grub_efi_vendor_messaging_device_path): Likewise.
15578 (grub_efi_hard_drive_device_path): Likewise.
15579 (grub_efi_cdrom_device_path): Likewise.
15580 (grub_efi_vendor_media_device_path): Likewise.
15581 (grub_efi_file_path_device_path): Likewise.
15582 (grub_efi_protocol_device_path): Likewise.
15583 (grub_efi_piwg_device_path): Likewise.
15584 (grub_efi_bios_device_path): Likewise.
15586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15588 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15589 (grub_ucs4_to_utf8_alloc): Likewise.
15590 (grub_ucs4_to_utf8): Likewise.
15591 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15592 (grub_ucs4_to_utf8_alloc): Likewise.
15594 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15596 AFFS never uses unicode.
15598 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15599 (grub_latin1_to_utf8): New inline function.
15600 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15604 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15609 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15610 (grub_squash_dirent_header): Likewise.
15611 (read_chunk): Don't double swap.
15612 (grub_squash_iterate_dir): Fix swap sizes.
15614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15616 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15620 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15621 (grub_hfs_iterate_dir): Likewise.
15623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15625 Fix video on platforms where unaligned access is forbidden.
15626 Make several optimisations while on it.
15628 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15629 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15630 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15631 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15633 (grub_video_fbblit_replace_16bit_1bit):
15634 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15635 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15636 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15637 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15638 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15639 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15640 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15641 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15642 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15643 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15644 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15645 (grub_video_fbblit_replace_index_RGB888): Likewise.
15646 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15647 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15648 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15649 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15650 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15651 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15652 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15654 (grub_video_fbblit_blend_XXX565_1bit):
15655 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15656 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15657 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15659 * grub-core/video/fb/video_fb.c (common_blitter)
15660 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15661 (grub_video_fb_create_render_target_from_pointer)
15662 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15663 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15664 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15666 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15670 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15671 HH22 and HM10 relocations.
15673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15675 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15677 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15679 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15680 allocation succeeded.
15682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15684 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15685 argument a u8 pointer. All users updated.
15686 Handle unaligned buffers.
15688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15690 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15691 add_part to workaround compiler bug.
15693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15695 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15700 Reserve alignment invariants.
15701 (grub_multiboot_load): Likewise.
15702 (retrieve_video_parameters): Likewise.
15703 (grub_multiboot_make_mbi): Likewise.
15705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15707 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15710 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15712 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15713 (grub_pata_pio_write): Likewise.
15715 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15717 Add noreturn attributes and remove unreachable code.
15719 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15721 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15722 code. Mark as noreturn.
15723 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15724 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15725 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15727 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15728 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15729 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15730 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15731 * include/grub/kernel.h (grub_main): Mark as noreturn.
15732 * include/grub/reader.h (grub_rescue_run): Likewise.
15734 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15736 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15737 redundant declaration.
15739 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15741 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15742 redundant declaration.
15743 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15745 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15748 to ensure alignment.
15749 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15750 alignment. Ensure tmp alignment.
15751 (grub_cmd_hdparm): Ensure buf alignment.
15752 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15753 to ensure alignment.
15754 (grub_ata_dumpinfo): Ensure text alignment.
15755 (grub_atapi_identify): Preserve alignment invariant.
15756 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15760 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15761 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15762 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15763 * include/grub/misc.h (grub_reboot)
15764 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15765 (grub_halt) [__mips__]: Likewise.
15767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15769 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15770 Remove redundant declaration.
15771 (grub_mmap_get_post64): Likewise.
15772 (grub_mmap_get_upper): Likewise.
15773 (grub_mmap_get_lower): Likewise.
15775 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15777 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15778 uint32_t * to ensure alignment.
15779 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15783 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15784 uint16_t * to ensure alignment.
15785 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15791 to ensure alignment.
15792 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15796 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15797 Handle unaligned pointers.
15800 (fixup): Use byte access instead of v16at.
15801 (find_attr): Fix imporper usage of v32at.
15802 (read_data): Likewise.
15803 (list_file): Handle byte-swapping and unaligned strings.
15804 (grub_ntfs_label): Likewise.
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15809 as it's not necessarily aligned.
15811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15814 redundant declaration.
15815 (grub_serial_init): Likewise.
15816 (grub_terminfo_init): Likewise.
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15822 (ZAP_HASH_IDX): Likewise.
15823 (ZAP_LEAF_HASH_SHIFT): Likewise.
15824 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15825 (LEAF_HASH): Likewise.
15826 (ZAP_LEAF_NUMCHUNKS): Likewise.
15827 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15828 alignment invariants. Return pointer. All users updated.
15829 (ZAP_LEAF_ENTRY): Make into inline function.
15832 (xor_out): Use grub_crypto_xor.
15833 (dnode_get_path): Use grub_get_unaligned.
15834 (nvlist_find_value): Likewise.
15835 (grub_zfs_nvlist_lookup_uint64): Likewise.
15836 (grub_zfs_nvlist_lookup_string): Likewise.
15837 (get_nvlist_size): Likewise.
15838 (grub_zfs_open): Likewise.
15839 (fill_fs_info): Likewise.
15840 (grub_zfs_dir): Likewise.
15841 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15842 alignment invariants.
15843 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15844 necessarily aligned.
15846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15848 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15852 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15853 arithmetic to conserve alignment invariants.
15855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15858 redundant declaration.
15859 (grub_efiemu_mm_obtain_request): Likewise.
15860 (grub_efiemu_prepare): Likewise.
15862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15870 case of aunaligned recptr.
15871 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15873 (grub_hfsplus_btree_search): Handle unaligned index.
15875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15877 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15878 to get freetag and skip.
15880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15884 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15885 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15889 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15890 name for checksum and fix allocation algorithm.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * include/grub/types.h (grub_properly_aligned_t): New type.
15895 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15896 (grub_get_unaligned16): Add explicit casts.
15897 (grub_get_unaligned32): Likewise.
15898 (grub_get_unaligned64): Likewise.
15899 (grub_set_unaligned16): New function.
15900 (grub_set_unaligned32): Likewise.
15902 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15904 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15908 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15909 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15910 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15912 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15914 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15919 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15920 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15924 Unify and improve RAID and crypto xor.
15926 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15927 changed to grub_crypto_xor
15928 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15929 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15930 Use bigger types when possible.
15932 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15934 * grub-core/disk/raid.c (scan_devices): Fix condition.
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15939 Make name a const ptr.
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15943 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15944 first argument a const pointer.
15945 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15948 (grub_children_iterate): Likewise.
15949 (grub_machine_mmap_iterate): Remove redundant declaration.
15951 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15953 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15954 (grub_cmd_acpi) [!x86]: Disable EBDA.
15956 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15958 Enable UTF8 in gnulib regexp.
15960 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15961 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15962 (isupper): Use grub_isupper.
15963 (isascii): New inline function.
15964 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15965 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15966 * grub-core/normal/charset.c (grub_utf8_process): New function.
15967 (grub_utf8_to_utf16): Use grub_utf8_process.
15968 (grub_encode_utf8_character): New function.
15969 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15970 * include/grub/charset.h (grub_utf8_process): New declaration.
15971 (grub_encode_utf8_character): Likewise.
15972 * include/grub/misc.h (grub_islower): New inline function.
15973 (grub_isupper): Likewise.
15974 (grub_strchrsub): Moved down to fix the definitions.
15976 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15978 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15983 * include/grub/loader.h (grub_loader_register_preboot_hook):
15984 Use struct preboot * and not void * for handle. All users updated.
15985 (grub_loader_unregister_preboot_hook): Likewise.
15987 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15989 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15990 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15991 UTF-16-BE. All users updated.
15992 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15993 (grub_hfsplus_iterate_dir): Likewise.
15994 (grub_hfsplus_label): Likewise.
15996 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15998 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16000 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16002 Add missing const qualifiers.
16004 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16005 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16006 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16007 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16008 (grub_lvm_check_flag): Likewise.
16009 * grub-core/efiemu/i386/coredetect.c
16010 (grub_efiemu_get_default_core_name): Likewise
16011 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16012 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16013 * grub-core/fs/ntfs.c (fixup): Likewise.
16014 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16015 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16016 (fzap_lookup): Likewise.
16017 (zap_lookup): Likewise.
16018 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16019 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16020 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16021 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16022 (grub_freebsd_add_meta_module): Likewise.
16023 (grub_cmd_freebsd_module): Likewise.
16024 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16025 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16026 (grub_xnu_writetree_get_size): Likewise.
16027 (grub_xnu_writetree_toheap_real): Likewise.
16028 (grub_xnu_find_key): Likewise.
16029 (grub_xnu_create_key): Likewise.
16030 (grub_xnu_create_value): Likewise.
16031 (grub_xnu_register_memory): Likewise.
16032 (grub_xnu_check_os_bundle_required): Likewise.
16033 (grub_xnu_scan_dir_for_kexts): Likewise.
16034 (grub_xnu_load_kext_from_dir): Likewise.
16035 * grub-core/normal/color.c (color_list): Likewise.
16036 * grub-core/normal/completion.c (current_word): Likewise.
16037 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16038 * grub-core/term/serial.c (grub_serial_find): Likewise.
16039 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16040 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16042 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16043 (grub_freebsd_add_meta_module): Likewise.
16044 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16045 * include/grub/net.h (grub_net_card_driver): Likewise.
16046 (grub_net_card): Likewise.
16047 (grub_net_app_protocol): Likewise.
16048 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16049 * include/grub/serial.h (grub_serial_find): Likewise.
16050 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16051 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16052 (grub_xnu_create_value): Likewise.
16053 (grub_xnu_find_key): Likewise.
16054 (grub_xnu_scan_dir_for_kexts): Likewise.
16055 (grub_xnu_load_kext_from_dir): Likewise.
16057 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16058 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16059 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16060 Moved from here ...
16061 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16063 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16065 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16067 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16069 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16070 (read_device): Fix size calculation.
16072 2011-11-25 Robert Millan <rmh@gnu.org>
16074 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16075 (find_root_device_from_libzfs): Add zpool output parser to be used
16076 as fallback when libzfs isn't available.
16078 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16080 * po/Makefile.in.in: Add missing escape-continuation.
16082 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16084 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16086 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16088 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16090 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16092 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16094 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16096 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16098 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16100 * grub-core/lib/adler32.c: Add missing license specification.
16101 * grub-core/lib/crc64.c: Likewise.
16102 * grub-core/loader/i386/pc/plan9.c: Likewise.
16103 * grub-core/partmap/plan.c: Likewise.
16105 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16107 Add facility to debug GRUB with gdb under qemu.
16109 * grub-core/gdb_grub.in: New file.
16110 * grub-core/gmodule.pl.in: Likewise.
16111 * grub-core/Makefile.core.def (gmodule.pl): New script.
16112 (gdb_grub): Likewise.
16114 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16116 * util/grub-mount.c (argp_parser): Accept relative pathes.
16117 * util/grub-fstest.c (argp_parser): Likewise.
16119 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16123 * Makefile.util.def (libgrubmods): Add
16124 grub-core/partmap/plan.c.
16125 * docs/grub.texi: Notice Plan9 support.
16126 * grub-core/Makefile.core.def (plan9): New module.
16127 (part_plan): Likewise.
16128 * grub-core/loader/i386/pc/plan9.c: New file.
16129 * grub-core/partmap/plan.c: Likewise.
16130 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16132 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16133 * include/grub/mm.h (grub_extend_alloc): New inline function.
16135 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16137 Make Reed-Solomon faster by using power of generator representation of
16140 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16141 (gf_double_t): Likewise.
16142 (gf_invert): Removed.
16143 (gf_powx): New array.
16144 (gf_powx_inv): Likewise.
16145 (scratch): Move higher.
16146 (gf_reduce): Removed.
16147 (gf_mul): Use powx.
16148 (gf_invert): Likewise.
16149 (init_inverts): Replaced with ...
16150 (init_powx): ...this. All users updated.
16151 (pol_evaluate): Replace multiplications with additions.
16152 (rs_encode): Likewise.
16153 (gauss_eliminate): Call gf_invert.
16154 (grub_reed_solomon_add_redundancy): Call init_powx.
16155 (grub_reed_solomon_recover): Call init_powx unconditionally.
16157 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16159 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16161 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16164 disk->partiton for safety.
16166 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16170 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16172 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16174 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16176 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16178 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16182 Fix spaces handling in proc/self/mountinfo.
16184 * util/getroot.c (unescape): New function.
16185 (grub_find_root_device_from_mountinfo): Use unescape.
16187 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16189 Support ZFS embedding.
16191 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16192 (grub_zfs_fs): Register grub_zfs_embed.
16194 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16196 Fix MIPS compilation.
16198 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16199 * include/grub/offsets.h: Rename decompressor fields from
16200 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16201 * util/grub-mkimage.c (image_targets): Use new names.
16203 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16205 Defer multiboot device parsing until we're in compressed part.
16207 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16208 bsd_part. setdevice has fallen into disuse.
16209 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16210 (bsd_part): Likewise.
16211 (boot_dev): New variable.
16212 (multiboot_trampoline): Don't parse multiboot device.
16213 Pass multiboot device in %edx.
16214 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16216 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16218 * grub-core/kern/i386/pc/startup.S: Save edx.
16219 (grub_boot_drive): Removed.
16220 (grub_install_dos_part): Likewise.
16221 (grub_install_bsd_part): Likewise.
16222 (grub_boot_device): New variable.
16223 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16224 (grub_install_bsd_part): Likewise.
16225 (grub_boot_drive): Likewise.
16226 (grub_boot_device): New variable.
16227 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16229 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16230 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16231 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16232 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16233 * util/grub-install.in: Remove redundant condition.
16235 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16237 Fix bug introduced by previous commit.
16239 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16241 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16243 Use decompressors framework on i386-pc. It increases core size
16244 by 46 bytes but improves compatibility and maintainability.
16246 * grub-core/Makefile.core.def (lzma_decompress): New image.
16247 (kernel): Add i386_pc_ldflags.
16248 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16249 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16250 to real_to_prot, prot_to_real and device info.
16251 * include/grub/offsets.h: Renamed decompressor offsets.
16252 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16253 (image_target_desc): Remove raw_size and rename decompressor fields.
16254 (compress_kernel): Handle lzma.
16255 (generate_image): Handle decompressors on i386-pc.
16257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16259 * configure.ac: Add -fno-asynchronous-unwind-tables.
16261 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16263 Move assembly code to C by using intwrap. It increases core size
16264 by 88 bytes but improves compatibility and maintainability.
16266 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16267 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16268 ... here. Translated to C.
16269 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16270 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16271 ... here. Translated to C.
16272 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16273 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16274 ... here. Translated to C.
16275 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16276 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16277 ... here. Translated to C.
16278 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16279 * grub-core/term/i386/pc/console.c (grub_console_cls):
16280 ... here. Translated to C.
16281 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16282 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16283 ... here. Translated to C.
16284 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16285 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16287 * grub-core/term/i386/pc/console.c (int10_9): New function.
16288 (grub_console_putchar): Likewise.
16289 * include/grub/i386/pc/console.h: Removed the not anymore shared
16292 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16294 Move grub_chainloader_real_boot out of the kernel.
16296 * grub-core/Makefile.am: Remove machine/loader.h.
16297 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16299 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16301 (grub_relocator16_keep_a20_enabled): Likewise.
16302 (grub_relocator16_boot): Fill new variables.
16303 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16304 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16306 (grub_chainloader_unload): Likewise.
16307 (grub_chainloader_cmd): Likewise.
16308 * include/grub/i386/pc/loader.h: Removed.
16309 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16310 and esi. All initialisers updated.
16312 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16313 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16315 * Makefile.util.def (grub-mount): New util.
16316 * .bzrignore: Add grub-mount.
16317 * configure.ac: Check for fuse and enable grub-mount if available.
16318 * docs/man/grub-mount.h2m: New file.
16319 * util/grub-mount.c: Likewise.
16321 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16323 * grub-core/commands/efi/fixvideo.c: Gettextize.
16324 * grub-core/commands/hashsum.c: Likewise.
16325 * grub-core/commands/i386/cmostest.c: Likewise.
16326 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16327 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16328 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16329 * grub-core/commands/lsmmap.c: Likewise.
16330 * grub-core/commands/menuentry.c: Likewise.
16331 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16332 * grub-core/commands/setpci.c: Likewise.
16333 * grub-core/loader/i386/bsd.c: Likewise.
16334 * grub-core/loader/i386/linux.c: Likewise.
16335 * util/getroot.c: Likewise.
16336 * util/grub-editenv.c: Likewise.
16337 * util/grub-fstest.c: Likewise.
16338 * util/grub-mkfont.c: Likewise.
16339 * util/grub-mkimage.c: Likewise.
16340 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16341 * util/grub-pe2elf.c: Likewise.
16342 * util/grub-probe.c: Likewise.
16343 * util/grub-setup.c: Likewise.
16344 * util/ieee1275/ofpath.c: Likewise.
16345 * util/misc.c: Likewise.
16346 * util/raid.c: Likewise.
16348 2011-11-11 Robert Millan <rmh@gnu.org>
16350 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16351 __attribute__((unused)) from `os_dev', which *is* being used.
16353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16355 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16357 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16358 GRUB_IA64_DL_GOT_ALIGN.
16359 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16360 GRUB_IA64_DL_TRAMP_ALIGN.
16362 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16364 Replace grub_fatal with normal errors in i386 linux loader.
16366 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16367 (allocate_pages): Check find_efi_mmap_size return value.
16368 (grub_e820_add_region): Return error.
16369 (grub_linux_boot): Check mmap return value.
16371 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16373 * grub-core/commands/acpihalt.c: Gettextized.
16374 * grub-core/commands/cacheinfo.c: Likewise.
16375 * grub-core/commands/cmp.c: Likewise.
16376 * grub-core/commands/efi/loadbios.c: Likewise.
16377 * grub-core/commands/gptsync.c: Likewise.
16378 * grub-core/commands/ieee1275/suspend.c: Likewise.
16379 * grub-core/commands/legacycfg.c: Likewise.
16380 * grub-core/commands/memrw.c: Likewise.
16381 * grub-core/commands/minicmd.c: Likewise.
16382 * grub-core/commands/parttool.c: Likewise.
16383 * grub-core/commands/time.c: Likewise.
16384 * grub-core/commands/videoinfo.c: Likewise.
16385 * grub-core/disk/geli.c: Likewise.
16386 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16387 * grub-core/disk/luks.c: Likewise.
16388 * grub-core/disk/lvm.c: Likewise.
16389 * grub-core/font/font_cmd.c: Likewise.
16390 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16391 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16392 * grub-core/gfxmenu/view.c: Likewise.
16393 * grub-core/kern/emu/hostdisk.c: Likewise.
16394 * grub-core/kern/emu/main.c: Likewise.
16395 * grub-core/kern/emu/misc.c: Likewise.
16396 * grub-core/kern/emu/mm.c: Likewise.
16397 * grub-core/kern/mips/arc/init.c: Likewise.
16398 * grub-core/kern/mips/loongson/init.c: Likewise.
16399 * grub-core/kern/partition.c: Likewise.
16400 * grub-core/lib/i386/halt.c: Likewise.
16401 * grub-core/lib/mips/arc/reboot.c: Likewise.
16402 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16403 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16404 * grub-core/loader/i386/xnu.c: Likewise.
16405 * grub-core/loader/multiboot.c: Likewise.
16406 * grub-core/net/bootp.c: Likewise.
16407 * grub-core/net/net.c: Likewise.
16408 * grub-core/normal/term.c: Likewise.
16409 * grub-core/partmap/bsdlabel.c: Likewise.
16410 * grub-core/parttool/msdospart.c: Likewise.
16411 * grub-core/term/gfxterm.c: Likewise.
16412 * grub-core/term/terminfo.c: Likewise.
16413 * grub-core/video/i386/pc/vbe.c: Likewise.
16414 * util/grub-menulst2cfg.c: Likewise.
16415 * util/grub-mkdevicemap.c: Likewise.
16416 * util/grub-mklayout.c: Likewise.
16417 * util/grub-mkrelpath.c: Likewise.
16418 * util/grub-script-check.c: Likewise.
16419 * util/ieee1275/grub-ofpathname.c: Likewise.
16420 * util/resolve.c: Likewise.
16422 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16424 Support %1$d syntax.
16426 * tests/printf_unit_test.c: New file.
16427 * Makefile.util.def (printf_test): New test.
16428 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16430 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16432 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16435 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16437 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16439 * grub-core/font/font.c (grub_font_load): Likewise.
16441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16443 * util/grub-macho2img.c: Add comment concerning gettext.
16444 * grub-core/lib/legacy_parse.c: Likewise.
16446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16448 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16449 (grub_xvasprintf): Likewise.
16451 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16453 Add const keyword to grub_env_get and gettextize week days.
16455 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16456 (grub_read_hook_datetime): Return const char *.
16457 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16459 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16461 (grub_get_weekday_name): Return const char *. Call gettext.
16462 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16463 char * and len as the argument. All users updated.
16464 (grub_script_argv_split_append): Receive const char *.
16465 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16466 * include/grub/env.h (grub_env_get): Likewise.
16467 (grub_env_read_hook_t): Return const char *.
16468 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16469 (grub_script_argv_split_append): Likewise.
16471 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16473 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16475 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16477 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16478 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16480 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16487 Fix mips compilation.
16489 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16491 (hashes): Use in embed decoder as well (for sizes).
16492 (dec_stream_header): Fix embed decompressor logic.
16493 (dec_stream_footer): Likewise.
16495 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16497 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16498 an error and not a fatal on unrecognised relocation types.
16500 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16502 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16503 Issue error rather than printf on unknown arguments.
16505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16507 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16510 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16512 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16515 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16517 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16518 leftover debug printf.
16520 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16522 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16526 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16531 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16533 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16535 Allow all modules to perform serial IO
16537 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16538 * include/grub/serial.h (grub_serial_port_configure): New inline
16540 (grub_serial_port_fetch): Likewise.
16541 (grub_serial_port_put): Likewise.
16542 (grub_serial_port_fini): Likewise.
16543 (grub_serial_find): New proto.
16545 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16547 Put symlink at the end of the node and fix a potential
16550 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16551 Make symlink into an array.
16552 (set_rockridge): Set have_symlink and alloc_dirents.
16553 (grub_iso9660_read_symlink): Use new layout.
16554 (grub_iso9660_iterate_dir): Fix memory corruption.
16556 (grub_iso9660_dir): Set have_symlink.
16557 (grub_iso9660_open): Likewise.
16559 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16561 Remove local keyword.
16563 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16564 (version_test_gt): Likewise.
16565 (version_find_latest): Likewise.
16566 (gettext_printf): Likewise.
16567 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16569 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16571 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16573 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16575 Fix ZFS memory and resource leaks.
16577 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16580 (fill_vdev_info): New parameter inserted. All users updated.
16581 (check_pool_label): Likewise.
16582 (scan_disk): Likewise.
16583 (scan_devices): Close non-inserted disks.
16584 (fzap_iterate): Free l.
16585 (unmount_device): Free children descripto memory.
16587 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16589 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16590 argument (access out of bounds).
16592 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16594 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16597 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16599 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16602 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16604 Fix several memory leaks.
16606 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16607 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16608 (grub_cpio_dir): Likewise.
16609 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16610 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16611 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16612 (grub_romfs_label): Likewise.
16613 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16614 (squash_unmount): New function.
16615 (grub_squash_dir): Fix memory leak.
16616 (grub_squash_open): Likewise.
16617 (grub_squash_read): Likewise.
16618 (grub_squash_mtime): Likewise.
16619 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16620 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16621 * util/grub-fstest.c (fstest): Likewise.
16623 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16625 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16626 avoid accessing beyond the array.
16628 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16630 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16632 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16634 Several AFFS fixes.
16636 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16637 (GRUB_AFFS_FLAG_FFS): Removed.
16638 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16639 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16640 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16641 (grub_fshelp_node): Make block 32-bit.
16642 Add block_cache and last_block_cache.
16643 (grub_affs_read_block): Fill and use block cache.
16644 (grub_affs_read_file): Removed.
16645 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16647 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16649 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16651 (grub_affs_close): Free block cache.
16652 (grub_affs_read): Use grub_fshelp_read_file directly.
16654 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16656 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16659 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16661 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16663 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16666 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16668 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16670 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16671 byteswap when needed.
16673 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16675 Fix FreeBSD compilation.
16677 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16678 to avoid circular dependency.
16679 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16680 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16681 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16683 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16685 Fix ZFS crypto error types.
16687 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16688 (grub_gcm_decrypt): Likewise.
16689 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16692 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16696 * Makefile.util.def (10_illumos): New script.
16697 * configure.ac: Set COND_HOST_ILLUMOS.
16698 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16699 Support Illumos calls.
16700 (find_partition_start) [__sun__]: Likewise.
16701 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16702 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16703 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16704 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16706 * util/grub-probe.c (probe) [__sun__]: Do character check.
16707 * util/grub.d/10_illumos.in: New file.
16709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16711 Support escaped commas in hostdisk.
16713 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16714 (find_grub_drive): Use unescape_cmp.
16715 (make_device_name): Escape commas.
16717 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16719 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16721 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16723 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16726 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16728 Support trampoline jumps on powerpc.
16730 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16732 (grub_dl_load_segments): Set mod->sz.
16733 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16735 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16737 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16739 (trampoline): New struct.
16740 (trampoline_template): New const.
16741 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16742 * include/grub/dl.h (grub_dl): Add sz element.
16743 [__powerpc__]: Follow __ia64__.
16744 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16745 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16746 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16747 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16749 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16751 ZFS crypto support.
16753 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16754 * grub-core/Makefile.core.def (zfscrypt): New module.
16755 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16756 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16757 it. All users updated.
16758 (grub_zfs_decrypt): New var.
16759 (grub_zfs_load_key): Likewise.
16760 (zio_checksum_functions): Add SHA256+MAC.
16761 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16762 (zio_read): Handle encrypted blocks.
16763 (zap_verify): Remove incorrect check.
16764 (fzap_iterate): Handle non-standard fzap.
16765 (zap_iterate): Likewise.
16766 (zap_iterate_u64): New function.
16767 (dnode_get_fullpath): Load keys.
16768 * grub-core/fs/zfs/zfscrypt.c: New file.
16769 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16770 (grub_crypto_ecb_encrypt): Make input const.
16771 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16772 (grub_crypto_ecb_encrypt): Make input const.
16773 (GRUB_CIPHER_AES): New macro.
16774 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16775 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16776 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16777 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16778 prefix. All users updated.
16779 (grub_zfs_add_key): New proto.
16780 (grub_zfs_decrypt): Likewise.
16781 (grub_zfs_load_key): Likewise.
16782 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16783 * util/grub-fstest.c (options): Add -K option.
16784 (argp_parser): Likewise.
16786 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16788 Support zle compression on ZFS.
16790 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16791 (decomp_table): Add zle.
16792 * include/grub/zfs/zio.h (zio_compress): Add zle.
16794 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16796 Support BtrFS embedding.
16798 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16799 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16800 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16801 * util/grub-setup.c (setup): Use fs embedding if available.
16802 Add additional sanity check.
16804 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16806 * util/grub-install.in: Fix condition for config_opt.
16808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16810 Support third redundancy strip on raidz3.
16812 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16813 Return error on singularity. All users updated.
16814 (read_device): Don't stop on 3rd failure on raidz3.
16816 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16818 Support case-insensitive ZFS subvolumes.
16820 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16822 (zap_hash): Likewise.
16823 (name_cmp): New function.
16824 (zap_leaf_array_equal): New parameter case_insensitive.
16826 (zap_leaf_lookup): Likewise.
16827 (fzap_lookup): Likewise.
16828 (zap_lookup): Likewise.
16829 (dnode_get_path): New parameter case_insensitive. Retrieve case
16830 sensitiviness of a volume. All users updated.
16831 (dnode_get_fullpath): New parameter case_insensitive.
16833 (grub_zfs_dir): Set info.case_insensitiveness.
16835 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16837 Support second redundancy strip on raidz(2,3).
16839 * grub-core/fs/zfs/zfs.c (powx): New array.
16840 (powx_inv): Likewise.
16842 (xor_out): New function.
16843 (gf_mul): Likewise.
16844 (recovery): Likewise.
16845 (read_device): Use second redundancy strip.
16847 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16849 Use a power of generator representation of GF(256) multiplication group
16850 to save space time and complexity.
16852 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16853 (raid6_table2): Likewise.
16855 (powx_inv): Likewise.
16857 (grub_raid_block_mul): Replace with ...
16858 (grub_raid_block_mulx): ...this.
16859 (grub_raid6_init_table): Rewritten.
16860 (grub_raid6_recover): Use power of generator representation.
16862 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16864 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16865 for the right device.
16867 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16869 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16870 expected by grub-mkimage and it's more clear since there is no implicit
16873 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16875 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16877 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16879 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16881 * util/grub-mkrescue.in: Fix handling xorriso option.
16883 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16888 2011-11-03 crocket <crockabiscuit@gmail.com>
16890 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16892 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16894 XZ CRC64 and SHA256 support.
16896 * Makefile.util.def (libgrubmods): Add crc64.c.
16897 * grub-core/Makefile.core.def (crc64): New module.
16898 * grub-core/lib/crc64.c: New file.
16899 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16900 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16902 (MAX_HASH_SIZE): New define.
16903 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16904 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16905 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16906 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16907 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16908 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16909 Handle non-crc32 hashes.
16910 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16911 (dec_stream_header): Handle non-crc32 hashes.
16912 (dec_stream_footer): Likewise.
16913 (dec_block_header): Likewise.
16914 (dec_main): Likewise.
16915 (xz_dec_init): Likewise.
16916 (xz_dec_reset): Likewise.
16917 (xz_dec_end): Likewise.
16918 * util/import_gcry.py: Add CRC64 line.
16920 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16922 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16925 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16927 Make reiserfs label retrieval similar to other *_label functions.
16929 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16930 (REISERFS_MAX_LABEL_LENGTH): Removed.
16931 (REISERFS_LABEL_OFFSET): Likewise.
16932 (grub_reiserfs_label): Rewritten.
16934 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16936 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16939 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16941 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16943 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16945 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16946 drive failure on both raidz and raidz2.
16948 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16950 Fix RAIDZ(2) for >= 5 devices.
16952 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16953 asize argument. All users updated.
16955 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16959 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16960 (fill_vdev_info_real): Set ashift.
16961 (read_device): Rewrite RAIDZ part based on reverse engineering.
16963 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16965 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16966 don't report potentially unavialiable fields in debug output.
16967 (find_path): Fix double-free and memory leak.
16969 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16971 Read label on UFS1.
16973 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16974 (grub_ufs_fs): Always set .label.
16976 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16980 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16981 (grub_ufs_data): New field log2_blksz.
16982 (grub_ufs_read_file): Use shifts.
16983 (grub_ufs_mount): Check block size and logarithm it.
16985 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16987 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16990 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16992 Handle symlinks and long names on tar and cpio.
16994 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16995 (ATTR_FILE): Likewise.
16996 (ATTR_DIR): Likewise.
16997 (ATTR_LNK): Likewise.
16998 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16999 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17001 (grub_cpio_mount): Zero-fill data.
17002 (handle_symlink): New function.
17003 (grub_cpio_dir): Handle symlinks.
17004 (grub_cpio_open): Likewise.
17005 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17007 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17009 Fix iso9660 filename limitations and fix memory leaks.
17011 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17012 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17014 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17016 Fix JFS file name length limitations.
17018 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17019 (grub_jfs_diropen): Fix maximum filename length.
17020 (grub_jfs_getent): Fix filename length.
17021 (grub_jfs_lookup_symlink): Fix size checks.
17023 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17025 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17028 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17030 Leverage BFS implementation to read AFS.
17032 * Makefile.util.def (libgrubmods): Add afs.c.
17033 * grub-core/Makefile.core.def (afs): New module
17034 * grub-core/fs/afs.c: New file.
17035 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17039 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17041 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17043 * grub-core/fs/bfs.c: Run indent.
17045 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17047 BFS implementation based on the specification.
17049 * grub-core/fs/bfs.c: New file.
17050 * Makefile.util.def (libgrubmods): Add bfs.c.
17051 * grub-core/Makefile.core.def (bfs): New module.
17053 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17055 * util/grub-fstest.c (cmd_cp): Clarify error message.
17056 (cmd_cmp): Likewise.
17058 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17060 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17063 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17065 Remove afs and befs because of copyright problem.
17067 * grub-core/fs/afs.c: Removed.
17068 * grub-core/fs/afs_be.c: Removed.
17069 * grub-core/fs/befs.c: Removed.
17070 * grub-core/fs/befs_be.c: Removed.
17071 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17072 * grub-core/Makefile.core.def (afs): Removed.
17073 (afs_be): Likewise.
17075 (befs_be): Likewise.
17077 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17079 Prefer rockridge over Joliet.
17081 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17083 (set_rockridge): ... here.
17084 (grub_iso9660_mount): Check rockridge on the primary label when
17085 discovering. Ignore Joliet if Rockridge is present.
17087 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17089 Use shifts in nilfs2.
17091 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17092 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17093 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17094 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17095 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17096 (grub_nilfs2_entries_per_block): Replaced with ...
17097 (grub_nilfs2_log_entries_per_block_log): ... this.
17098 (grub_nilfs2_blocks_per_group): Replaced with ...
17099 (grub_nilfs2_blocks_per_group_log): ... this.
17100 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17101 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17102 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17103 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17104 (grub_nilfs2_palloc_entry_offset): Replaced ...
17105 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17106 (grub_nilfs2_dat_translate): Use shifts.
17107 (grub_nilfs2_read_inode): Likewise.
17108 (GRUB_MOD_INIT): Ensure that logs are correct.
17110 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17112 Use shifts in minix filesystem.
17114 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17115 (GRUB_MINIX_ZONE2SECT): Likewise.
17116 (grub_minix_data): Replace block_size with log_block_size.
17117 (grub_minix_read_file): Use shifts.
17118 (grub_minix_mount): Check block size and take a logarithm.
17120 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17122 Use shifts in squash4.
17124 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17125 (squash_mount): Check block size and take logarithm.
17126 (direct_read): Use shifts.
17128 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17130 Correct befs block counting logic.
17132 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17133 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17134 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17135 (grub_afs_read_inode): Use block_shift.
17136 (RANGE_SHIFT): New definition.
17137 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17138 unexpected conditions, use shifts and appropriate types.
17139 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17141 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17143 * grub-core/disk/raid.c (scan_devices): Check partition.
17144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17146 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17148 Support BFS (befs) UUID.
17150 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17151 (grub_afs_small_data_element_header): New struct.
17152 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17153 (grub_afs_read_attribute) [MODE_BFS]: New function.
17154 (grub_afs_iterate_dir): Allocate for complete inode.
17155 (grub_afs_mount): Likewise.
17156 (grub_afs_uuid) [MODE_BFS]: New function.
17157 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17159 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17161 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17162 (zfs_unmount): Fix memory leak.
17164 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17166 Support NTFS reparse points.
17168 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17169 (symlink_descriptor): New struct.
17170 (grub_ntfs_read_symlink): New function.
17171 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17172 (grub_ntfs_open): Likewise.
17174 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17176 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17178 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17180 fstest xnu_uuid subcommand.
17182 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17183 grub-core/commands/xnu_uuid.c.
17184 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17185 (fstest): Handle xnu_uuid.
17186 (options): Document xnu_uuid.
17187 (argp_parser): Parse xnu_uuid.
17189 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17191 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17192 -l argument. Add newline at the end if printing.
17193 (GRUB_MOD_INIT): Document -l.
17195 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17197 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17199 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17201 ZFS multi-device and version 33 support.
17203 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17204 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17205 (grub_zfs_data): Add multidev-ice-related fields.
17206 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17207 (dva_get_offset): Make dva const.
17208 (zfs_fetch_nvlist): New function.
17209 (fill_vdev_info_real): Likewise.
17210 (fill_vdev_info): Likewise.
17211 (check_pool_label): Likewise.
17212 (scan_disk): Likewise.
17213 (scan_devices): Likewise.
17214 (read_device): Likewise.
17215 (read_dva): Likewise.
17216 (zio_read_gang): Use read_dva.
17217 (zio_read_data): Likewise.
17218 (zap_leaf_lookup): Add missing endian conversion.
17219 (zap_verify): Add missing endian conversion. All users updated.
17220 (fzap_lookup): Likewise.
17221 (fzap_iterate): Likewise.
17222 (dnode_get_path): Handle SA bonus.
17223 (nvlist_find_value): Make input const. All users updated.
17224 (unmount_device): New function.
17225 (zfs_unmount): Use unmount_device.
17226 (zfs_mount): Use scan_disk.
17227 (zfs_mtime): New function.
17228 (grub_zfs_open): Handle system attributes.
17229 (fill_fs_info): Likewise.
17230 (grub_zfs_dir): Likewise.
17231 (grub_zfs_fs): Add mtime.
17232 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17233 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17234 (SA_MTIME_OFFSET): Likewise.
17235 (SA_SYMLINK_OFFSET): Likewise.
17236 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17237 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17238 (fstest): Support zfsinfo.
17239 (argp_parser): Likewise.
17241 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17243 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17246 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17250 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17251 sharing the same block. Iterate over correct number of indices.
17252 (dnode_get_path): Handle symlinks correctly.
17254 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17256 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17260 Read label on HFS+.
17262 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17263 (grub_hfsplus_btree_search): Fix types.
17264 (grub_hfsplus_label): Implement.
17266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17268 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17270 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17272 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17274 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17276 Fix symlink handling on iso9660.
17278 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17280 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17281 (grub_iso9660_read_symlink): Moved most of code ...
17282 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17287 Use union to avoid breaking strict-aliasing rules.
17289 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17291 Support multi-extent iso files.
17293 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17295 (grub_fshelp_node): Revamp. All users updated.
17296 (FLAG_*): New enum.
17297 (read_node): New function.
17298 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17300 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17301 (get_node_size): New function.
17302 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17304 Fix memory leak on . and ..
17305 (grub_iso9660_read): Use read_node.
17306 (grub_iso9660_close): Free node.
17308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17310 Fix tar 4G limit and handle paths containing dot.
17312 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17313 (canonicalize): New function.
17314 (grub_cpio_find_file): Use canonicalize. Store offs in
17316 (grub_cpio_dir): Use grub_disk_addr_t.
17317 (grub_cpio_open): Likewise.
17319 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17321 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17323 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17325 (grub_squash_inode): Add long_file and block_size.
17326 (grub_squash_cache_inode): New struct.
17327 (grub_squash_dirent): Make types into enum.
17328 (SQUASH_TYPE_LONG_REGULAR): New type.
17329 (grub_squash_frag_desc): Add field size.
17330 (SQUASH_BLOCK_FLAGS): New enum.
17331 (grub_squash_data): Use grub_squash_cache_inode.
17332 (grub_fshelp_node): Make ino_chunk 64-bit.
17333 (read_chunk): Minor argument change. All users updated.
17334 (squash_mount): Use correct le_to_cpu.
17335 (grub_squash_open): Handle LONG_REGULAR.
17336 (direct_read): New function.
17337 (grub_squash_read_data): Handle blocks correctly.
17339 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17341 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17343 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17345 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17347 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17349 Fix 2G limit on ZFS.
17351 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17353 (uberblock_verify): Likewise.
17354 (dmu_read): Likewise.
17355 (grub_zfs_read): Likewise. Remove invalid cast.
17357 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17359 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17360 (grub_jfs_blkno): Fix incorrect shift.
17361 (grub_jfs_read_file): Use more appropriate types.
17363 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17365 Support triple indirect on minix2 and minix3.
17367 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17368 Declare triple_indir_zone.
17369 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17372 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17376 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17377 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17378 Rename ctime to mtime. All users updated.
17379 (grub_minix_get_file_block): Fix types and double indirect computations.
17381 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17383 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17384 if no label is found.
17385 (grub_fat_iterate_dir): Fix file size type.
17386 (grub_fat_iterate_dir): Likewise.
17388 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17390 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17392 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17397 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17401 * util/import_gcry.py: Accept space between # and include.
17403 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17405 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17407 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17409 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17411 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17412 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17414 * grub-core/script/yylex.l: Add fine-grained #pragma.
17416 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17418 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17419 New inline function.
17420 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17422 (memset) [GRUB_UTIL]: Likewise.
17423 (memcmp) [GRUB_UTIL]: Likewise.
17425 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17427 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17428 inline function rather than a define.
17430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17432 * util/grub-setup.c: Add missing include.
17434 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17436 * util/ieee1275/grub-ofpathname.c: Add missing include.
17438 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17440 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17441 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17446 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17451 * util/grub-install.in: Add datarootdir as per automake manual
17453 * util/grub-mknetdir.in: Likewise.
17455 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17457 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17459 * util/grub.d/10_kfreebsd.in: Likewise.
17460 * util/grub.d/10_linux.in: Likewise.
17461 * util/grub.d/10_netbsd.in: Likewise.
17462 * util/grub.d/10_windows.in: Likewise.
17463 * util/grub.d/20_linux_xen.in: Likewise.
17465 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17467 Remove redundant grub_kernel_image_size.
17469 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17471 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17472 the small code. It moves it only by few bytes but simplifies the code.
17473 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17475 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17476 (grub_kernel_image_size): Removed.
17477 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17478 (grub_kernel_image_size): Removed.
17479 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17480 compiled with Apple toolchain.
17481 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17482 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17483 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17484 (grub_total_module_size): Likewise.
17485 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17487 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17488 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17489 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17490 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17491 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17492 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17493 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17494 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17496 (grub_total_module_size): Removed.
17497 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17498 (image_targets): Likewise.
17499 Set .compressed_size to no field on sparc.
17500 (generate_image): Remove kernel_image_size handling.
17502 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17504 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17505 NULL pointer dereference.
17507 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17509 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17510 done with a dedicated section.
17512 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17513 Ensure the correct position of boot_path.
17514 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17515 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17517 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17518 * include/grub/boot.h: Removed. All references removed.
17519 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17521 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17523 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17525 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17528 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17530 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17532 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17535 Don't add the bogus brackets.
17537 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17541 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17542 * grub-core/Makefile.core.def (exfat): New module.
17543 * grub-core/fs/exfat.c: New file.
17544 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17545 (GRUB_FAT_ATTR_*): Make into an enum.
17546 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17547 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17548 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17549 (GRUB_FAT_MAXFILE): Removed.
17550 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17551 (grub_current_fat_bpb_t): New type.
17552 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17553 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17554 (grub_fat_dir_node_t): New type.
17555 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17556 (fat_log2) [MODE_EXFAT]: Removed.
17557 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17558 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17559 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17560 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17561 (grub_fat_label) [MODE_EXFAT]: New function.
17562 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17563 reserved_first_sector to 0.
17565 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17567 Move grub_reboot out of the kernel.
17569 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17570 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17571 * grub-core/lib/efi/reboot.c: ... here.
17572 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17573 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17574 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17575 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17576 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17577 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17578 * grub-core/lib/ieee1275/reboot.c: ... here.
17579 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17580 * grub-core/lib/mips/arc/reboot.c: ... here.
17581 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17582 * grub-core/lib/mips/loongson/reboot.c: ...here.
17583 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17584 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17585 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17586 * include/grub/i386/reboot.h: New file.
17587 * include/grub/mips/loongson/ec.h: Fix includes.
17588 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17589 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17590 * grub-core/lib/i386/reboot.c: New file.
17592 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17594 Make grub_prefix into module to fix the arbitrary limit and save
17597 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17598 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17599 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17600 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17601 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17602 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17603 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17604 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17605 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17606 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17607 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17608 * include/grub/ia64/efi/kernel.h: Removed.
17609 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17610 (grub_prefix): Removed.
17611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17612 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17613 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17614 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17615 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17616 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17617 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17618 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17619 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17620 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17621 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17622 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17623 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17624 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17625 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17626 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17627 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17628 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17629 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17630 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17631 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17632 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17633 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17634 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17635 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17636 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17637 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17638 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17639 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17641 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17643 (image_targets): Likewise.
17644 (generate_image): Put prefix as a module.
17646 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17648 Replace grub_module_iterate with FOR_MODULES.
17650 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17651 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17652 (grub_efi_modules_addr): ...this.
17653 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17654 (grub_efi_init): Set grub_modbase.
17655 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17656 (grub_modbase): New variable.
17657 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17658 (grub_modbase): New variable.
17659 (grub_machine_init): Set grub_modbase.
17660 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17661 (grub_modbase): New variable.
17662 (grub_machine_init): Set grub_modbase.
17663 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17664 (grub_modbase): New variable.
17665 (grub_machine_init): Set grub_modbase.
17666 * grub-core/kern/main.c (grub_module_iterate): Remove.
17667 (grub_modules_get_end): Use grub_modbase.
17668 (grub_load_modules): Use FOR_MODULES.
17669 (grub_load_config): Likewise.
17670 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17671 (grub_modbase): New variable.
17672 (grub_machine_init): Set grub_modbase.
17673 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17674 (grub_modbase): New variable.
17675 (grub_machine_init): Set grub_modbase.
17676 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17678 (grub_modbase): New variable.
17679 (grub_machine_init): Set grub_modbase.
17680 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17681 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17682 (grub_module_iterate): Likewise.
17683 (grub_modbase): New variable declaration.
17684 (FOR_MODULES): New macro.
17686 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17688 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17689 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17691 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17693 Fix few obvious type discrepancies.
17695 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17696 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17697 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17699 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17700 and connected types.
17701 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17703 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17704 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17705 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17706 and connected types.
17708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17710 Fix python 3.x incompatibilities.
17712 * gentpl.py: Put brackets around print strings.
17713 * util/import_gcry.py: Open explicitly as utf-8.
17714 Use in instead of has_key.
17716 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17718 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17719 (GRUB_XFS_INO_AGBITS): Make into inline function.
17720 (GRUB_XFS_INO_INOINAG): Likewise.
17721 (GRUB_XFS_INO_AG): Likewise.
17722 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17723 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17724 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17725 (GRUB_XFS_EXTENT_SIZE): Likewise.
17726 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17727 (GRUB_XFS_NEXT_DIRENT): Likewise.
17728 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17729 (grub_xfs_read_file): Fix offset type.
17731 2011-10-15 Robert Millan <rmh@gnu.org>
17733 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17735 2011-10-15 Robert Millan <rmh@gnu.org>
17737 Fix build problem on FreeBSD and GNU/kFreeBSD.
17739 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17741 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17743 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17745 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17747 (grub_hfsplus_btree_recoffset): Likewise.
17748 (grub_hfsplus_btree_recptr): Likewise.
17749 (grub_hfsplus_find_block): Likewise.
17750 (grub_hfsplus_btree_search): Likewise.
17751 (grub_hfsplus_read_block): Likewise.
17752 (grub_hfsplus_read_file): Likewise.
17753 (grub_hfsplus_mount): Likewise.
17754 (grub_hfsplus_btree_iterate_node): Likewise.
17755 (grub_hfsplus_btree_search): Likewise.
17756 (grub_hfsplus_iterate_dir): Likewise.
17757 (grub_hfsplus_read): A small code simplification.
17759 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17761 * grub-core/kern/emu/hostdisk.c
17762 (convert_system_partition_to_system_disk): Don't assume that children
17763 of mapper nodes are mapper nodes.
17765 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17767 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17768 * include/grub/misc.h (grub_isxdigit): New function.
17769 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17770 switched to grub_isxdigit.
17771 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17772 number starting with a letter.
17774 2011-10-09 Robert Millan <rmh@gnu.org>
17776 LVM support for FreeBSD and GNU/kFreeBSD.
17778 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17780 (LVM_DEV_MAPPER_STRING): Move from here ...
17781 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17782 * util/getroot.c: Include `<grub/util/lvm.h>'.
17783 (grub_util_get_dev_abstraction): Enable
17784 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17785 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17786 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17787 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17789 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17791 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17792 when LVM abstraction is required for ${GRUB_DEVICE}.
17794 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17796 Add support for LZO compression in GRUB:
17797 - import of minilzo library,
17798 - LZO decompression for btrfs,
17799 - lzop files decompression.
17801 * grub-core/io/lzopio.c: New file.
17802 * grub-core/lib/adler32.c: Likewise.
17803 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17804 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17805 * grub-core/lib/minilzo/minilzo.c: Likewise.
17806 * grub-core/lib/minilzo/minilzo.h: Likewise.
17807 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17808 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17809 grub-core/lib/minilzo/minilzo.c to common.
17810 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17811 cflags in cppflags.
17812 * grub-core/Makefile.core.def (btrfs): Likewise.
17813 * grub-core/Makefile.core.def (lzopio): New module.
17814 (adler32): Likewise.
17815 * grub-core/fs/btrfs.c: Include minilzo.h.
17816 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17817 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17818 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17819 (grub_btrfs_lzo_decompress): New function.
17820 (grub_btrfs_extent_read): Add support for LZO compression type.
17821 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17822 (GRUB_USHRT_MAX): Likewise.
17823 (GRUB_UINT_MAX): Likewise.
17824 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17825 (UINT_MAX): Likewise.
17826 (CHAR_BIT): Likewise.
17827 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17828 grub-core/lib/posix_wrap/limits.h
17829 (UCHAR_MAX): Likewise.
17830 * include/grub/file.h (grub_file_filter_id): New compression filter
17831 GRUB_FILE_FILTER_LZOPIO.
17832 * include/grub/file.h (grub_file_filter_id): Set
17833 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17834 * include/grub/types.h (grub_get_unaligned16): New function.
17835 (grub_get_unaligned32): Likewise.
17836 (grub_get_unaligned64): Likewise.
17837 * util/import_gcry.py (cryptolist): Add adler32.
17839 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17841 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17842 in perspective decreases the complexity of build system and fixes
17843 compilation right now.
17845 2011-10-01 Ales Nesrsta <starous@volny.cz>
17847 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17848 (fixed problem related to using UHCI with coreboot).
17850 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17852 * gentpl.py: Use Autogen macros so that the output template file
17853 (Makefile.tpl) size is reduced.
17855 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17857 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17860 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17862 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17863 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17865 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17867 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17870 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17872 Remove extra declaration of sleep for mingw32.
17874 * util/misc.c (sleep) [__MINGW32__]: Removed.
17875 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17877 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17879 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17881 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17883 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17884 (grub_netbsd_btinfo_bootwedge): New struct.
17885 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17887 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17889 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17891 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17894 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17896 Fix incorrect identifiers in bash-completion.
17898 * util/bash-completion.d/grub-completion.bash.in
17899 (_grub_mkpasswd-pbkdf2): Rename to ...
17900 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17901 (_grub_script-check): Rename to ...
17902 (_grub_script_check): ... this. All users updated.
17904 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17907 Return 0 if disk isn't biosdisk.
17909 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17911 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17913 * Makefile.util.def (grub-fstest): Likewise.
17915 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17917 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17918 Get sector size from disk label.
17920 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17922 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17923 */README* as well as README*.
17924 Reported by: Axel Beckert.
17926 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17928 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17929 case of less than 256 MiB of RAM.
17931 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17933 * grub-core/commands/wildcard.c (make_regex): Handle @.
17935 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17937 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17939 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17941 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17942 AC_LANG_CONFTEST macros.
17944 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17946 Add grub-fstest option to uncompress data for commands.
17948 * util/grub-fstest.c (uncompress): New var.
17949 (options): New option -u.
17951 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17953 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17954 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17956 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17958 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17959 file type was not recognized correctly (not gzip or corrupted).
17961 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17963 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17964 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17966 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17968 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17970 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17971 video_radeon_fuloong2e.
17972 * grub-core/video/radeon_fuloong2e.c: New file.
17973 * include/grub/video.h (grub_video_id_t): Add new ID
17974 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17978 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17981 that PRID matches the detected subplatform and reset the subplatform
17984 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17986 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17988 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17990 Fix PCI iterating on functions >= 4.
17992 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17993 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17995 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17996 (grub_pci_read): Fix bitmask.
17997 (grub_pci_read_word): Likewise.
17998 (grub_pci_read_byte): Likewise.
17999 (grub_pci_write): Likewise.
18000 (grub_pci_write_word): Likewise.
18001 (grub_pci_write_byte): Likewise.
18003 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18005 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18006 can still be specified in TARGET_CFLAGS)
18008 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18010 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18012 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18013 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18014 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18015 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18016 (FULOONG): Rename to ...
18017 (FULOONG2F): ... this. All users updated.
18018 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18019 (machtype_fuloong2f_str): ... this.
18020 (machtype_fuloong2e_str): New string.
18021 Check for machtype_fuloong2e_str.
18022 * grub-core/loader/mips/linux.c (loongson_machtypes)
18023 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18024 * grub-core/term/serial.c (loongson_defserial)
18025 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18026 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18027 loongson_defserial.
18028 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18030 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18031 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18032 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18033 to IMAGE_FULOONG2F_FLASH. All users updated.
18034 (image_targets): Rename images.
18035 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18037 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18039 Make enable of disk cache statistics code configurable.
18041 * configure.ac: --enable-cache-stats added.
18042 * config.h.in (DISK_CACHE_STATS): New define.
18043 * grub-core/Makefile.core.def (cacheinfo): New command.
18044 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18045 * grub-core/commands/cacheinfo.c: New file.
18046 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18047 moved to cacheinfo.c.
18048 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18050 * include/grub/disk.h: Likewise.
18052 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18054 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18055 * grub-core/Makefile.am: Likewise.
18057 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18062 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18064 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18066 (grub_jfs_lookup_symlink): Use correct starting inode.
18068 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18070 * util/grub-setup.c (main): Add missing gcry initialisation.
18072 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18074 Don't accept text modes on EFI when booting Linux.
18076 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18077 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18079 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18080 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18082 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18083 use of "/path/.." as in grub-install for EFI as well as handling
18084 symlinks correctly.
18085 Fixes Debian bug #637768.
18087 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18089 * util/grub-probe.c: Remove duplicate #include.
18091 2011-08-10 Robert Millan <rmh@gnu.org>
18093 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18095 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18097 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18098 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18100 2011-08-03 Robert Millan <rmh@gnu.org>
18102 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18103 la_array as packed.
18104 Reported by: Zachary Bedell
18106 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18108 * configure.ac: The Loongson port requires grub-mkfont due to its
18109 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18112 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18114 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18115 processing arguments (otherwise help2man fails when GRUB has not yet
18118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18120 New script grub-mkstandalone.
18122 * Makefile.util.def (grub-mkstandalone): New script.
18123 * docs/man/grub-mkstandalone.h2m: New file.
18124 * util/grub-mkstandalone.in: Likewise.
18126 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18128 Support ATA disks with 4K sectors.
18130 * include/grub/ata.h (grub_ata): New member log_sector_size.
18131 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18132 (grub_ata_identify): Read sector size.
18133 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18135 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18137 * util/grub-install.in: Don't use uhci outside of x86.
18139 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18141 * util/grub-mkrescue.in: Add missing quotes.
18143 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18145 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18148 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18150 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18152 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18154 * include/grub/video.h: add missing EXPORT_FUND on
18155 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18157 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18159 * include/grub/mips/kernel.h: Fix define conflict.
18161 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18163 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18166 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18168 Preferred resolution detection for VBE.
18170 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18171 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18172 the Flat Panel extension, in line with the X.org VESA driver.
18173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18175 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18176 (grub_vbe_bios_read_edid): Likewise.
18177 (grub_vbe_get_preferred_mode): Likewise.
18178 (grub_video_vbe_setup): When the mode is "auto", try to get the
18179 preferred mode from VBE, and use the largest mode that is no larger
18180 than the preferred mode (some BIOSes expose a preferred mode that is
18181 not in their mode list!). If this fails, fall back to 640x480 as a
18182 safe conservative choice.
18183 (grub_video_vbe_get_edid): New function.
18184 (grub_video_vbe_adapter): Add get_edid.
18185 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18186 (struct grub_video_adapter): Add get_edid.
18187 (grub_video_edid_checksum): Add prototype.
18188 (grub_video_edid_preferred_mode): Likewise.
18189 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18192 * grub-core/commands/videoinfo.c (print_edid): New function.
18193 (grub_cmd_videoinfo): Print EDID if available.
18195 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18196 is more appropriate on a wider range of platforms than 640x480.
18197 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18200 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18202 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18204 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18206 * po/POTFILES.in: Regenerate.
18208 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18210 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18211 incorrect memory usage.
18213 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18215 * util/grub-install.in: Source grub-mkconfig_lib.
18217 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18219 Remove getroot.c from core on emu platform.
18221 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18223 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18225 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18226 * util/getroot.c (get_win32_path): ... here.
18227 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18228 * util/getroot.c (fini_libzfs): ... here.
18229 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18230 * util/getroot.c (grub_get_libzfs_handle): ... here.
18231 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18233 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18234 * grub-core/kern/emu/misc.c
18235 (grub_make_system_path_relative_to_its_root): Moved from here...
18236 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18237 * grub-core/kern/emu/getroot.c: Moved from here ...
18238 * util/getroot.c: ... here. All users updated.
18239 * grub-core/kern/emu/raid.c: Moved from here ...
18240 * util/raid.c: ... here. All users updated.
18242 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18244 * po/POTFILES.in: Regenerate.
18246 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18248 Fix compilation on GNU/Linux.
18250 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18252 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18253 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18254 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18256 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18257 2011-07-07 Michael Gorven <michael@gorven.za.net>
18258 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18260 LUKS and GELI support.
18262 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18263 grub-core/disk/luks.c, grub-core/disk/geli.c,
18264 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18265 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18266 grub-core/lib/arg.c.
18267 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18268 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18269 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18270 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18271 (grub-bin2h): Add libgcry.a.
18272 (grub-mkimage): Likewise.
18273 (grub-mkrelpath): Likewise.
18274 (grub-script-check): Likewise.
18275 (grub-editenv): Likewise.
18276 (grub-mkpasswd-pbkdf2): Likewise.
18277 (grub-pe2elf): Likewise.
18278 (grub-fstest): Likewise.
18279 (grub-mkfont): Likewise.
18280 (grub-mkdevicemap): Likewise.
18281 (grub-probe): Likewise.
18282 (grub-ofpath): Likewise.
18283 (grub-mklayout): Likewise.
18284 (example_unit_test): Likewise.
18285 (grub-menulst2cfg): Likewise.
18286 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18287 * grub-core/Makefile.core.def (cryptodisk): New module.
18290 * grub-core/disk/AFSplitter.c: New file.
18291 * grub-core/disk/cryptodisk.c: Likewise.
18292 * grub-core/disk/geli.c: Likewise.
18293 * grub-core/disk/luks.c: Likewise.
18294 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18296 (grub_util_get_dm_abstraction): New function.
18297 (grub_util_follow_gpart_up): Likewise.
18298 (grub_util_get_geom_abstraction): Likewise.
18299 (grub_util_get_dev_abstraction): Use new functions.
18300 (grub_util_pull_device): Pull GELI and LUKS.
18301 (grub_util_get_grub_dev): Handle LUKS and GELI.
18302 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18303 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18304 (follow_geom_up): Removed.
18305 (grub_util_fd_seek): New function.
18306 (open_device): Use grub_util_fd_seek.
18307 (nread): Rename to ..
18308 (grub_util_fd_read): ... this. All users updated.
18309 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18310 (grub_crypto_cbc_decrypt): Likewise.
18311 (grub_crypto_hmac_write): Likewise.
18312 (grub_crypto_hmac_buffer): Likewise.
18313 (grub_password_get): Extend to util.
18314 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18315 New member modname.
18316 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18317 * include/grub/cryptodisk.h: New file.
18318 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18319 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18321 (grub_util_follow_gpart_up): New proto.
18322 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18323 (grub_util_fd_read): Likewise.
18324 (grub_cryptodisk_cheat_mount): Likewise.
18325 (grub_util_cryptodisk_print_uuid): Likewise.
18326 (grub_util_get_fd_sectors): Likewise.
18327 * util/grub-fstest.c (mount_crypt): New var.
18328 (fstest): Mount crypto if requested.
18329 (options): New option -C.
18330 (argp_parser): Parse -C.
18331 (main): Init and fini gcry.
18332 * util/grub-install.in: Support cryptodisk install.
18333 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18334 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18336 (prepare_grub_to_access_device): Likewise.
18337 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18338 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18339 (probe_cryptodisk_uuid): New function.
18340 (probe_abstraction): Likewise.
18341 (probe): Use new functions.
18342 * util/import_gcry.py: Create Makefile.utilgcry.def.
18343 Add modname member.
18345 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18347 Lazy device scanning.
18349 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18350 (grub-setup): Remove util/raid.c.
18351 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18352 * grub-core/disk/lvm.c (scan_depth): New variable.
18353 (grub_lvm_iterate): Rescan if necessary.
18354 (find_lv): New function based on grub_lvm_open.
18355 (grub_lvm_open): Use find_lv. Rescan on error.
18356 (is_node_readable): New function.
18357 (is_lv_readable): Likewise.
18358 (grub_lvm_scan_device): Skip already found disks.
18359 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18360 Stop if searched device is found and readable.
18361 * grub-core/disk/raid.c (inscnt): New variable.
18362 (scan_depth): Likewise.
18363 (scan_devices): New function based on grub_raid_register. Abort if
18364 looked for device is found.
18365 (grub_raid_iterate): Rescan if needed.
18366 (find_array): NEw function based on -grub_raid_open.
18367 (grub_raid_open): Use find_array and rescan.
18368 (insert_array): Set became_readable_at.
18369 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18370 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18372 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18373 (grub_util_pull_device): New function.
18374 (grub_util_get_grub_dev): Call grub_util_pull_device.
18375 * util/raid.c: Moved to ..
18376 * grub-core/kern/emu/raid.c: ... here.
18377 (grub_util_raid_getmembers): New parameter "bootable".
18378 All users updated. Support 1.x.
18379 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18381 * include/grub/disk.h (grub_disk_pull_t): New enum.
18382 (grub_disk_dev): Change iterate prototype.
18384 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18386 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18387 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18388 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18389 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18391 * include/grub/util/raid.h: Removed.
18393 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18395 * po/POTFILES.in: Regenerate.
18397 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18399 Unify sparc init with other ieee1275.
18401 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18402 instead of kern/sparc64/ieee1275/init.c.
18403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18404 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18405 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18406 grub/machine/kernel.h.
18407 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18408 (grub_claim_heap) [__sparc__]: Use sparc version.
18409 (grub_machine_init): Moved args parsing to
18410 (grub_parse_cmdline): ...this.
18411 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18412 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18414 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18416 Move BOOTP to separate file.
18418 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18419 * grub-core/net/net.c: Move all BOOTP functions to
18420 * grub-core/net/bootp.c: ... here.
18422 Use frame interface on PXE.
18424 * grub-core/Makefile.core.def (pxecmd): Removed.
18425 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18426 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18427 * grub-core/i386/pc/pxe.c: Moved from here ...
18428 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18429 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18430 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18432 EFI network support.
18434 * grub-core/Makefile.core.def (efinet): New module.
18435 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18437 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18439 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18440 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18441 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18442 * grub-core/net/drivers/efi/efinet.c: New file.
18443 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18444 (grub_efi_net_config): New extern var.
18446 Various cleanups and bugfixes.
18448 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18450 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18451 disk declared as partition.
18452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18454 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18455 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18456 (grub_debug_zalloc): Likewise.
18457 (grub_debug_realloc): Likewise.
18458 (grub_debug_memalign): Likewise.
18459 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18460 Check that target is IPv4.
18461 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18462 local-mac-address as fallback.
18463 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18465 * grub-core/net/ip.c (ipchksum): Rename to ...
18466 (grub_net_ip_chksum): ... this. All users updated.
18467 (grub_net_recv_ip_packets): Special handling for DHCP.
18468 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18470 Unify prefix handling
18472 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18473 (grub_machine_get_bootlocation): ... this.
18474 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18475 (grub_machine_get_bootlocation): ... this.
18476 (grub_prefix): New variable.
18478 (root_dev): New variable.
18480 (main): Use new variables.
18481 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18483 (grub_machine_get_bootlocation): ... this.
18484 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18485 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18486 (grub_machine_get_bootlocation): ... this.
18487 (grub_machine_set_prefix): Removed.
18488 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18489 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18491 (grub_machine_get_bootlocation): ... this.
18492 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18493 (grub_set_prefix_and_root): ... this. All users updated.
18494 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18496 (grub_machine_get_bootlocation): ... this.
18497 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18498 (grub_machine_get_bootlocation): New proto.
18499 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18501 Less intrusive and more reliable seek on network implementation.
18503 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18504 (grub_file_seek): Don't call grub_file_net_seek.
18505 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18506 (grub_net_fs_read_real): .. this.
18507 (grub_net_seek_real): Use net->offset.
18508 (grub_net_fs_read): Seek if necessary.
18510 Unify IEEE1275 netwotk config with the other platforms.
18512 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18514 (grub_machine_get_bootlocation): Support network.
18515 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18516 Support type and device parsing.
18517 (grub_ieee1275_get_device_type): New function.
18518 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18520 (grub_ieee1275_net_config_real): ... this.
18521 (grub_ofnet_probecards): Removed.
18522 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18523 * include/grub/ieee1275/ofnet.h: Removed.
18524 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18526 (grub_ieee1275_get_device_type): New function.
18528 Unify network device closing across platforms and make more robust.
18530 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18532 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18534 * grub-core/net/net.c (grub_net_network_level_interface_register):
18536 (grub_net_card_unregister): Close all interfaces.
18537 (receive_packets): Don't poll if no iterfaces are registered.
18539 (grub_net_fini_hw): New function.
18540 (grub_net_restore_hw): Likewise.
18541 (fini_hnd): New variable.
18542 (GRUB_MOD_INIT): Register preboot hook.
18543 (GRUB_MOD_FINI): Run and unregister preboot hook.
18545 Poll network cards when idle.
18547 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18548 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18549 * grub-core/net/net.c (receive_packets): Save last poll time.
18550 (grub_net_poll_cards_idle_real): New function.
18551 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18552 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18553 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18555 Rename ofnet interfaces.
18557 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18558 (grub_ofnet_findcards): Use ofnet_%s names.
18560 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18562 Cleanup socket opening.
18564 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18565 (grub_net_fs_close): Likewise.
18566 (grub_net_fs_read_real): Use eof member.
18567 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18568 (+grub_net_udp_close): New inline function.
18570 * include/grub/net/tftp.h: Moved to the top of ...
18571 * grub-core/net/tftp.c: ... here.
18572 * include/grub/net/ip.h: Moved mostly to the top of ...
18573 * grub-core/net/ip.c: ... here.
18574 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18575 * grub-core/net/ethernet.c: ... here.
18577 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18579 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18582 * include/grub/net/ip.h (ipv4_ini): Removed.
18583 (ipv4_fini): Likewise.
18585 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18586 (grub_net_send_ip_packets): Likewise.
18588 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18590 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18591 grub_read_cmos prototype.
18593 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18595 VGA text support in qemu-mips
18597 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18598 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18599 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18601 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18602 * grub-core/kern/vga_init.c: ... this.
18603 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18604 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18605 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18607 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18608 GRUB_MACHINE_PCI_IO_BASE.
18610 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18612 MIPS qemu flash support.
18614 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18616 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18617 (grub_machine_init): Probe memory if its size isn't known.
18618 * util/grub-mkimage.c (image_targets): Add flash targets.
18619 (generate_image): Handle flash targets.
18621 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18623 MIPS qemu at_keyboard support.
18625 * gentpl.py (videoinkernel): Add qemu-mips.
18626 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18627 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18628 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18630 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18631 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18632 * grub-core/term/serial.c (grub_serial_register)
18633 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18635 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18637 CMOS support on sparc.
18639 * gentpl.py (cmos): Add powerpc and sparc.
18640 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18642 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18643 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18644 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18645 grub_set_datetime_cmos.
18646 * grub-core/lib/ieee1275/cmos.c: New file.
18647 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18648 (find_rtc): Set no_ieee1275_rtc on error.
18649 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18650 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18651 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18652 fail. Move value to argument. All users updated
18653 (grub_cmos_write): Likewise.
18654 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18655 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18656 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18657 grub_get_datetime_cmos and grub_set_datetime_cmos.
18659 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18661 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18662 sourcing grub-mkconfig_lib.
18663 * util/update-grub_lib.in: Likewise.
18664 * util/grub.d/00_header.in: Likewise.
18665 * util/grub.d/10_hurd.in: Likewise.
18666 * util/grub.d/10_kfreebsd.in: Likewise.
18667 * util/grub.d/10_linux.in: Likewise.
18668 * util/grub.d/10_netbsd.in: Likewise.
18669 * util/grub.d/10_windows.in: Likewise.
18670 * util/grub.d/20_linux_xen.in: Likewise.
18671 * util/grub.d/30_os-prober.in: Likewise.
18673 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18675 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18676 default_bg_color rather than black.
18677 (grub_gfxterm_fullscreen): Likewise.
18678 (grub_gfxterm_background_color_cmd): Save new background color in
18681 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18683 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18687 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18690 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18692 Chainloading on coreboot support.
18694 * grub-core/Makefile.core.def (chain): Add coreboot.
18695 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18697 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18699 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18704 Implement time command.
18706 * grub-core/Makefile.core.def (time): New module.
18707 * grub-core/commands/time.c: New file.
18708 * grub-core/script/parser.y: Remove "time" keyword.
18709 * grub-core/script/yylex.l: Likewise.
18711 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18713 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18715 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18717 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18718 when handling leftovers.
18720 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18722 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18723 so that help2man doesn't fail.
18725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18727 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18728 type in pointers on sparc64.
18729 (get_card_packet): Likewise.
18731 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18733 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18735 (grub_cmd_videoinfo): Fetch current video mode.
18737 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18739 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18740 because of underlying system restrictions.
18742 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18744 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18747 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18749 Coreboot video support.
18751 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18753 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18754 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18756 * grub-core/kern/i386/int.S: ... here.
18757 * grub-core/video/i386/pc/vbe.c: Updated includes.
18758 * grub-core/video/i386/pc/vga.c: Likewise.
18759 * include/grub/i386/coreboot/memory.h
18760 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18761 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18762 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18763 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18764 Disable interrupts.
18765 * include/grub/i386/pc/vga.h: Removed. All users updated.
18767 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18769 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18770 definitions for dprintf.
18771 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18773 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18775 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18777 (get_card_packet): Likewise.
18779 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18781 Display the path of the file when file is not found
18783 * grub-core/fs/fat.c: Display the filename when file is not found.
18784 * grub-core/fs/fshelp.c: Likewise.
18785 * grub-core/fs/hfs.c: Likewise.
18786 * grub-core/fs/jfs.c: Likewise.
18787 * grub-core/fs/minix.c: Likewise.
18788 * grub-core/fs/ufs.c: Likewise.
18789 * grub-core/fs/btrfs.c: Likewise.
18790 * grub-core/commands/i386/pc/play.c: Likewise.
18792 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18794 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18795 pointer checks before calling grub_free().
18796 * grub-core/commands/wildcard.c (match_devices): Likewise.
18797 * grub-core/commands/wildcard.c (match_files): Likewise.
18798 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18799 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18800 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18801 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18802 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18803 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18804 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18805 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18806 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18808 2011-06-25 Patrick <p55@mailinator.com>
18810 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18812 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18814 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18815 (grub_pxe_send): Likewise.
18816 (GRUB_MOD_INIT): Fix types.
18818 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18820 * grub-core/io/xzio.c: Fix code style issues
18822 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18823 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18825 Network infrastructure.
18826 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18828 * include/grub/net/arp.h: New file.
18829 * include/grub/net/device.h: Likewise.
18830 * include/grub/net/ethernet.h: Likewise.
18831 * include/grub/net/ip.h: Likewise.
18832 * include/grub/net/netbuff.h: Likewise.
18833 * include/grub/net/tftp.h: Likewise.
18834 * include/grub/net/udp.h: Likewise.
18835 * include/grub/ieee1275/ofnet.h: Likewise.
18836 * include/grub/emu/export.h: Likewise.
18837 * include/grub/net.h: Likewise.
18838 * grub-core/net/arp.c: Likewise.
18839 * grub-core/net/ethernet.c: Likewise.
18840 * grub-core/net/ip.c: Likewise.
18841 * grub-core/net/udp.c: Likewise.
18842 * grub-core/net/tftp.c: Likewise.
18843 * grub-core/net/netbuff.c: Likewise.
18844 * grub-core/net/net.c: Likewise.
18845 * grub-core/net/drivers/emu/emunet.c: Likewise.
18846 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18849 * grub-core/Makefile.core.def (net): New module.
18852 (emunet): Likewise.
18853 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18855 * grub-core/kern/device.c (grub_net_open) : New variable.
18856 (grub_device_open): Handle network device.
18857 (grub_device_close): Likewise.
18858 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18859 (grub_grubnet_fini): Likewise.
18860 (grub_file_seek): Seek in network device.
18861 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18862 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18864 (grub_machine_fini): Call grub_grubnet_fini.
18865 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18867 (grub_ieee1275_get_aliasdevname): New function.
18868 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18869 Add unofficial Solaris network info.
18870 (grub_multiboot_make_mbi): Likewise.
18871 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18872 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18873 * include/grub/device.h (grub_fs): Removed.
18874 * include/grub/err.h (grub_err_t): Add network-related values.
18875 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18876 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18877 (grub_ieee1275_get_aliasdevname): New proto.
18878 * include/grub/net.h: Rewritten.
18880 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18882 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18885 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18887 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18888 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18889 it truncates the output.
18890 Reported by: Ximin Luo.
18892 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18896 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18898 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18899 partmap before abstraction.
18901 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18903 * util/grub-mkconfig_lib.in: Add missing quotes.
18905 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18907 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18908 old method if mountinfo would return /dev/root and /dev/root doesn't
18911 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18915 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18916 (decomp_table): Add zlib entries.
18917 (zio_read): USe 8 bits for compression function rather than 3.
18918 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18920 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18922 * grub-core/disk/ahci.c: Add missing license statements.
18923 * grub-core/fs/romfs.c: Likewise.
18924 * grub-core/lib/ia64/setjmp.S: Likewise.
18925 * grub-core/loader/i386/pc/freedos.c: Likewise.
18926 * grub-core/loader/ia64/efi/linux.c: Likewise.
18927 * grub-core/video/colors.c: Likewise.
18928 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18930 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18934 * grub-core/Makefile.core.def (ata_pthru): Removed.
18935 (ahci): New module.
18937 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18939 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18941 (grub_hdparm_do_check_powermode_cmd): Likewise.
18942 (grub_hdparm_do_smart_cmd): Likewise.
18943 (grub_hdparm_set_val_cmd): Likewise.
18944 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18945 * grub-core/disk/ahci.c: New file.
18946 * grub-core/disk/ata.c: Factor out the low-level part into ...
18947 * grub-core/disk/pata.c: ... here.
18948 * grub-core/disk/ata_pthru.c: Contents moved to ...
18949 * grub-core/disk/pata.c: ... here.
18950 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18951 (grub_scsi_iterate): Use grub_scsi_names.
18952 (grub_scsi_open): Likewise.
18953 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18954 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18955 (grub_ata_regs_t): New struct.
18956 (grub_disk_ata_pass_through_parms): Likewise.
18957 (grub_ata_device): Renamed to ...
18958 (grub_ata): ... this.
18959 (grub_ata_dev): New struct.
18960 Removed all low-level inline functions.
18961 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18962 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18963 iterate hooks and open. All users updated.
18964 * util/grub-install.in: Handle AHCI disk module.
18966 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18968 Add support for DRI and RSTn markers in JPEG files.
18970 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18971 (JPEG_MARKER_RST0): Likewise.
18972 (JPEG_MARKER_RST1): Likewise.
18973 (JPEG_MARKER_RST2): Likewise.
18974 (JPEG_MARKER_RST3): Likewise.
18975 (JPEG_MARKER_RST4): Likewise.
18976 (JPEG_MARKER_RST5): Likewise.
18977 (JPEG_MARKER_RST6): Likewise.
18978 (JPEG_MARKER_RST7): Likewise.
18979 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18980 (grub_jpeg_decode_dri): New function.
18981 (grub_jpeg_decode_sos): Move image data related part into
18982 grub_jpeg_decode_data function.
18983 (grub_jpeg_decode_data): New function.
18984 (grub_jpeg_reset): New function.
18985 (grub_jpeg_decode_jpeg): Handle new markers.
18987 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18989 * util/ieee1275/ofpath.c (check_sas): Close fd.
18990 (main): Free of_path.
18991 Reported by: David Volgyes <dvolgyes>.
18993 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18995 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18996 Reported by: David Volgyes <dvolgyes>.
18998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19002 Reported by: David Volgyes <dvolgyes>.
19004 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19006 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19008 Reported by: David Volgyes <dvolgyes>.
19010 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19012 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19013 Prevent memory leak.
19015 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19017 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19018 (main): Close file.
19019 Reported by: David Volgyes <dvolgyes>.
19021 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19023 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19024 to continue if allocation is failed.
19026 Reported by: David Volgyes <dvolgyes>.
19028 2011-06-23 David Volgyes <dvolgyes>
19030 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19033 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19035 Fix spurious warning.
19037 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19038 (acorn_partition_map_find): Use .bin member.
19040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19042 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19043 /dev/root as a valid device.
19045 2011-06-23 Jim Meyering <meyering@redhat.com>
19047 Avoid NULL deref in grub_device_open.
19049 * grub-core/kern/device.c (grub_device_open): Don't dereference
19050 a NULL pointer upon failed grub_env_get.
19052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19054 Support non-512B sectors and agglomerate reads.
19056 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19057 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19058 (disk_io_guid): Removed.
19059 (make_devices): Locate solely by BlockIO.
19060 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19061 (grub_efidisk_read): Use read_blocks.
19062 (grub_efidisk_write): Use write_blocks.
19063 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19065 (get_safe_sectors): Handle non-512B sectors.
19066 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19068 (grub_biosdisk_write): Handle non-512B sectors.
19069 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19070 (grub_scsi_read): Remove special non-512B block handling (now handled
19072 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19073 and do sanity checks.
19074 (grub_disk_adjust_range): Handle non-512B sectors.
19075 (transform_sector): New function.
19076 (grub_disk_read_small): Likewise.
19077 (grub_disk_read): Rewritten.
19078 (grub_disk_write): Handle non-512B sectors.
19079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19081 (open_device): Use log_sector_size.
19082 (grub_util_biosdisk_read): Likewise.
19083 (grub_util_biosdisk_write): Likewise.
19084 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19086 (pc_partition_map_embed): Likewise.
19087 * include/grub/disk.h (grub_disk): New field log_sector_size.
19088 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19089 (GRUB_DISK_CACHE_BITS): Increased to 6.
19090 * util/grub-fstest.c (fstest): New command testload.
19091 (argp_parser): Likewise.
19093 2011-06-16 Robert Millan <rmh@gnu.org>
19095 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19096 `ata' driver on kernel of FreeBSD 9.
19098 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19099 (get_ataraid_disk_name): New functions.
19100 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19101 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19102 get_ataraid_disk_name() and get_ada_disk_name().
19104 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19106 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19109 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19111 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19112 `ftp.gnu.org' for `alpha.gnu.org'.
19114 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19117 partitions under /dev/disk/by-id/.
19119 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19121 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19122 after ten consecutive open failures. Scanning all the way up to
19123 10000 is excessive and can cause serious performance problems in
19124 some configurations.
19125 Fixes Ubuntu bug #787461.
19127 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19129 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19132 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19133 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19135 Don't stat devices unless we have to.
19137 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19138 dir == /dev/mapper.
19139 (grub_guess_root_device): Use already known os_dev if possible.
19140 * grub-core/kern/emu/hostdisk.c
19141 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19142 if device is known to be a dm one.
19144 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19146 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19147 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19148 Reported by: Pawel Tecza.
19150 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19152 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19153 (lsefisystab): Likewise.
19155 (lsefimmap): Likewise.
19156 (hdparm): Enable on qemu-mips.
19157 (setjmp): Add ia64 nodist.
19158 (serial): Simplify tags.
19160 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19162 * Makefile.util.def (grub-ofpathname): Install manual page.
19164 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19166 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19168 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19170 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19172 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19174 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19177 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19179 Use full 64-bit division.
19181 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19182 (grub_divmod64): ... this.
19183 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19186 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19188 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19191 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19193 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19194 to avoid accidents when debugging with 'sh -x'.
19195 * grub-core/gensyminfo.sh.in: Likewise.
19196 * tests/example_scripted_test.in: Likewise.
19197 * tests/grub_cmd_regexp.in: Likewise.
19198 * tests/grub_script_blanklines.in: Likewise.
19199 * tests/grub_script_dollar.in: Likewise.
19200 * tests/grub_script_expansion.in: Likewise.
19201 * tests/grub_script_final_semicolon.in: Likewise.
19202 * tests/partmap_test.in: Likewise.
19203 * tests/util/grub-shell-tester.in: Likewise.
19204 * tests/util/grub-shell.in: Likewise.
19206 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19208 Move gfxmenu color handling to video, so that gfxterm can use it
19211 * grub-core/gfxmenu/named_colors.c: Move to ...
19212 * grub-core/video/colors.c: ... here. Rename
19213 grub_gui_get_named_color to grub_video_get_named_color.
19214 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19215 * grub-core/video/colors.c (my_isxdigit): ... here.
19216 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19218 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19219 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19221 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19223 * include/grub/gui.h (grub_gui_color_t): Move to ...
19224 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19225 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19226 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19227 * include/grub/gui.h (grub_gui_map_color): Move to ...
19228 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19229 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19231 * include/grub/video.h (grub_video_get_named_color): ... here.
19232 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19233 * include/grub/video.h (grub_video_parse_color): ... here.
19235 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19237 (gfxmenu): Remove gfxmenu/named_colors.c.
19238 (video) [videomodules]: Add video/colors.c.
19240 Add a background_color command.
19242 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19244 (GRUB_MOD_INIT): Register background_color command.
19245 (GRUB_MOD_FINI): Unregister background_color command.
19246 (redraw_screen_rect): Allow blend/replace of text layer to be
19247 controlled independently from whether there is a background bitmap.
19248 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19251 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19253 Patch BPB in ntldr and chainloader --bpb.
19255 * grub-core/fs/fat.c: Include grub/fat.h.
19256 (grub_fat_bpb): Moved to ...
19257 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19258 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19260 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19262 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19264 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19266 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19267 (GRUB_MOD_INIT): Show --bpb.
19268 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19269 * grub-core/normal/main.c (features): New variable.
19270 (GRUB_MOD_INIT): Set feature_* variables.
19271 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19273 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19275 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19277 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19280 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19282 FreeDOS direct loading support.
19284 * docs/grub.texi (Supported OS): Add FreeDOS.
19285 * grub-core/Makefile.core.def (freedos): New module.
19286 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19288 (grub_relocator16_boot): Handle %ebx.
19289 * grub-core/lib/i386/relocator16.S: Likewise.
19290 * grub-core/loader/i386/pc/freedos.c: New file.
19292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19294 Long Linux command line support.
19296 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19297 (maximal_cmdline_size): New variable.
19298 (allocate_pages): Use maximal_cmdline_size.
19299 (grub_cmd_linux): Set and use maximal_cmdline_size.
19300 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19301 (allocate_pages): Use maximal_cmdline_size.
19302 (grub_cmd_linux): Set and use maximal_cmdline_size.
19303 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19304 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19307 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19308 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19310 Improve devmapper support
19312 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19313 (grub_util_is_lvm): New function.
19314 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19315 than lvm if not dmraid.
19316 Handle mapped md nodes.
19317 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19318 (grub_util_device_is_mapped): ... this. Make always available. All users
19320 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19321 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19323 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19325 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19327 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19329 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19330 * grub-core/modinfo.sh.in: New file.
19331 * grub-core/Makefile.core.def (modinfo.sh): New script.
19332 * util/grub-mknetdir.in: Use modinfo.sh.
19333 * util/grub-mkrescue.in: Likewise.
19335 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19337 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19338 Fix potential usage of Elf32 instead of Elf64 when compiling on
19339 32-bit architecture. Add endianness macros while on it.
19341 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19343 Use mipsel- rather than mips- in directories involving mipsel ports to
19344 allow both endiannesses coexist.
19346 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19347 mips. All conditions adjusted.
19348 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19350 * util/grub-install.in: Adjust conditions to take renaming into account.
19351 * util/grub-mkimage.c (image_targets): Likewise. New target
19352 mips-qemu_mips-elf for bigendian mips.
19354 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19356 Avoid unnecessary copying on MIPS.
19358 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19359 early if src == dest.
19360 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19361 compression is none.
19363 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19365 Reduce memory footprint on SGI by putting modules before the kernel
19366 as opposed to after.
19368 * grub-core/Makefile.core.def (kernel): Increase linking address.
19369 (none_decompress): Likewise.
19370 (xz_decompress): Likewise.
19371 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19375 (grub_arch_modules_addr): New function.
19376 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19377 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19378 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19380 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19381 (grub_total_modules_size): ... this. Make global.
19382 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19383 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19385 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19386 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19387 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19388 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19389 * util/grub-mkimage.c (image_target_desc): New flag
19390 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19391 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19392 (generate_image): Handle images with modules before kernel.
19394 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19396 Prevent potential loss of memory map by overwrite on qemu-mips.
19398 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19399 Save ram size in $s4.
19400 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19401 All users changed to grub_arch_memsize.
19402 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19405 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19406 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19409 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19411 * .bzrignore: Remove grub-dumpbios.
19413 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19415 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19416 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19417 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19418 existing options which append).
19419 * docs/grub.texi (Simple configuration): Document new options.
19420 Reported by: Ian Jackson. Fixes Debian bug #617538.
19422 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19424 * util/grub-fstest.c (cmd_cat): New function.
19425 (fstest): Handle CMD_CAT.
19426 (options): Add cat.
19427 (argp_parser): Handle cat.
19429 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19431 * Makefile.util.def (grub-bin2h): Don't install.
19432 * docs/man/grub-bin2h.h2m: Remove.
19434 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19436 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19439 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19441 Reenable qemu-mips port.
19443 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19444 Fix small arc bug while on it.
19445 * gentpl.py: Handle qemu_mips.
19446 * grub-core/Makefile.am: Likewise.
19447 * grub-core/Makefile.core.def: Likewise.
19448 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19449 inappropriate includes.
19450 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19451 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19452 * grub-core/kern/main.c (grub_modules_get_end)
19453 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19454 * grub-core/kern/mips/qemu-mips: Moved to ..
19455 * grub-core/kern/mips/qemu_mips: ... this.
19456 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19457 (grub_machine_init): Call terminfo_init and serial_init.
19458 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19459 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19461 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19463 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19464 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19465 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19466 * include/grub/mips/qemu_mips/cmos.h: New file.
19467 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19468 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19470 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19471 Use correct mips-style address.
19472 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19473 (GRUB_TICKS_PER_SECOND): Removed.
19474 (grub_get_rtc): Likewise.
19475 (grub_cpu_idle): Likewise.
19476 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19478 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19479 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19480 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19481 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19482 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19483 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19484 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19485 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19487 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19491 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19492 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19494 * configure.ac: New target mips-arc.
19495 * gentpl.py: Likewise.
19496 * grub-core/Makefile.am: Likewise.
19497 * grub-core/Makefile.core.def: Likewise.
19498 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19499 (none_decompress): Likewise.
19500 (lsdev): New module.
19501 (datetime): Use lib/arc/datetime.c on ARC.
19502 (part_dvh): New module.
19503 * grub-core/commands/arc/lsdev.c: New file.
19504 * grub-core/disk/arc/arcdisk.c: Likewise.
19505 * grub-core/kern/mips/arc/init.c: Likewise.
19506 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19508 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19510 (grub_arch_dl_relocate_symbols): Likewise.
19511 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19512 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19513 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19515 * grub-core/lib/arc/datetime.c: New file.
19516 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19517 pci.h on non-loongson.
19518 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19519 (grub_linux_boot): Set unused registers to 0.
19520 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19521 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19522 * grub-core/mmap/mips/uppermem.c: ...here.
19523 * grub-core/partmap/dvh.c: New file.
19524 * grub-core/term/arc/console.c: Likewise.
19525 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19526 (grub_terminfo_set_current): Add terminal "arc".
19527 (grub_terminfo_readkey): Support ARC sequences.
19528 * include/grub/arc/arc.h: New file.
19529 * include/grub/arc/console.h: Likewise.
19530 * include/grub/disk.h (grub_disk_dev_id): Add
19531 GRUB_DISK_DEVICE_ARCDISK_ID.
19532 * include/grub/mips/arc/kernel.h: New file.
19533 * include/grub/mips/arc/memory.h: Likewise.
19534 * include/grub/mips/arc/time.h: Likewise.
19535 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19536 * include/grub/mips/kernel.h (grub_halt): ... here.
19537 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19539 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19540 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19541 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19542 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19544 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19546 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19547 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19548 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19549 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19550 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19551 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19552 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19553 (grub_phys_addr_t): Moved from here ...
19554 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19555 (grub_vtop): Moved from here ...
19556 * include/grub/mips/memory.h (grub_vtop): ... here.
19557 (grub_map_memory): Moved from here ...
19558 * include/grub/mips/memory.h (grub_map_memory): ... here.
19559 (grub_unmap_memory): Moved from here ...
19560 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19561 (grub_machine_mmap_iterate): Moved from here ...
19562 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19563 (grub_mmap_get_lower): Moved from here ...
19564 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19565 (grub_mmap_get_upper): Moved from here ...
19566 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19567 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19569 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19570 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19572 * include/grub/mips/time.h (grub_get_rtc): ... here.
19573 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19575 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19576 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19578 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19579 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19581 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19582 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19583 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19584 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19585 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19586 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19587 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19588 (GRUB_MACHINE_LINK_ADDR): Likewise.
19589 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19591 * util/grub-install.in: Run dvhtool on ARC.
19592 * util/grub-mkimage.c (image_targets): Add mips-arc.
19593 (generate_image): Handle ECOFF output for mips-arc.
19595 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19597 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19600 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19602 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19603 after enabling port.
19605 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19607 Skip incorrect USB devices.
19609 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19611 * include/grub/usb.h (grub_usb_err_t): New enum value
19612 GRUB_USB_ERR_BADDEVICE.
19614 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19616 Fuloong video init support.
19618 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19620 (grub_vga_read_arx): New function.
19621 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19623 (framebuffer): New members io, mmioptr and mmiobase.
19624 (read_sis_cmd): New function.
19625 (write_sis_cmd): Likewise.
19626 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19627 rather than 640x400.
19628 * grub-core/video/sis315_init.c: New file.
19630 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19632 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19634 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19635 to grub_dl_register_symbol.
19637 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19639 Fix compilation errors.
19641 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19642 potentially unused.
19643 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19644 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19645 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19646 to loongson machines.
19648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19650 Several FS mtime support.
19652 * grub-core/fs/affs.c (grub_affs_time): New struct.
19653 (grub_affs_file): New field mtime.
19654 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19655 type. Removed 'size'. New field 'di'. All users updated.
19656 (grub_affs_mount): Simplify checsum checking.
19657 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19658 (grub_affs_dir): Handle mtime.
19659 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19660 (grub_cpio_dir): Likewise.
19661 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19662 (grub_hfs_filerec): New field mtime.
19663 (grub_hfs_dir): Handle mtime.
19664 (grub_hfs_mtime): New function.
19665 (grub_hfs_fs): Register grub_hfs_mtime.
19666 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19667 (grub_iso9660_dir): New field mtime.
19668 (grub_fshelp_node): New field dirent.
19669 (iso9660_to_unixtime): New function.
19670 (iso9660_to_unixtime2): Likewise.
19671 (grub_iso9660_read_symlink): Use node->dirent.
19672 (grub_iso9660_iterate_dir): Likewise.
19673 (grub_iso9660_dir): Set mtime.
19674 (grub_iso9660_mtime): New function.
19675 (grub_iso9660_fs): Register grub_iso9660_mtime.
19676 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19677 (grub_jfs_inode): New fields atime, ctime and mtime.
19678 (grub_jfs_dir): Set mtime.
19679 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19680 * grub-core/fs/ntfs.c (list_file): Set mtime.
19681 (grub_ntfs_dir): Likewise.
19682 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19683 (grub_reiserfs_iterate_dir): Set mtime.
19684 (grub_reiserfs_dir): Likewise.
19685 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19686 (grub_fshelp_node): Likewise.
19687 (grub_sfs_iterate_dir): Set mtime.
19688 (grub_sfs_dir): Likewise.
19689 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19690 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19691 (grub_xfs_inode): New fields atime, mtime, ctime.
19692 (grub_xfs_dir): Set mtime.
19693 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19694 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19695 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19697 Support UDF symlinks.
19699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19700 (grub_ufs_read_symlink): New function. All users updated.
19702 Check amiga partmap checksum.
19704 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19705 (grub_amiga_partition): Likewise.
19706 (amiga_partition_map_checksum): New function.
19707 (amiga_partition_map_iterate): Check checksum.
19709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19713 * Makefile.util.def (libgrubmods.a): Add romfs.
19714 * grub-core/Makefile.core.def (romfs): New module.
19715 * grub-core/fs/romfs.c: New file.
19717 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19719 Squashfs v4 support.
19721 * Makefile.util.def (libgrubmods.a): Add squash4.
19722 * grub-core/Makefile.core.def (squash4): New module.
19723 * grub-core/fs/squash4.c: New file.
19724 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19725 disk_input_start, disk_input.
19726 (get_byte): Handle disk_input.
19727 (grub_zlib_disk_read): New function.
19728 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19730 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19731 2011-05-15 Feiran Zheng <famcool@gmail.com>
19733 * Makefile.util.def (libgrubmods.a): Add minix3.
19734 * grub-core/Makefile.core.def (minix3): New module.
19735 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19736 (GRUB_MINIX_BSIZE): Removed.
19737 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19738 (grub_minix_ino_t): New type.
19739 (grub_minix_le_to_cpu_ino): New macro.
19740 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19741 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19742 (grub_minix_data): New field block_size.
19743 (grub_minix_read_file): Handle 64-bit correctly.
19744 * grub-core/fs/minix3.c: New file.
19746 2011-05-15 Tristan Gingold <gingold@free.fr>
19747 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19748 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19752 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19753 * configure.ac: Add ia64-efi target.
19754 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19755 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19756 * gentpl.py: Add ia64_efi platform.
19757 Rename x86_efi to efi and Add ia64-efi. All users updated.
19758 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19759 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19760 Remove kern/generic/rtc_get_time_ms.c on EFI.
19761 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19762 kern/ia64/dl_helper.c on ia64-efi.
19763 Add kern/emu/cache.c on emu.
19764 (linux): Use on loader/ia64/efi/linux.c on ia64.
19765 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19766 whether symbol is a function.
19767 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19768 (grub_symbol): New field 'isfunc'.
19769 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19770 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19771 (grub_dl_load_segments): Place all sections into the same region.
19772 [__ia64__]: Create trampolines and got.
19773 [GRUB_MACHINE_EMU]: Call mprotect.
19774 (grub_dl_resolve_symbols): Resolve symbol type as well.
19775 [__ia64__]: Create function descriptors.
19776 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19777 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19778 (grub_get_rtc): New function.
19779 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19780 * grub-core/kern/emu/cache.S: Renamed to ...
19781 * grub-core/kern/emu/cache_s.S: ... this.
19782 [__ia64__]: Add a nop.
19783 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19784 [__ia64__]: New function.
19785 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19786 * grub-core/kern/ia64/dl.c: New file.
19787 * grub-core/kern/ia64/dl_helper.c: Likewise.
19788 * grub-core/kern/ia64/efi/init.c: New file.
19789 * grub-core/kern/ia64/efi/startup.S: Likewise.
19790 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19791 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19792 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19793 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19794 * grub-core/loader/ia64/efi/linux.c: New file.
19795 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19796 (GRUB_MOD_DEP): Likewise.
19797 (grub_dl) [__ia64__]: New fields got and tramp.
19798 (grub_dl): New field 'base'.
19799 (grub_dl_register_symbol): New argument isfunc. All users updated.
19800 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19801 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19802 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19803 (grub_ia64_dl_get_tramp_got_size): New proto.
19804 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19805 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19806 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19807 * include/grub/efi/api.h: Skip call wrappers on ia64.
19808 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19809 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19810 * include/grub/elf.h (ELF_ST_INFO): New definition.
19811 * include/grub/ia64/efi/kernel.h: New file.
19812 * include/grub/ia64/efi/memory.h: Likewise.
19813 * include/grub/ia64/efi/time.h: Likewise.
19814 * include/grub/ia64/kernel.h: Likewise.
19815 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19816 * include/grub/ia64/time.h: New file.
19817 * include/grub/ia64/types.h: Likewise.
19818 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19819 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19821 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19822 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19823 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19824 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19826 (EFI64_HEADER_SIZE): New definition. All users updated.
19827 (image_targets): Add ia64-efi.
19828 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19829 jumpers_addr. All users updated.
19830 Create function descriptors.
19831 (count_funcs): New function.
19832 (unaligned_uint32): New struct.
19833 (MASK20): New definition.
19834 (MASK19): Likewise.
19835 (MASKF21): Likewise.
19836 (add_value_to_slot_20b): New function.
19837 (add_value_to_slot_21_real): Likewise.
19838 (add_value_to_slot_21): Likewise.
19839 (ia64_kernel_trampoline): New struct.
19840 (nopm): New variable.
19842 (make_trampoline): New function.
19843 (relocate_addresses): Handle ia64.
19844 (make_reloc_section): Likewise.
19845 (load_image): Likewise.
19847 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19849 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19850 warning. Move variables before code while on it.
19852 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19856 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19857 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19858 * grub-core/boot/mips/loongson/fuloong.S: New file.
19859 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19860 Explicitly init CS5536.
19861 [FULOONG]: Don't use serial until CS5536 is available.
19862 Set GPIO based on dumps.
19863 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19864 [FULOONG]: Handle GPIO and memory controller differences.
19865 Parse machine type in $a2.
19866 * grub-core/boot/mips/startup_raw.S: Determine and save the
19868 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19869 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19870 init on architecture type.
19871 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19872 SIS315E. Don't init at_keyboard on fuloong.
19873 (grub_halt): Support Fuloong.
19874 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19875 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19876 (loongson_machtypes): New array.
19877 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19879 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19880 config. All users updated. Handle CS5536 serial.
19881 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19882 default port on machine type. Register serial as inactive.
19883 * grub-core/video/sis315pro.c: New file.
19884 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19886 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19887 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19888 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19889 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19890 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19891 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19893 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19894 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19896 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19897 (grub_arch_machine): New extern var.
19898 * include/grub/mips/loongson/serial.h
19899 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19900 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19901 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19902 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19903 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19904 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19905 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19906 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19907 * include/grub/term.h (grub_term_register_input_inactive): New inline
19909 (grub_term_register_output_inactive): Likewise.
19910 * include/grub/video.h (grub_video_driver_id): New value
19911 GRUB_VIDEO_DRIVER_SIS315PRO.
19912 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19913 New field "names". All users updated.
19914 New field value IMAGE_FULOONG_FLASH.
19915 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19917 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19919 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19920 and add some clarification.
19922 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19924 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19925 platforms if kernel is compressed.
19927 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19929 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19930 unused modules since currently referrence counter isn't reliable and
19931 there isn't much memory to recover there anyway.
19933 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19935 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19936 rather than resetting it to allow modules to reference themselves
19939 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19941 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19942 counter on dependencies since grub_dl_unref already handles this.
19944 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19946 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19947 on error if not already done.
19949 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19951 Fix few potential memory misusage.
19953 * grub-core/font/font.c (load_font_index): Don't free char_index to
19955 (grub_font_load): Zero-fill font at alloc for safety.
19956 Close file on error.
19957 (free_font): Free bmp_idx.
19959 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19961 * docs/grub.texi (Installation): Fix several outdated claims.
19963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19965 Handle module_license on windows.
19967 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19969 (insert_string): Make argument const char * instead of char *.
19970 (write_section_data): Handle long section names.
19971 Handle module_license.
19973 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19975 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19976 handle class-free menuentries.
19977 (grub_normal_add_menu_entry): Add a check to be sure.
19979 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19981 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19984 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19986 * configure.ac: Bump version to 1.99.
19988 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19990 Give ATA device a bit more time on first try in order to allow disks
19993 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19994 if dev->present is 1. Reset dev->present on failure.
19995 (grub_ata_device_initialize): Set dev->present to 1.
19996 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19997 (grub_ata_device): New member 'present'.
19999 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20001 * util/grub-mkimage.c (generate_image): Update hash.
20003 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20005 Flush caches on DMA memory.
20007 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20008 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20009 (grub_dma_free): Likewise.
20010 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20012 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20014 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20015 to avoid asm treating ld and sd as macros.
20017 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20019 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20022 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20024 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20025 grub_decompress_core since later would fail if grub_decompress_core
20028 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20030 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20031 R_MIPS_JALR since it's used by newer compiler.
20033 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20035 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20037 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20039 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20040 file_path to 0 for surety.
20041 (grub_chainloader_boot): Set exit_data to NULL.
20042 Unset the loader once done.
20043 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20045 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20047 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20048 unknown key into a dprintf.
20050 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20053 on first non-existant partition.
20055 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20057 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20059 Reported by: Mark Korenberg.
20061 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20063 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20066 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20068 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20069 before closing to ensure that it will be readable by grub-setup.
20071 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20073 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20074 (devpath_1): Use MAKE_PIWG_PATH.
20075 (devpath_2): Likewise.
20076 (devpath_3): Likewise.
20077 (devpath_4): Likewise.
20078 (devpath_5): Likewise.
20079 (devpath_6): Likewise.
20081 The appleldr.mod was checked that to be binary identical to previous
20084 2011-05-05 Zach <mikezackles>
20086 Support 2010 Macbooks.
20088 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20089 (devs): Add devpath_6.
20091 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20093 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20094 /dev/random. /dev/urandom is good enough for our purposes (salting).
20096 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20098 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20100 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20102 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20105 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20107 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20108 and not 0 on failure.
20110 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20112 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20113 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20114 disk; otherwise grub_fs_probe will not fall back to the next
20116 (grub_pxefs_open): Likewise, for consistency.
20117 Reported and tested by: Ezekiel Grave.
20119 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20121 * tests/partmap_test.in: Don't hardcode path to parted.
20122 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20124 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20126 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20127 of `ls' to find out which devices are available.
20129 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20131 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20132 than source address for efi mmap buffer.
20134 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20136 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20137 wrong action on non-detecting the magic.
20139 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20141 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20142 already supplied by another part of the module (fixes compilation on
20145 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20147 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20148 match the one used by mdadm.
20150 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20152 * po/README: Add instructions for creating po/LINGUAS.
20154 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20156 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20159 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20160 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20161 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20162 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20163 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20164 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20165 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20166 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20167 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20168 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20169 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20170 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20171 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20172 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20173 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20174 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20175 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20176 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20177 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20178 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20179 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20180 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20182 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20184 * grub-core/kern/emu/getroot.c
20185 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20186 test that was incorrectly reintroduced in r3214.
20187 Reported by: Ian Dall. Fixes Savannah bug #33133.
20189 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20191 Fix stack pointer handling in 16-bit relocator.
20193 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20194 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20195 Fixes Ubuntu bug #683904.
20197 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20199 * configure.ac: Bump version to 1.99~rc2.
20201 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20203 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20204 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20205 * grub-core/lib/x86_64/setjmp.S: Likewise.
20206 * grub-core/lib/mips/setjmp.S: Likewise.
20207 * grub-core/lib/powerpc/setjmp.S: Likewise.
20208 * grub-core/lib/sparc64/setjmp.S: Likewise.
20210 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20212 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20213 * grub-core/lib/efi/datetime.c: Likewise.
20215 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20219 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20221 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20223 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20225 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20227 (grub_gfxterm_term_init): Likewise.
20229 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20231 Take into account the decorations the computing menu entry width.
20233 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20234 (grub_gfxmenu_create_box): Register get_border_width.
20235 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20237 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20240 2011-04-18 Endres Puschner <code@e7p.de>
20242 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20243 Don't skip first class.
20245 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20247 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20249 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20251 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20253 Complete 64-bit division support.
20255 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20256 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20257 * include/grub/misc.h (grub_divmod64): Rename to ...
20258 (grub_divmod64_full): ... this.
20259 (grub_divmod64): New inline function.
20261 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20263 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20265 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20267 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20268 performing the necessary test.
20270 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20272 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20273 (kfreebsd.elf): Likewise.
20274 (pc-chainloader.elf): Likewise.
20275 (ntldr.elf): Likewise.
20277 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20279 Identify RAID by its UUID rather than (guessed) name.
20281 * grub-core/disk/raid.c (ascii2hex): New function.
20282 (grub_raid_open): Accept mduuid/%s specification.
20283 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20284 (get_mdadm_uuid): ... this.
20285 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20287 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20289 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20292 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20294 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20296 * util/grub.d/20_linux_xen.in: Likewise.
20298 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20300 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20301 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20303 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20304 Build a list of relevant visible mounts using the mnt_id and
20305 parent_mnt_id fields, and then scan that list at the end.
20307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20309 * docs/grub.texi (normal): New section.
20310 (normal_exit): New section.
20311 (Embedded configuration): Add reference to normal.
20312 (GRUB only offers a rescue shell): Likewise.
20313 * docs/grub-dev.texi (Error Handling): Fix typo.
20315 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20317 * NEWS: Drop obsolete entry about probe-only btrfs support.
20319 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20321 * util/import_gcry.py: Fix typo.
20323 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20325 * NEWS: Add btrfs support.
20327 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20328 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20330 BtrFS support. Written by me (Vladimir) with important bugfixes and
20331 even more important testing by Colin.
20333 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20334 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20335 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20336 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20337 mem_input_off and mem_input. All users updated to accept in-RAM input.
20338 (gzio_seek): New function.
20339 (test_zlib_header): Likewise.
20340 (grub_gzio_read): Likewise.
20341 (grub_zlib_decompress): Likewise.
20342 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20343 Accept partial and non-virtual mounts.
20344 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20345 avoid receiving /dev/dm-X as device.
20346 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20347 Handle bind and partial mounts.
20348 * grub-core/lib/crc.c: New file.
20349 * include/grub/deflate.h: Likewise.
20350 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20352 * include/grub/lib/crc.h: New file.
20354 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20356 Implement automatic module license checking according to new GNU
20359 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20360 (grub_dl_load_core): Use grub_dl_check_license.
20361 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20362 (GRUB_MOD_LICENSE): Likewise.
20363 (GRUB_MOD_DUAL_LICENSE): Likewise.
20364 All modules updated.
20366 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20368 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20369 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20371 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20373 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20375 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20377 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20379 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20382 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20384 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20385 parenthesis in the middle of the filename.
20387 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20389 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20390 rather than trying to put initrd way too high.
20391 Reported by: Ryan Lortie <desrt@desrt.ca>
20393 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20395 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20396 improperly removed string.
20398 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20402 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20403 (open_device) Likewise.
20404 (grub_util_biosdisk_close): Likewise.
20405 Reported by: Mark Korenberg.
20407 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20409 * util/grub-mkconfig_lib.in: Add missing quotes.
20411 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20413 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20416 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20418 Dynamically count the number of lines for the lower banner.
20420 * grub-core/normal/menu_entry.c (per_term_screen): New member
20422 (print_down): Use num_entries.
20423 (update_screen): Likewise.
20424 (grub_menu_entry_run): Set num_entries.
20425 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20427 (grub_print_message_indented): Move real part to ...
20428 (grub_print_message_indented_real): ... here. Additional argument
20430 (draw_border): Additional argument num_entries.
20431 (print_message): Additional argument dry_run.
20432 (print_entries): Receive menu viewer data.
20433 (grub_menu_init_page): New argment num_entries.
20434 (menu_text_set_chosen_entry): Use num_entries.
20435 (grub_menu_try_text): Likewise.
20436 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20438 (grub_ucs4_count_lines): New function.
20439 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20440 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20441 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20442 (grub_term_border_height): Likewise.
20443 (grub_term_num_entries): Likewise.
20445 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20447 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20448 Remove now unused string.
20450 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20452 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20454 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20456 (Comment): Fix typo.
20457 (Getting started): General copy-editing.
20458 (Typical Development Experience): Likewise.
20459 (Error Handling): Likewise.
20460 (Video API): Likewise.
20462 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20464 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20467 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20469 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20472 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20474 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20475 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20478 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20480 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20481 grub_strcpy since the lines aren't necessarily 0-terminated.
20483 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20485 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20488 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20490 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20491 (GRUB_MOD_INIT): DEVICE isn't optional.
20493 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20495 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20496 word on new line if it's too long anyway. Fixes a hang.
20498 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20500 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20502 * util/grub-setup.c (main): Reuse md device name if available.
20503 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20504 not GRUB name as argument.
20505 Based on patch by: Florian Wagner <fwagner>.
20507 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20509 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20510 Place mbi on low memory for better compatibility.
20512 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20514 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20516 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20517 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20519 * autogen.sh: Ensure that collate and ctype locale is C.
20520 * conf/Makefile.common: Likewise.
20522 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20524 * grub-core/normal/menu.c: Add missing include.
20526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20528 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20530 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20532 * util/grub-mkconfig.in: Ignore emacsen backup.
20534 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20536 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20538 (grub_util_biosdisk_close): Likewise.
20540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20542 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20543 const attribute and use grub_isdigit.
20545 2011-04-06 Andrey <dev_null@ukr.net>
20547 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20550 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20552 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20553 useful grub_dprintf's.
20555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20557 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20559 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20561 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20563 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20565 Output errors if theme loading failed.
20567 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20568 grub_gfxterm_fullscreen on error paths to ...
20569 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20570 theme loading error.
20572 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20574 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20575 space for older compilers.
20576 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20578 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20581 and report them as not RAID members since they are useless for GRUB.
20582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20584 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20586 Increase LVM implementation robustness in order not to crash on
20587 configurations like pvmove. Previously code assumed that in some places
20588 only lvs or only pvs are used whereas it seems that they are used
20591 * grub-core/disk/lvm.c (read_node): New function.
20592 (read_lv): Use read_node.
20593 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20594 Match volumes only at the end when all lvs are found. Take both
20595 pvs (first) and lvs (second) into account.
20596 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20597 mirror_* into node_*. All users updated.
20598 (grub_lvm_stripe): Merge this ...
20599 (grub_lvm_mirror): ... and this ...
20600 (grub_lvm_node): ... into this. All users updated.
20602 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20604 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20605 of function to allow further scanning for LVMs.
20607 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20610 on failed seek as it breaks open fd reusage.
20612 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20614 * util/grub-install.in: Add a recommendation to use --recheck before
20617 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20619 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20622 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20624 GRUB developper manual based on existing Internals section and
20625 contributions by the various authors with active copyright assignment.
20627 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20628 * docs/font_char_metrics.png: New file.
20629 * docs/font_char_metrics.txt: Likewise.
20630 * docs/grub-dev.texi: Likewise.
20631 * docs/grub.texi (Internals): Move from here ...
20632 * docs/grub-dev.texi: ... here.
20634 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20636 Store the loopback device as data on loopback grub_disk structures,
20637 rather than the file it points to. This fixes use of freed memory
20638 if an existing loopback device is replaced.
20640 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20641 disk->data, not dev->file.
20642 (grub_loopback_read): Adjust file assignment to match.
20643 Fixes Ubuntu bug #742967.
20645 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20647 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20648 when replacing an existing device.
20650 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20652 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20653 memory corruptions.
20655 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20657 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20658 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20659 (grub_jfs_read_inode): Likewise.
20660 (grub_jfs_opendir): Likewise. Remove now useless casts.
20661 (grub_jfs_getent): Likewise.
20662 Make ino a grub_uint32_t rather than int.
20663 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20664 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20665 division and module with bit operations.
20666 (grub_jfs_find_file): Make ino a grub_uint32_t.
20667 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20669 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20671 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20672 warning. (This was in fact always initialised before use, but GCC
20673 wasn't smart enough to prove that.)
20674 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20676 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20678 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20680 (efi_wrap_1): Likewise.
20681 (efi_wrap_2): Likewise.
20682 (efi_wrap_3): Likewise.
20683 (efi_wrap_4): Likewise.
20684 (efi_wrap_5): Likewise.
20685 (efi_wrap_6): Likewise.
20686 (efi_wrap_10): Likewise.
20687 Based on information by: Red Hat/Peter Jones.
20689 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20691 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20692 set-but-not-used variable.
20694 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20696 * docs/grub.texi (Simple configuration): Be more explicit about
20697 GRUB_DEFAULT, and add an example.
20698 Reported by: Leslie Rhorer.
20700 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20702 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20705 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20707 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20708 * util/grub.d/20_linux_xen.in: Likewise.
20710 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20712 * util/grub.d/10_linux.in: Try alternative config filenames where
20713 we parse config file.
20714 * util/grub.d/20_linux_xen.in: Likewise.
20716 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20718 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20719 * util/grub.d/20_linux_xen.in: Likewise.
20721 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20723 * grub-core/disk/raid.c (insert_array): Add few potentially
20724 useful grub_util_info.
20725 (grub_raid_register): Likewise.
20727 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20729 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20730 Preserve partition number in mdadm code path.
20732 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20735 few potentially useful grub_util_info.
20737 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20739 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20741 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20743 * docs/grub.texi (default): Use @example rather than nested
20744 itemized lists to avoid breaking gendocs.
20746 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20748 * docs/grub.texi (Future): Update.
20750 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20752 * docs/grub.texi (Environment): New chapter.
20753 (Changes from GRUB Legacy): Link to "Environment block" section for
20754 details of limitations.
20755 (Simple configuration): Likewise. Link to documentation of gfxmode
20756 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20758 (Shell-like scripting): Note that normal variables are stored in the
20760 (gettext): Link to documentation of lang and locale_dir.
20761 (list_env): New section.
20762 (load_env): New section.
20763 (save_env): New section.
20765 (Reporting bugs): Fix typo.
20767 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20769 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20772 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20774 * grub-core/term/at_keyboard.c (set_scancodes)
20775 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20777 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20779 * docs/grub.texi (Menu-specific commands): Remove some semantics
20780 that were true in GRUB Legacy but not in GRUB 2.
20781 (submenu): New section.
20782 (false): New section.
20783 (read): New section.
20784 (true): New section.
20786 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20788 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20790 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20792 * docs/grub.texi (Simple configuration): Explain some of the
20793 current limitations of grub-mkconfig.
20794 Reported by: Leslie Rhorer.
20796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20798 Old macs search for boot.efi rather than for bootia32.efi.
20800 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20801 * util/grub-mkrescue.in: Likewise.
20802 Suggested by: Peter Jones.
20804 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20806 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20808 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20810 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20811 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20812 (grub_lvm_mirror): New struct.
20813 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20814 (grub_lvm_iterate): Iterate only visible volumes.
20815 (grub_lvm_read): Factor out to ..
20816 (read_lv): ... this. Support mirrors.
20817 (grub_lvm_read): New wrapper function.
20818 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20819 stripped or mirrored.
20821 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20823 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20825 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20827 * docs/grub.texi (loopback): New section.
20829 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20831 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20834 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20836 * docs/grub.texi (BIOS installation): New section, partly based on
20837 previous text in other sections.
20838 (Installing GRUB using grub-install): Replace BIOS discussion with a
20840 (Images): Likewise.
20842 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20844 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20845 [HAVE_DIOCGDINFO]: Add safety checks.
20847 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20849 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20850 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20852 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20855 real_sb->size is zero (e.g. RAID-0), get the disk size from
20856 real_sb->data_size instead.
20857 Fixes Ubuntu bug #743136.
20859 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20861 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20862 printf clauses for printing size and start.
20864 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20866 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20867 Reported and tested by: Timothy Nikkel.
20869 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20871 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20872 (dirty_region_add_real): ... this.
20873 (dirty_region_add): Don't discard margin refresh when performing
20876 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20878 * grub-core/lib/relocator.c (allocate_regstart)
20879 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20880 terminals are capabple of malloc-free operation.
20881 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20882 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20884 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20886 * util/grub-setup.c: Copy the partition table zone if floppy support
20887 is disabled, even if no partition table is found.
20889 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20890 during POST if an invalid partition table is contained in the PBR
20891 of the active partition when GRUB is installed to a partition.
20893 2011-03-28 Colin Watson <cjwatson@debian.org>
20895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20898 2011-03-28 Colin Watson <cjwatson@debian.org>
20900 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20901 to be specific about what kind of RAID device we're scanning for.
20903 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20905 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20906 return freed string.
20908 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20910 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20912 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20914 Use libgeom on FreeBSD to detect partitions.
20916 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20917 (grub-mkrelpath): Likewise.
20918 (grub-script-check): Likewise.
20919 (grub-editenv): Likewise.
20920 (grub-mkpasswd-pbkdf2): Likewise.
20921 (grub-fstest): Likewise.
20922 (grub-mkfont): Likewise.
20923 (grub-mkdevicemap): Likewise.
20924 (grub-probe): Likewise.
20925 (grub-setup): Likewise.
20926 (grub-ofpathname): Likewise.
20927 (grub-mklayout): Likewise.
20928 (example_unit_test): Likewise.
20929 (grub-menulst2cfg): Likewise.
20930 * grub-core/Makefile.core.def (grub-emu): Likewise.
20931 (grub-emu-lite): Likewise.
20932 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20933 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20934 define HAVE_DIOCGDINFO.
20935 (follow_geom_up) [FreeBSD]: New function.
20936 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20937 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20938 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20939 unconditionally of HAVE_DIOCGDINFO.
20941 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20943 Fix FreeBSD compilation problem.
20945 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20946 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20948 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20950 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20951 Switch back to page zero before loading a kernel, since some kernel
20952 drivers expect that.
20953 Thanks to: Felix Kuehling.
20955 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20958 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20959 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20961 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20963 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20964 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20966 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20968 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20969 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20970 malloc is disabled.
20972 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20974 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20975 for modules headers when counting the needed allocation size.
20977 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20979 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20980 if no ASCII character is found to prevent crash.
20982 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20984 * grub-core/video/bitmap.c (match_extension): Ignore case.
20986 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20988 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20990 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20992 * grub-core/script/parser.y: Declare "time" as valid argument.
20994 2011-03-23 Peter Jones <pjones@redhat.com>
20996 Fix incorrect assert failure reporting.
20998 * grub-core/tests/example_functional_test.c (example_test): Add
21000 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21001 (failure_start): ...this. Check that malloc succeeded.
21002 Don't call xvasprintf. Return failure struct.
21003 (failure_append_vtext): New function.
21004 (failure_append_text): Likewise.
21005 (add_failure): Likewise.
21006 (grub_test_assert_helper): Likewise.
21007 * include/grub/test.h (grub_test_assert_helper): New declaration.
21008 (grub_test_assert): Macro rewritten.
21010 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21012 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21014 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21016 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21018 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21020 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21021 into GRUB-style one.
21023 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21025 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21026 error and not grub_errno.
21027 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21029 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21031 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21032 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21034 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21036 * grub-core/efiemu/i386/pc/cfgtables.c
21037 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21038 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21039 (grub_xnu_unlock): Likewise.
21040 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21042 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21044 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21045 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21046 * grub-core/commands/hashsum.c (aliases): Likewise.
21047 * grub-core/commands/setpci.c (pci_registers): Likewise.
21048 * grub-core/disk/usbms.c (attach_hook): Likewise.
21049 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21050 (zio_checksum_table): Likewise.
21051 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21052 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21053 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21054 * grub-core/lib/relocator.c (leftovers): Likewise.
21055 (extra_blocks): Likewise.
21056 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21057 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21058 (modules_last): Likewise.
21059 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21060 (devices): Likewise.
21061 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21062 (modules_last): Likewise.
21063 * grub-core/normal/auth.c (users): Likewise.
21064 * grub-core/normal/context.c (initial_menu): Likewise.
21065 (current_menu): Likewise.
21066 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21067 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21068 (grub_serial_terminfo_input_template): Likewise.
21069 (grub_serial_terminfo_output_template): Likewise.
21070 (grub_serial_terminfo_input): Likewise.
21071 (grub_serial_terminfo_output): Likewise.
21072 (registered): Likewise.
21073 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21077 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21078 grub_video_mode_type_t.
21079 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21080 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21081 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21083 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21085 * util/grub-install.in: Correct the x86-64 name as x86_64.
21087 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21089 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21090 initial chunk read from the kernel always includes GRUB's multiboot
21091 header, which is now outside the first sector.
21093 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21096 cached mmap_size, so that this works correctly when called multiple
21098 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21100 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21102 * docs/grub.texi (Simple configuration): Tidy up formatting.
21104 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21106 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21107 Set-but-not-used variable removed.
21109 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21111 Workaround yet another IEEE1275 bug.
21113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21114 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21115 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21116 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21119 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21121 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21123 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21126 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21128 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21129 empty, since in that case we can only generate either nothing or a
21130 syntactically invalid configuration file.
21131 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21133 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21135 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21136 (Making a GRUB bootable CD-ROM): Likewise.
21137 (Invoking grub-mkrescue): New section.
21138 Reported by: Yann Dirson. Fixes Debian bug #612585.
21140 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21142 * util/grub-install.in: Remove unnecessary brackets from tr
21144 * util/grub.d/10_hurd.in: Likewise.
21145 * util/grub.d/10_kfreebsd.in: Likewise.
21146 * util/grub.d/10_linux.in: Likewise.
21147 * util/grub.d/20_linux_xen.in: Likewise.
21148 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21150 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21152 * include/grub/file.h (not_easly_seekable): Rename to ...
21153 (not_easily_seekable): ... this. Update all users.
21155 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21157 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21160 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21162 * util/grub-mkimage.c (generate_image): Refuse to create the images
21163 bigger than the actual flash (512K) in Loongson machines. 512K is also
21164 the biggest chip supported by them.
21166 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21168 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21170 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21173 super_offset field.
21175 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21177 * util/grub-install.in: Ignore install device on platforms
21178 where it doesn't make sense. Always use UUIDs except on pc, efi and
21180 Reported by: Daniel Kahn Gillmor.
21182 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21184 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21186 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21188 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21189 (iterate_real): Don't rely on partition being non-NULL.
21191 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21193 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21194 supported platforms. Put a compile time assert for this rather than
21195 generate a warning with 32-bit shift.
21197 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21199 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21200 logical expression more readable.
21202 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21204 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21205 even if some elements have a name.
21206 Reported by: Alexander GQ Gerasiov.
21208 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21210 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21211 path unreadable if `grub-probe -t abstraction' fails, for example if
21212 memberlist fails on an LVM volume group.
21213 Reported by: Darius Jahandarie.
21215 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21217 * docs/grub.texi (Simple configuration): Document
21218 GRUB_PRELOAD_MODULES.
21220 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21222 * .bzrignore: Remove nonexistent grub-pbkdf2.
21224 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21226 * configure.ac: Bump version to 1.99~rc1.
21228 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21230 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21233 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21235 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21238 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21240 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21242 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21244 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21247 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21249 Fix compilation on cygwin.
21251 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21252 -R .drectve on cygwin.
21253 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21254 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21255 (COND_CYGWIN): New condition.
21256 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21257 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21258 not @TARGET_OBJ2ELF@.
21259 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21260 type to determine whether aux is to be used.
21262 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21264 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21265 realpath'ed device string.
21266 Handle floppy (somewhat).
21267 Issue error in unknown case rather than garbage.
21268 Reported by: Axel Beckert.
21270 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21272 * util/grub.d/00_header.in (load_video): Handle the case when no video
21274 Thanks to: Axel Beckert.
21276 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21278 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21279 variable. Fixes problem on big endian platforms.
21281 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21283 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21284 It doesn't work well there.
21286 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21288 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21290 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21291 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21294 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21296 Use alias->path rather than buggy "canon".
21298 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21299 (ofdisk_hash_add): New argument curcan. All users updated.
21301 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21303 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21305 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21307 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21308 loadmask before doing any calculations. Use correct type for offset.
21309 (grub_linux_load64): Likewise.
21311 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21313 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21315 (console_grub_equivalences_unshift): Likewise.
21316 Reported by: Daniel Dehennin.
21318 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21320 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21321 (set_env_limn_ro): Likewise.
21322 (GRUB_MOD_INIT): Likewise.
21323 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21324 ARRAY_SIZE while on it.
21325 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21326 * grub-core/normal/context.c (grub_env_export): Move from here ...
21327 * grub-core/kern/env.c (grub_env_export): ... here.
21328 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21330 * grub-core/kern/main.c (grub_main): Export root and prefix.
21331 * include/grub/env.h (grub_env_export): Export.
21332 Reported by: Seth Goldberg.
21334 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21337 Take into account space used by ELF sections and multiboot palette.
21338 Reported by: Grégoire Sutre.
21340 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21344 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21346 Pass more appropriate video id to Linux.
21348 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21349 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21351 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21352 shift params->lfb_size.
21353 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21355 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21357 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21359 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21361 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21362 separator and pass bootpath/devid even if only one of them is available.
21363 Reported by: Seth Goldberg.
21365 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21367 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21368 implementations bug on them.
21370 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21372 (filter_memory_map): Likewise.
21374 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21376 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21377 Reported by: nebuchadnezzar.
21379 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21381 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21382 Reported by: nebuchadnezzar.
21384 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21386 Submenu default support.
21388 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21389 auto_boot. All users updated.
21391 Handle chosen and default with submenus.
21392 (grub_menu_execute_with_fallback): Declared static.
21393 Don't notify failure if autobooted. Upper level does it.
21394 (menuentry_eq): New function.
21395 (get_entry_number): Use menuentry_eq.
21396 (show_menu): New parameter "autobooted". All users updated.
21397 (grub_show_menu): Likewise.
21398 * include/grub/normal.h (grub_show_menu): Likewise.
21399 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21400 (grub_menu_execute_with_fallback): Likewise.
21402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21404 * util/grub-mklayout.c (usage): Update help text.
21406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21408 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21410 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21412 * util/grub-menulst2cfg.c (main): Trim the line.
21414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21416 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21417 (grub_machine_init): Don't check amount of low memory as reportedly
21418 INT 12h can be broken and if low memory is too low we wouldn't have
21419 gotten into grub_machine_init anyway.
21421 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21423 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21424 (grub_machine_mmap_iterate): Take low memory into account
21426 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21428 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21430 Reported by: TiCPU.
21432 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21434 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21437 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21439 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21440 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21442 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21445 openbsd and netbsd types being in part_bsd module.
21447 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21449 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21450 (_FILE_OFFSET_BITS): Likewise.
21451 Reported by: Seth Goldberg.
21453 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21455 * configure.ac: Check for libdevmapper header.
21457 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21459 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21461 (fzap_lookup): Likewise.
21462 (dnode_get): Likewise.
21463 (make_mdn): Likewise.
21464 (zfs_mount): Likewise.
21465 (fzap_iterate): Use temporary pointer to avoid aliasing.
21466 (grub_zfs_read): Likewise.
21467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21468 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21469 pointers to avoid aliasing.
21470 (grub_cmd_xnu_kernel64): Likewise.
21471 (grub_xnu_load_driver): Likewise.
21473 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21475 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21477 (grub_cmd_terminal_output): Likewise.
21478 Reported and tested by: Grégoire Sutre.
21480 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21482 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21484 Reported and tested by: Grégoire Sutre.
21486 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21488 * configure.ac: Do CPU substitution even if it's specified explicitly.
21489 Reported and tested by: Alain Greppin.
21491 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21493 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21494 Reported and tested by: Alain Greppin.
21496 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21498 Satisfy some bison versions need for inttypes.h.
21500 * grub-core/lib/posix_wrap/inttypes.h: New file.
21501 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21502 (int16_t): Likewise.
21503 (int32_t): Likewise.
21504 (int64_t): Likewise.
21505 Reported and tested by: Alain Greppin.
21507 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21509 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21510 Silence spurious warning.
21511 Reported and tested by: Alain Greppin.
21513 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21515 * docs/grub.texi (Support automatic decompression): Update with xz
21516 decompression support.
21518 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21520 Improve loaders' kernel command line handling.
21522 * grub-core/lib/cmdline.c: New file.
21523 * include/grub/lib/cmdline.h: Likewise.
21524 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21525 grub_create_loader_cmdline to create kernel command line.
21526 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21527 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21528 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21529 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21530 (linux): Add lib/cmdline.c on common.
21532 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21534 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21535 inopos might be unaligned.
21537 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21539 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21540 endian transformations.
21541 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21542 Based on report by: Doug Nazar.
21544 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21546 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21547 array->members[i].start_sector.
21548 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21550 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21552 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21553 Reported and tested by: Grégoire Sutre.
21555 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21557 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21558 avoid causing test failures by clearing the screen.
21560 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21562 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21563 Fix prefix check to handle the case where dir ends with a slash
21564 (most significantly, "/" itself).
21565 Reported by: Michael Vogt.
21567 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21569 Run terminfo_cls on initing terminfo output to clear the screen and
21570 move the cursor to (0,0).
21572 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21573 Call grub_terminfo_output_init.
21574 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21575 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21576 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21578 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21580 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21583 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21585 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21588 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21590 The E820 type 5 is BADRAM, not EXEC_CODE.
21592 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21593 (GRUB_E820_BADRAM): New define.
21594 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21595 into reserved. Propagate BADRAM.
21596 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21597 (GRUB_E820_BADRAM): New define.
21599 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21601 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21602 Ignore the memory post-4G.
21603 (grub_relocator_firmware_alloc_region): Additional debug statement.
21605 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21609 Reported by: David Pravec.
21611 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21613 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21616 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21618 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21620 (grub_reed_solomon_recover): Likewise.
21622 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21624 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21626 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21628 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21631 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21633 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21634 descriptions of extract_legacy_entries_source and
21635 extract_legacy_entries_configfile.
21636 Reported by: Seung Soo, Ha.
21638 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21640 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21641 on devices that do not implement function 0.
21643 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21645 * grub-core/fs/hfsplus.c: Make parent unsigned.
21646 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21648 (grub_hfsplus_cmp_extkey): Likewise
21650 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21652 * util/grub-install.in: Correctly use bootloader_id and not
21653 GRUB_DISTRIBUTOR on efibootmgr line.
21655 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21657 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21659 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21661 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21662 Xen and reorder menu item wording to make it clearer that this entry
21663 will launch Xen. Print separate messages when loading Xen and
21666 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21668 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21669 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21670 loop in case of incorrect amiga partmap.
21672 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21674 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21675 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21678 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21680 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21682 Reported by: crocket
21684 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21686 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21688 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21690 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21692 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21694 (grub_cmd_xnu_kextdir): Likewise.
21695 (grub_cmd_xnu_splash): Likewise.
21697 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21699 Avoid using Reed-Solomon with 0 redundancy.
21701 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21702 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21704 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21705 (grub_reed_solomon_recover): Likewise.
21707 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21709 Don't use disk subsystem in freebsd_boot.
21711 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21712 (freebsd_biosdev): Likewise.
21713 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21714 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21716 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21718 Handling of files of unknown size is currently limited. They can't be
21719 used e.g. for initrd or modules. Moreover gzip handling of not
21720 easily seekable files is buggy. Disable unknown file size for now. May
21721 be inefficient but works.
21723 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21724 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21726 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21728 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21731 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21733 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21735 2010-12-25 Shea Levy <shlevy>
21737 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21739 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21741 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21742 Windows Server 2008.
21743 Reported by: Devin Giddings.
21745 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21747 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21748 writing an error message because of async power management.
21749 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21750 (grub_reboot): Likewise.
21752 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21754 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21755 keep unit tests from failing when they shouldn't.
21757 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21759 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21760 previous patch increased the size of the RS code by 20 bytes (at
21761 least with gcc-4.4), so increase this by 20 bytes to match.
21762 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21764 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21766 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21767 scratch area. Make sure to initialise chosen in standalone mode as
21768 well as non-standalone.
21769 Reported by: Robert Hooker and Andy Whitcroft.
21770 Tested by: Andy Whitcroft.
21772 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21774 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21775 constructing a new unescaped string and passing it to grub_xputs in
21776 one go, rather than passing characters to grub_printf one at a time.
21778 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21780 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21781 initialising utf16.
21783 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21785 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21786 comment. Add an extra layer of quotation, requiring the output of
21787 this function to be used in a printf format string.
21788 (gettext_printf): New function.
21789 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21790 Extract translatable strings from here-documents and use a temporary
21791 variable instead, so that xgettext can find them.
21792 * util/grub.d/10_kfreebsd.in: Likewise.
21793 * util/grub.d/10_linux.in: Likewise.
21794 * util/grub.d/20_linux_xen.in: Likewise.
21796 * po/grub.d.sed: New file.
21797 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21798 arguments. Set c-format flags on all strings extracted from
21799 util/grub.d/ (xgettext refuses to include these itself for strings
21800 it extracted from a shell file, but these really are c-format).
21802 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21805 Avoid next pointing to nowhere.
21807 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21809 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21810 rather than assuming than rootblock is exactly in the middle.
21811 (grub_affs_label): Likewise.
21813 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21815 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21816 reserved_first_sector to 0.
21817 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21818 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21819 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21821 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21823 Fix handling of UTF-16 UDF labels.
21825 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21826 (read_string): .. here.
21827 (grub_udf_label): Use read_string.
21829 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21831 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21832 editor under argument scope.
21833 Reported by: Jordan Uggla
21835 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21837 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21839 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21841 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21842 line, and other keys scroll an entire page (previous handling was
21843 for \r and \n to scroll a page and other keys to scroll two lines).
21845 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21847 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21848 Set ptrdest to correct get_physical_target_address rather than
21849 incorrect get_virtual_current_address.
21851 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21854 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21856 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21858 * .bzrignore: Ignore grub-core/rs_decoder.S.
21860 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21862 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21863 .mo/.mo.gz opening sequence to ...
21864 (grub_mofile_open_lang): ... here.
21865 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21866 * util/grub.d/00_header.in (grub_lang): Include country part of
21868 Reported by: Mario Limonciello.
21870 2010-12-09 Robert Millan <rmh@gnu.org>
21872 * NEWS: Document addition of ZFS support.
21874 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21876 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21877 rather than `/ 2', as the latter requires -Wa,--divide which would
21878 require bumping our minimum binutils version.
21880 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21882 * util/grub-script-check.c (main): Print script line number on
21885 2010-12-01 Robert Millan <rmh@gnu.org>
21887 * grub-core/fs/zfs/zfs.c: New file.
21888 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21889 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21890 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21891 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21893 * include/grub/zfs/dmu.h: Likewise.
21894 * include/grub/zfs/dmu_objset.h: Likewise.
21895 * include/grub/zfs/dnode.h: Likewise.
21896 * include/grub/zfs/dsl_dataset.h: Likewise.
21897 * include/grub/zfs/dsl_dir.h: Likewise.
21898 * include/grub/zfs/sa_impl.h: Likewise.
21899 * include/grub/zfs/spa.h: Likewise.
21900 * include/grub/zfs/uberblock_impl.h: Likewise.
21901 * include/grub/zfs/vdev_impl.h: Likewise.
21902 * include/grub/zfs/zap_impl.h: Likewise.
21903 * include/grub/zfs/zap_leaf.h: Likewise.
21904 * include/grub/zfs/zfs.h: Likewise.
21905 * include/grub/zfs/zfs_acl.h: Likewise.
21906 * include/grub/zfs/zfs_znode.h: Likewise.
21907 * include/grub/zfs/zil.h: Likewise.
21908 * include/grub/zfs/zio.h: Likewise.
21909 * include/grub/zfs/zio_checksum.h: Likewise.
21911 * Makefile.util.def: Build ZFS into libgrubmods.
21912 * grub-core/Makefile.core.def: Build zfs.mod.
21914 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21916 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21918 * grub-core/commands/wildcard.c (match_files): Likewise.
21920 2010-11-30 Robert Millan <rmh@gnu.org>
21922 * grub-core/loader/i386/bsd.c
21923 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21924 whether kernel is loaded using grub_loader_is_loaded(), rather
21925 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21926 certain error conditions.
21928 2010-11-30 Robert Millan <rmh@gnu.org>
21930 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21931 (grub_cmd_echo): Call grub_refresh() after printing a message.
21933 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21935 Avoid using tricks for initialising endian variables.
21937 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21939 (GRUB_MOD_INIT): Don't byte-swap.
21940 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21941 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21942 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21943 (grub_swap_bytes32_compile_time): Likewise.
21944 (grub_cpu_to_le32_compile_time): Likewise.
21945 (grub_cpu_to_le16_compile_time): Likewise.
21947 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21949 * util/grub-setup.c (setup): Stop recommending --force. People who
21950 understand the dangers of blocklists are able to find this option
21951 anyway and the ones who don't shouldn't use it anyway.
21953 2010-11-26 Robert Millan <rmh@gnu.org>
21955 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21958 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21960 Fix LVM-on-RAID probing.
21962 * util/grub-probe.c (probe): Remember which disk was detected as
21963 RAID (perhaps an LVM physical volume). Use that disk's raidname
21964 rather than that of the top-level disk.
21966 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21968 Fix cmdline argument quotes for setparams command of menuentry
21971 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21972 quotes for arguments.
21973 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21974 grub_strchrsub function instead.
21976 * include/grub/misc.h (grub_strchrsub): New function.
21978 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21980 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21981 effort by skipping "." and ".." entries up-front.
21982 Suggested by: Michael Lazarev.
21984 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21986 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21987 ldflags to ldadd, to fix link line ordering.
21988 (none_decompress): Likewise.
21990 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21992 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21994 (grub-emu-lite): Remove kern/emu/cache.S.
21996 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21998 * util/deviceiter.c (compare_devices): If the by-id link for a
21999 device couldn't be resolved, fall back to sorting by the by-id link
22000 rather than segfaulting.
22001 Reported and tested by: Daniel Mierswa.
22003 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22005 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22006 ldflags, to fix link line ordering.
22008 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22010 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22011 linkers are picky about this.
22013 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22015 * grub-core/Makefile.am (command.lst): Adjust sed expression
22016 ordering so that extended and priority commands aren't treated as
22019 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22021 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22022 Remove byte-swapping function calls, which are not valid in
22023 structure initialisers.
22024 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22026 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22027 grub_gpt_partition_type_bios_boot.
22029 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22031 Fix test program build on GNU/kFreeBSD.
22033 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22034 $(LIBNVPAIR)' library dependencies.
22036 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22038 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22040 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22042 * util/grub-install.in: Remove excessive quoting that broke
22043 installations to RAID devices.
22045 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22047 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22048 bootloader version instead of 0.
22050 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22055 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22057 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22058 retrieve the metadat sector if size isn't known.
22059 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22061 2010-11-18 Robert Millan <rmh@gnu.org>
22063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22064 with grub_memcmp().
22066 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22068 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22070 Reported by: Jordan Uggla.
22072 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22074 Make better UTF compliant.
22076 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22077 sequences as incorrect.
22078 (grub_is_valid_utf8): Likewise.
22079 (grub_utf8_to_ucs4): Likewise.
22080 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22081 (grub_ucs4_to_utf8_alloc): Likewise.
22082 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22084 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22086 Make legacy_source behave like source.
22088 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22090 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22092 2010-11-16 Colin Watson <cjwatson@debian.org>
22094 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22095 (-Wunused implies -Wunused-parameter, but not vice versa).
22097 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22099 * configure.ac: Make error messages less confusing by testing for
22100 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22101 accepted, but produces a diagnostic if something else is wrong).
22103 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22105 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22106 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22108 (grub_keyboard_controller_init)
22109 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22110 read the initial state since controller isn't inited yet.
22112 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22114 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22115 allocate_regbeg may need to create new chunk header.
22117 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22119 Fix quoting in legacy parser.
22121 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22123 (grub_legacy_parse): Likewise.
22124 Reported by: Jordan Uggla.
22125 Tested by: Jordan Uggla.
22127 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22129 Don't add -lgcc on i386 and x86_64.
22131 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22132 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22133 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22135 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22137 * configure.ac: Add -Wno-trampolines when supported.
22139 2010-11-14 Modestas Vainius <modax@debian.org>
22141 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22144 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22146 Add generic logical block size support for UDF.
22148 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22149 (GRUB_UDF_BLKSZ): Removed.
22150 (struct grub_udf_data): New field "lbshift" to hold the logical block
22151 size of the file system in log2 format. All users updated.
22152 (sblocklist): Change type to unsigned.
22153 (grub_udf_mount): Change type of "sblklist" to unsigned.
22154 Move AVDP search before VRS recognition, because the latter requires
22155 knowledge of the logical block size, which is detected during the
22157 Detect and validate logical block size during AVDP search, adding
22158 support for block sizes 512, 1024 and 4096.
22159 Make VRS recognition independent of block size.
22161 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22163 Properly handle deleted files on UDF.
22165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22166 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22169 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22171 Support reading files larger than 2 GiB.
22173 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22174 "offset" to grub_off_t.
22175 (grub_udf_read_file): Likewise for parameter "pos".
22177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22179 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22181 (Simple configuration): Refer to Changes from GRUB Legacy about
22182 save_env availability.
22184 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22186 * util/grub-install.in: Ignore empty partition table detection
22187 instead of trying to include part_ module.
22189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22191 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22192 LVM on RAID support.
22194 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22196 Properly define WORDS_BIGENDIAN in wrapped environments.
22198 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22200 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22202 Reported by: Manoel Rebelo Abranches.
22203 Tested by: Manoel Rebelo Abranches.
22205 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22207 * util/grub-mkconfig.in: Fix quoting.
22209 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22211 Support big ext2 files.
22213 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22214 (grub_ext2_read_block): Support triple indirect blocks.
22215 (grub_ext2_read_file): Use 64-bit types and read size_high.
22216 (grub_ext2_open): Read size_high.
22217 Reported by: Ximin Luo.
22218 Tested by: Manoel Rebelo Abranches.
22220 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22222 * util/grub-install.in: Handle filenames containing spaces.
22223 Reported by: Jordan Uggla.
22224 Tested by: Jordan Uggla.
22226 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22228 * util/grub-mkconfig.in (grub_script_check): New variable.
22229 Use grub_script_check instead of grub-script-check.
22230 Reported by: Barry Jackson.
22232 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22234 * docs/grub.texi (menu): Correct the order.
22235 Reported by: D. Hugh Redelmeier.
22237 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22239 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22242 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22244 * include/grub/elfload.h (grub_elf32_size): New parameter.
22246 Return maximum segments alignment.
22247 (grub_elf64_size): Likewise.
22248 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22249 Return maximum segments alignment.
22250 (grub_elf64_size): Likewise.
22251 * grub-core/loader/powerpc/ieee1275/linux.c:
22252 (grub_linux_claimmap_iterate): New function. Uses the
22253 "available" property in the "memory" node for memory allocation
22254 for kernel in the PowerPC loader.
22255 (grub_linux_load32): Correctly find linux entry point offset.
22256 (grub_linux_load64): Likewise.
22258 2010-11-07 Robert Millan <rmh@gnu.org>
22260 On mips-yeeloong, build with -march=loongson2f when this flag is
22261 available (GCC >= 4.4).
22262 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22264 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22265 or otherwise add -march=mips3.
22267 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22269 Suppress shell expansion on echo '*' and echo "*" like cases.
22270 Reported by: Jordan Uggla.
22272 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22273 string arguments before shell expansion.
22274 * tests/grub_cmd_echo.in: New testcases.
22276 2010-11-07 Robert Millan <rmh@gnu.org>
22278 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22281 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22283 * grub-core/kern/emu/hostdisk.c
22284 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22286 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22288 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22289 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22290 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22292 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22294 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22296 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22298 * util/grub-install.in: Replace useless recomendation to pass
22299 --modules with a recomendation to report a bug.
22301 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22303 Properly register serial terminfo.
22304 Reported by: Jordan Uggla
22306 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22308 (grub_serial_terminfo_output_template): Likewise.
22309 (grub_cmd_serial): Register "serial" with terminfo.
22310 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22311 grub_serial_terminfo_output.
22313 2010-11-05 Robert Millan <rmh@gnu.org>
22315 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22318 2010-11-05 Robert Millan <rmh@gnu.org>
22320 On Yeeloong, pass machine type information to Linux.
22322 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22323 (LOONGSON_MACHTYPE): New macro, set to
22324 "machtype=lemote-yeeloong-2f-8.9inches".
22325 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22326 additional argument to Linux.
22328 2010-11-04 Robert Millan <rmh@gnu.org>
22330 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22331 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22332 (its SATA disks are detected as slaveless IDE master drives on
22334 Reported by Carsten Aulbert.
22336 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22338 * util/bin2h.c (main): Fix spelling error in generated output.
22340 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22342 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22344 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22347 vga= option is supplied.
22349 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22351 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22352 * util/grub.d/10_kfreebsd.in: Likewise.
22353 * util/grub.d/10_linux.in: Likewise.
22354 * util/grub.d/20_linux_xen.in: Likewise.
22356 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22358 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22359 argument as an argument to no-argument option.
22361 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22363 * util/grub.d/10_linux.in: Add missing load_video with explicit
22364 GRUB_GFXPAYLOAD_LINUX.
22366 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22368 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22370 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22373 elements with invlid index.
22374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22375 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22377 * include/grub/raid.h (grub_raid_member): New struct.
22378 (grub_raid_array): Transform devices and start_sector into usage of
22379 grub_raid_member. All users updated
22380 (allocated_devs): New member.
22382 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22384 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22387 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22389 NetBSD build fix for getline function conflict from gnulib.
22391 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22392 components that depend on gnulib headers.
22393 (libgrubmods.a): Renamed from earlier libgrub.a.
22394 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22396 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22398 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22399 install rather than creating a broken install.
22401 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22403 * util/grub-setup.c (argp): Remove misleading example of installing to
22406 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22408 * util/grub-setup.c (setup): Clarify the error message.
22410 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22412 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22414 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22416 * grub-core/kern/emu/misc.c
22417 (grub_make_system_path_relative_to_its_root)
22418 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22420 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22422 * grub-core/kern/emu/misc.c
22423 (grub_make_system_path_relative_to_its_root): Revert r2882.
22425 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22427 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22428 useless field head. All users updated.
22429 (free_subchunk): Correct handling of IN_REGION subchunk.
22431 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22433 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22434 (Supported kernels): Likewise.
22436 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22438 Make mktemp invocations portable.
22440 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22441 exit if mktemp fails.
22442 * tests/grub_script_blockarg.in: Likewise.
22443 * tests/partmap_test.in: Likewise.
22444 * tests/util/grub-shell-tester.in: Likewise.
22445 * tests/util/grub-shell.in: Likewise.
22446 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22447 * Makefile.am: Likewise, and chain shell commands with `&&'
22449 * util/grub-mkrescue.in: Use the same explicit template as above, and
22450 exit if mktemp fails.
22452 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22454 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22455 Linux kernel, reported by Dennis Schridde.
22457 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22459 * grub-core/normal/auth.c (grub_auth_check_authentication):
22460 Set-but-not-used variable removed.
22462 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22464 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22465 32-bit linux protocol.
22467 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22469 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22470 cursor shape for sanity.
22472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22474 * docs/grub.texi (Installation): Document buggy BIOS install.
22476 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22478 * docs/grub.texi (Installation): Indent.
22480 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22482 * util/grub-setup.c (setup): New parameter allow_floppy.
22483 (arguments): New member allow_floppy.
22484 (argp_parser): Handle --allow-floppy.
22485 (main): Pass allow_floppy.
22486 * util/grub-install.in: New option --allow-floppy passed though to
22489 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22491 * util/grub-install.in: Handle partitionless disks.
22493 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22495 * util/grub-setup.c (setup): Don't clean blocklists before readability
22498 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22500 * docs/grub.texi (Installation): Document embedding zone. Remove
22501 obsolete grub-install example.
22503 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22505 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22506 Set-but-not-used variable ifdef'ed.
22507 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22508 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22510 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22511 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22512 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22513 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22514 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22515 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22516 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22517 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22518 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22519 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22520 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22523 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22525 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22526 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22529 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22531 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22532 synonym to _S5_. Needed for some DSDTs.
22534 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22536 Userspace ACPI parser debugging.
22538 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22539 headers and add relevant defines. Don't include standard headers.
22540 (main) [GRUB_DSDT_TEST]: New function.
22541 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22542 Don't declare functions.
22544 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22546 Remove dead grub_efi_mm_fini.
22548 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22549 (ALLOCATED_PAGES_SIZE): Likewise.
22550 (MAX_ALLOCATED_PAGES): Likewise.
22551 (allocated_pages): Likewise.
22552 (grub_efi_allocate_pages): Don't record allocated pages.
22553 (grub_efi_free_pages): Likewise.
22554 (grub_efi_mm_init): Likewise.
22555 (grub_efi_mm_fini): Removed.
22557 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22559 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22560 (grub_efi_mm_init): Take into account the memory map size increase.
22562 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22564 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22565 (serial_hw_put): Wait based on real time rather than port reads. Don't
22567 * include/grub/serial.h (grub_serial_port): New field broken.
22569 2010-10-16 Robert Millan <rmh@gnu.org>
22571 * grub-core/kern/emu/misc.c
22572 (grub_make_system_path_relative_to_its_root): Fix premature return
22573 when processing non-root ZFS filesystems.
22574 Reported by Sergio Talens-Oliag.
22576 2010-10-15 Robert Millan <rmh@gnu.org>
22578 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22579 guarantee compressed ones are processed first.
22581 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22583 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22584 grub_efiemu_autocore.
22586 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22588 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22590 (grub_console_getkey): Use correct jae opcode rather than ja.
22592 2010-10-12 Robert Millan <rmh@gnu.org>
22594 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22595 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22596 variable. All references updated.
22598 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22600 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22602 Correctly distinguish mdraid flavours.
22604 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22605 (insert_array): New argument raid.
22606 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22607 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22608 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22610 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22612 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22613 handling of special keys.
22615 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22617 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22618 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22620 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22622 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22623 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22625 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22626 Use right endpoint when querying descriptor.
22628 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22630 Clear out 0x80 color bit on EFI.
22632 Reported by: decoder and meta tech.
22634 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22635 (grub_console_setcolorstate): Clear out 0x80 bit.
22636 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22637 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22638 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22640 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22642 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22645 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22647 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22648 mo_file after freeing.
22650 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22652 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22654 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22656 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22659 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22661 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22664 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22666 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22668 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22669 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22670 and terminfo.h when needed.
22671 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22672 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22673 (terminfo): Enable only on terminfokernel.
22674 (extcmd): Likewise.
22675 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22676 * include/grub/lib/arg.h: Likewise.
22677 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22678 incorrect usage of ->.
22680 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22683 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22685 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22687 Fix coreboot compilation.
22689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22690 Take VBE info into account even if only text is supported.
22691 (fill_vbe_info): Take into account the case when only VGA text
22693 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22694 on coreboot, multiboot and qemu.
22696 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22698 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22700 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22702 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22704 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22707 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22709 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22710 if they were BSD-style.
22712 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22714 * grub-core/boot/i386/pc/lnxboot.S: Replace
22715 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22716 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22718 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22720 Write embedding zone using Reed-Solomon.
22722 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22723 * grub-core/Makefile.am (rs_decoder.S): New target.
22724 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22725 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22726 (multiboot): Move to RS part.
22727 (post_reed_solomon): New label.
22728 (grub_boot_drive): Move to non-RS part since it's modified in memory
22730 Include rs_decoder.S.
22731 * grub-core/lib/reed_solomon.c: New file.
22732 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22734 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22735 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22736 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22737 * include/grub/partition.h (grub_partition_map): Change prototype of
22738 embed to allow returning additional sectors.
22739 * include/grub/reed_solomon.h: New file.
22740 * util/grub-setup.c (setup): Handle Reed-Solomon.
22742 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22745 i386 and x86-64 definedness tests.
22747 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22749 Fix generation of kernel_syms.lst
22751 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22754 2010-09-26 Robert Millan <rmh@gnu.org>
22756 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22758 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22759 the pool is an array of devices, iterate through it and return the
22760 first device that passes a stat() test (instead of blindly returning
22763 2010-09-26 Robert Millan <rmh@gnu.org>
22765 Build fixes for GNU/kFreeBSD.
22767 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22768 to programs that require ZFS conversion.
22769 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22770 kernels that don't have FLOPPY_MAJOR.
22772 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22774 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22776 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22778 Fix grub-emu build.
22780 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22781 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22782 mdraid09 and mdraid1x.
22784 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22786 Re-enable grub-extras.
22788 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22789 avoid confusing Automake. Run autogen only twice, once for the top
22790 level and once for grub-core. Add Makefile.util.def and
22791 Makefile.core.def from extra modules to the appropriate autogen
22792 invocations. If Makefile.common exists in an extra module, include
22793 it in both Makefile.util.am and grub-core/Makefile.core.am;
22794 similarly, include any Makefile.util.common file in Makefile.util.am
22795 and any Makefile.core.common file in grub-core/Makefile.core.am.
22796 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22797 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22798 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22799 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22801 * gentpl.py (gvar_add): Turn GVARS into a set.
22802 (global_variable_initializers): Sort global variables on output.
22803 (vars_init): New function.
22804 (first_time): Likewise.
22805 (library): Ensure that non-global variable initialisations are
22806 emitted before the first time we emit code for a library block.
22807 Append to variables rather than setting them. Only emit
22808 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22809 each conditional path.
22810 (program): installdir() emits an Autogen macro, so must be passed to
22811 var_add rather than gvar_add.
22813 (script): Likewise.
22814 (rules): New function, centralising handling for different target
22815 types. Set up Guile association lists for first_time and vars_init,
22816 and send most output to a diversion so that variable initialisations
22817 can be emitted first.
22818 (module_rules): Use new rules function.
22819 (kernel_rules): Likewise.
22820 (image_rules): Likewise.
22821 (library_rules): Likewise.
22822 (program_rules): Likewise.
22823 (script_rules): Likewise.
22824 (data_rules): Likewise.
22826 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22828 * .bzrignore: Add contrib and grub-core/contrib. Remove
22829 grub-core/Makefile.gcry.am.
22831 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22833 * grub-core/lib/LzFind.c: Add missing include.
22834 * grub-core/lib/LzmaEnc.c: Likewise.
22835 * grub-core/script/lexer.c: Likewise.
22836 * grub-core/script/yylex.l: Likewise.
22837 * util/grub-macho2img.c: Likewise.
22838 * util/grub-menulst2cfg.c: Likewise.
22839 * util/grub-mklayout.c: Likewise.
22840 * util/grub-mkpasswd-pbkdf2.c
22841 * util/grub-mkrelpath.c: Likewise.
22842 * util/resolve.c: Likewise.
22844 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22846 * Makefile.util.def (example_unit_test): Add
22847 grub-core/gnulib/libgnu.a.
22849 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22851 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22853 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22855 Support xz compression on yeeloong.
22857 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22858 * configure.ac: Check for LZMA.
22859 * grub-core/Makefile.core.def (xz_decompress): New target.
22860 (none_decompress): Likewise.
22861 * grub-core/boot/decompressor/minilib.c: New file.
22862 * grub-core/boot/decompressor/none.c: Likewise.
22863 * grub-core/boot/decompressor/xz.c: Likewise.
22864 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22865 * grub-core/kern/mips/cache_flush.S: Likewise.
22866 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22867 * grub-core/kern/mips/startup.S: Move first stage to ...
22868 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22870 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22871 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22872 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22873 Allocate statically.
22874 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22875 Allocate statically or use scratch. Don't check CRC32.
22876 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22877 Allocate statically. Don't check CRC32.
22878 * include/grub/decompressor.h: New file.
22879 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22881 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22882 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22883 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22884 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22885 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22886 * util/grub-mkimage.c (grub_compression_t): New type.
22887 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22888 (image_target_desc): New field default_compression.
22889 (image_targets): Adjust yeeloong targets.
22890 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22891 (compress_kernel): New parameter comp.
22892 (generate_image): Likewise. Handle new compression case.
22893 (options): New option --compression
22895 (main): Handle new option.
22897 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22899 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22901 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22904 typo in __i386__ conditional.
22906 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22908 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22911 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22913 Implement EFI and ACPI multiboot2 extensions.
22915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22916 new tags as supported.
22917 (acpiv2_size): New function.
22918 (grub_multiboot_get_mbi_size): Take new tags into account.
22919 (grub_multiboot_make_mbi): Add new tags.
22920 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22922 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22924 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22925 Added missing configuration of USB device.
22927 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22929 * grub-core/normal/menu_entry.c (run): Make sure we always return
22932 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22934 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22935 NumberOfPages is UINT64 according to the UEFI specification, not
22936 UINTN. Fix printf format.
22938 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22940 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22941 `err' to grub_usb_err_t.
22942 Reported and tested by: KESHAV P.R.
22944 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22946 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22947 tpart non-const, so that we can assign to it. (Since this is a
22948 typedef, the constness refers to the pointer rather than what it
22951 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22953 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22954 $(top_srcdir)/grub-core/gnulib as well as
22955 $(top_builddir)/grub-core/gnulib.
22956 Reported by: KESHAV P.R.
22958 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22960 * util/grub-install.in: Fix the bootloader ID option to be
22961 consistently --bootloader-id, not --bootloader_id.
22962 Reported by: KESHAV P.R.
22964 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22966 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22967 check hash checksum." consistently translatable.
22969 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22971 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22974 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22976 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22977 (GRUB_MOD_INIT): Register sha1sum command.
22978 (GRUB_MOD_FINI): Unregister sha1sum command.
22980 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22982 Keep boot and grub directory names in sync with utils scripts
22984 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22985 * config.h.in: Add previous macros.
22986 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22987 * util/grub-install.in: Use $bootdir and $grubdir variables.
22989 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22991 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22992 convert partition names to disk names if the new `convert' parameter
22994 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22995 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22996 disk in its own right. This can happen with Xen disk images.
22998 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23000 * util/grub-editenv.c: Update strings to avoid warnings when generating
23002 * util/grub-setup.c: Likewise.
23004 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23006 * configure.ac: Change version to 1.99~beta0.
23008 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23010 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23012 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23014 * include/multiboot.h: Resynced with specification.
23015 * include/multiboot2.h: Likewise.
23017 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23019 Fix po directory handling.
23021 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23022 * grub-core/gnulib/Makefile.am: Import gettext module.
23023 * m4/gnulib-cache.m4: Likewise.
23024 * m4/gnulib-comp.m4: Likewise.
23025 * m4/gettext.m4: New file, from gnulib.
23026 * m4/glibc2.m4: Likewise.
23027 * m4/iconv.m4: Likewise.
23028 * m4/intdiv0.m4: Likewise.
23029 * m4/intl.m4: Likewise.
23030 * m4/intldir.m4: Likewise.
23031 * m4/intlmacosx.m4: Likewise.
23032 * m4/intmax.m4: Likewise.
23033 * m4/inttypes-pri.m4: Likewise.
23034 * m4/lcmessage.m4: Likewise.
23035 * m4/lib-ld.m4: Likewise.
23036 * m4/lib-link.m4: Likewise.
23037 * m4/lib-prefix.m4: Likewise.
23038 * m4/lock.m4: Likewise.
23039 * m4/nls.m4: Likewise.
23040 * m4/po.m4: Likewise.
23041 * m4/printf-posix.m4: Likewise.
23042 * m4/progtest.m4: Likewise.
23043 * m4/threadlib.m4: Likewise.
23044 * m4/uintmax_t.m4: Likewise.
23045 * m4/visibility.m4: Likewise.
23046 * po/Makefile.am: Remove.
23047 * po/Makefile.in.in: New file, from gettext.
23048 ($(DOMAIN).pot-update): Support POTFILES-shell.
23049 * po/Makevars: New file.
23050 * po/POTFILES-shell: Rename to ...
23051 * po/POTFILES-shell.in: ... this. Update.
23052 * po/POTFILES: Rename to ...
23053 * po/POTFILES.in: ... this. Update.
23054 * po/Rules-quot: New file, from gettext.
23055 * po/boldquot.sed: Likewise.
23056 * po/en@boldquot.header: Likewise.
23057 * po/en@quot.header: Likewise.
23058 * po/insert-header.sin: Likewise.
23059 * po/quot.sed: Likewise.
23060 * po/remove-potcdate.sin: Likewise.
23062 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23064 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23068 * util/grub.d/20_linux_xen.in: Use submenus.
23070 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23074 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23075 parameter submenu. All users updated.
23076 * grub-core/normal/main.c (free_menu): Rename to ...
23077 (grub_normal_free_menu): ... this. Made global.
23078 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23080 * grub-core/normal/menu_entry.c (screen): New field submenu.
23081 (make_screen): Set submenu.
23082 (run): Open new context if requested.
23083 * include/grub/menu.h (grub_menu_entry): New field submenu.
23084 * include/grub/normal.h (grub_normal_free_menu): New proto.
23086 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23088 Menu entries extractor.
23090 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23092 (GRUB_MOD_INIT): Register new variants.
23093 (GRUB_MOD_FINI): Unregister new variants.
23094 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23095 into grub_cmd_legacy_source.
23096 (grub_cmd_legacy_source): Implement extractor variants.
23097 (GRUB_MOD_INIT): Register new variants.
23098 (GRUB_MOD_FINI): Unregister new variants.
23099 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23101 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23102 search as an extractor.
23103 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23104 test as an extractor.
23105 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23107 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23108 (grub_env_new_context): New function.
23109 (grub_env_context_open): Likewise.
23110 (grub_env_extractor_open): Likewise.
23111 (grub_env_extractor_close): Likewise.
23112 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23113 grub_extractor_level.
23114 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23115 * include/grub/env.h (grub_env_extractor_open): New proto.
23116 (grub_env_extractor_close): Likewise.
23117 * include/grub/normal.h (grub_extractor_level): New external variable.
23119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23121 Make cutmem accept a region specification.
23122 Suggested by: Samuel Thibault
23124 * grub-core/mmap/mmap.c (parsemem): New function.
23125 (grub_cmd_cutmem): Handle new arguments.
23127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23129 New command cutmem.
23131 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23132 (GRUB_MOD_INIT): Register new command.
23133 (GRUB_MOD_FINI): Unregister new command.
23135 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23137 Support some annoying BSD and Minix subpartitions.
23139 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23140 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23141 Properly handle concatenation.
23142 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23143 * grub-core/normal/completion.c (iterate_partition): Likewise.
23144 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23145 contain partition. All users updated.
23146 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23148 (grub_openbsdlabel_partition_map): Likewise.
23149 (bsdlabel_partition_map_iterate): Rename to ..
23150 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23151 (bsdlabel_partition_map_iterate): New function.
23152 (netopenbsdlabel_partition_map_iterate): Likewise.
23153 (netbsdlabel_partition_map_iterate): Likewise.
23154 (openbsdlabel_partition_map_iterate): Likewise.
23155 (GRUB_MOD_INIT): Register new partmaps.
23156 (GRUB_MOD_FINI): Unregister new partmaps.
23157 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23158 (grub_partition_msdos_iterate): ... this. All users updated.
23159 Don't support embedding other than in a minix partition.
23160 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23162 * include/grub/partition.h (grub_partition): New field msdostype.
23163 * util/grub-install.in: Handle openbsd and netbsd types being in
23166 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23168 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23170 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23171 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23172 (mdraid09): ... this.
23173 (mdraid1x): New module.
23174 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23175 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23177 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23179 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23182 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23184 * grub-core/commands/efi/lsefimmap.c: Correct header.
23187 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23189 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23190 as printf format strings; the translations might contain '%' which
23191 could cause a crash.
23193 * util/grub-fstest.c (argp_parser): Likewise.
23194 * util/grub-setup.c (argp_parser): Likewise.
23197 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23199 Use argp in grub-fstest.
23201 * util/grub-fstest.c: Don't include getopt.h.
23203 (root): New variable.
23204 (args_count): Likewise.
23206 (num_disks): Likewise.
23207 (images): Likewise.
23209 (debug_str): Likewise.
23211 (options): Transformed to argp.
23213 (main): Split argument parsing into ...
23214 (argp_parser): ... this. Changed to argp format.
23215 (argp): New variable.
23216 (main): Use argp_parse.
23218 2010-09-20 Tristan Gingold <gingold@free.fr>
23219 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23220 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23222 * grub-core/commands/efi/lsefimmap.c: New file.
23223 * grub-core/Makefile.core.def (lsefimmap): New module.
23224 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23228 Pause the execution (10s max) if any errors are displayed so the user
23229 has a chance to see them.
23231 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23232 (grub_print_error): Increment grub_err_printed_errors.
23233 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23234 execution if any errors were displayed.
23235 (show_menu): Remove old code for pause.
23236 * grub-core/normal/menu_entry.c (run): Likewise.
23237 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23239 (grub_normal_get_char_counter): Likewise.
23240 * include/grub/err.h (grub_err_printed_errors): New external variable.
23241 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23243 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23245 Support multiboot VBE info.
23247 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23248 Take VBE info into account.
23249 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23250 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23251 Call fill_vbe_info when appropriate.
23252 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23253 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23255 (grub_multiboot_get_mbi_size): Take new tags into account.
23256 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23257 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23258 Call fill_vbe_tag when appropriate.
23259 (grub_multiboot_make_mbi): Properly align tags.
23260 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23262 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23266 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23268 Suport manual terminal geometry specification.
23270 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23271 Save state in grub_ofconsole_terminfo_output.
23272 (grub_ofconsole_term): Use grub_terminfo_getwh.
23273 (grub_ofconsole_getwh): Removed.
23274 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23275 (grub_serial_term): Use grub_terminfo_getwh.
23276 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23277 (options): New struct.
23278 (OPTION_*): New enum.
23279 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23280 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23282 (grub_terminfo_getwh): New proto.
23283 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23285 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23287 Handle legacy "terminal" command.
23289 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23291 (legacy_commands): Add terminal and title.
23292 (grub_legacy_parse): Handle terminal. Simplify title handling.
23294 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23296 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23297 parameters overflow.
23299 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23301 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23304 * docs/grub.texi (Shell-like scripting): Document `!'.
23305 (Network): Simplify using new i386-pc-pxe format. Mention
23310 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23312 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23313 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23316 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23318 * grub-core/commands/efi/lsefisystab.c: Correct header.
23319 * grub-core/commands/efi/lssal.c: Likewise.
23320 * grub-core/commands/testload.c: Likewise.
23322 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23324 * util/grub-mkrescue.in: Add explicit root argument to --set to
23325 prevent the UUID being interpreted as an argument to --set (matches
23326 previous change to prepare_grub_to_access_device).
23328 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23330 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23331 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23332 the verbosity of later #ifs.
23333 (find_partition_start): Define this function on FreeBSD too.
23334 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23336 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23339 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23341 * util/grub-editenv.c: Use argp instead of getopt.
23343 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23345 * util/grub-setup.c: Use argp instead of getopt.
23347 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23349 Use gnulib-tool to create gnulib source files.
23351 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23352 grub-core/gnulib directories
23353 * .bzignore: Add **/.deps and autogenerated gnulib files
23354 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23355 of gnulib macros, add grub-core/gnulib/Makefile
23356 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23357 include m4 directory to aclocal.
23358 * Makefile.util.def: Remove direct compilation of gnulib source files
23359 and use the new grub-core/gnulib/libgnu.a.
23360 * build-aux/config.rpath: move config.rpath from top directory to
23362 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23364 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23365 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23366 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23368 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23371 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23373 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23374 grub-core/genmod.sh and grub-core/gensyminfo.sh
23376 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23378 Add a test for echo command options.
23380 * tests/grub_cmd_echo.in: New test.
23381 * Makefile.util.def: Rules for new test.
23383 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23385 Remove crc.mod and move crc command to hashsum.mod.
23386 Remove lib/crc.c - users updated to use gcrypt implementation.
23388 * grub-core/commands/crc.c: Removed.
23389 * grub-core/Makefile.core.def (crc): Module removed.
23390 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23391 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23392 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23393 * grub-core/lib/crc.c: Removed.
23394 * include/grub/lib/crc.h: Removed.
23395 * Makefile.util.def (crc): Remove lib/crc.c
23396 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23397 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23398 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23399 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23400 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23401 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23403 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23405 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23407 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23409 Split config.h for util and core.
23411 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23412 (ADDR32): Likewise.
23413 (DATA32): Likewise.
23414 (BSS_START_SYMBOL): Likewise.
23415 (END_SYMBOL): Likewise.
23416 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23417 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23418 * config.h.in: New file.
23419 * configure.ac: Use config-util.h as config define file.
23420 Rename MACHINE into GRUB_MACHINE. All users updated.
23421 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23423 (NESTED_FUNC_ATTR): Likewise.
23424 Substitue new variables.
23425 (COND_HAVE_ASM_USCORE): New conditional.
23426 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23427 (kernel_syms.lst): Use ASM_PREFIX.
23428 * grub-core/kern/emu/console.c: Include config-util.h.
23429 * grub-core/kern/emu/misc.c: Likewise.
23430 * grub-core/kern/emu/mm.c: Likewise.
23431 * include/grub/emu/misc.h: Likewise.
23432 * include/grub/libgcc.h: Likewise.
23434 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23436 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23438 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23439 Fix GRUB_TERM_KEY_* constants usage.
23440 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23442 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23444 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23446 * grub-core/bus/usb/uhci.c: Remove empty define.
23447 (grub_uhci_check_transfer): Add missing cast.
23448 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23450 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23452 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23454 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23456 * grub-core/Makefile.core.def (legacycfg): Add
23457 lib/i386/pc/vesa_modes_table.c on emu.
23459 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23461 Reduce number of temporary files generated by build system.
23463 * grub-core/gencmdlist.sh: Removed.
23464 * grub-core/genfslist.sh: Removed.
23465 * grub-core/genhandlerlist.sh: Removed.
23466 * grub-core/genmodsrc.sh: Removed.
23467 * grub-core/genpartmaplist.sh: Removed.
23468 * grub-core/genparttoollist.sh: Removed.
23469 * grub-core/gentermiinallist.sh: Removed.
23470 * grub-core/genvideolist.sh: Removed.
23472 * grub-core/genmod.sh.in: New file.
23473 * grub-core/gensyminfo.sh.in: New file.
23475 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23476 * conf/Makefile.extra-dist: Update with new files.
23477 * gentpl.py: Remove rules related to unnecessary temporary files.
23478 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23480 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23482 * grub-core/bus/usb/uhci.c: Remove empty #define.
23483 * grub-core/genmoddep.awk: Updated with new syminfo format.
23484 * util/bash-completion.d/Makefile.am: Add config.log to
23487 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23489 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23491 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23493 * util/grub-mkconfig.in: Check the config script for syntax errors
23496 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23497 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23499 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23501 * util/grub-install.in: Add EFI and IEEE1275 support.
23502 * util/i386/efi/grub-install.in: Removed.
23503 * util/ieee1275/grub-install.in: Likewise.
23505 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23507 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23508 (grub_cmd_cmosclean): Likewise.
23509 (GRUB_MOD_INIT): Register command cmosclean.
23510 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23511 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23513 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23514 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23515 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23517 Add keyboard layouts support.
23519 * Makefile.util.def (grub-mklayout): New file.
23520 (grub-kbdcomp): New script.
23521 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23522 Add keyboard_layouts.h.
23523 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23524 commands/boot.c on yeeloong.
23525 (keylayouts): New module.
23526 * grub-core/bus/usb/ohci.c
23527 * grub-core/bus/usb/uhci.c
23528 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23529 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23530 (attach_root_port): Likewise.
23531 (poll_nonroot_hub): Likewise.
23532 (grub_usb_poll_devices): Likewise.
23533 (detach_device): Close transfer.
23534 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23536 (grub_usb_bulk_setup_readwrite): Likewise.
23537 (grub_usb_bulk_finish_readwrite): Likewise.
23538 * grub-core/commands/keylayouts.c: New file.
23539 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23540 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23542 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23543 support scancode 2.
23544 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23545 * include/grub/keyboard_layouts.h: New file.
23546 * util/grub-mklayout.c: New file.
23547 * util/grub-kbdcomp.in: Likewise.
23549 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23551 Unify memory types.
23553 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23554 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23556 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23557 (grub_upper_mem): Likewise.
23558 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23559 * include/grub/memory.h (grub_memory_type_t): New enum.
23562 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23564 * grub-core/Makefile.core.def (lsapm): New module.
23565 * grub-core/commands/i386/pc/lsapm.c: New file.
23566 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23567 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23569 * include/grub/i386/pc/apm.h: New file.
23570 * include/multiboot.h (multiboot_apm_info): New struct.
23572 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23574 GRUB-legacy configuration file support.
23576 * Makefile.util.def (grub-menulst2cfg): New util.
23577 * docs/man/grub-menulst2cfg.h2m: New file.
23578 * grub-core/Makefile.core.def (legacycfg): New module.
23579 * grub-core/commands/legacycfg.c: New file.
23580 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23581 (grub_normal_add_menu_entry): ... this.
23582 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23583 (grub_normal_set_password): ...this.
23584 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23585 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23586 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23587 * grub-core/lib/legacy_parse.c: New file.
23588 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23589 * include/grub/i386/pc/vesa_modes_table.h: New file.
23590 * include/grub/legacy_parse.h: Likewise.
23591 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23592 * util/grub-menulst2cfg.c: New file.
23594 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23596 * grub-core/kern/emu/hostdisk.c
23597 (convert_system_partition_to_system_disk): Initialise node.
23599 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23601 * grub-core/kern/emu/hostdisk.c
23602 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23604 Reported and based on patch by: Modestas Vainius.
23606 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23608 Fix DM-RAID probing with recent versions of device-mapper udev
23611 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23612 canonicalise device paths under /dev/mapper/.
23613 (convert_system_partition_to_system_disk): Compare the
23614 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23615 path, since device nodes under /dev/mapper/ are often symlinks.
23617 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23619 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23621 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23623 * configure.ac: Avoid some annoying error messages if freetype-config
23624 program is not found.
23626 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23628 Support RAID on virtio devices, and others.
23630 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23632 [__MINGW32__] (grub_find_device): ... this.
23633 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23634 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23635 reasonable default if dir is NULL.
23636 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23638 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23639 (grub_guess_root_device): Update callers.
23640 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23642 * util/raid.c (grub_util_getdiskname): Remove.
23643 (grub_util_raid_getmembers): Use grub_find_device rather than
23644 grub_util_getdiskname.
23646 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23648 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23649 needing to be compiled with serial support.
23650 (ls): Indicate that multiple files are accepted.
23651 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23652 indicate that multiple files are accepted.
23654 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23656 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23657 libgrub_a_init.c, and util/bash-completion.d/grub.
23659 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23661 * util/grub-setup.c (setup): Fix incorrect container semantics.
23663 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23665 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23667 Reported by: J. Nick Terry
23669 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23671 Move embedding routines to partmap sources files.
23673 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23674 [GRUB_UTIL]: New variable.
23675 (gpt_partition_map_iterate): Set part.parent.
23676 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23677 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23678 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23680 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23681 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23682 (grub_partition_map) [GRUB_UTIL]: New field embed.
23683 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23684 (setup): Use ->embed.
23686 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23690 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23691 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23693 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23695 Add function to get completions from usage.
23697 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23698 completions from usage. Use LC_ALL=C to get options properly.
23700 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23702 * grub-core/gnulib/basename-lgpl.c: Imported.
23703 * grub-core/gnulib/basename.c: Likewise.
23704 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23705 * grub-core/gnulib/dirname.c: Likewise.
23706 * grub-core/gnulib/dirname.h: Likewise.
23707 * grub-core/gnulib/stripslash.c: Likewise.
23709 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23711 * grub-core/gnulib/error.c: Resynced.
23712 * grub-core/gnulib/getopt.c: Likewise.
23713 * grub-core/gnulib/getopt_int.h: Likewise.
23714 * grub-core/gnulib/regex.h: Likewise.
23715 * grub-core/gnulib/regex_internal.c: Likewise.
23716 * grub-core/gnulib/regex_internal.h: Likewise.
23718 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23721 CRC calculations and validity checks.
23722 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23725 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23729 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23731 Fix incorrect echo options handling.
23732 Reported by: Yves Blusseau.
23734 * include/grub/command.h (grub_command_flags_t): New flags
23735 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23736 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23737 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23739 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23741 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23743 (GRUB_COMMAND_FLAG_MENU): Likewise.
23744 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23745 (GRUB_COMMAND_FLAG_TITLE): Removed.
23746 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23747 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23748 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23749 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23750 (grub_command_flags_t): New enum. All users updated.
23752 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23754 Fix solaris compilation.
23756 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23757 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23758 (grub-emu-list): Likewise.
23760 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23762 Remove deprecated root command.
23764 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23769 * util/i386/pc/grub-setup.c: Merge this ...
23770 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23771 * util/grub-setup.c: ... into this.
23772 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23775 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23777 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23780 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23782 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23785 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23787 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23788 explicit root argument to set to prevent UUID to be interpreted as
23791 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23793 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23795 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23797 Don't export grub_gate_a20.
23799 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23800 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23802 (grub_gate_a20): ... this. All users updated.
23803 * include/grub/i386/pc/init.h: Removed. All users updated.
23805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23807 Create euro.pf2 which supports most European languages.
23809 * Makefile.am (grubdata_DATA): Add euro.pf2.
23810 (euro.pf2): New target.
23811 (CLEANFILES): Add euro.pf2.
23813 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23815 * configure.ac: Disable emu-usb by default to prevent inadvertent
23818 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23820 Disable usbserial on grub-emu since our libusb code isn't good enough
23823 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23824 (usbserial_pl2303): Likewise.
23825 (usbserial_ftdi): Likewise.
23827 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23829 * include/grub/disk.h (grub_disk): Remove has_partitions.
23831 * disk/loopback.c (grub_loopback): Remove has_partitions.
23833 (options): Remove partitions. All users updated.
23834 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23835 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23836 actual partition table is found.
23838 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23840 Remove readability checks (too many false negatives).
23842 * util/grub-install.in: Remove readability checks.
23843 * util/grub-mkconfig.in: Likewise.
23844 * util/grub.d/10_hurd.in: Likewise.
23845 * util/grub.d/10_kfreebsd.in: Likewise.
23846 * util/grub.d/10_linux.in: Likewise.
23847 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23850 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23852 Enable acpi shutdown on all ACPI platforms.
23854 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23855 on coreboo, multiboot and EFI.
23856 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23857 (grub_acpi_halt): Likewise.
23858 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23859 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23860 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23861 * grub-core/lib/i386/halt.c (grub_halt)
23862 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23864 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23866 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23869 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23871 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23872 * grub-core/video/efi_uga.c: Likewise.
23874 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23876 Filter devaliases and never open same device twice.
23878 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23879 (last_ihandle): Likewise.
23880 (ofdisk_hash_ent): New member shortest.
23881 (ofdisk_hash_add): Add canonical path too.
23882 (scan): New function.
23883 (grub_ofdisk_iterate): Iterate over hashed entries.
23884 (compute_dev_path): Don't add :0.
23885 (grub_ofdisk_open): Don't really open the disk.
23886 (grub_ofdisk_close): Avoid closing unrelated disk.
23887 (grub_ofdisk_read): Implement reopen logic.
23888 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23893 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23897 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23898 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23899 right address. Add sparc64_ieee1275_ldflags.
23900 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23901 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23902 to grub_host_to_target_addr
23903 (load_image): Likewise.
23905 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23907 * grub-core/normal/completion.c (complete_file): Handle device
23909 Fix based on patch by Doug Nazar.
23911 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23913 grub-mknetdir script.
23915 * Makefile.util.def (grub-mknetdir): New module.
23916 * tests/util/grub-shell.in: Support boot=net
23917 * util/grub-mknetdir.in: New file.
23919 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23921 videoinfo on non-vbe.
23923 * grub-core/Makefile.core.def (vbeinfo): Removed.
23924 (vbetest): Removed.
23925 (videoinfo): New module.
23926 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23927 * grub-core/commands/i386/pc/vbetest.c: Removed.
23928 * grub-core/commands/videoinfo.c: New file.
23929 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23931 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23933 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23934 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23935 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23936 mode_number. New parameter mode. All users updated.
23937 (grub_video_gop_iterate): New function.
23938 (grub_video_efi_gop): New member iterate.
23939 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23940 (grub_vbe_set_video_mode): Remove setting useless fields.
23941 (vbe2videoinfo): New function.
23942 (grub_video_vbe_iterate): Likewise.
23943 (grub_video_vbe_setup): Use vbe2videoinfo.
23944 (grub_video_vbe_print_adapter_specific_info): New function.
23945 (grub_video_vbe_adapter): New fields iterate and
23946 print_adapter_specific_info.
23947 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23949 (grub_video_mode_info): New field mode_number.
23950 (grub_video_adapter): New fields iterate and
23951 print_adapter_specific_info.
23953 2010-09-13 Tristan Gingold <gingold@free.fr>
23954 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23957 * grub-core/commands/efi/lsefisystab.c: New file.
23958 * grub-core/commands/efi/lssal.c: Likewise.
23959 * grub-core/Makefile.core.def (lsacpi): New module.
23960 (lsefisystab): Likewise.
23961 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23962 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23963 (grub_efi_sal_system_table): New struct.
23964 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23965 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23966 (grub_efi_sal_system_table_platform_features): Likewise.
23967 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23968 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23969 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23970 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23972 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23974 Support explicit user claim that a device is BIOS-visible.
23976 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23977 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23978 * grub-core/kern/emu/hostdisk.c
23979 (convert_system_partition_to_system_disk): Support mdX.
23980 (find_system_device): New parameter add. All users updated.
23981 (grub_util_biosdisk_is_present): New function.
23982 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23987 Search hints support.
23989 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23992 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23994 Bash completion script for util commands
23996 * Makefile.am: Add util/bash-completion.d directory
23997 * configure.ac: Likewise.
23998 * util/bash-completion.d/Makefile.am: New file.
23999 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24001 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24003 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24004 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24005 Reported by: Yves Blusseau.
24007 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24009 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24010 partition size and offset.
24012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24014 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24016 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24018 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24020 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24022 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24023 (grub_xvasprintf): Likewise.
24025 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24027 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24029 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24031 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24032 args ending with NULL.
24034 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24036 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24039 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24041 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24043 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24045 Shutdown using ACPI.
24047 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24048 * grub-core/commands/acpihalt.c: New file.
24049 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24050 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24051 (grub_acpi_halt): New proto.
24052 (GRUB_ACPI_SLP_EN): New const.
24053 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24054 (GRUB_ACPI_OPCODE_*): New enum.
24055 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24057 2010-09-11 Tristan Gingold <gingold@free.fr>
24058 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24059 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24061 * commands/lsacpi.c: New file.
24062 * grub-core/Makefile.core.def (lsacpi): New module.
24063 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24064 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24065 (grub_acpi_madt_entry_header): New struct.
24066 (grub_acpi_madt): Likewise.
24067 (grub_acpi_madt_entry_interrupt_override): Likewise.
24068 (grub_acpi_madt_entry_sapic): Likewise.
24069 (grub_acpi_madt_entry_lsapic): Likewise.
24070 (grub_acpi_madt_entry_platform_int_source): Likewise.
24071 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24072 (PRIuGRUB_UINT32_T): Likewise.
24073 (PRIxGRUB_UINT64_T): Likewise.
24075 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24077 Implement loading palette on ieee1275_fb.
24079 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24080 (have_setcolors): Likewise.
24081 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24082 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24083 (grub_video_ieee1275_set_palette): Implement.
24085 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24086 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24088 * util/grub-install.in (grub_partition): New variable.
24089 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24090 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24091 Fixes a bug reported by Yves Blusseau.
24093 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24097 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24098 =grub_cpu_flush_cache on all mips and not only yeeloong.
24099 * configure.ac (COND_mips): New conditional.
24100 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24102 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24103 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24104 [GRUB_LINKER_HAVE_INIT]: New function.
24105 (grub_emu_post_init): Likewise.
24106 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24107 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24108 * include/grub/cache.h (_mips): Include mips/cache.h.
24109 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24110 LVM and RAID prototypes.
24111 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24112 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24115 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24117 * util/grub-install.in: Don't try to verify core.img until after
24118 running grub-mkimage to create it.
24120 2010-09-10 Robert Millan <rmh@gnu.org>
24122 * util/grub.d/10_hurd.in: Add misc readability checks.
24123 * util/grub.d/10_kfreebsd.in: Likewise.
24124 * util/grub.d/10_linux.in: Likewise.
24126 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24128 * util/grub-install.in: ${imgext} won't be defined here until the
24129 install branch is merged. For the meantime, only verify core.img on
24130 i386-pc and sparc64-ieee1275 platforms.
24132 2010-09-10 Robert Millan <rmh@gnu.org>
24134 Solaris support in grub_find_zpool_from_dir(). Thanks
24135 Seth Goldberg for referring to getextmntent() facility.
24137 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24139 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24141 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24142 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24143 method for finding zpool name.
24145 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24147 grub-fstest needs the host and hostfs modules while other utilities
24148 actively require those modules to be absent, so grub-fstest needs
24149 its own initialisation and finalisation code.
24151 * Makefile.am (grub_fstest.pp): New target.
24152 (grub_fstest_init.lst): Likewise.
24153 (grub_fstest_init.c): Likewise.
24154 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24156 2010-09-10 Robert Millan <rmh@gnu.org>
24158 * configure.ac: Check for `struct statfs.f_fstypename' and
24159 `struct statfs.f_mntfromname'.
24161 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24162 kFreeBSD-specific code.
24164 2010-09-10 Robert Millan <rmh@gnu.org>
24166 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24167 on ZFS. Now non-main filesystems are supported as / too.
24169 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24171 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24172 and grub-core/disk/host.c to ...
24173 (grub-fstest): ... here. Having the host disk implementation
24174 present confuses grub-probe and other utility programs.
24176 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24177 when writing to a file, not when writing to stdout.
24179 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24181 * tests/partmap_test.in: New test for partitions.
24182 * Makefile.util.def: Rules for new test.
24184 2010-09-09 Robert Millan <rmh@gnu.org>
24186 * util/grub-probe.c (probe): Fix a pair of unhandled error
24189 2010-09-09 Robert Millan <rmh@gnu.org>
24191 Basic Btrfs support (detection and UUID).
24193 * grub-core/fs/btrfs.c: New file.
24194 * Makefile.util.def (library): Register btrfs.c.
24195 * grub-core/Makefile.core.def: Likewise.
24197 2010-09-08 Robert Millan <rmh@gnu.org>
24199 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24200 with (optional) parameters to specify device and relative path.
24201 * util/grub-install.in: Use is_path_readable_by_grub() to
24202 verify readability of a few critical files.
24203 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24204 verify readability of grub.cfg.new.
24206 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24208 Split minix.mod into minix.mod and minix2.mod.
24210 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24211 * grub-core/Makefile.core.def (minix2): New module.
24212 * grub-core/fs/minix.c: Use definitions instead of runtime version
24214 * grub-core/fs/minix2.c: New file.
24216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24218 Add new --boot-directory option to replace --root-directory
24220 * util/grub-install.in: Add new --boot-directory option
24221 * util/grub-reboot.in: Likewise.
24222 * util/grub-set-default.in: Likewise.
24224 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24226 * util/grub-mkconfig.in: Use new variable.
24228 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24230 * configure.ac: Define some useful variables.
24232 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24234 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24235 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24236 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24237 Use terminfo and don't use cursor-on/cursor-off unless it's known
24239 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24240 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24242 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24244 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24245 starts with "(,", fill the drive containing the loaded image in
24246 between those two characters, but expect that a full partition
24247 specification including partition map names will follow.
24249 2010-09-08 Robert Millan <rmh@gnu.org>
24251 * configure.ac: Remove `--enable-grub-fstest' option.
24252 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24254 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24255 `grub-fstest' instead of `grub-probe' for readability verification.
24256 * util/grub-probe.c (probe): Remove readability verification kludge.
24258 2010-09-08 Robert Millan <rmh@gnu.org>
24260 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24261 initializing `GRUB_FS'.
24263 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24265 Not command (!) support to GRUB script.
24267 * tests/grub_script_not.in: New test.
24268 * Makefile.util.def: Rules for new test.
24270 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24271 ! command as a special case.
24272 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24274 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24276 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24279 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24281 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24283 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24285 * docs/grub.texi (Shell-like scripting): Documentation for break,
24286 continue, shift and return commands.
24288 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24290 Rename CD-ROM to cd on BIOS.
24292 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24294 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24298 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24299 * util/grub-probe.c (main): Likewise.
24300 * util/i386/pc/grub-setup.c (main): Likewise.
24301 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24302 Reported and debugged by: alexxy
24304 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24306 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24309 2010-09-05 Jo Shields <directhex@apebox.org>
24311 * util/grub.d/30_os-prober.in: Add missing classes.
24313 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24315 * docs/grub.texi (Theme file format): Document new position format.
24317 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24319 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24320 a table. Use @code instead of @verbatim.
24322 2010-09-05 Colin D Bennett <colin@gibibit.com>
24324 Gfxmenu documentation.
24326 * docs/grub.texi (Theme file format): New chapter.
24328 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24330 * grub-core/Makefile.core.def (xzio): New module.
24331 * grub-core/io/xzio.c: New file.
24332 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24333 * grub-core/lib/xzembed/xz_config.h: Likewise.
24334 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24335 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24336 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24337 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24338 * grub-core/lib/xzembed/xz_private.h: Likewise.
24339 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24340 * include/grub/file.h (grub_file_filter_id): New compression filter
24341 GRUB_FILE_FILTER_XZIO.
24343 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24345 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24346 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24349 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24351 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24352 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24356 Uncompressed checksum support.
24358 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24359 (check_list): New parameter uncompress.
24360 (grub_cmd_hashsum): Handle --uncompress.
24362 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24364 Reintroduce testload.
24366 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24368 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24369 (GRUB_MOD_INIT): New function.
24370 (GRUB_MOD_FINI): Likewise.
24371 * grub-core/Makefile.core.def (testload): New module.
24373 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24375 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24376 (uint8_t): New type.
24377 (uint16_t): Likewise.
24378 (uint32_t): Likewise.
24379 (uint64_t): Likewise.
24381 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24383 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24385 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24387 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24389 (grub_gzfile_open): Removed. All users updated.
24390 (GRUB_MOD_INIT): New function.
24391 (GRUB_MOD_FINI): Likewise.
24392 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24393 (grub_file_filters_enabled): Likewise.
24394 (grub_file_open): Handle filters.
24395 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24396 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24397 * include/grub/file.h (grub_file_filter_id_t): New type.
24398 (grub_file_filter_t): Likewise.
24399 (grub_file_filters_all): New extern variable.
24400 (grub_file_filters_enabled): Likewise.
24401 (grub_file_filter_register): New inline function.
24402 (grub_file_filter_unregister): Likewise.
24403 (grub_file_filter_disable): Likewise.
24404 (grub_file_filter_disable_compression): Likewise.
24405 * include/grub/gzio.h: Removed.
24407 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24409 Filename expansion support for wildcards in GRUB script.
24411 * tests/grub_script_expansion.in: New test.
24412 * Makefile.util.def: Rule for new test.
24414 * grub-core/commands/wildcard.c: New file, implements filename
24415 expansion support for GRUB script.
24416 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24417 * grub-core/script/argv.c: Cosmetic changes.
24418 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24419 Refactored to perform wildcard expansion on arguments.
24420 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24423 * tests/util/grub-shell.in: Fix quoting for read input.
24425 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24427 Support for updating environment variables with matched substrings
24430 * tests/grub_cmd_regexp.in: New test.
24431 * Makefile.util.def: Rule for new test.
24433 * grub-core/commands/regexp.c: New option -s to update environment
24434 variables with regexp matches.
24436 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24438 * include/grub/file.h (grub_file): New member not_easly_seekable.
24439 (grub_file_seekable): New inline function.
24440 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24442 (grub_gzio_open): Set not_easly_seekable.
24443 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24444 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24446 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24448 Support for options to appear multiple times on cmdline.
24450 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24451 * grub-core/commands/extcmd.c: Support for repeatable option.
24452 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24453 repeatable option support.
24455 Refactor menuentry into a regular command.
24457 * grub-core/commands/menuentry.c: New file, menuentry command
24459 * grub-core/Makefile.core.def: Rule update for normal.mod.
24460 * grub-core/normal/main.c: Moved menuentry creation to
24461 grub-core/commands/menuentry.c.
24462 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24463 (grub_menu_execute_entry_real): Removed.
24464 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24466 (grub_script_execute_menuentry): Removed.
24467 * grub-core/script/parser.y (menuentry): Removed.
24468 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24469 * grub-core/script/yylex.l (menuentry): Removed.
24470 * include/grub/menu.h (grub_menu_init): New prototype.
24471 (grub_menu_fini): New prototype.
24472 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24473 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24474 (grub_script_execute_sourcecode): New prototype.
24476 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24478 "return" command for GRUB script functions.
24480 * tests/grub_script_return.in: New test.
24481 * Makefile.util.def: Rules for new test.
24483 * grub-core/script/execute.c (grub_script_return): New function.
24484 * grub-core/script/main.c: Register/unregister return commaond.
24485 * include/grub/script_sh.h (grub_script_return): New prototype.
24487 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24489 "setparams" command to update positional parameters.
24491 * tests/grub_script_setparams.in: New test.
24492 * Makefile.util.def: Rules for new test.
24494 * grub-core/script/argv.c (grub_script_argv_make): New function.
24495 * grub-core/script/execute.c (replace_scope): New function.
24496 (grub_script_setparams): New function.
24497 * grub-core/script/lexer.c: Remove unused variables.
24498 * grub-core/script/main.c: Register/unregister setparams command.
24499 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24500 (grub_script_setparams): New prototype.
24502 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24504 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24507 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24509 Support for passing block of commands as an argument to extcmds.
24511 * Makefile.util.def: Rules for new test.
24512 * tests/grub_script_blockarg.in: New test.
24513 * grub-core/tests/test_blockarg.c: New file, block argument
24514 command used in the test.
24516 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24517 (grub_register_extcmd_prio): New function prototype.
24518 (grub_extcmd_dispatcher): New function prototype.
24519 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24521 * include/grub/script_sh.h (struct grub_script): New members
24522 `children', `next_siblings' and `refcnt' for block arguments and
24523 reference counting.
24524 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24525 (grub_script_arg): New member `script' for block argument.
24526 (grub_script_argv): New member `script' for block argument.
24527 (grub_parser_param): New member `scripts' for block argument.
24528 (grub_script_mem_free): New extern function prototype.
24529 (grub_script_ref): New function prototype.
24530 (grub_script_unref): New function prototype.
24532 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24533 extcmd form to support block arguments.
24534 * grub-core/script/argv.c: Block arguments support.
24535 * grub-core/script/execute.c: Likewise.
24536 * grub-core/script/lexer.c: Likewise.
24537 * grub-core/script/main.c: Likewise.
24538 * grub-core/script/script.c: Likewise.
24539 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24542 * grub-core/commands/acpi.c: Update extcmd implementations with
24543 grub_extcmd_context_t.
24544 * grub-core/commands/cat.c: Likewise.
24545 * grub-core/commands/echo.c: Likewise.
24546 * grub-core/commands/extcmd.c: Likewise.
24547 * grub-core/commands/hashsum.c: Likewise.
24548 * grub-core/commands/hdparm.c: Likewise.
24549 * grub-core/commands/help.c: Likewise.
24550 * grub-core/commands/hexdump.c: Likewise.
24551 * grub-core/commands/i386/cpuid.c: Likewise.
24552 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24553 * grub-core/commands/i386/pc/halt.c: Likewise.
24554 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24555 * grub-core/commands/iorw.c: Likewise.
24556 * grub-core/commands/keystatus.c: Likewise.
24557 * grub-core/commands/loadenv.c: Likewise.
24558 * grub-core/commands/ls.c: Likewise.
24559 * grub-core/commands/lspci.c: Likewise.
24560 * grub-core/commands/memrw.c: Likewise.
24561 * grub-core/commands/probe.c: Likewise.
24562 * grub-core/commands/search_wrap.c: Likewise.
24563 * grub-core/commands/setpci.c: Likewise.
24564 * grub-core/commands/sleep.c: Likewise.
24565 * grub-core/disk/loopback.c: Likewise.
24566 * grub-core/hello/hello.c: Likewise.
24567 * grub-core/loader/i386/bsd.c: Likewise.
24568 * grub-core/loader/xnu.c: Likewise.
24569 * grub-core/term/gfxterm.c: Likewise.
24570 * grub-core/term/serial.c: Likewise.
24571 * grub-core/tests/lib/functional_test.c: Likewise.
24573 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24575 Multi-line quoted strings support.
24577 * grub-core/script/lexer.c (append_newline): Removed.
24578 (grub_script_lexer_yywrap): Refactored.
24579 (grub_script_lexer_init): Refactored.
24580 * grub-core/script/yylex.l (yywrap): New function.
24581 (grub_lexer_resplit): New function.
24582 (grub_lexer_unput): New function.
24583 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24585 * tests/grub_script_echo1.in: Added few more testcases.
24587 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24589 * grub-core/kern/misc.c: Don't add abort alias in utils.
24590 Reported by: echoline.
24592 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24594 Add missing files into "make dist" tarball for other platforms.
24596 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24597 * conf/Makefile.common (dist_noinst_DATA): New variable.
24598 * conf/Makefile.extra-dist: Added missing make dist files.
24599 * grub-core/Makefile.core.def: Likewise.
24601 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24603 Compress grub_prefix.
24605 * grub-core/boot/i386/pc/lnxboot.S: Use
24606 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24607 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24608 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24609 GRUB_MACHINE_PREFIX_END. All users updated.
24610 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24611 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24613 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24614 * util/grub-mkimage.c (image_target_desc): Change data_end to
24615 prefix_end. All users updated.
24617 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24619 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24621 (grub_openbsd_boot): Likewise.
24622 (grub_netbsd_boot): Likewise.
24623 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24624 (grub_xnu_boot): Likewise.
24626 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24628 * configure.ac: Clean LIBS variable after tests.
24630 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24632 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24634 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24636 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24637 echo if libdevmapper will be used.
24639 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24641 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24642 constant for the same file.
24644 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24646 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24648 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24650 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24653 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24655 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24656 required by the boot protocol.
24658 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24659 ebp and edi members.
24660 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24661 state.ebp and state.edi.
24662 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24663 %ebp and %edi according to grub_relocator32_ebp and
24664 grub_relocator32_edi respectively.
24665 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24668 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24670 Add i386-pc-pxe image target.
24672 * util/grub-mkimage.c (image_target_desc): New enum value
24674 (image_targets): New target i386-pc-pxe.
24675 (generate_image): Handle i386-pc-pxe image.
24677 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24681 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24682 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24684 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24685 (grub_pxe_pxenv): Correct type.
24687 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24689 * NEWS: Document most of the important changes since 1.98.
24691 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24693 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24694 generated manual page) a little.
24696 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24698 * docs/grub.texi: Add myself as an author.
24700 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24702 * Makefile.util.def (libgrub.a): Add missing sunpc.
24703 Reported by: Seth Goldberg.
24705 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24707 Interrupt wrapping and code simplifications.
24709 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24710 x86_noieee1275 which are functionaly equivalent in this case.
24711 (grub-install): Make source on each platform explicit. Enable on
24713 * gentpl.py (x86_efi_pc): Removed group.
24714 (x86_noefi): Likewise.
24715 (i386_noefi): Likewise.
24716 (x86_noieee1275): Likewise.
24717 (i386_noieee1275): Likewise.
24718 (i386_noefi_noieee1275): Likewise.
24719 (i386_pc_qemu_coreboot): Likewise.
24720 (i386_coreboot_multiboot): Likewise.
24721 (i386_pc_coreboot_multiboot_qemu): Likewise.
24722 (x86_noefi_mips): Likewise.
24723 (noieee1275): Likewise.
24724 (ieee1275_mips): Likewise.
24725 (noemu_noieee1275): Likewise.
24728 (videoinkernel): Likewise.
24729 (videomodules): Likewise.
24730 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24731 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24732 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24733 include/grub/loader.h, include/grub/msdos_partition.h,
24734 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24735 include/grub/machine/console.h, include/grub/machine/vga.h,
24736 include/grub/machine/vbe.h, include/grub/machine/init.h,
24737 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24738 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24739 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24740 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24741 * grub-core/Makefile.core.def (kernel): Explicit the source for
24742 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24743 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24744 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24745 Use videoinkernel tag.
24746 (usb): Enable on all usb.
24747 (usbserial_common): Likewise.
24748 (usbserial_pl2303): Likewise.
24749 (usbserial_ftdi): Likewise.
24750 (uhci): Enable on all x86.
24751 (ohci): Enable on all pci.
24752 (cmostest): Enable on all CMOS.
24753 (acpi): Include commands/acpi.c on all platforms.
24754 (halt): Add relevant lib/*/halt.c.
24755 (hdparm): Enable on all pci.
24757 (usbtest): Enable on all usb.
24758 (ata): Enable on all pci.
24759 (ata_pthru): Likewise.
24760 (usbms): Enable on all usb.
24761 (usb_keyboard): Likewise.
24762 (font): Use tag videomodules.
24764 (datetime): Use tag cmos. Enable on all noemu.
24765 (mmap): Use tags common and x86.
24766 (gfxterm): Use tag videomodules.
24767 (bitmap): Likewise.
24768 (bitmap_scale): Likewise.
24769 (video_fb): Likewise.
24771 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24772 adjust padding accordingly. All users updated.
24773 (grub_ohci_transaction): Fix bad format specification.
24774 (GRUB_MOD_INIT): Add asserts for struct size.
24775 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24776 (grub_alloc_td): Likewise.
24777 (grub_free_queue): Likewise.
24778 (grub_uhci_transfer): Likewise.
24779 (grub_uhci_transaction): Fix bad format specification.
24780 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24781 (grub_usb_bulk_readwrite): Likewise.
24782 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24783 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24785 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24787 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24788 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24789 Transformed into C.
24790 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24791 Moved from here ...
24792 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24793 ... here. Transformed into C. Made static.
24794 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24795 Moved from here ...
24796 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24797 ... here. Transformed into C. Made static.
24798 * grub-core/kern/i386/pc/startup.S
24799 (grub_biosdisk_check_int13_extensions): Moved from here ...
24800 * grub-core/disk/i386/pc/biosdisk.c
24801 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24803 * grub-core/kern/i386/pc/startup.S
24804 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24805 * grub-core/disk/i386/pc/biosdisk.c
24806 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24807 Transformed into C. Made static.
24808 * grub-core/kern/i386/pc/startup.S
24809 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24810 * grub-core/disk/i386/pc/biosdisk.c
24811 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24812 Transformed into C. Made static.
24813 * grub-core/kern/i386/pc/startup.S
24814 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24815 * grub-core/disk/i386/pc/biosdisk.c
24816 (grub_biosdisk_get_diskinfo_standard): ... here.
24817 Transformed into C. Made static.
24818 * grub-core/kern/i386/pc/startup.S
24819 (grub_biosdisk_get_num_floppies): Moved from here ...
24820 * grub-core/disk/i386/pc/biosdisk.c
24821 (grub_biosdisk_get_num_floppies): ... here.
24822 Transformed into C. Made static.
24823 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24825 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24826 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24827 Transformed into C. Made static.
24828 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24829 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24830 Transformed into C. Made static.
24831 * grub-core/kern/i386/ieee1275/init.c: Removed.
24832 * grub-core/kern/i386/misc.S: Likewise.
24833 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24834 Splitted from here ...
24835 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24836 Transformed into C. Made static. All users updated.
24837 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24838 Transformed into C. Made static. All users updated.
24839 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24841 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24842 Transformed into C. Made static. All users updated.
24843 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24845 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24846 Transformed into C. Made static. All users updated.
24847 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24848 Removed (replaced by C version).
24849 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24851 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24852 Transformed into C. Made static.
24853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24856 ... here. Transformed into C.
24857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24860 ... here. Transformed into C.
24861 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24864 ... here. Transformed into C. Made static.
24865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24868 ... here. Transformed into C.
24869 * grub-core/kern/i386/pc/startup.S
24870 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24871 * grub-core/video/i386/pc/vbe.c
24872 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24876 ... here. Transformed into C.
24877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24880 ... here. Transformed into C.
24881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24884 ... here. Transformed into C.
24885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24888 ... here. Transformed into C.
24889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24892 ... here. Transformed into C. Made static.
24893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24896 ... here. Transformed into C. Made static.
24897 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24899 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24900 ... here. Transformed into C. Made static.
24901 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24902 pxe_rm_entry as third argument.
24903 (grub_bios_interrupt): New function.
24904 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24905 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24906 of calling grub_stop.
24907 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24908 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24909 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24910 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24911 * grub-core/lib/i386/halt.c: Moved from here ...
24912 * grub-core/lib/i386/halt.c: ... here.
24913 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24914 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24915 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24917 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24918 * include/grub/i386/coreboot/init.h: Removed.
24919 * include/grub/i386/multiboot/init.h: Likewise.
24920 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24921 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24922 * include/grub/i386/pc/int.h: New file.
24923 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24924 (grub_pxe_scan): Removed.
24925 (grub_pxe_call): Update prototype.
24926 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24928 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24929 * include/grub/i386/qemu/init.h: Removed.
24930 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24932 (grub_halt): Likewise.
24933 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24934 (grub_reboot): Likewise.
24935 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24936 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24937 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24939 2010-08-30 Robert Millan <rmh@gnu.org>
24941 * NEWS: Document addition of ZFS support in `grub-install' and
24944 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24946 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24949 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24951 Remove leftover embedding of font objects.
24953 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24954 * util/grub-install.in (font): Removed.
24955 * util/grub-mkimage.c (generate_image): Remove font support. All users
24958 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24960 Remove leftover embedding of font objects.
24962 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24963 * util/grub-install.in (font): Removed.
24964 * util/grub-mkimage.c (generate_image): Remove font support. All users
24967 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24969 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24970 Reported by: Ian Turner
24972 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24974 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24975 timeout to avoid indefinite boot stalling.
24977 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24979 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24980 (grub_env_write_color_highlight): Likewise.
24982 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24984 * grub-core/normal/term.c (print_more): Return to normal and not
24985 to standard state after printing "---MORE---".
24987 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24990 Mask out the bit 0x80 since it has other meaning that specifiing color.
24992 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24994 New relocator. Allows for more kernel support and more straightforward
24997 * Makefile.am (BOOTTARGET): New variable.
24998 (QEMU32): Likewise.
24999 (linux.init.x86_64): New target.
25000 (linux.init.i386): Likewise.
25001 (multiboot.elf): Likewise.
25002 (kfreebsd.elf): Likewise.
25003 (kfreebsd.aout): Likewise.
25004 (pc-chainloader.elf): Likewise.
25005 (pc-chainloader.bin): Likewise.
25006 (ntldr.elf): Likewise.
25007 (ntldr.bin): Likewise.
25008 (multiboot2.elf): Likewise.
25009 (kfreebsd.init.x86_64): Likewise.
25010 (kfreebsd.init.i386): Likewise.
25011 (knetbsd.init.i386): Likewise.
25012 (kopenbsd.init.i386): Likewise.
25013 (knetbsd.init.x86_64): Likewise.
25014 (kopenbsd.init.x86_64): Likewise.
25015 (linux-initramfs.i386): Likewise.
25016 (linux-initramfs.x86_64): Likewise.
25017 (kfreebsd-mfsroot.i386.img): Likewise.
25018 (knetbsd.image.i386): Likewise.
25019 (kopenbsd.image.i386): Likewise.
25020 (kopenbsd.image.x86_64): Likewise.
25021 (knetbsd.miniroot-image.i386.img): Likewise.
25022 (kfreebsd-mfsroot.x86_64.img): Likewise.
25023 (knetbsd.image.x86_64): Likewise.
25024 (knetbsd.miniroot-image.x86_64.img): Likewise.
25025 (kfreebsd-mfsroot.i386.gz): Likewise.
25026 (bootcheck-kfreebsd-i386): Likewise.
25027 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25028 (bootcheck-kfreebsd-x86_64): Likewise.
25029 (knetbsd.miniroot-image.i386.gz): Likewise.
25030 (bootcheck-knetbsd-i386): Likewise.
25031 (bootcheck-kopenbsd-i386): Likewise.
25032 (bootcheck-kopenbsd-x86_64): Likewise.
25033 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25034 (bootcheck-knetbsd-x86_64): Likewise.
25035 (bootcheck-linux-i386): Likewise.
25036 (bootcheck-linux-x86_64): Likewise.
25037 (bootcheck-linux16-i386): Likewise.
25038 (bootcheck-linux16-x86_64): Likewise.
25039 (bootcheck-multiboot): Likewise.
25040 (bootcheck-multiboot2): Likewise.
25041 (bootcheck-kfreebsd-aout): Likewise.
25042 (bootcheck-pc-chainloader): Likewise.
25043 (bootcheck-ntldr): Likewise.
25044 (CLEANFILES): Add new targets.
25045 (BOOTCHECKS): New variable.
25046 (.PHONY): Add bootchecks.
25047 (SUCCESSFUL_BOOT_STRING): New variable.
25048 (BOOTCHECK_TIMEOUT): Likewise.
25049 (bootcheck): New target
25050 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25051 * configure.ac: Correct efiemu excuse.
25052 * docs/grub.texi (Supported kernels): New chapter.
25053 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25054 include/grub/mm_private.h. Simplify inclusion of
25055 include/grub/boot.h, include/grub/loader.h
25056 and include/grub/msdos_partition.h
25057 (KERNEL_HEADER_FILES) [i386_coreboot]:
25058 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25059 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25060 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25061 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25062 include/grub/machine/loader.h.
25063 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25064 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25066 (pci.mod): Enable on i386-multiboot.
25067 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25068 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25070 (relocator.mod): Rewritten.
25071 (aout.mod): Enable on all x86.
25072 (bsd.mod): Likewise.
25073 (ntldr.mod): New module.
25074 (linux.mod): Use loader/i386/linux.c on all x86.
25075 (xnu.mod): Enable on all x86.
25076 (vga_text.mod): disable on EFI and QEMU.
25077 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25078 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25079 * grub-core/efiemu/loadcore.c: Likewise.
25080 * grub-core/efiemu/main.c: Likewise.
25081 (grub_efiemu_exit_boot_services): Removed.
25082 (grub_efiemu_finish_boot_services): Likewise.
25083 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25085 * grub-core/efiemu/i386/nocfgtables.c: New file.
25086 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25087 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25088 (grub_efi_finish_boot_services): Moved from here ...
25089 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25090 Fille finish memory map and related data.
25091 (finish_mmap_buf): New variable.
25092 (grub_efi_uintn_t finish_mmap_size): Likewise.
25093 (grub_efi_uintn_t finish_key): Likewise.
25094 (grub_efi_uintn_t finish_desc_size): Likewise.
25095 (grub_efi_uint32_t finish_desc_version): Likewise.
25096 (grub_efi_is_finished): Likewise.
25097 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25099 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25100 (grub_elf64_phdr_iterate): Likewise.
25101 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25102 (grub_os_area_size): Likewise.
25103 (grub_machine_init): Don't reserve os area.
25104 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25105 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25106 * grub-core/kern/i386/loader.S: Removed.
25107 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25108 (grub_os_area_size): Likewise.
25109 (grub_machine_init): Don't reserve os area.
25110 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25111 Don't call grub_dl_unload_all.
25112 Don't include loader.S.
25113 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25114 Declare the memory after _end as available.
25115 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25116 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25117 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25118 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25119 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25120 * include/grub/mm_private.h (grub_mm_header): ... here.
25121 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25122 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25123 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25124 (grub_mm_region): ..here. Removed addr. Added pre_size.
25126 * grub-core/kern/mm.c (base): Renamed to ...
25127 (grub_mm_base): ... this. Made global.
25128 (grub_real_malloc): Alloc from end of region.
25129 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25130 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25131 * grub-core/kern/powerpc/cache_flush.S: ... here.
25132 * grub-core/lib/efi/relocator.c: New file.
25133 * grub-core/lib/i386/relocator.c: Rewritten.
25134 * grub-core/lib/i386/relocator16.S: New file.
25135 * grub-core/lib/i386/relocator32.S: Likewise.
25136 * grub-core/lib/i386/relocator64.S: Likewise.
25137 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25138 * grub-core/lib/i386/relocator_common.S: New file.
25139 * grub-core/lib/ieee1275/relocator.c: Likewise.
25140 * grub-core/lib/mips/relocator.c: Rewritten.
25141 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25142 stylistic adjustments.
25143 * grub-core/lib/powerpc/relocator.c: New file.
25144 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25145 * grub-core/lib/relocator.c: Rewritten.
25146 * grub-core/lib/x86_64/relocator_asm.S: New file.
25147 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25148 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25149 (bsd_tag): New struct.
25150 (tags): New variable.
25151 (tags_last): Likewise.
25152 (netbsd_module): New struct.
25153 (netbsd_mods): New variable.
25154 (netbsd_mods_last): Likewise.
25155 (openbsd_opts): New parameter "serial".
25156 (OPENBSD_SERIAL_ARG): New definition.
25157 (netbsd_opts): New parameter "serial".
25158 (NETBSD_SERIAL_ARG): New definition.
25159 (grub_freebsd_add_meta): Reorganised into ...
25160 (grub_bsd_add_meta): ...this. All users updated.
25161 (grub_freebsd_add_mmap): Reorganised into ...
25162 (generate_e820_mmap): ...this...
25163 (grub_bsd_add_mmap): ...and this. All users updated.
25164 (grub_freebsd_list_modules): Use tags.
25165 (grub_netbsd_add_meta_module): New function.
25166 (grub_netbsd_list_modules): Likewise.
25167 (grub_freebsd_boot): Use relocator and finish EFI.
25168 (grub_openbsd_boot): Likewise.
25169 (grub_netbsd_setup_video): New function.
25170 (grub_netbsd_add_modules): Likewise.
25171 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25173 (grub_bsd_unload): Unload tags.
25174 (grub_bsd_load_aout): Use relocator.
25175 (grub_bsd_elf32_size_hook): New function.
25176 (grub_bsd_elf32_hook): Use relocator.
25177 (grub_bsd_elf64_size_hook): New function.
25178 (grub_bsd_elf64_hook): Use relocator.
25179 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25180 (grub_bsd_load): Zero-out openbsd_ramdisk.
25181 (grub_bsd_load): Use relocator.
25182 (grub_cmd_openbsd): Support serial.
25183 (grub_cmd_netbsd): Support modules.
25184 (grub_cmd_freebsd_module): Use relocator.
25185 (grub_netbsd_module_load): New function.
25186 (grub_cmd_netbsd_module): Likewise.
25187 (grub_cmd_openbsd_ramdisk): Likewise.
25188 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25190 (GRUB_MOD_FINI): Unregister new commands.
25191 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25192 (grub_freebsd_load_elfmodule_obj): Use relocator.
25193 (grub_freebsd_load_elfmodule): Likewise.
25194 (grub_freebsd_load_elf_meta): Likewise.
25195 (grub_netbsd_load_elf_meta): New function.
25196 (grub_openbsd_find_ramdisk): Likewise.
25197 * grub-core/loader/i386/bsd_helper.S: Removed.
25198 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25199 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25200 * grub-core/loader/i386/efi/linux.c: Likewise.
25201 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25202 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25203 (DEFAULT_VIDEO_MODE): Likewise.
25204 (real_mode_target): New variable.
25205 (prot_mode_target): Likewise.
25206 (initrd_mem_target): Likewise.
25207 (relocator): Likewise.
25208 (efi_mmap_buf): Likewise.
25209 (efi_mmap_size): Likewise.
25210 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25211 (free_pages): Use relocator.
25212 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25213 (grub_linux_setup_video): Return error.
25214 (grub_linux_trampoline_start): Removed.
25215 (grub_linux_trampoline_end): Likewise.
25216 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25217 andd video parameters depending on firmware.
25218 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25219 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25220 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25221 (grub_cmd_initrd): Use relocator.
25222 * grub-core/loader/i386/linux_trampoline.S: Removed.
25223 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25224 (elf_sec_entsize): Likewise.
25225 (elf_sec_shstrndx): Likewise.
25226 (elf_sections): Likewise.
25227 (grub_multiboot_load): Use relocator.
25228 (grub_multiboot_get_mbi_size): Account for sections.
25229 (grub_multiboot_make_mbi): Use relocator and support sections.
25230 (grub_multiboot_add_elfsyms): New function.
25231 (grub_multiboot_free_mbi): Free sections.
25232 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25233 (grub_linux_real_target): Likewise.
25234 (grub_linux_real_chunk): Likewise.
25235 (grub_linux16_prot_size): Likewise.
25236 (grub_linux16_boot): Use relocator.
25237 (grub_linux_unload): Unload relocator.
25238 (grub_cmd_linux): Use relocator.
25239 (grub_cmd_initrd): Likewise.
25240 * grub-core/loader/i386/pc/ntldr.c: New file.
25241 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25242 Don't try to guess CPU frequency.
25243 (grub_xnu_set_video): Stretch bitmap.
25244 (grub_xnu_boot): Use relocator.
25245 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25246 (grub_linux_unload): Free relocator.
25247 (grub_linux_load32): Use relocator.
25248 (grub_linux_load64): Likewise.
25249 (grub_cmd_initrd): Likewise.
25250 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25251 (grub_multiboot_unload): Unload relocator.
25252 (grub_cmd_multiboot): Use relocator.
25253 (grub_cmd_module): Likewise.
25254 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25255 Use relocator and support sections.
25256 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25257 (elf_sec_entsize): Likewise.
25258 (elf_sec_shstrndx): Likewise.
25259 (elf_sections): Likewise.
25260 (grub_multiboot_load): Use relocator.
25261 (grub_multiboot_get_mbi_size): Account for sections.
25262 (grub_multiboot_make_mbi): Use relocator and support sections.
25263 (grub_multiboot_add_elfsyms): New function.
25264 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25265 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25266 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25267 Prototype changed. All users updated.
25268 (grub_xnu_align_heap): Simplified.
25269 (grub_xnu_writetree_toheap): Likewise.
25270 (grub_xnu_unload): Unload relocator.
25271 (grub_cmd_xnu_kernel): Use relocator.
25272 (grub_cmd_xnu_kernel64): Likewise.
25273 (grub_xnu_register_memory): Simplified.
25274 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25275 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25277 (grub_console_checkkey): Likewise.
25278 (grub_console_getkey): Likewise.
25279 (grub_console_getwh): Likewise.
25280 (grub_console_getxy): Likewise.
25281 (grub_console_gotoxy): Likewise.
25282 (grub_console_cls): Likewise.
25283 (grub_console_setcolorstate): Likewise.
25284 (grub_console_setcursor): Likewise.
25285 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25286 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25287 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25288 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25289 * grub-core/tests/boot/kernel-8086.S: Likewise.
25290 * grub-core/tests/boot/kernel-i386.S: Likewise.
25291 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25292 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25293 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25294 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25295 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25296 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25297 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25298 * grub-core/tests/boot/linux.cfg: Likewise.
25299 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25300 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25301 * grub-core/tests/boot/linux16.cfg: Likewise.
25302 * grub-core/tests/boot/multiboot.cfg: Likewise.
25303 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25304 * grub-core/tests/boot/ntldr.cfg: Likewise.
25305 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25306 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25307 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25309 * include/grub/dl.h (grub_dl_unload_all): Removed.
25310 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25311 (grub_efi_finish_boot_services): Change prototype.
25312 (grub_efi_is_finished): New variable.
25313 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25315 (grub_efiemu_finish_boot_services): Removed.
25316 (grub_machine_efiemu_init_tables): New prototype.
25317 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25318 (grub_elf64_phdr_iterate): Likewise.
25319 * include/grub/i386/bsd.h: Include relocator.h.
25320 (freebsd_tag_header): New struct.
25321 (grub_openbsd_bios_mmap): Removed.
25322 (grub_unix_real_boot): Removed.
25323 (grub_freebsd_load_elfmodule32): Changed prototype.
25324 (grub_freebsd_load_elfmodule_obj64): Likewise.
25325 (grub_freebsd_load_elf_meta32): Likewise.
25326 (grub_freebsd_load_elf_meta64): Likewise.
25327 (grub_freebsd_add_meta): Removed.
25328 (grub_netbsd_load_elf_meta32): New prototype.
25329 (grub_netbsd_load_elf_meta64): Likewise.
25330 (grub_bsd_add_meta): Likewise.
25331 (grub_openbsd_ramdisk_descriptor): New struct.
25332 (grub_openbsd_find_ramdisk32): New prototype.
25333 (grub_openbsd_find_ramdisk64): Likewise.
25334 * include/grub/i386/coreboot/loader.h: Removed.
25335 * include/grub/i386/efi/loader.h: Likewise.
25336 * include/grub/i386/ieee1275/loader.h: Likewise.
25337 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25339 * include/grub/i386/loader.h: Removed.
25340 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25342 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25343 (grub_phys_addr_t): New type.
25344 (grub_vtop): New inline function.
25345 (grub_map_memory): Likewise.
25346 (grub_unmap_memory): Likewise.
25347 * include/grub/i386/multiboot/loader.h: Removed.
25348 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25349 (NETBSD_BTINFO_CONSOLE): New definition.
25350 (NETBSD_BTINFO_SYMTAB): Likewise.
25351 (NETBSD_BTINFO_MODULES): Likewise.
25352 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25353 (grub_netbsd_bootinfo): New struct.
25354 (grub_netbsd_btinfo_common): Use explicit bitsize.
25355 (grub_netbsd_btinfo_mmap_entry): Removed.
25356 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25357 (grub_netbsd_btinfo_bootdisk): New struct.
25358 (grub_netbsd_btinfo_symtab): Likewise.
25359 (grub_netbsd_btinfo_serial): Likewise.
25360 (grub_netbsd_btinfo_modules): Likewise.
25361 (grub_netbsd_btinfo_framebuf): Likewise.
25362 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25363 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25365 (grub_openbsd_bootargs): Use explicit bitsize.
25366 (grub_openbsd_bootarg_console): New struct.
25367 (GRUB_OPENBSD_COM_MAJOR): New definition.
25368 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25369 * include/grub/i386/pc/efiemu.h: Removed.
25370 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25371 * include/grub/i386/qemu/loader.h: Removed.
25372 * include/grub/i386/relocator.h: Rewritten.
25373 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25374 * include/grub/mips/memory.h: New file.
25375 * include/grub/mips/multiboot.h: Rewritten.
25376 * include/grub/mips/relocator.h: Rewritten.
25377 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25378 (grub_vtop): New function.
25379 (grub_map_memory): Likewise.
25380 (grub_unmap_memory): Likewise.
25381 * include/grub/misc.h (ALIGN_DOWN): New definition.
25382 * include/grub/mm.h (grub_mm_check_real): New proto.
25383 (GRUB_MM_CHECK): New definition.
25384 * include/grub/mm_private.h: New file.
25385 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25386 (grub_multiboot_get_mbi_size): Removed.
25387 (grub_multiboot_make_mbi): Change prottype.
25388 (grub_multiboot_set_accepts_video): New proto.
25389 (grub_multiboot_add_elfsyms): Likewise.
25390 (grub_multiboot_payload_eip): New variable.
25391 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25393 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25395 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25396 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25397 * include/grub/powerpc/ieee1275/loader.h: Removed.
25398 * include/grub/powerpc/memory.h: New file.
25399 * include/grub/powerpc/relocator.h: Likewise.
25400 * include/grub/relocator.h: Likewise.
25401 * include/grub/relocator_private.h: Likewise.
25402 * include/grub/sparc64/ieee1275/loader.h: Removed.
25403 * include/grub/x86_64/memory.h: New file.
25404 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25405 (grub_xnu_heap_malloc): Likewise.
25406 (grub_xnu_heap_real_start): Removed.
25407 (grub_xnu_heap_start): Likewise.
25408 (grub_xnu_relocator): New variable.
25409 (grub_xnu_heap_target_start): Likewise.
25410 * tests/util/grub-shell.in: Support non-pc.
25411 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25413 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25415 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25417 (grub_bidi_logical_to_visual): Check that malloc succeded.
25418 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25420 (grub_xputs_normal): Likewise.
25422 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25424 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25429 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25431 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25433 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25435 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25437 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25440 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25442 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25444 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25446 * grub-core/normal/term.c (print_more): Fix a memory leak.
25447 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25448 (grub_xputs_normal): Likewise.
25450 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25452 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25453 the begining of the string
25455 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25457 * grub-core/script/script.c (grub_script_parse): Free parsed on
25460 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25462 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25465 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25467 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25470 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25472 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25473 (scroll_up): Fix a memory leak.
25475 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25477 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25480 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25482 Handle USB pendrives exposed as floppies.
25484 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25487 Check for partitions on all devices.
25489 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25491 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25492 (readkey): Likewise.
25494 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25496 Multiple variable names support to "export" command.
25498 * normal/context.c (grub_cmd_export): "export" command supports
25499 multiple variable names.
25501 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25503 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25504 --target=drive output to Mach device name.
25506 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25508 New Automake based build system for GRUB.
25510 * ABOUT-NLS: New file.
25511 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25512 in Makefile.util.def file.
25513 * Makefile.util.def: New file. Autogen build definitions file for
25515 * conf/Makefile.common: New file. Common variables for GRUB host
25516 utils and target modules.
25517 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25518 * docs/Makefile.am: New file. Automake file for docs.
25519 * gentpl.py: New file. Python script to generate Autogen
25521 * grub-core/Makefile.am: New file. GRUB target modules' rules
25522 that doesn't fit in Makefile.core.def file.
25523 * grub-core/Makefile.core.def: New file. Autogen build
25524 definitions file for GRUB target modules.
25525 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25526 specific setjmp.S file.
25527 * po/Makefile.am: New file.
25529 * .bzrignore: New ignores.
25530 * INSTALL: New requirements, without Ruby.
25531 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25532 * autogen.sh: Updated to invoke autogen as necessary.
25533 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25534 and defines for Automake conditionals.
25535 * geninit.sh: Refactoring.
25537 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25539 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25542 * include/grub/test.h: Fix functional test modules' naming.
25543 * grub-core/tests/example_functional_test.c: Fix test module name.
25545 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25546 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25547 * util/grub-editenv.c: Likewise.
25548 * util/grub-fstest.c: Likewise.
25549 * util/grub-mkdevicemap.c: Likewise.
25550 * util/grub-mkfont.c: Likewise.
25551 * util/grub-mkimage.c: Likewise.
25552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25553 * util/grub-probe.c: Likewise.
25554 * util/grub-script-check.c: Likewise.
25555 * util/i386/pc/grub-setup.c: Likewise.
25556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25558 * tests/util/grub-shell.in: Fix override directory path.
25559 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25560 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25562 * util/lvm.c: Update #includes.
25563 * util/raid.c: Likewise.
25564 * util/resolve.c: Likewise.
25565 * grub-core/bus/emu/pci.c: Likewise.
25566 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25567 * grub-core/lib/posix_wrap/string.h: Likewise.
25568 * grub-core/kern/emu/main.c: Likewise.
25570 * grub-core/gensymlist.sh: New file. Script for generating kernel
25572 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25574 * grub-core/gentrigtables.c: Fix unused variable warnings.
25576 * Makefile.in: Removed.
25577 * conf/any-emu.rmk: Removed.
25578 * conf/common.rmk: Removed.
25579 * conf/i386-coreboot.rmk: Removed.
25580 * conf/i386-efi.rmk: Removed.
25581 * conf/i386-ieee1275.rmk: Removed.
25582 * conf/i386-multiboot.rmk: Removed.
25583 * conf/i386-pc.rmk: Removed.
25584 * conf/i386-qemu.rmk: Removed.
25585 * conf/i386.rmk: Removed.
25586 * conf/mips-yeeloong.rmk: Removed.
25587 * conf/mips.rmk: Removed.
25588 * conf/powerpc-ieee1275.rmk: Removed.
25589 * conf/sparc64-ieee1275.rmk: Removed.
25590 * conf/tests.rmk: Removed.
25591 * conf/x86-efi.rmk: Removed.
25592 * conf/x86_64-efi.rmk: Removed.
25593 * gendistlist.sh: Removed.
25594 * geninitheader.sh: Removed.
25595 * genkernsyms.sh.in: Removed.
25596 * genmk.rb: Removed.
25597 * gensymlist.sh.in: Removed.
25598 * mkinstalldirs: Removed.
25600 * grub-core/boot: ... to here.
25602 * grub-core/bus: ... to here.
25603 * commands: Moved ...
25604 * grub-core/commands: ... to here.
25606 * grub-core/disk: ... to here.
25607 * efiemu: Moved ...
25608 * grub-core/efiemu: ... to here.
25610 * grub-core/font: ... to here.
25612 * grub-core/fs: ... to here.
25613 * gencmdlist.sh: Moved ...
25614 * grub-core/gencmdlist.sh: ... to here.
25615 * genemuinit.sh: Moved ...
25616 * grub-core/genemuinit.sh: ... to here.
25617 * genemuinitheader.sh: Moved ...
25618 * grub-core/genemuinitheader.sh: ... to here.
25619 * genfslist.sh: Moved ...
25620 * grub-core/genfslist.sh: ... to here.
25621 * genhandlerlist.sh: Moved ...
25622 * grub-core/genhandlerlist.sh: ... to here.
25623 * genmoddep.awk: Moved ...
25624 * grub-core/genmoddep.awk: ... to here.
25625 * genmodsrc.sh: Moved ...
25626 * grub-core/genmodsrc.sh: ... to here.
25627 * genpartmaplist.sh: Moved ...
25628 * grub-core/genpartmaplist.sh: ... to here.
25629 * genparttoollist.sh: Moved ...
25630 * grub-core/genparttoollist.sh: ... to here.
25631 * genterminallist.sh: Moved ...
25632 * grub-core/genterminallist.sh: ... to here.
25633 * gentrigtables.c: Moved ...
25634 * grub-core/gentrigtables.c: ... to here.
25635 * genvideolist.sh: Moved ...
25636 * grub-core/genvideolist.sh: ... to here.
25637 * gettext: Moved ...
25638 * grub-core/gettext: ... to here.
25639 * gfxmenu: Moved ...
25640 * grub-core/gfxmenu: ... to here.
25641 * gnulib: Moved ...
25642 * grub-core/gnulib: ... to here.
25644 * grub-core/hello: ... to here.
25646 * grub-core/hook: ... to here.
25648 * grub-core/io: ... to here.
25650 * grub-core/kern: ... to here.
25652 * grub-core/lib: ... to here.
25653 * loader: Moved ...
25654 * grub-core/loader: ... to here.
25656 * grub-core/mmap: ... to here.
25657 * normal: Moved ...
25658 * grub-core/normal: ... to here.
25659 * partmap: Moved ...
25660 * grub-core/partmap: ... to here.
25661 * parttool: Moved ...
25662 * grub-core/parttool: ... to here.
25663 * script: Moved ...
25664 * grub-core/script: ... to here.
25666 * grub-core/term: ... to here
25667 * tests/example_functional_test.c: Moved ...
25668 * grub-core/tests/example_functional_test.c: ... to here.
25669 * tests/lib/functional_test.c: Moved ...
25670 * grub-core/tests/lib/functional_test.c: ... to here.
25671 * tests/lib/test.c: Moved ...
25672 * grub-core/tests/lib/test.c: ... to here.
25674 * grub-core/video: ... to here.
25676 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25678 Replace --enable-grub-emu-modules with grub-emu-lite.
25680 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25683 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25684 * kern/emu/full.c: New file. For grub-emu specific initialization.
25685 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25686 * kern/emu/main.c: Call initialization function grub_emu_init.
25688 * Makefile.in: Include grub-emu-lite in install.
25689 * commands/parttool.c: Use grub_no_autoload to differentiate
25690 between grub-emu and grub-emu-lite.
25691 * include/grub/misc.h: New variable grub_no_autoload.
25693 * conf/any-emu.rmk: New rules for grub-emu-lite.
25694 * configure.ac: Remove --enable-grub-emu-modules.
25695 * genmk.rb: Cleanup unnecessary rules.
25696 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25698 * normal/main.c: Don't load list files on grub-emu-lite.
25699 * util/misc.c (grub_arch_sync_caches): Removed.
25701 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25703 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25704 grub-mkimage rather than grub-mkelfimage.
25705 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25707 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25709 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25710 a key after CapsLock or NumLock. It's just a qemu bug.
25712 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25714 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25715 needed by libusb wrapper.
25717 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25719 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25721 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25723 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25724 --nounzip is passed.
25726 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25728 USB hotunplugging and USB serial support.
25730 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25731 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25732 (grub_uhci_transfer): Respect timeout and set *actual.
25733 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25734 non-standard length.
25735 (grub_usb_device_attach): Autoload modules.
25736 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25737 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25738 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25740 (grub_usb_add_hub): Fill nports and children.
25741 (attach_root_port): Receive hub instead of controller.
25742 All users updated. Fill hub->devices.
25743 (grub_usb_root_hub): Allocate hub->devices.
25744 (detach_device): New function.
25745 (poll_nonroot_hub): Fill children and detach devices.
25746 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25747 actual arguments. All users updated.
25748 (grub_usb_bulk_read_extended): New function.
25749 * bus/usb/serial/common.c: New file.
25750 * bus/usb/serial/ftdi.c: Likewise.
25751 * bus/usb/serial/pl2303.c: Likewise.
25752 * commands/terminal.c (handle_command): Support wildcard.
25753 * commands/usbtest.c: Output "Unknown" instead of empty string.
25754 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25755 (usbserial_common_mod_SOURCES): New variable.
25756 (usbserial_common_mod_CFLAGS): Likewise.
25757 (usbserial_common_mod_LDFLAGS): Likewise.
25758 (pkglib_MODULES): Add usbserial_pl2303.mod.
25759 (usbserial_pl2303_mod_SOURCES): New variable.
25760 (usbserial_pl2303_mod_CFLAGS): Likewise.
25761 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25762 (pkglib_MODULES): Add usbserial_ftdi.mod.
25763 (usbserial_ftdi_mod_SOURCES): New variable.
25764 (usbserial_ftdi_mod_CFLAGS): Likewise.
25765 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25766 (pkglib_MODULES): Add serial.mod.
25767 (serial_mod_SOURCES): New variable.
25768 (serial_mod_CFLAGS): Likewise.
25769 (serial_mod_LDFLAGS): Likewise.
25770 * conf/i386-pc.rmk: Likewise.
25771 * conf/mips-yeeloong.rmk: Likewise.
25772 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25773 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25774 * disk/usbms.c (first_available_slot): New variable.
25775 (grub_usbms_attach): Don't reuse free slots due to potential cache
25777 * include/grub/serial.h: Moved to ..
25778 * include/grub/ns8250.h: ...this.
25779 * include/grub/serial.h: New file.
25780 * include/grub/term.h (grub_term_poll_usb): New variable.
25781 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25782 readkey. All users updated.
25783 (grub_terminfo_output_state): Pass term to put.
25784 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25785 (grub_usb_controller_dev): Add timeout and actual arguments to
25786 transfer. All users updated.
25787 (grub_usb_interface): New field detach_data.
25788 (grub_usb_device): New fields children and nports.
25789 (grub_usb_ep_type_t): New type.
25790 (grub_usb_get_ep_type): New function.
25791 (grub_usb_bulk_read_extended): Likewise.
25792 * include/grub/usbdesc.h (grub_usb_desc): New type.
25793 * include/grub/usbserial.h: New file.
25794 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25795 * kern/term.c (grub_term_poll_usb): New variable.
25796 (grub_getkey): Call grub_term_poll_usb if set.
25797 (grub_checkkey): Likewise.
25798 (grub_getkeystatus): Likewise.
25799 * term/serial.c: Moved controller-specific parts to ...
25800 * term/ns8250.c: ... here.
25801 * term/serial.c: Mostly rewritten.
25802 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25805 2010-08-20 Robert Millan <rmh@gnu.org>
25807 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25808 a separate module and maybe other interesting combinations.
25810 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25811 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25812 (kfreebsd_entry): Add generic filesystem module load routine.
25813 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25815 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25817 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25818 "numcenter" (I misunderstood the purpose of this entry).
25819 * docs/grub.texi (sendkey): Likewise.
25821 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25823 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25824 status flag options; simply omitting the option is equivalent and
25825 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25826 (keysym_table): Rename "num5numlock" to "numlock".
25827 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25828 can uniformly say that only the last of multiple `sendkey'
25829 invocations has any effect.
25830 * docs/grub.texi (sendkey): New section.
25832 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25834 * commands/i386/pc/sendkey.c (options): Fix three typos.
25836 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25838 Implement sendkey support.
25840 * commands/i386/pc/sendkey.c: New file.
25841 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25842 (sendkey_mod_SOURCES): New variable.
25843 (sendkey_mod_CFLAGS): Likewise.
25844 (sendkey_mod_LDFLAGS): Likewise.
25846 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25848 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25849 fix warnings from Autoconf.
25851 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25853 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25854 to avoid false positives with some assemblers that output things
25855 like "someprefix_func" as part of their output.
25857 2010-08-15 Robert Millan <rmh@gnu.org>
25859 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25861 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25862 grub_get_libzfs_handle() errors.
25864 2010-08-14 Robert Millan <rmh@gnu.org>
25866 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25867 filesystem is not ZFS.
25869 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25871 Fix for misspelled color names defaulting to black/black (bug
25872 reported by Doug Nazar)
25874 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25875 status to prototype.
25876 * normal/color.c (grub_parse_color_name_pair): Return failure
25878 (grub_env_write_color_normal): Ignore bad color names.
25879 (grub_env_write_color_highlight): Likewise.
25880 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25882 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25884 "shift" command support to GRUB script.
25886 * include/grub/script_sh.h (grub_script_shift): New prototype.
25887 * script/execute.c (grub_script_shift): New function.
25888 * script/main.c (grub_script_init): Register shift command.
25889 (grub_script_fini): Unregister shift command.
25890 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25892 * tests/grub_script_shift.in: New testcase.
25893 * conf/tests.rmk: Rules for new testcase.
25895 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25897 "continue" command support to GRUB script.
25899 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25900 (grub_script_break): Continue support.
25901 * script/main.c (grub_script_init): Register continue command.
25902 (grub_script_fini): Unregister continue command.
25904 * tests/grub_script_continue.in: New testcase.
25905 * conf/tests.rmk: Rules for new testcase.
25907 2010-08-12 BVK Chaitanya <bvk@dbook>
25909 "break" command support to GRUB script.
25911 * conf/common.rmk: Rule updates to grub-script-check.
25912 * include/grub/misc.h (grub_min): New function.
25913 * include/grub/script_sh.h (grub_script_init): New prototype.
25914 (grub_script_fini): New prototype.
25915 (grub_script_break): New prototype.
25916 * script/main.c (grub_script_init): New function.
25917 (grub_script_fini): New function.
25918 * script/execute.c (grub_script_break): New function.
25919 * normal/main.c: Calls to grub_script_{init,fini}.
25920 * util/grub-script-check.c (grub_script_break): New function.
25922 * tests/grub_script_break.in: New testcase.
25923 * conf/tests.rmk: Rules for new test case.
25925 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25927 Function parameters support to GRUB script.
25929 * script/yylex.l (VARIABLE): Regular expression update.
25930 * script/function.c (grub_script_function_call): Moved ...
25931 * script/execute.c (grub_script_function_call): ... to here.
25932 (grub_script_execute_arglist_to_argv): Removed.
25933 (grub_script_arglist_to_argv): New function.
25934 * script/argv.c: New file.
25935 (grub_script_argv_free): New function.
25936 (grub_script_argv_next): Likewise.
25937 (grub_script_argv_append): Likewise.
25938 (grub_script_argv_split_append): Likewise.
25939 * include/grub/script_sh.h (grub_script_argv): New struct.
25940 (grub_script_argv_free): New function.
25941 (grub_script_argv_next): Likewise.
25942 (grub_script_argv_append): Likewise.
25943 (grub_script_argv_split_append): Likewise.
25945 * conf/common.rmk (normal.mod): New source script/argv.c.
25947 * tests/grub_script_echo1.in: More tests.
25948 * tests/grub_script_vars1.in: Likewise.
25949 * tests/grub_script_functions.in: New test case.
25950 * conf/tests.rmk: Rules for new testcase.
25952 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25954 Remove grub_script_cmdblock struct.
25956 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25957 * script/parser.y: Likewise.
25958 * script/execute.c: Rename cmdblock suffix to cmdlist.
25959 * script/script.c: Likewise.
25960 * util/grub-script-check.c: Likewise.
25962 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25964 * .bzrignore: add grub-macho2img
25966 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25968 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25970 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25972 Remove the dump of sm712 initialisation sequence.
25974 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25975 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25976 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25977 (GRUB_VGA_CR_*): Added many registers.
25978 (GRUB_VGA_SR_*): Likewise.
25979 (GRUB_VGA_GR_*): Likewise.
25980 (grub_vga_write_arx): New function.
25981 (grub_video_hw_config): New struct.
25982 (grub_vga_set_geometry): New function.
25983 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25984 GRUB_PCI_CLASS_SUBCLASS_VGA.
25985 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25986 * video/sm712.c (grub_sm712_write_reg): New function
25987 (grub_sm712_read_reg): Likewise.
25988 (grub_sm712_sr_write): Likewise.
25989 (grub_sm712_gr_write): Likewise.
25990 (grub_sm712_cr_write): Likewise.
25991 (grub_sm712_write_arx): Likewise.
25992 (grub_sm712_cr_shadow_write): Likewise.
25993 (grub_sm712_write_dda_lookup): Likewise.
25994 (grub_video_sm712_setup): Initialise the video rather then
25995 blindly replay the dump.
25996 (main) [TEST]: Add a routine to be able to compile as standalone for
25998 * video/sm712_init.c (sm712_init): Removed.
25999 (sm712_sr_seq1): New array.
26000 (sm712_sr_seq2): Likewise.
26002 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26004 * include/grub/vga.h: Add missing grub/pci.h include.
26006 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26008 * util/grub-macho2img.c (main): fix typo
26010 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26012 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26013 (grub_vga_gr_read): Likewise.
26014 (grub_vga_cr_write): Likewise.
26015 (grub_vga_cr_read): Likewise.
26016 (grub_vga_sr_write): Likewise.
26017 (grub_vga_sr_read): Likewise.
26018 (grub_vga_palette_read): Likewise.
26019 (grub_vga_palette_write): Likewise.
26020 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26021 (grub_sm712_sr_read): New function.
26022 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26023 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26025 2010-08-09 Robert Millan <rmh@gnu.org>
26027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26028 out unused variables on non-ZFS build.
26030 2010-08-08 Robert Millan <rmh@gnu.org>
26032 Fix path generation for sub-filesystems in ZFS.
26034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26037 2010-08-08 Robert Millan <rmh@gnu.org>
26039 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26041 2010-08-08 Robert Millan <rmh@gnu.org>
26043 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26044 exist, issue a proper error message (rely on `ls' for translated
26047 2010-08-08 Robert Millan <rmh@gnu.org>
26049 Fix grub-probe invocation.
26051 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26053 2010-08-04 Robert Millan <rmh@gnu.org>
26055 * configure.ac: Remove checks for getfsstat() and getmntany().
26056 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26057 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26058 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26059 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26060 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26062 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26063 via find_mount_point_from_dir() and getfsstat() / getmntany().
26065 2010-08-04 Robert Millan <rmh@gnu.org>
26067 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26068 (grub_find_zpool_from_mount_point): Merge into ...
26069 (grub_find_zpool_from_dir): ... this.
26070 * kern/emu/misc.c: Likewise.
26073 (grub_make_system_path_relative_to_its_root): Replace
26074 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26075 with grub_find_zpool_from_dir().
26076 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26078 2010-08-04 Robert Millan <rmh@gnu.org>
26080 Support OpenSolaris in ZFS device resolution.
26082 * configure.ac: Check for getmntany().
26083 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26084 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26087 2010-08-03 Robert Millan <rmh@gnu.org>
26089 Fix grub-emu build.
26091 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26092 * include/grub/emu/misc.h: ... here.
26094 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26095 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26097 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26098 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26099 (grub_get_libzfs_handle): Move to ...
26100 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26101 (grub_get_libzfs_handle): ... here.
26103 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26105 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26106 as command name case.
26108 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26110 * disk/raid.c (insert_array): Select unique numbers for named arrays
26111 as well, for use as keys in the disk cache.
26113 2010-08-01 Robert Millan <rmh@gnu.org>
26115 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26116 kFreeBSD device name, except on ZFS where the filesystem label is
26118 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26119 `/boot/zfs/zpool.cache'.
26120 Set mountfrom kernel variable using ${kfreebsd_device}.
26122 2010-08-01 Robert Millan <rmh@gnu.org>
26124 Make it even harder to use uninitialized `libzfs_handle' (and
26125 make the interface a bit simpler).
26127 * include/grub/util/misc.h (grub_util_init_libzfs)
26128 (libzfs_handle): Remove.
26129 (grub_get_libzfs_handle): New prototype.
26131 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26133 (grub_util_init_libzfs): Remove.
26134 (grub_get_libzfs_handle): New function.
26136 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26137 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26138 accessing `libzfs_handle' directly.
26140 2010-08-01 Robert Millan <rmh@gnu.org>
26142 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26143 (grub_find_zpool_from_mount_point): New function prototypes.
26145 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26146 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26148 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26149 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26150 `static' attribute.
26152 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26153 finding zpool from mount point into ...
26154 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26156 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26157 requested path is part of a ZFS pool, use
26158 grub_find_zpool_from_mount_point() to detect its filesystem name,
26159 and generate a path with `/fsname@path' syntax.
26161 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26163 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26164 (void) rather than () so that this is a proper prototype.
26166 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26168 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26170 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26172 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26173 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26177 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26179 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26181 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26183 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26185 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26186 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26187 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26188 disable gfxpayload.
26189 (Shell-like scripting): Add real content.
26190 (Serial terminal): Suggest `terminal_input serial; terminal_output
26191 serial' rather than putting the two commands on separate lines,
26192 since console input will be inoperative after the first command.
26193 (menuentry): Document --class, --users, and --hotkey options.
26194 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26195 Vladimir Serbinenko).
26197 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26198 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26200 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26202 2010-08-01 Robert Millan <rmh@gnu.org>
26204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26205 (grub_find_zpool_from_mount_point): New function prototypes.
26207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26212 `static' attribute.
26214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26215 finding zpool from mount point into ...
26216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26219 requested path is part of a ZFS pool, use
26220 grub_find_zpool_from_mount_point() to detect its filesystem name,
26221 and generate a path with `/fsname@path' syntax.
26223 2010-08-01 Robert Millan <rmh@gnu.org>
26225 Prevent accidental use of uninitialized libzfs_handle.
26227 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26228 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26229 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26231 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26233 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26234 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26236 2010-08-01 Robert Millan <rmh@gnu.org>
26238 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26240 2010-07-31 Robert Millan <rmh@gnu.org>
26242 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26244 2010-07-31 Robert Millan <rmh@gnu.org>
26246 * kern/emu/misc.c: Add missing license header.
26248 2010-07-31 Robert Millan <rmh@gnu.org>
26250 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26252 * include/grub/util/libnvpair.h: Include `<config.h>'.
26253 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26254 declaring libnvpair prototypes ourselves.
26255 * include/grub/util/libzfs.h: Include `<config.h>'.
26256 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26257 declaring libzfs prototypes ourselves.
26259 (libzfs_handle): Moved to ...
26260 * include/grub/util/misc.h (libzfs_handle): ... here.
26261 Include `<grub/util/libzfs.h>'.
26263 2010-07-30 Robert Millan <rmh@gnu.org>
26265 * include/grub/emu/misc.h: Add missing license header.
26267 2010-07-30 Robert Millan <rmh@gnu.org>
26269 Enable `grub-probe -t device' resolution on ZFS.
26271 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26272 * include/grub/util/libnvpair.h: New file.
26273 * include/grub/util/libzfs.h: New file.
26275 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26276 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26277 `<grub/util/libnvpair.h>'.
26278 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26280 (find_mount_point_from_dir): New static function.
26281 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26283 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26284 find_root_device_from_libzfs() before ressorting to find_root_device().
26286 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26288 * util/misc.c: Include `<grub/util/libzfs.h>'.
26289 (grub_util_init_libzfs): New function.
26290 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26291 [HAVE_LIBZFS] (fini_libzfs): New static function.
26292 (grub_util_init_libzfs): New function.
26293 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26295 2010-07-30 Robert Millan <rmh@gnu.org>
26297 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26298 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26299 `warn_unused_result' attribute.
26300 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26301 (grub_xasprintf, grub_xvasprintf): Likewise.
26302 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26304 2010-07-29 Robert Millan <rmh@gnu.org>
26306 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26307 (probe): Handle `PRINT_FS_LABEL'.
26308 (main): Handle `-t fs_label'.
26310 2010-07-29 Robert Millan <rmh@gnu.org>
26312 * configure.ac: Remove grub-mkisofs checks.
26314 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26316 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26317 Reported by: Lennart Sorensen.
26319 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26321 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26322 prior to terminal_input/terminal_output separation. It's been over 1.5
26323 years and those versions weren't widely deployed.
26325 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26327 * disk/raid.c (insert_array): Don't count named arrays when looking
26328 for unused array numbers.
26329 Reported and tested by: Michael Guntsche.
26331 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26333 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26334 implementation of this so that grub-emu links again, with a note
26335 that this should support hotplugging in the future.
26337 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26339 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26341 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26343 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26345 (grub_loopback_close): Remove empty function.
26346 (grub_loopback_dev): Remove close method.
26348 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26350 Disable EFI cursor when the EFI console becomes inactive.
26352 * term/efi/console.c (grub_efi_console_init): New function.
26353 (grub_efi_console_fini): New function.
26354 (grub_console_term_output): Register init and fini methods.
26356 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26358 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26361 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26363 * disk/loopback.c (grub_loopback): Replace filename with file.
26364 (delete_loopback): Handle new semantics.
26365 (grub_cmd_loopback): Likewise.
26366 (grub_loopback_iterate): Likewise.
26367 (grub_loopback_close): Likewise.
26369 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26371 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26373 Reported by: Tito Keitel.
26375 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26377 * docs/grub.texi (Naming convention): Document new naming convention.
26379 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26380 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26382 Generate device.map in something closer to the old ordering.
26384 * util/deviceiter.c (struct device): New declaration.
26385 (compare_file_names): Rename to ...
26386 (compare_devices): ... this. Sort by kernel name in preference to
26387 the stable by-id name, but keep the latter as a fallback comparison.
26388 Update header comment.
26389 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26390 of `struct device' rather than of plain file names.
26392 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26394 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26397 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26399 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26401 (setv1table): Likewise.
26403 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26405 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26406 removing the homehost if present.
26407 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26408 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26409 removing the homehost if present.
26410 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26412 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26414 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26415 parameter. Set its pointer target to 0.
26416 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26417 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26418 `data_offset' value from the superblock for 1.x metadata.
26419 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26420 data on the device.
26421 (insert_array): Record the start sector of data on the device.
26422 (grub_raid_register): Pass start_sector parameters to
26423 grub_raid_list->detect and insert_array.
26424 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26426 (struct grub_raid): Add start_sector parameter to `detect'.
26428 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26429 __attribute__ ((packed)), leaving a comment.
26430 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26431 (grub_mdraid_detect_09): ... here and ...
26432 (grub_mdraid_detect_1x): ... here.
26434 2010-07-20 Peter Henn <peter.henn@web.de>
26436 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26437 chunk size and disk size, which are already given as sector counts
26438 as distinct from the 0.90 units. Fetch the correct device number
26439 from the role table instead of using the table index.
26441 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26443 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26444 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26445 (WriteMostly1): New macro.
26446 Set array->name to NULL for metadata format 0.90. Add support for
26447 metadata 1.x. Fix some comments.
26448 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26450 * util/getroot.c (grub_util_get_grub_dev): Add support for
26451 /dev/md/name style devices.
26453 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26455 * .bzrignore: Ignore 20_linux_xen.
26457 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26459 * util/import_unicode.py: Remove unnecessary imports.
26461 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26463 Hotplugging and USB hub support.
26465 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26466 (grub_ohci): Likewise.
26467 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26468 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26469 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26470 (GRUB_OHCI_CTRL_EDS): Likewise.
26471 (GRUB_OHCI_BULK_EDS): Likewise.
26472 (GRUB_OHCI_TDS): Likewise.
26473 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26474 (grub_ohci_ed_phys2virt): New function.
26475 (grub_ohci_virt_to_phys): Likewise.
26476 (grub_ohci_td_phys2virt): Likewise.
26477 (grub_ohci_td_virt2phys): Likewise.
26478 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26480 (grub_ohci_find_ed): New function.
26481 (grub_ohci_alloc_td): Likewise.
26482 (grub_ohci_free_td): Likewise.
26483 (grub_ohci_free_tds): Likewise.
26484 (grub_ohci_transfer): Use previously allocated memory.
26485 (grub_ohci_portstatus): Reset status changed bit.
26486 (grub_ohci_detect_dev): Supply status changed.
26487 (grub_ohci_fini_hw): Free memory.
26488 (grub_ohci_restore_hw): Reallocate memory.
26489 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26490 Reset status change.
26491 (grub_uhci_detect_dev): Supply status_change.
26492 * bus/usb/usb.c (attach_hooks): New var.
26493 (grub_usb_device_attach): New function.
26494 (grub_usb_register_attach_hook_class): Likewise.
26495 (grub_usb_unregister_attach_hook_class): Likewise.
26496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26497 (grub_usb_add_hub): Reset connection changed bit.
26498 (attach_root_port): New function.
26499 (grub_usb_root_hub): Likewise.
26500 (poll_nonroot_hub): Likewise.
26501 (grub_usb_poll_devices): Likewise.
26502 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26503 * disk/usbms.c (grub_usbms_open): Use device hooks.
26504 (grub_usbms_iterate) :Poll devices.
26505 (grub_usbms_finddevs): Split into ...
26506 (grub_usbms_attach): ... this ...
26507 (grub_usbms_attach): ... and this.
26508 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26510 (grub_usb_interface): New fields attached and detach_hook.
26511 (grub_usb_attach_hook_class): New type.
26512 (grub_usb_attach_desc): New struct.
26513 (grub_usb_register_attach_hook_class): New function.
26514 (grub_usb_unregister_attach_hook_class): Likewise.
26515 (grub_usb_poll_devices): Likewise.
26516 (grub_usb_device_attach): Likewise.
26517 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26518 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26520 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26522 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26523 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26524 delta determination style. Works with most NetBSD partitions too.
26526 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26528 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26529 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26531 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26533 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26535 2010-07-14 Anton Blanchard <anton@samba.org>
26537 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26540 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26542 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26544 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26546 * kern/partition.c (grub_partition_check_containment): New function to
26547 check that a partition is physically contained in a parent. Since
26548 offsets are relative (and non-negative), this reduces to checking that
26549 the partition ends before its parent.
26550 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26551 (grub_partition_iterate): Likewise.
26552 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26554 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26555 partitions that start before their parent, and add debug printfs.
26557 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26559 * Makefile.in (.SUFFIX): Spell correctly, as ...
26560 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26561 bare module name without `.mod', e.g. `test') tried to invoke a
26564 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26566 * README: Point to the Info manual.
26568 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26570 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26571 2nd superblock position from partition size.
26573 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26575 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26576 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26577 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26580 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26582 Restructure SCSI .id handling.
26583 Reported and tested by: Aleš Nesrsta.
26585 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26586 (grub_atapi_dev): Changed .name to "ata". New field .id.
26587 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26588 (grub_usbms_dev): New field .id.
26589 * disk/scsi.c (grub_scsi_iterate): Generate name.
26590 (grub_scsi_open): Parse name.
26591 * include/grub/scsi.h (grub_make_scsi_id): New function.
26592 (grub_scsi_dev): Change iterate and open to number instead of naming
26593 busses. All users updated.
26594 (grub_scsi): Remove name. Add .bus.
26596 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26598 * commands/help.c (grub_cmd_help): Fix a typo.
26600 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26602 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26603 Reported and tested by: Colin Watson.
26605 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26607 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26610 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26612 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26614 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26616 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26619 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26621 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26622 and disk/raid6_recover.c.
26623 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26624 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26626 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26628 * term/gfxterm.c (repaint_schedulded): Rename to ...
26629 (repaint_scheduled): ... this. Update all callers.
26630 (repaint_was_schedulded): Rename to ...
26631 (repaint_was_scheduled): ... this. Update all callers.
26633 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26635 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26636 which we expect to be handled by upper layers.
26638 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26640 * bus/usb/usbhub.c: #include time.h header.
26642 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26644 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26645 entry_name also for entries without stat blocks (e.g. ".."); fixes
26646 corruption of the first entry in a directory.
26648 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26650 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26651 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26652 doesn't work otherwise.
26654 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26656 * docs/grub.texi (Features): Update list of supported file systems.
26657 (GNU/Linux): Update for GRUB 2.
26658 (Serial terminal): Remove mention of --disable-serial, which was a
26659 GRUB Legacy configure option. Update instructions to use
26660 `terminal_input' and `terminal_output' rather than `terminal'.
26661 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26662 configuration' and `Installing GRUB using grub-install'.
26663 (Menu entry editor): Update for GRUB 2.
26664 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26665 Document new -a, -u, and -v options.
26666 (initrd): New section.
26667 (initrd16): New section.
26668 (linux): New section.
26669 (linux16): New section.
26670 (search): The `var' argument to `--set' is optional.
26671 (GRUB only offers a rescue shell): Go into a little more detail on
26674 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26676 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26678 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26680 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26681 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26683 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26685 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26686 install_prefix, in line with install_dos_part and install_bsd_part.
26687 Add new prefix variable, which is copied to install_prefix after
26688 comparing core.img in memory with the one read from disk in the
26689 no-embedding case, and use that rather than overwriting
26690 install_prefix immediately when installing to a partition.
26691 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26694 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26696 * configure.ac: Avoid == in test command, it's not portable.
26697 * util/grub.d/30_os-prober.in: Likewise.
26699 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26701 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26703 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26705 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26706 multiple (top-level) partmaps.
26708 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26710 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26711 Reported by: Tino Keitel.
26713 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26715 Bidi and diacritics support.
26717 * Makefile.in (widthspec.bin): New target.
26718 (widthspec.h): Likewise.
26719 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26720 * autogen.sh: Generate unidata.c.
26721 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26722 * commands/ls.c (grub_ls_list_devices): Likewise.
26723 (grub_ls_list_files): Likewise.
26724 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26725 (grub_mini_cmd_lsmod): Likewise.
26726 * commands/read.c: Likewise.
26727 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26728 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26729 * lib/arg.c (grub_arg_show_help): Likewise.
26730 * lib/crypto.c (grub_password_get): Likewise.
26731 * normal/auth.c (grub_username_get): Likewise.
26732 * normal/misc.c (grub_normal_print_device_info): Likewise.
26733 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26734 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26735 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26736 (normal/charset.c_DEPENDENCIES): New variable.
26737 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26738 (pkglib_MODULES): Remove charset.mod.
26739 (charset_mod_SOURCES): Removed.
26740 (charset_mod_CFLAGS): Likewise.
26741 (charset_mod_LDFLAGS): Likewise.
26742 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26745 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26746 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26747 (kernel_img_HEADERS): Add terminfo.h.
26748 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26749 Fill ->font. Reverse ascii bitmaps.
26750 (grub_font_get_xheight): New function.
26751 * font/font.c (grub_font_get_string_width): Moved from here ...
26752 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26753 * font/font.c (grub_font_draw_string): Moved from here ...
26754 * gfxmenu/font.c (grub_font_draw_string): ... here.
26755 * font/font.c (grub_font_dup_glyph): New function.
26756 (grub_font_blit_glyph): Likewise.
26757 (grub_font_blit_glyph_mirror): Likewise.
26758 (blit_comb): Likewise.
26759 (grub_font_construct_dry_run): Likewise.
26760 (grub_font_get_constructed_device_width): Likewise.
26761 (grub_font_construct_glyph): Likewise.
26762 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26763 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26764 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26765 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26766 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26767 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26768 (grub_font_get_xheight): New proto.
26769 (grub_font_get_constructed_device_width): Likewise.
26770 (grub_font_construct_glyph): Likewise.
26771 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26772 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26773 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26774 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26775 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26776 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26777 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26778 (grub_console_getcharwidth): Likewise.
26779 * include/grub/misc.h (grub_xputs): New proto.
26780 (grub_puts): Inlined.
26781 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26782 (grub_normal_get_line_counter): Removed.
26783 (grub_install_newline_hook): Likewise.
26784 (grub_normal_get_char_counter): New proto.
26785 (grub_normal_reset_more): Likewise.
26786 (grub_xputs_normal): Likewise.
26787 * include/grub/powerpc/ieee1275/console.h: Removed.
26788 * include/grub/sparc64/ieee1275/console.h: Likewise.
26789 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26790 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26791 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26792 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26793 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26794 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26795 (grub_term_input): Pass reference to self. All users updated.
26796 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26797 Pass reference to self. New fields normal_color, highlight_color and
26798 data. All users updated.
26799 (grub_putchar): Removed.
26800 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26801 (grub_unicode_estimate_width): New function.
26802 (grub_term_getcharwidth): Add defaults.
26803 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26804 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26805 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26806 (grub_cls): Remove EXPORT_FUNC.
26807 (grub_setcolorstate): Inline.
26808 (grub_newline_hook): Removed.
26809 * include/grub/terminfo.h: Rewritten. All users updated.
26810 * include/grub/unicode.h: New file.
26811 * include/grub/video.h (grub_video_signed_rect): New type.
26812 * kern/emu/console.c (grub_console_highlight_color): Removed.
26813 (grub_console_normal_color): Likewise.
26814 (grub_console_standard_color): Made static.
26815 (grub_ncurses_putchar): Remove mapping.
26816 (grub_ncurses_getcharwidth): Removed.
26817 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26818 (grub_ncurses_setcolor): Removed.
26819 (grub_ncurses_getcolor): Likewise.
26820 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26821 (grub_console_putchar): ... this.
26822 (grub_console_putchar): Handle argument difference.
26823 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26824 console_init_early and console_init_lately.
26825 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26826 * kern/misc.c (grub_puts): Removed.
26827 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26828 (grub_vsnprintf_real): Remove str = NULL support.
26829 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26830 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26831 * kern/term.c (grub_putcode): Renamed to ...
26832 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26833 (grub_putchar): Removed.
26834 (grub_xputs_dumb): New function.
26835 (grub_xputs): New variable.
26836 * lib/charset.c: Move from here ...
26837 * normal/charset.c: ... to here.
26838 (grub_ucs4_to_utf8): New function.
26839 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26840 (join_types): New variable.
26841 (unpack_join): New function.
26842 (bidi_types): New variable.
26843 (unpack_bidi): New function.
26844 (get_bidi_type): Likewise.
26845 (get_join_type): Likewise.
26846 (is_mirrored): Likewise.
26847 (grub_unicode_get_comb_type): Likewise.
26848 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26849 (is_type_after): Likewise.
26850 (grub_unicode_aglomerate_comb): Likewise.
26851 (bidi_line_wrap): Likewise.
26852 (grub_bidi_line_logical_to_visual): Likewise.
26853 (grub_bidi_logical_to_visual): Likewise.
26854 (grub_unicode_mirror_code): Likewise.
26855 (grub_unicode_shape_code): Likewise.
26856 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26857 Don't use grub_putchar.
26858 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26859 (grub_normal_reader_init): Likewise.
26860 (grub_xputs_saved): New variable.
26861 (GRUB_MOD_INIT): Set grub_xputs.
26862 (GRUB_MOD_FINI): Restore grub_xputs.
26863 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26864 (menu_init): Avoid printing gfxmenu error.
26865 (show_menu): Use grub_normal_get_char_counter.
26866 * normal/menu_entry.c (update_screen): Fix out-of-array.
26867 (complete): Avoid NULL dereferencing.
26868 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26869 * normal/menu_text.c (print_spaces): Removed.
26870 (grub_print_ucs4): Likewise.
26871 (grub_print_message_indented): Use grub_print_ucs4.
26872 (print_message): Use grub_putcode.
26873 (print_entry): Hanlde diacritics.
26874 * normal/term.c (term_state): New type.
26875 (grub_more_lines): Removed.
26876 (term_states): New variable.
26877 (grub_normal_line_counter): Renamed to ..
26878 (grub_normal_char_counter): ...this. All users updated.
26879 (grub_normal_get_line_counter): Renamed to ...
26880 (grub_normal_get_char_counter): ... this.
26881 (grub_normal_reset_more): New function.
26882 (process_newline): Removed.
26883 (print_more): New function.
26884 (grub_install_newline_hook): Removed.
26885 (map_code): New function.
26886 (grub_puts_terminal): Use grub_print_ucs4.
26887 (putglyph): New function.
26888 (putcode_real): Likewise.
26889 (grub_putcode): Use putcode_real.
26890 (get_maxwidth): New function.
26891 (get_startwidth): Likewise.
26892 (print_ucs4_terminal): Likewise.
26893 (find_term_state): Likewise.
26894 (put_glyphs_terminal): Likewise.
26895 (print_backlog): Likewise.
26896 (print_ucs4_real): Likewise.
26897 (grub_print_ucs4): Likewise.
26898 (grub_xputs_normal): Likewise.
26899 * term/efi/console.c (grub_console_putchar): Output diacritics.
26900 (grub_console_getcharwidth): Removed.
26901 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26902 * term/gfxterm.c (clear_char): Free chars.
26903 (scroll_up): Avoid leaking memory.
26904 (grub_gfxterm_putchar): Support diacritics.
26905 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26906 * term/i386/pc/console.c (grub_console_term_output): Declare as
26907 GRUB_TERM_CODE_TYPE_VGA.
26908 * term/i386/pc/vga.c (grub_vga_term): Declare as
26909 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26910 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26911 GRUB_TERM_CODE_TYPE_VGA.
26912 * term/i386/vga_common.c (map_char): Removed.
26913 (grub_console_putchar): Likewise.
26914 (grub_console_getcharwidth): Likewise.
26915 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26916 (colors): Reordered to match terminfo.
26917 (grub_ofconsole_normal_color): Removed.
26918 (grub_ofconsole_writeesc): Likewise.
26919 (grub_ofconsole_highlight_color): Likewise.
26920 (grub_ofconsole_getcharwidth): Likewise.
26921 (grub_ofconsole_setcolorstate): Likewise.
26922 (grub_ofconsole_setcolor): Likewise.
26923 (grub_ofconsole_getcolor): Likewise.
26924 (grub_ofconsole_readkey): Renamed to ...
26925 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26927 (grub_ofconsole_checkkey): Removed.
26928 (grub_ofconsole_getkey): Likewise.
26929 (grub_ofconsole_getxy): Likewise.
26930 (grub_ofconsole_gotoxy): Likewise.
26931 (grub_ofconsole_cls): Likewise.
26932 (grub_ofconsole_refresh): Likewise.
26933 (grub_ofconsole_terminfo_input): New struct.
26934 (grub_ofconsole_terminfo_output): Likewise.
26935 (grub_ofconsole_term_input): Use terminfo.
26936 (grub_ofconsole_term_output): Likewise.
26937 (grub_console_init): Split into ...
26938 (grub_console_init_early): ...this and ...
26939 (grub_console_init_lately): ...this. Use terminfo.
26940 (grub_ofconsole_putchar): Renamed to ...
26941 (put): ... this. Remove mapping.
26942 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26943 * term/serial.c: Simplify using terminfo.
26946 (keep_track): Likewise.
26947 (registered): Likewise.
26948 (input_buf): Likewise.
26949 (npending): Likewise.
26950 (serial_translate_key_sequence): Likewise.
26951 (fill_input_buf): Likewise.
26952 (grub_serial_checkkey): Likewise.
26953 (grub_serial_getkey): Likewise.
26954 (grub_serial_getxy): Likewise.
26955 (grub_serial_gotoxy): Likewise.
26956 (grub_serial_putchar): Likewise.
26957 (grub_serial_cls): Likewise.
26958 (grub_serial_setcolorstate): Likewise.
26959 (grub_serial_setcursor): Likewise.
26960 (serial_hw_init): Use serial_hw_fetch.
26961 (grub_serial_terminfo_input): New variable.
26962 (grub_serial_terminfo_output): Likewise.
26963 (grub_serial_term_input): Use terminfo.
26964 (grub_serial_term_output): Likewise.
26965 * term/terminfo.c (putstr): Use put.
26966 (grub_terminfo_all_free): New function
26967 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26968 (grub_terminfo_output_register): New function.
26969 (grub_terminfo_output_unregister): Likewise.
26970 (grub_terminfo_getxy): Likewise.
26971 (grub_terminfo_readkey): Likewise.
26972 (grub_terminfo_checkkey): Likewise.
26973 (grub_terminfo_getkey): Likewise.
26974 (grub_terminfo_input_init): Likewise.
26975 (print_terminfo): Likewise.
26976 (grub_cmd_terminfo): Handle encoding.
26977 (grub_terminfo_gotoxy): Track position.
26978 (grub_terminfo_cls): Likewise.
26979 (grub_terminfo_putchar): Likewise.
26980 (grub_terminfo_setcolorstate): Handle colors
26981 (grub_terminfo_cursor_on): This ...
26982 (grub_terminfo_cursor_off): ... and this merged into ...
26983 (grub_terminfo_setcursor): ... this.
26984 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26985 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26986 * unicode/BidiMirroring.txt: Likewise.
26987 * unicode/UnicodeData.txt: Likewise.
26988 * unicode/COPYING: Likewise.
26989 * util/grub-editenv.c (grub_putchar): Removed.
26990 (grub_xputs_real): New function.
26991 (grub_xputs): New variable.
26992 * util/grub-fstest.c (grub_putchar): Removed.
26993 (grub_xputs_real): New function.
26994 (grub_xputs): New variable.
26995 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26996 (grub_xputs_real): New function.
26997 (grub_xputs): New variable.
26998 * util/grub-probe.c (grub_putchar): Removed.
26999 (grub_xputs_real): New function.
27000 (grub_xputs): New variable.
27001 * util/grub-script-check.c (grub_putchar): Removed.
27002 (grub_xputs_real): New function.
27003 (grub_xputs): New variable.
27004 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27005 (grub_xputs_real): New function.
27006 (grub_xputs): New variable.
27007 * util/import_unicode.py: New file.
27008 * util/grub-mkfont.c (ft_errmsgs): New array.
27009 (grub_glyph_info): Make bitmap a pointer.
27010 (file_formats): New type WIDTH_SPEC.
27011 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27012 (options): Add width-spec.
27014 (add_char): Renamed to ...
27015 (add_glyph): ... this.
27016 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27017 (glyph_replace): New type.
27018 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27019 (add_char): New function.
27020 (add_subst): Likewise.
27021 (process_cursive): Likewise.
27022 (add_font): Handle GSUB.
27023 (write_font_width_spec): New function.
27024 (main): Sort glyphs.
27025 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27026 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27027 * kern/term.c (grub_cls): Moved from here...
27028 * normal/term.c (grub_cls): ... here.
27030 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27032 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27033 suitable for using within the format argument of printf when
27034 converting grub_size_t.
27035 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27036 "x" to convert grub_size_t arguments.
27038 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27040 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27042 (list_get_minimal_size): Take selection box into account.
27044 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27046 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27049 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27051 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27052 devices when iterating over /dev/disk/by-id; they will be handled
27053 later if appropriate, which they aren't always (e.g. LVM).
27055 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27057 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27058 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27060 (grub_halt): Likewise.
27061 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27063 (grub_halt): Don't return, even if all of shut-down, power-off, and
27066 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27068 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27069 arguments, not three.
27071 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27073 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27074 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27075 LVM-on-RAID is handled correctly.
27077 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27079 * docs/grub.texi (Changes from GRUB Legacy): New section.
27080 (Future): Fix typo.
27082 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27084 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27085 grub.d/README accidentally ends up executable for one reason or
27086 another. Ignore it.
27088 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27090 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27091 (gpt_partition_map_iterate): Support non-512B sectors.
27093 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27095 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27096 Tested by: Seth Goldberg.
27098 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27100 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27101 Properly align mbi.
27102 Reported by: Seth Goldberg.
27104 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27106 * util/grub-mkrescue.in: Avoid module duplication.
27108 2010-07-01 Sean Finney <seanius@seanius.net>
27110 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27112 2010-07-01 Sean Finney <seanius@seanius.net>
27114 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27116 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27118 * disk/lvm.c (grub_lvm_checkvalue): New function.
27119 (grub_lvm_check_flag): Likewise.
27121 2010-07-01 Robert Millan <rmh@gnu.org>
27123 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27124 Support 'p' as partition separator on kernel of FreeBSD (used
27126 (grub_util_biosdisk_get_grub_dev): Likewise.
27128 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27130 Yeeloong firmware port.
27132 * boot/mips/yeeloong/fwstart.S: New file.
27133 * bus/cs5536.c (gpiodump): New const.
27134 (set_io_space): New function.
27135 (set_iod): Likewise.
27136 (set_p2d): Likewise.
27137 (grub_cs5536_init_geode): Likewise.
27138 * commands/mips/yeeloong/lsspd.c: New file.
27139 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27140 (serial_mod_SOURCES): New variable.
27141 (serial_mod_CFLAGS): Likewise.
27142 (serial_mod_LDFLAGS): Likewise.
27143 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27144 term/terminfo.c and term/tparm.c.
27145 (pkglib_IMAGES): Add fwstart.img.
27146 (fwstart_img_SOURCES): New variable.
27147 (fwstart_img_CFLAGS): Likewise.
27148 (fwstart_img_ASFLAGS): Likewise.
27149 (fwstart_img_LDFLAGS): Likewise.
27150 (fwstart_img_FORMAT): Likewise.
27151 (pkglib_MODULES): Add lsspd.mod.
27152 (lsspd_mod_SOURCES): New variable.
27153 (lsspd_mod_CFLAGS): Likewise.
27154 (lsspd_mod_LDFLAGS): Likewise.
27155 (pkglib_MODULES): Add halt.mod.
27156 (halt_mod_SOURCES): New variable.
27157 (halt_mod_CFLAGS): Likewise.
27158 (halt_mod_LDFLAGS): Likewise.
27159 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27160 (serial_mod_SOURCES): Removed.
27161 (serial_mod_CFLAGS): Likewise.
27162 (serial_mod_LDFLAGS): Likewise.
27163 * disk/ata.c (check_device): New function.
27164 (grub_ata_device_initialize): Use check_device.
27165 (grub_ata_iterate): Recheck devices.
27166 (grub_ata_open): Likewise.
27167 (grub_atapi_iterate): Likewise.
27168 (grub_atapi_open): Likewise.
27169 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27170 (GRUB_ATA_CH1_PORT1): Likewise.
27171 (GRUB_ATA_CH0_PORT2): Likewise.
27172 (GRUB_ATA_CH1_PORT2): Likewise.
27173 * include/grub/mips/loongson.h: New file.
27174 * include/grub/mips/yeeloong/ec.h: Likewise.
27175 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27176 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27177 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27178 * include/grub/misc.h (grub_halt): Declare as noreturn.
27179 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27180 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27181 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27182 (UART_ENABLE_DTRRTS): Likewise.
27183 (UART_ENABLE_MODEM): Removed.
27184 (UART_ENABLE_OUT2): New const.
27185 * include/grub/term.h (grub_term_register_input_active): New function.
27186 (grub_term_register_output_active): Likewise.
27187 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27189 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27190 (init_pci): New function.
27191 (grub_machine_init): Execute platform init when firmware. Init serial.
27192 (grub_halt): Implement.
27193 (grub_exit): Likewise.
27194 (grub_reboot): Likewise.
27195 * term/serial.c (serial_hw_init): Update macros.
27196 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27197 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27198 (image_targets): New target mipsel-yeeloong-flash.
27199 (generate_image): Support IMAGE_YEELOONG_FLASH.
27200 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27201 (grub_video_sm712_setup): Init card.
27202 (grub_video_sm712_set_palette): Removed.
27203 * video/sm712_init.c: New file.
27205 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27207 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27208 PATH when running help2man and then run it on the unadorned
27209 executable names, rather than passing $(builddir)/* paths to
27210 help2man. This avoids the build directory ending up in generated
27213 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27215 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27216 to avoid accidents when debugging with 'sh -x'.
27217 * util/grub-mkrescue.in: Likewise.
27218 * util/grub.d/00_header.in: Likewise.
27219 * util/grub.d/10_hurd.in: Likewise.
27220 * util/grub.d/10_kfreebsd.in: Likewise.
27221 * util/grub.d/10_linux.in: Likewise.
27222 * util/grub.d/10_netbsd.in: Likewise.
27223 * util/grub.d/10_windows.in: Likewise.
27224 * util/grub.d/20_linux_xen.in: Likewise.
27225 * util/grub.d/30_os-prober.in: Likewise.
27226 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27228 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27230 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27231 last character in the buffer.
27232 Reported by: Vladimir Serbinenko.
27234 2010-06-29 Robert Millan <rmh@gnu.org>
27236 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27237 (Command-line and menu entry commands): Document `badram' command.
27239 2010-06-28 Robert Millan <rmh@gnu.org>
27241 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27242 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27243 command using ${GRUB_BADRAM} as parameter.
27245 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27247 * docs/grub.texi (Device map): New section.
27248 (Themes): New section (stub).
27249 * Makefile.in (docs/grub.info): The info documentation now builds
27250 without errors. Make sure it stays that way.
27252 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27254 Use normal parser for menu entries.
27255 Reported by: Thomas Frauendorfer
27257 * include/grub/parser.h (grub_parser_execute): Don't export.
27258 * normal/menu.c (grub_menu_execute_entry_real): New function.
27259 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27261 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27263 * docs/grub.texi (Embedded configuration): New section (replacing
27264 old "Preset Menu" stub).
27265 (Images): New section.
27266 (configfile): Note that any menu entries defined in `file' are shown
27269 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27271 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27273 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27275 * util/grub-install.in: Add --debug-image= option.
27277 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27279 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27282 * util/deviceiter.c (check_device): Rename to ...
27283 (check_device_readable_unique): ... this. Update all callers.
27284 Maintain and check a list of which devices (by canonicalized name)
27285 have already been seen.
27286 (clear_seen_devices): New function.
27287 (compare_file_names) [__linux__]: New function.
27288 (grub_util_iterate_devices): Clear the list of seen devices on exit
27289 and (just in case) on entry.
27290 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27291 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27292 seen-devices list, superseded by general code in check_device.
27294 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27296 * commands/cat.c (options): New variable.
27297 (grub_cmd_cat): Parse options. If the --dos option is given, print
27298 DOS-style "\r\n" line endings as simple newlines (Debian bug
27300 (GRUB_MOD_INIT): Use extcmd.
27301 (GRUB_MOD_FINI): Likewise.
27302 * docs/grub.texi (cat): Document --dos.
27304 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27306 XEN with Linux grub-mkconfig support.
27308 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27309 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27310 GRUB_CMDLINE_XEN_DEFAULT.
27311 * util/grub.d/20_linux_xen.in: New file.
27313 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27315 Initialise VGA video on qemu ourselves.
27317 * boot/i386/qemu/boot.S: Don't call 0xc000.
27318 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27319 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27320 (kernel_img_HEADERS): Add pci.h.
27321 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27322 * configure.ac: Force unifont on qemu and yeeloong.
27323 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27324 (grub_vga_palette_write): Use correct register.
27325 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27326 Call grub_qemu_init_cirrus.
27327 * kern/i386/qemu/init.c: New file.
27328 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27330 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27332 2010-06-26 Pavel Roskin <proski@gnu.org>
27334 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27337 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27339 * docs/grub.texi (Simple configuration): Explain that
27340 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27341 set to `true' to disable their respective recovery entries, not
27344 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27346 Make the `source' command slightly faster.
27348 * normal/main.c (grub_normal_execute): Don't re-read list files when
27351 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27353 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27354 field position and mask size to red fields from mode_info, not
27356 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27357 Remove redundant tag->common.framebuffer_type assignment.
27358 Reported by: Seth Goldberg.
27360 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27362 Sync up other versions of the Linux loader with Robert Millan's
27363 change of 2010-01-09, "Make loader output a bit more user-friendly".
27365 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27367 (grub_cmd_linux): Likewise.
27368 (grub_cmd_initrd): Likewise.
27369 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27370 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27372 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27374 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27375 larger than MEMORY_MAP_SIZE.
27377 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27379 Fix parallel build.
27381 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27383 * script/parser.y: #include grub_script.tab.h header.
27385 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27387 Support >3GiB and <16MiB RAM in i386-qemu.
27389 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27390 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27391 (grub_lower_mem): Removed.
27392 (grub_upper_mem): Likewise.
27393 (mem_size): Made static.
27394 (above_4g): New variable.
27395 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27396 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27399 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27401 Cirrus 5446 and Bochs video cards support.
27403 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27405 (video_cirrus_mod_SOURCES): New variable.
27406 (video_cirrus_mod_CFLAGS): Likewise.
27407 (video_cirrus_mod_LDFLAGS): Likewise.
27408 (video_bochs_mod_SOURCES): Likewise.
27409 (video_bochs_mod_CFLAGS): Likewise.
27410 (video_bochs_mod_LDFLAGS): Likewise.
27411 * include/grub/vga.h: New file.
27412 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27413 (grub_video_fb_set_page_t): New type.
27414 (grub_video_fb_setup): New prototype.
27415 (grub_video_fb_swap_buffers): Likewise.
27416 (grub_video_fb_get_info_and_fini): Likewise.
27417 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27418 (CRTC_DATA_PORT): Likewise.
27419 (CRTC_CURSOR): Likewise.
27420 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27421 (CRTC_CURSOR_ADDR_LOW): Likewise.
27422 (CRTC_CURSOR_DISABLE): Likewise.
27423 (update_cursor): Use grub_vga_cr_write.
27424 (grub_vga_text_setcursor): Likewise.
27425 * video/bochs.c: New file.
27426 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27427 (palette): Likewise.
27428 (palette_size): Likewise.
27429 (framebuffer): New variable.
27430 (grub_video_fb_init): Use 'framebuffer'.
27431 (grub_video_fb_fini): Likewise.
27432 (grub_video_fb_get_info): Likewise.
27433 (grub_video_fb_get_palette): Likewise.
27434 (grub_video_fb_set_palette): Likewise.
27435 (grub_video_fb_set_viewport): Likewise.
27436 (grub_video_fb_get_viewport): Likewise.
27437 (grub_video_fb_map_color): Likewise.
27438 (grub_video_fb_map_rgb): Likewise.
27439 (grub_video_fb_map_rgba): Likewise.
27440 (grub_video_fb_unmap_color): Likewise.
27441 (grub_video_fb_unmap_color_int): Likewise.
27442 (grub_video_fb_fill_rect): Likewise.
27443 (grub_video_fb_blit_bitmap): Likewise.
27444 (grub_video_fb_blit_render_target): Likewise.
27445 (grub_video_fb_scroll): Likewise.
27446 (grub_video_fb_create_render_target): Likewise.
27447 (grub_video_fb_doublebuf_blit_init): Likewise.
27448 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27449 (doublebuf_pageflipping_update_screen): New function.
27450 (doublebuf_pageflipping_init): Likewise.
27451 (grub_video_fb_setup): Likewise.
27452 (grub_video_fb_swap_buffers): Likewise.
27453 (grub_video_fb_get_info_and_fini): Likewise.
27454 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27456 (doublebuf_pageflipping_commit): Restructured into ...
27457 (doublebuf_pageflipping_set_page): ... this.
27458 (doublebuf_pageflipping_update_screen): Removed.
27459 (doublebuf_pageflipping_init): Likewise.
27460 (double_buffering_init): Likewise.
27461 (grub_video_vbe_setup): Use grub_video_fb_setup.
27462 (grub_video_vbe_swap_buffers): Removed.
27463 (grub_video_vbe_set_active_render_target): Likewise.
27464 (grub_video_vbe_get_active_render_target): Likewise.
27465 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27466 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27467 grub_video_fb_set_active_render_target and
27468 grub_video_fb_get_active_render_target.
27469 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27470 (SEQUENCER_DATA_PORT): Likewise.
27471 (MAP_MASK_REGISTER): Likewise.
27472 (CRTC_ADDR_PORT): Likewise.
27473 (CRTC_DATA_PORT): Likewise.
27474 (START_ADDR_HIGH_REGISTER): Likewise.
27475 (START_ADDR_LOW_REGISTER): Likewise.
27476 (GRAPHICS_ADDR_PORT): Likewise.
27477 (GRAPHICS_DATA_PORT): Likewise.
27478 (READ_MAP_REGISTER): Likewise.
27479 (INPUT_STATUS1_REGISTER): Likewise.
27480 (INPUT_STATUS1_VERTR_BIT): Likewise.
27481 (get_map_mask): Use grub_vga_sr_read.
27482 (set_map_mask): Use grub_vga_sr_write.
27483 (set_read_map): Use grub_vga_gr_write.
27484 (set_start_address): Use grub_vga_cr_write.
27485 * video/sm712.c (framebuffer): Remove leftover fields.
27487 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27489 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27490 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27491 instead. Replace the gfxterm backend check with a check that
27492 ${GRUB_PREFIX}/video.lst is non-empty.
27493 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27495 (load_video): New generated function. Call it before loading
27496 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27497 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27498 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27499 * docs/grub.texi (Simple configuration): Document
27500 GRUB_VIDEO_BACKEND.
27502 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27504 Use video functions in linux and xnu loaders.
27506 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27507 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27508 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27509 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27510 loader/i386/pc/linux.c.
27511 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27512 (find_line_len): Removed.
27513 (find_framebuf): Likewise.
27514 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27515 * loader/i386/efi/xnu.c: Removed.
27516 * loader/i386/pc/xnu.c: Moved from here...
27517 * loader/i386/xnu.c: ...here.
27519 Enable priorities in video drivers.
27521 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27522 (grub_video_adapter): New field prio.
27523 (grub_video_register): Respect prio when inserting.
27524 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27525 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27526 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27527 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27528 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27529 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27530 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27534 * include/grub/video.h (grub_video_driver_id_t): New value
27535 GRUB_VIDEO_DRIVER_SDL.
27536 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27538 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27540 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27541 argument to printf.
27542 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27544 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27546 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27547 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27549 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27551 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27552 directly, and recommend grub-install instead.
27553 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27555 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27557 Fix i386-pc prefix handling with nested partitions (Debian bug
27558 #585068). Note that the case where the core image is booted using
27559 multiboot and relocated from its original location still requires
27562 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27563 with "(,", fill the boot drive in between those two characters, but
27564 expect that a full partition specification including partition map
27566 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27567 specified, write a prefix without the drive name but including a
27568 full partition specification.
27570 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27572 * util/grub-mkconfig.in: Ignore non-option arguments, for
27573 compatibility with older versions (before 2010-06-12) which did the
27574 same. In particular, this makes it easier to ship an update-grub
27575 wrapper which is compatible with that used with GRUB Legacy (Debian
27578 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27580 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27581 for manual page generation.
27583 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27585 * po/POTFILES: Remove leftover commands/handler.c.
27587 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27589 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27590 left this script non-functional.
27592 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27594 * docs/man/grub-emu.h2m: New file.
27596 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27598 * docs/grub.texi (Commands): Document reduced command set in rescue
27600 (cpuid): New section.
27602 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27604 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27605 new partition naming style.
27606 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27608 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27610 Add "-o grub.iso" like cmdline options support.
27612 * util/grub-install.in: Improve cmdline option parsing.
27613 * util/grub-mkconfig.in: Likewise.
27614 * util/grub-mkrescue.in: Likewise.
27615 * util/grub-reboot.in: Likewise.
27616 * util/grub-set-default.in: Likewise.
27617 * util/i386/efi/grub-install.in: Likewise.
27618 * util/ieee1275/grub-install.in: Likewise.
27619 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27623 * .bzrignore: Ignore 41_custom.
27625 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27627 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27629 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27631 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27632 prototype declarations.
27634 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27635 generating fs, partmap, and video lists.
27636 * include/grub/fs.h (grub_fs_register): Omit prototype if
27637 GRUB_LST_GENERATOR is defined.
27638 * include/grub/partition.h (grub_partition_map_register): Likewise.
27639 * include/grub/video.h (grub_video_register): Likewise.
27641 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27643 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27645 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27647 * util/grub-mkrescue.in: Support --xorriso argument.
27649 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27651 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27652 Suggested by: Thomas Schmitt.
27654 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27656 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27657 Suggested by: Thomas Schmitt.
27659 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27661 custom.cfg support.
27663 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27664 * util/grub.d/41_custom.in: New file.
27666 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27668 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27669 been merged back into normal.
27671 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27673 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27674 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27676 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27678 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27679 when generating manual pages.
27680 * docs/man/grub-bin2h.h2m: New file.
27681 * docs/man/grub-editenv.h2m: New file.
27682 * docs/man/grub-fstest.h2m: New file.
27683 * docs/man/grub-install.h2m: New file.
27684 * docs/man/grub-macho2img.h2m: New file.
27685 * docs/man/grub-mkconfig.h2m: New file.
27686 * docs/man/grub-mkdevicemap.h2m: New file.
27687 * docs/man/grub-mkfont.h2m: New file.
27688 * docs/man/grub-mkimage.h2m: New file.
27689 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27690 * docs/man/grub-mkrelpath.h2m: New file.
27691 * docs/man/grub-mkrescue.h2m: New file.
27692 * docs/man/grub-ofpathname.h2m: New file.
27693 * docs/man/grub-pe2elf.h2m: New file.
27694 * docs/man/grub-probe.h2m: New file.
27695 * docs/man/grub-reboot.h2m: New file.
27696 * docs/man/grub-script-check.h2m: New file.
27697 * docs/man/grub-set-default.h2m: New file.
27698 * docs/man/grub-setup.h2m: New file.
27700 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27702 Use FOR_* macros instead of *_iterate whenever possible.
27704 * commands/handler.c: Removed.
27705 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27706 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27707 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27708 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27709 (grub_probe_SOURCES): Remove kern/parser.c.
27710 (util/grub-script-check.c_DEPENDENCIES): Removed.
27711 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27712 and grub_script_check_init.c.
27713 (grub_script_check_init.lst): Removed.
27714 (grub_script_check_init.h): Likewise.
27715 (grub_script_check_init.c): Likewise.
27716 (pkglib_MODULES): Remove handler.mod and sh.mod.
27717 (handler_mod_SOURCES): Removed.
27718 (handler_mod_CFLAGS): Likewise.
27719 (handler_mod_LDFLAGS): Likewise.
27720 (normal_mod_SOURCES): Remove normal/handler.c.
27721 Add script/main.c, script/script.c, script/execute.c,
27722 script/function.c, script/lexer.c, grub_script.tab.c
27723 and grub_script.yy.c.
27724 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27725 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27726 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27727 (grub_setup_SOURCES): Remove kern/parser.c.
27728 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27729 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27730 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27731 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27732 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27733 (grub_setup_SOURCES): Remove kern/parser.c.
27734 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27735 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27736 * include/grub/command.h (grub_command_iterate): Removed.
27737 (FOR_COMMANDS): New macro.
27738 * include/grub/dl.h (grub_dl): New member next.
27739 (grub_dl_iterate): Removed.
27740 (grub_dl_head): New variable declaration.
27741 (FOR_DL_MODULES): New macro.
27742 * include/grub/fs.h: Include list.h.
27743 (grub_fs): Make next first element.
27744 (grub_fs_list): New variable declaration.
27745 (grub_fs_register): Make inline.
27746 (grub_fs_unregister): Likewise.
27747 (grub_fs_iterate): Removed.
27748 (FOR_FILESYSTEMS): New macro.
27749 * include/grub/handler.h: Removed.
27750 * include/grub/list.h (grub_list_hook_t): Removed.
27751 (grub_list_test_t): Likewise.
27752 (grub_list_pop): Likewise.
27753 (grub_list_iterate): Likewise.
27754 (grub_list_insert): Likewise.
27755 (FOR_LIST_ELEMENTS): New macro.
27756 * include/grub/parser.h (grub_parser_class): Removed.
27757 (grub_parser_register): Likewise.
27758 (grub_parser_unregister): Likewise.
27759 (grub_parser_get_current): Likewise.
27760 (grub_parser_set_current): Likewise.
27761 (grub_register_rescue_parser): Likewise.
27762 (grub_rescue_parse_line): New function.
27763 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27764 * include/grub/script_sh.h (grub_script_function_list): New variable
27766 (FOR_SCRIPT_FUNCTIONS): New macro.
27767 (grub_script_function_iterate): Removed.
27768 (grub_normal_parse_line): New prototype.
27769 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27770 (FOR_DISABLED_TERM_INPUTS): Likewise.
27771 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27772 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27773 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27775 (grub_video_register): Inline.
27776 (grub_video_unregister): Likewise.
27777 (grub_video_adapter_list): New variable declaration.
27778 (grub_video_iterate): Removed.
27779 (FOR_VIDEO_ADAPTERS): New macro.
27780 * kern/dl.c (grub_dl_list): Removed. All users updated.
27781 (grub_dl_iterate): Removed.
27782 * kern/fs.c (grub_fs_list): Make global.
27783 (grub_fs_register): Removed.
27784 (grub_fs_unregister): Likewise.
27785 (grub_fs_iterate): Likewise.
27786 * kern/handler.c: Removed.
27787 * kern/list.c (grub_list_pop): Removed.
27788 (grub_list_iterate): Likewise.
27789 (grub_list_insert): Likewise.
27790 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27791 (grub_prio_list_insert): Don't use grub_list_insert.
27792 * kern/main.c (grub_register_rescue_parser): Don't call
27793 grub_register_rescue_parser.
27794 * kern/parser.c (grub_parser_class): Removed.
27795 (grub_parser_execute): Use grub_rescue_parse_line.
27796 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27797 (grub_rescue_parser): Removed.
27798 (grub_register_rescue_parser): Likewise.
27799 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27800 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27801 (grub_auth_check_authentication): Likewise.
27802 * normal/completion.c (iterate_command): Removed.
27803 (grub_normal_do_completion): Use FOR_COMMANDS.
27804 * normal/handler.c: Removed.
27805 * normal/main.c (read_config_file): Remove parser changing.
27806 (grub_normal_execute): Don't call read_handler_list.
27807 (grub_normal_read_line_real): Statically allocate prompt.
27808 (grub_cmdline_run): Use grub_normal_parse_line.
27809 (GRUB_MOD_FINI): Don't call free_handler_list.
27810 * normal/menu_entry.c (run): Likewise.
27811 * script/function.c (grub_script_function_list): Make global.
27812 (grub_script_function_iterate): Removed.
27813 * script/main.c (grub_normal_parse_line): Make global.
27814 (grub_sh_parser): Removed.
27815 (GRUB_MOD_INIT): Likewise.
27816 (GRUB_MOD_FINI): Likewise.
27817 * tests/lib/functional_test.c (grub_functional_test): Use
27819 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27820 (grub_test_run): Use FOR_LIST_ELEMENTS.
27821 * tests/lib/unit_test.c (main): Likewise.
27822 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27824 * util/grub-fstest.c (grub_term_input_class): Removed.
27825 (grub_term_output_class): Likewise.
27826 * util/grub-probe.c: Likewise.
27827 * util/i386/pc/grub-setup.c: Likewise.
27828 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27829 * util/grub-script-check.c (main): Don't call grub_init_all and
27831 * video/video.c (grub_video_adapter_list): Make global.
27832 (grub_video_register): Removed.
27833 (grub_video_unregister): Likewise.
27834 (grub_video_iterate): Likewise.
27836 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27838 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27839 reported by Henrique Ferreiro.
27841 2010-06-09 Robert Millan <rmh@gnu.org>
27843 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27844 ones, when both are available.
27846 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27848 Make --version uniform and avoid hard-coded program name.
27850 * util/grub-mkimage.c (main): Use `program_name' instead of
27852 * util/i386/pc/grub-setup.c (main): Likewise.
27853 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27854 * util/grub-install.in: Save the basename of $0 in $self, and use the
27855 latter in informational messages. Use the same format for --version
27856 as the binary programs.
27857 * util/grub-mkconfig.in: Likewise.
27858 * util/grub-mkrescue.in: Likewise.
27859 * util/grub-reboot.in: Likewise.
27860 * util/grub-set-default.in: Likewise.
27861 * util/i386/efi/grub-install.in: Likewise.
27862 * util/ieee1275/grub-install.in: Likewise.
27863 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27865 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27867 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27868 embedding area. Use <= instead of == when checking for non-emptiness.
27870 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27872 * configure.ac: Add `.' to the directories searched for unifont.
27874 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27876 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27879 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27881 * docs/grub.texi (History): Expand to cover GRUB 2.
27882 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27883 commands, not `terminal'.
27884 (serial): Likewise.
27885 (terminal_input): New section.
27886 (terminal_output): New section.
27887 (uppermem): New section (stub).
27888 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27890 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27892 * docs/grub.texi (Security): Menu entries are unrestricted by
27893 default, not restricted to superusers as I had previously thought.
27894 Reword to account for this.
27896 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27898 * kern/emu/misc.c (device_mapper_null_log): New function.
27899 (grub_device_mapper_supported): New function.
27900 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27902 * kern/emu/hostdisk.c (find_partition_start): Check whether
27903 device-mapper is supported before trying to use it.
27904 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27906 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27908 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27909 (File name syntax): Likewise.
27910 (help): --all is no longer supported in GRUB 2. Be more precise
27911 about pattern matching.
27913 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27915 * normal/completion.c (grub_normal_do_completion): When completing
27916 arguments to "set" and the current word contains an equals sign,
27917 skip to after the equals sign before starting completion.
27919 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27921 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27923 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27925 * docs/grub.texi (Network): New section.
27926 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27927 `(nd)' as in GRUB Legacy.
27928 (pxe_unload): New section.
27930 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27932 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27933 in the rescue shell, so recommend using `set' instead. Thanks,
27936 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27938 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27939 (password): New section.
27940 (password_pbkdf2): New section.
27941 (search): New section.
27942 (Security): New section.
27943 (Troubleshooting): New section, currently very incomplete.
27944 (Invoking grub-mkpasswd-pbkdf2): New section.
27945 (Internals): New section, currently very incomplete.
27947 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27949 * util/grub.d/00_header.in: Add some more quoting (of
27950 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27952 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27954 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27956 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27957 to `count', fixing variable shadowing that broke the -c option.
27959 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27961 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27962 in case they contain spaces.
27964 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27966 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27967 "part_" to partmap module names, in line with grub-install.
27968 Reported by: Jindřich Makovička (Debian bug #584426).
27970 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27972 * util/grub-mkimage.c: Make target-related error messages slightly
27973 more helpful; -O talks about "format". Explicitly point to the use
27974 of -O if no target is specified.
27975 Reported by: Didier Raboud (Debian bug #584415).
27977 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27979 * INSTALL: Document several build requirements for optional features
27980 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27982 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27984 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27985 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27986 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27988 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27990 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27991 Thanks to Jordan Uggla for spotting this.
27993 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27995 Finally make USB usable.
27997 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27998 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27999 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28000 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28001 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28002 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28003 (GRUB_OHCI_FSMPS): Likewise.
28004 (GRUB_OHCI_PERIODIC_START): Likewise.
28005 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28006 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28007 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28008 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28009 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28010 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28011 (grub_ohci_transaction): Likewise.
28012 (grub_ohci_transfer): Improve condition detection algorithms.
28013 Handle toggle property. Program the transactions correctly.
28014 Improve error handling. Various important fixups.
28015 (grub_ohci_portstatus): Put register writes in right order.
28016 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28017 (grub_uhci_transfer): Don't show "failed" message on success.
28018 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28020 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28021 determine its size.
28022 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28023 before initialization is completed. Use IN direction for empty
28024 transfers. Use last_trans and compute toggle.
28025 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28026 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28027 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28028 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28029 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28030 (grub_usb_device): Increase toggle to 256.
28031 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28032 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28033 GRUB_USBMS_SUBCLASS_SFF8070.
28034 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28035 (grub_scsi_inquiry): New member page and alloc_length.
28036 (grub_scsi_request_sense): New structure.
28037 (grub_scsi_request_sense_data): Likewise.
28038 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28040 * disk/scsi.c (grub_scsi_request_sense): New function.
28041 (grub_scsi_test_unit_ready): Likewise.
28042 (grub_scsi_inquiry): Fill new fields.
28043 (grub_scsi_read_capacity): Likewise.
28044 (grub_scsi_read10): Add request sense at the end.
28045 (grub_scsi_read12): Likewise.
28046 (grub_scsi_write10): Likewise.
28047 (grub_scsi_write12): Likewise.
28048 (grub_scsi_open): Add Test Unit Ready.
28049 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28050 Support additional subclasses. Con't clear halt yet. Activate the
28051 proper config. Calculate LUNs correctly.
28052 (grub_usbms_transfer): Various important fixups.
28054 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28056 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28057 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28058 (grub_ohci_fini_hw): New function.
28059 (grub_ohci_restore_hw): Likewise.
28060 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28061 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28062 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28064 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28066 Dedicated DMA allocations.
28068 * bus/pci.c (grub_memalign_dma32): New function
28069 (grub_dma_free): Likewise.
28070 (grub_dma_get_virt): Likewise.
28071 (grub_dma_get_phys): Likewise.
28072 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28073 (grub_ohci_pci_iter): Use dma32_alloc.
28074 (grub_ohci_transfer): Likewise.
28075 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28076 (grub_usb_bulk_readwrite): Likewise.
28077 * include/grub/pci.h: Add declarations.
28079 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28083 * bus/cs5536.c: New file.
28084 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28085 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28086 (cs5536_mod_SOURCES): New variable.
28087 (cs5536_mod_CFLAGS): Likewise.
28088 (cs5536_mod_LDFLAGS): Likewise.
28089 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28091 (kernel_img_SOURCES): Add bus/cs5536.c.
28092 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28094 (usb_mod_SOURCES): New variable.
28095 (usb_mod_CFLAGS): New variable.
28096 (usb_mod_LDFLAGS): New variable.
28097 (usbtest_mod_SOURCES): New variable.
28098 (usbtest_mod_CFLAGS): New variable.
28099 (usbtest_mod_LDFLAGS): New variable.
28100 (ohci_mod_SOURCES): New variable.
28101 (ohci_mod_CFLAGS): New variable.
28102 (ohci_mod_LDFLAGS): New variable.
28103 (usbms_mod_SOURCES): New variable.
28104 (usbms_mod_CFLAGS): New variable.
28105 (usbms_mod_LDFLAGS): New variable.
28106 (usb_keyboard_mod_SOURCES): New variable.
28107 (usb_keyboard_mod_CFLAGS): New variable.
28108 (usb_keyboard_mod_LDFLAGS): New variable.
28109 * include/grub/smbus.h: New file.
28110 * include/grub/cs5536.h: New file.
28112 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28114 * util/grub.d/00_header.in: Add safety check to make sure that
28115 ${locale_dir} exists before trying to probe it.
28117 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28119 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28120 per the GNU Coding Standards; this is now too obscure to be worth
28123 (chainloader): Remove cross-reference to `SCO UnixWare'.
28125 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28127 * docs/grub.texi (Chain-loading): New section.
28128 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28129 adjusted for GRUB 2.
28130 (SCO UnixWare): Likewise.
28132 (chainloader): Add reference to `Block list syntax'.
28133 (drivemap): New section.
28134 (parttool): New section.
28136 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28138 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28140 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28141 (Installing GRUB using grub-install): Remove reference to the grub
28142 shell; mention `grub-mkimage' and `grub-setup' instead.
28143 (Invoking grub-install): Likewise.
28144 (Interface): Add reference to `Menu entry editor'.
28145 (serial): Remove `--device' option.
28147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28149 * docs/grub.texi (Configuration): New section, documenting
28150 configuration file generation using grub-mkconfig. I've left a slot
28151 for documenting the full shell scripting format but have not yet
28152 started on writing that up.
28153 (Invoking grub-mkconfig): New section.
28155 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28157 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28158 (GNU GRUB manual): Likewise.
28159 (General commands): Update description of `terminfo' for GRUB 2.
28161 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28163 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28164 (GRUB_MOD_INIT): Fix capitalisation.
28165 * docs/grub.texi (Command-line and menu entry commands): Document
28166 gettext and gptsync commands.
28168 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28170 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28171 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28173 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28175 Add btrfs probing support, currently only in the single-device case.
28177 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28179 (grub_guess_root_device): Call find_root_device_from_mountinfo
28180 before looking in /dev.
28182 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28185 GRUB_DISK_SIZE_UNKNOWN.
28186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28188 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28190 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28191 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28192 corrupted or not synced properly.
28194 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28196 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28197 Reported by: Seth Goldberg.
28199 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28201 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28203 Reported by: Seth Goldberg.
28205 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28207 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28208 Reported by: Seth Goldberg.
28210 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28212 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28213 64-bit address as signed on MIPS.
28215 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28217 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28218 to the empty string.
28220 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28222 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28224 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28225 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28226 * kern/misc.c (__enable_execute_stack): Disable on
28229 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28231 Make grub-probe work with symbolic links under /dev/mapper as well
28232 as with real block devices. The Linux world seems to be (at best)
28233 in transition here, and GRUB shouldn't get caught in the middle.
28235 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28238 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28240 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28241 input files (in which case exit zero).
28243 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28245 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28246 return NULL for various reasons even if it has a maximum-length
28247 buffer: for example, there might be a symlink loop, or the path
28248 might exceed PATH_MAX. If this happens, return NULL.
28250 2010-05-27 Robert Millan <rmh@gnu.org>
28252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28253 partmap module to handle cross-partmap setups.
28254 Reported by Orestes Mas. Gràcies!
28256 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28258 * util/grub-mkrescue.in: Initialise override_dir rather than
28259 assuming that it's unset or empty in the environment.
28261 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28263 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28264 variable index into p_index to suppress a warning with -Wshadow.
28266 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28268 * INSTALL: Added flex >= 2.5.35 requirement.
28270 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28272 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28274 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28278 * commands/i386/cmostest.c: New file.
28279 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28280 (cmostest_mod_SOURCES): New variable.
28281 (cmostest_mod_CFLAGS): Likewise.
28282 (cmostest_mod_LDFLAGS): Likewise.
28283 * conf/i386-pc.rmk: Likewise.
28284 * docs/grub.texi (Vendor power-on keys): New section.
28285 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28286 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28287 and GRUB_BUTTON_CMOS_ADDRESS.
28288 * util/grub.d/00_header.in: Handle powering-on by separate button.
28290 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28292 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28293 Removed drawing_scrollbar argument. All users updated
28295 Reported by Jo Shields
28297 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28299 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28300 buffer since gfxterm handles double repaint.
28302 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28304 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28305 * term/gfxterm.c (real_scroll): Likewise.
28307 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28309 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28310 before calling BIOS.
28312 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28314 * include/grub/i18n.h: Always enable grub_gettext.
28316 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28318 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28319 partition naming style.
28321 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28323 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28324 not the first option.
28326 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28328 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28330 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28332 * util/misc.c: Move inclusion of <limits.h> to ...
28333 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28335 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28337 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28338 Fix merge error in NetBSD code.
28339 (find_partition_start) [__NetBSD__]: Likewise.
28341 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28343 Fix grub-mkrescue usage unit testing.
28345 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28347 2010-05-18 Christian Franke <franke@computer.org>
28349 * util/grub.d/10_windows.in: Use path names instead of
28350 drive letters to prevent warning from Cygwin 1.7.
28351 Add drivemap command to menuentry if needed.
28353 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28355 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28356 gnumach and gnumach.gz.
28358 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28360 * include/grub/i18n.h (gettext): Inline instead of using #define.
28361 (grub_gettext): Likewise.
28364 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28366 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28367 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28368 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28369 (main): Add a slash after pkglibdirroot.
28371 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28373 * util/grub-install.in: Add missing "in" keyword.
28375 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28377 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28378 Reported by: Seth Goldberg.
28380 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28382 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28384 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28386 * configure.ac: Check for Linux device-mapper support.
28388 * util/hostdisk.c (device_is_mapped): New function.
28389 (find_partition_start): New function, partly broken out from
28390 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28391 device-mapper support added.
28392 (linux_find_partition): Use find_partition_start.
28393 (convert_system_partition_to_system_disk): Add `st' argument.
28394 Support Linux /dev/mapper/* devices if device-mapper support is
28395 available; only DM-RAID devices are understood at present.
28396 (find_system_device): Add `st' argument. Pass it to
28397 convert_system_partition_to_system_disk.
28398 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28399 find_system_device and convert_system_partition_to_system_disk. Use
28400 find_partition_start.
28402 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28403 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28404 * util/deviceiter.c [__linux__]: Define MINOR.
28405 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28406 * util/mkdevicemap.c (grub_putchar): New function.
28407 (grub_getkey): New function.
28408 (grub_refresh): New function.
28409 (main): Set debug=all if -v -v is used.
28411 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28413 Fix build with non-GNU libcs.
28415 * util/misc.c (canonicalize_file_name): Move to ...
28416 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28417 grub_make_system_path_relative_to_its_root.
28419 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28421 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28422 we handle finding grub-mkimage. Default to finding grub-mkimage in
28423 ${bindir} with program_transform_name applied, and provide a
28424 --grub-mkimage option to override this.
28426 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28428 Remove grub-mkisofs.
28430 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28431 (grub_mkisofs_SOURCES): Removed.
28432 (grub_mkisofs_CFLAGS): Removed.
28433 * util/mkisofs/defaults.h: Removed.
28434 * util/mkisofs/eltorito.c: Likewise.
28435 * util/mkisofs/exclude.h: Likewise.
28436 * util/mkisofs/hash.c: Likewise.
28437 * util/mkisofs/include/: Likewise.
28438 * util/mkisofs/include/fctldefs.h: Likewise.
28439 * util/mkisofs/include/mconfig.h: Likewise.
28440 * util/mkisofs/include/prototyp.h: Likewise.
28441 * util/mkisofs/include/statdefs.h: Likewise.
28442 * util/mkisofs/iso9660.h: Likewise.
28443 * util/mkisofs/joliet.c: Likewise.
28444 * util/mkisofs/match.c: Likewise.
28445 * util/mkisofs/match.h: Likewise.
28446 * util/mkisofs/mkisofs.c: Likewise.
28447 * util/mkisofs/mkisofs.h: Likewise.
28448 * util/mkisofs/msdos_partition.h: Likewise.
28449 * util/mkisofs/multi.c: Likewise.
28450 * util/mkisofs/name.c: Likewise.
28451 * util/mkisofs/rock.c: Likewise.
28452 * util/mkisofs/tree.c: Likewise.
28453 * util/mkisofs/write.c: Likewise.
28455 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28457 Unify grub-mkimage accross platforms.
28459 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28460 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28461 (grub_mkelfimage_SOURCES): Removed.
28462 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28463 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28464 (bin_UTILITIES): Add grub-mkimage.
28465 (grub_mkimage_SOURCES): New variable.
28466 (kernel_img_HEADERS): Remove machine/kernel.h.
28467 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28468 (pkglib_PROGRAMS): Add kernel.img.
28469 (kernel_img_HEADERS): Add machine/kernel.h.
28470 (kernel_img_FORMAT): Removed.
28471 (bin_UTILITIES): Remove grub-mkimage.
28472 (grub_mkimage_SOURCES): Removed.
28473 (grub_mkimage_CFLAGS): Likewise.
28474 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28475 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28476 (pkglib_PROGRAMS): Add kernel.img.
28477 (bin_UTILITIES): Remove grub-mkimage.
28478 (grub_mkimage_SOURCES): Removed.
28479 (grub_mkimage_CFLAGS): Likewise.
28480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28481 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28482 (pkglib_PROGRAMS): Add kernel.img.
28483 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28484 (pkglib_PROGRAMS): Add kernel.img.
28485 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28486 (grub_mkimage_SOURCES): Removed.
28487 (grub_mkimage_CFLAGS): Likewise.
28488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28489 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28490 (pkglib_PROGRAMS): Add kernel.img.
28491 (bin_UTILITIES): Remove grub-mkimage.
28492 (grub_mkimage_SOURCES): Removed.
28493 (grub_mkimage_CFLAGS): Likewise.
28494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28495 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28496 (grub_mkimage_SOURCES): Removed.
28497 (grub_mkimage_CFLAGS): Likewise.
28498 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28499 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28500 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28501 (grub_pe32_optional_header): ... this.
28502 (grub_pe64_optional_header): ... and this. All users updated.
28503 (GRUB_PE32_PE32_MAGIC): Split into ..
28504 (GRUB_PE32_PE32_MAGIC): .. this.
28505 (GRUB_PE32_PE64_MAGIC): .. and this.
28506 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28507 * include/grub/elf.h (PT_GNU_STACK): New definition.
28508 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28509 * include/grub/i386/efi/kernel.h: Likewise.
28510 * include/grub/i386/kernel.h: Likewise.
28511 * include/grub/i386/pc/kernel.h: Likewise.
28512 * include/grub/i386/qemu/boot.h: Likewise.
28513 * include/grub/mips/kernel.h: Likewise.
28514 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28515 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28516 * include/grub/powerpc/kernel.h: Likewise.
28517 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28518 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28519 * include/grub/sparc64/kernel.h: Likewise.
28520 * include/grub/x86_64/efi/kernel.h: Likewise.
28521 * include/grub/x86_64/kernel.h: Likewise.
28522 * include/grub/offsets.h: New file.
28523 * include/grub/kernel.h (grub_module_info): Split into ...
28524 (grub_module_info32): ... this.
28525 (grub_module_info64): ... and this.
28526 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28527 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28528 (grub_boot_blocklist): Moved from here ...
28529 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28530 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28531 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28532 * include/grub/types.h (grub_target_to_host16): Removed.
28533 (grub_target_to_host32): Likewise.
28534 (grub_target_to_host64): Likewise.
28535 (grub_host_to_target16): Likewise.
28536 (grub_host_to_target32): Likewise.
28537 (grub_host_to_target64): Likewise.
28538 (grub_host_to_target_addr): Likewise.
28540 Support grub-mkrescue for efi, coreboot and qemu.
28542 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28543 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28544 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28545 * util/grub-mkrawimage.c: Moved from here ...
28546 * util/grub-mkimage.c: ... here. All users updated.
28547 (ALIGN_ADDR): Use image_target.
28548 (TARGET_NO_FIELD): New const.
28549 (image_target_desc): New type.
28550 (image_targets): New array.
28551 (grub_target_to_host64): Use image_target.
28552 (grub_target_to_host32): Likewise.
28553 (grub_target_to_host16): Likewise.
28554 (grub_host_to_target64): Likewise.
28555 (grub_host_to_target32): Likewise.
28556 (grub_host_to_target16): Likewise.
28557 (grub_host_to_target_addr): Likewise.
28558 (generate_image): Handle multiimage.
28559 (main): Require -O parameter. All users updated.
28560 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28561 util/efi/grub-mkimage.c
28562 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28563 New option --rom-directory.
28565 * util/i386/efi/grub-mkimage.c: Removed.
28566 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28567 (grub_target_to_host32): Likewise.
28568 (grub_target_to_host64): Likewise.
28569 (grub_host_to_target16): Likewise.
28570 (grub_host_to_target32): Likewise.
28571 (grub_host_to_target64): Likewise.
28572 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28573 (grub_target_to_host32): Likewise.
28574 (grub_target_to_host64): Likewise.
28575 (grub_host_to_target16): Likewise.
28576 (grub_host_to_target32): Likewise.
28577 (grub_host_to_target64): Likewise.
28579 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28581 Source tree is reorganized for emu build.
28583 * include/grub/util/console.h: Move from here...
28584 * include/grub/emu/console.h: ...to here.
28585 * include/grub/util/getroot.h: Move from here...
28586 * include/grub/emu/getroot.h: ...to here.
28587 * include/grub/util/hostdisk.h: Move from here...
28588 * include/grub/emu/hostdisk.h: ...to here.
28589 * util/console.c: Move from here...
28590 * kern/emu/console.c: ...to here.
28591 * util/getroot.c: Move from here...
28592 * kern/emu/getroot.c: ...to here.
28593 * util/grub-emu.c: Move from here...
28594 * kern/emu/main.c: ...to here.
28595 * util/hostdisk.c: Move from here...
28596 * kern/emu/hostdisk.c: ...to here.
28597 * util/hostfs.c: Move from here...
28598 * kern/emu/hostfs.c: ...to here.
28599 * util/mm.c: Move from here...
28600 * kern/emu/mm.c: ...to here.
28601 * util/pci.c: Move from here...
28602 * bus/emu/pci.c: ...to here.
28603 * util/sdl.c: Move from here...
28604 * video/emu/sdl.c: ...to here.
28605 * util/time.c: Move from here...
28606 * kern/emu/time.c: ...to here.
28607 * util/usb.c: Move from here...
28608 * bus/usb/emu/usb.c: ...to here.
28610 * include/grub/emu/misc.h: New header for grub-emu functions.
28611 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28613 * conf/any-emu.rmk: Rule updates for above renames.
28614 * conf/common.rmk: Likewise.
28615 * conf/i386-pc.rmk: Likewise.
28616 * conf/i386-qemu.rmk: Likewise.
28617 * conf/mips.rmk: Likewise.
28618 * conf/sparc64-ieee1275.rmk: Likewise.
28619 * conf/x86-efi.rmk: Likewise.
28621 * disk/lvm.h: #include updates for above renames.
28622 * util/grub-mkrelpath.c: Likewise.
28623 * util/grub-probe.c: Likewise.
28624 * util/i386/pc/grub-setup.c: Likewise.
28625 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28626 * kern/emu/console.c: Likewise.
28627 * kern/emu/getroot.c: Likewise.
28628 * kern/emu/hostdisk.c: Likewise.
28629 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28631 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28632 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28633 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28634 * util/misc.c: Remove grub-emu functions.
28636 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28639 Reported by: Thorsten Grützmacher.
28641 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28643 (circprog_set_property): Register and unregister timeout hook.
28644 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28645 (label_destroy): Free template. and unregister hook.
28646 (label_set_state): New function.
28647 (label_set_property): Handle templates and hooks.
28648 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28650 (progress_bar_set_property): Register and unregister timeout hook.
28651 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28652 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28653 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28654 (update_timeout_visit): Removed.
28655 (update_timeouts): New function.
28656 (redraw_timeouts): Likewise.
28657 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28658 (grub_gfxmenu_clear_timeout): Likewise.
28659 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28660 (grub_gfxmenu_timeout_notify): Likewise.
28661 (grub_gfxmenu_timeout_notifications): New external variable.
28662 (grub_gfxmenu_timeout_register): New function.
28663 (grub_gfxmenu_timeout_unregister): Likewise.
28665 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28667 Transform (broken) vga terminal into (working) vga video driver.
28669 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28670 video/i386/pc/vga.c.
28671 * include/grub/video.h (grub_video_driver_id):
28672 Add GRUB_VIDEO_DRIVER_VGA.
28673 * term/i386/pc/vga.c: Renamed to ...
28674 * video/i386/pc/vga.c: ...this
28675 (DEBUG_VGA): Removed.
28676 (CHAR_WIDTH): Likewise.
28677 (CHAR_HEIGHT): Likewise.
28678 (TEXT_WIDTH): Likewise.
28679 (TEXT_HEIGHT): Likewise.
28680 (DEFAULT_FG_COLOR): Likewise.
28681 (DEFAULT_BG_COLOR): Likewise.
28682 (colored_char): Likewise.
28685 (cursor_state): Likewise.
28686 (fg_color): Likewise.
28687 (bg_color): Likewise.
28688 (text_buf): Likewise.
28691 (framebuffer): New variable.
28692 (set_read_map): Disabled.
28693 (setup): New variable.
28694 (is_target): Likewise.
28695 (grub_vga_mod_init): Likewise.
28696 (grub_vga_mod_fini): Likewise.
28697 (check_vga_mem): Likewise.
28698 (write_char): Likewise.
28699 (write_cursor): Likewise.
28700 (scroll_up): Likewise.
28701 (grub_vga_putchar): Likewise.
28702 (grub_vga_getcharwidth): Likewise.
28703 (grub_vga_getwh): Likewise.
28704 (grub_vga_getxy): Likewise.
28705 (grub_vga_gotoxy): Likewise.
28706 (grub_vga_cls): Likewise.
28707 (grub_vga_setcolorstate): Likewise.
28708 (grub_vga_setcursor): Likewise.
28709 (grub_video_vga_init): New function.
28710 (grub_video_vga_setup): Likewise.
28711 (grub_video_vga_fini): Likewise.
28712 (update_target): Likewise.
28713 (grub_video_vga_blit_bitmap): Likewise.
28714 (grub_video_vga_blit_render_target): Likewise.
28715 (grub_video_vga_set_active_render_target): Likewise.
28716 (grub_video_vga_get_active_render_target): Likewise.
28717 (grub_video_vga_swap_buffers): Likewise.
28718 (grub_video_vga_set_palette): Likewise.
28719 (grub_video_vga_get_info_and_fini): Likewise.
28720 (grub_vga_term): Removed.
28721 (grub_video_vga_adapter): New variable.
28722 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28723 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28725 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28727 * video/readers/jpeg.c: Indented.
28729 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28731 Various jpeg cleanups.
28733 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28734 (grub_jpeg_decode_quan_table): Use sizeof.
28735 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28737 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28739 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28740 tables. Ignore non-last ac bit.
28741 (grub_jpeg_decode_quan_table): Likewise.
28743 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28746 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28747 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28748 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28749 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28750 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28752 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28754 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28757 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28761 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28763 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28766 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28768 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28771 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28773 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28776 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28778 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28780 2010-05-01 Christian Franke <franke@computer.org>
28782 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28783 Remove broken Cygwin path conversion.
28784 * util/misc.c: [__CYGWIN__] Add include and define.
28785 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28787 (make_system_path_relative_to_its_root): Simplify loop, replace early
28789 [__CYGWIN__] Add conversion to win32 path.
28790 Include "/" case in trailing slash removal.
28792 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28794 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28795 Reported by: Seth Goldberg
28797 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28799 * commands/help.c (grub_cmd_help): Fix a typo.
28800 Reported by: Seth Goldberg
28802 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28804 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28806 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28807 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28808 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28809 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28810 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28811 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28812 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28813 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28814 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28815 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28816 * normal/context.c (GRUB_MOD_INIT): Likewise.
28817 * normal/main.c (GRUB_MOD_INIT): Likewise.
28818 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28819 * term/serial.c (GRUB_MOD_INIT): Likewise.
28820 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28822 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28824 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28829 * commands/iorw.c: New file.
28830 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28831 (iorw_mod_SOURCES): New variable.
28832 (iorw_mod_CFLAGS): Likewise.
28833 (iorw_mod_LDFLAGS): Likewise.
28835 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28839 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28840 * normal/main.c (hotkey_aliases): New variable.
28841 (grub_normal_add_menu_entry): Parse "--hotkey".
28842 * normal/menu_text.c (run_menu): Handle hotkeys.
28844 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28846 * kern/i386/coreboot/init.c (grub_machine_init): Call
28847 grub_machine_mmap_init on qemu.
28849 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28851 * boot/i386/qemu/boot.S: Add a missing .code16.
28853 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28855 Use LBIO on coreboot.
28857 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28858 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28859 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28861 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28862 grub_machine_mmap_init on coreboot.
28863 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28864 GRUB_LINUXBIOS_MEMBER_LINK.
28865 (grub_machine_mmap_iterate): Fix declaration.
28866 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28868 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28870 Split coreboot and multiboot ports.
28872 * conf/i386-multiboot.rmk: New file.
28873 * configure.ac: Add multiboot port.
28874 * include/grub/i386/multiboot/boot.h: New file.
28875 * include/grub/i386/multiboot/console.h: Likewise.
28876 * include/grub/i386/multiboot/init.h: Likewise.
28877 * include/grub/i386/multiboot/kernel.h: Likewise.
28878 * include/grub/i386/multiboot/loader.h: Likewise.
28879 * include/grub/i386/multiboot/memory.h: Likewise.
28880 * include/grub/i386/multiboot/serial.h: Likewise.
28881 * include/grub/i386/multiboot/time.h: Likewise.
28882 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28883 * loader/multiboot.c: Likewise.
28884 * loader/multiboot_mbi2.c: Likewise.
28885 * util/grub-mkrescue.in: Generate multiboot rescue.
28887 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28889 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28891 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28893 Merge handling of input and output terminals. Fix a hang.
28895 * commands/terminal.c (abstract_terminal): New struct.
28896 (handle_command): New function. Based on grub_cmd_terminal_input.
28897 (grub_cmd_terminal_input): Use handle_command.
28898 (grub_cmd_terminal_output): Use handle_command.
28900 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28902 Fix comment handling.
28904 * tests/grub_script_comments.in: New testcase.
28905 * conf/tests.rmk: Rules for new testcase.
28906 * script/yylex.l: Updated flex rules.
28908 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28910 * docs/grub.texi (play): Document that zero pitches produce rests.
28911 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28914 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28916 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28919 2010-04-26 Christian Franke <franke@computer.org>
28921 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28922 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28923 (grub_get_prefix): Remove function.
28924 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28925 make_system_path_relative_to_its_root ().
28926 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28928 2010-04-24 Christian Franke <franke@computer.org>
28930 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28931 (kernel_img_LDFLAGS): Remove -static-libgcc.
28933 2010-04-24 Christian Franke <franke@computer.org>
28935 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28936 and CHECK_END_SYMBOL if grub-emu is built.
28937 Unset TARGET_OBJ2ELF if grub-emu is built
28938 without module support.
28940 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28944 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28945 (grub_fstest_SOURCES): Likewise.
28946 (pkglib_MODULES): Add nilfs2.mod.
28947 (nilfs2_mod_SOURCES): New variable.
28948 (nilfs2_mod_CFLAGS): Likewise.
28949 (nilfs2_mod_LDFLAGS): Likewise.
28950 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28951 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28952 * fs/nilfs2.c: New file.
28954 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28956 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28959 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28961 Add grub-mkconfig support for NetBSD.
28963 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28964 * util/grub-mkconfig.in: export new NetBSD specific variables.
28965 * po/POTFILES-shell: added 10_netbsd.in.
28966 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28968 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28970 Fix emu build with grub-emu-pci and grub-emu-modules.
28972 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28974 * include/grub/libpciaccess.h: New file.
28975 * conf/any-emu.rmk: Update kernel headers for emu build.
28977 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28979 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28981 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28983 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28985 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28987 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28988 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28989 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28990 util/ieee1275/ofpath.c.
28991 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28992 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28993 * include/grub/sparc64/ieee1275/boot.h
28994 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28995 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28996 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28997 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28999 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29000 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29001 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29004 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29006 * util/grub-mkconfig.in: Corrected two == equality tests.
29007 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29008 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29009 expect a number appended to it.
29010 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29011 expects a number appended to it.
29013 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29015 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29017 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29019 * util/hostdisk.c (make_device_name): Change to new partition naming.
29021 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29023 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29025 2010-04-17 Christian Franke <franke@computer.org>
29027 * Makefile.in: Add missing localedir setting.
29029 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29031 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29032 mistake in r2156. Noticed by Anthony Fok.
29034 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29036 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29038 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29040 Fix a spurious, uninitialized variable warning.
29042 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29043 Initialize variable, shdr.
29044 (grub_freebsd_load_elfmodule): Likewise.
29045 (grub_freebsd_load_elf_meta): Likewise.
29047 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29049 Fix for escaped dollar in double quoted strings.
29051 * script/yylex.l: Updated flex rules.
29052 * conf/tests.rmk: Rule for new testcase.
29053 * tests/grub_script_dollar.in: New testcase.
29055 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29056 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29058 Enclose all translated strings in grub.cfg in single quotes, and
29059 escape them appropriately (Ubuntu bug #552921).
29061 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29062 * util/grub.d/10_hurd.in: Use it.
29063 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29064 * util/grub.d/10_linux.in (linux_entry): Likewise.
29066 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29068 Fix cygwin compilation.
29070 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29071 * include/grub/misc.h (__register_frame_info)
29072 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29073 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29074 * kern/misc.c (__register_frame_info)
29075 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29076 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29078 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29080 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29082 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29084 Unify libgcc processing.
29086 * Makefile.in (kernel_img_LDFLAGS): New variable.
29087 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29088 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29090 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29091 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29092 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29093 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29094 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29095 overwriting. Remove -lgcc and -static-libgcc
29096 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29097 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29098 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29099 (kernel_img_LDFLAGS): Append instead of overwriting.
29100 Remove -lgcc and -static-libgcc
29101 * conf/sparc64-ieee1275.rmk: Likewise.
29102 * include/grub/powerpc/libgcc.h: Move to ...
29103 * include/grub/libgcc.h: .. this.
29104 * include/grub/libgcc.h: Don't export most of the function on x86.
29105 (__bswapsi2): New export.
29106 (__bswapdi2): Likewise.
29107 * include/grub/mips/libgcc.h: Removed.
29108 * include/grub/sparc64/libgcc.h: Likewise.
29110 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29112 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29113 disk_info_msg (conflicts with gettexting into languages with cases).
29115 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29117 Add grub-probe support for NetBSD.
29119 * util/getroot.c (find_root_device): Convert block device to
29120 character device on NetBSD.
29121 * util/probe.c (probe): Require character device on NetBSD.
29122 * util/hostdisk.c: NetBSD specific headers.
29123 (configure_device_driver): new function to tune device driver
29124 parameters (currently only for NetBSD floppy driver).
29125 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29126 via disklabel ioctl).
29127 (open_device): call configure_device_driver on NetBSD.
29128 (convert_system_partition_to_system_disk): NetBSD specific code.
29129 (device_is_wholedisk): Likewise.
29130 (grub_util_biosdisk_get_grub_dev): Likewise.
29131 (make_device_name): Fixed a typo in bsd_part_str.
29132 * configure.ac: check for opendisk() and getrawpartition() on
29133 NetBSD and set LIBUTIL.
29134 * Makefile.in: add LIBUTIL to LIBS.
29136 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29140 * util/grub-script-check.c: Better help message.
29142 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29146 * configure.ac: Flex version check.
29147 * conf/common.rmk: Add -Wno-error to sh.mod.
29148 * script/yylex.l: Remove all #pragma.
29150 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29152 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29154 Reported by: Seth Goldberg.
29156 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29158 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29159 Rename "module" to "module2".
29160 Reported by: Seth Goldberg.
29162 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29164 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29166 Reported by: Seth Goldberg.
29168 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29170 * lib/posix_wrap/locale.h: Add missing file.
29171 Reported by: Seth Goldberg.
29173 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29175 grub-emu module load support.
29177 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29178 NO_DYNAMIC_MODULES switched to this.
29179 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29180 (CFLAGS): Likewise.
29181 * conf/any-emu.rmk: Generate symlist.
29182 (kernel_img_HEADERS): Add util/datetime.h.
29183 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29184 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29185 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29186 kern/$(target_cpu)/cache.S.
29187 * configure.ac (grub-emu-modules): New option.
29188 * genmk.rb: Handle multiple source lists.
29189 * include/grub/sdl.h: New file.
29190 * include/grub/libusb.h: Likewise.
29191 * util/grub-emu.c (main): Hanle (host) root.
29192 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29193 GRUB_ERR_UNKNOWN_DEVICE.
29194 * util/misc.c: Move mm functions to ...
29195 * util/mm.c: ... here. All users updated.
29197 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29199 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29200 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29202 (maintainer-clean): Remove libgcrypt-grub.
29204 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29206 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29208 2010-04-09 EFI Coder <eficoder@hotmail.com>
29210 * normal/menu_text.c (print_message): Clean up the message and show
29211 the Fn information when on EFI
29212 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29214 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29216 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29218 * normal/crypto.c (read_crypto_list): Likewise.
29219 * normal/dyncmd.c (read_command_list): Likewise.
29220 * normal/term.c (read_terminal_list): Likewise.
29221 * normal/main.c (read_lists): Use explicit prefix.
29222 (read_lists_hook): Use read_lists.
29223 (grub_normal_execute): Likewise.
29225 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29227 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29228 Reported by: Thomas Schmitt.
29229 Add -no-emul-boot to grub-mkisofs parameters.
29231 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29233 * font/font.c: Indented.
29235 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29237 Elif support to GRUB script (by Deepak Vankadaru).
29239 * tests/grub_script_if.in: New testcase.
29240 * conf/tests.rmk: Rule for new testcase.
29241 * script/parser.y: Grammar rules for elif.
29243 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29245 While and until loops support to GRUB script.
29247 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29248 (grub_script_create_cmdwhile): New function prototype.
29249 (grub_script_execute_cmdwhile): New function prototype.
29250 * script/execute.c (grub_script_execute_cmdwhile): New function.
29251 * script/parser.y (command): New commands.
29252 (whilecmd): New grammar rule.
29253 (untilcmd): New grammar rule.
29254 * script/script.c (grub_script_create_cmdwhile): New function.
29255 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29258 * tests/grub_script_while1.in: New testcase.
29259 * conf/tests.rmk: Rule for new testcase.
29261 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29263 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29266 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29268 GRUB_BACKGROUND support.
29270 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29271 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29273 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29275 Load fonts and modules for gfxmenu in grub-mkconfig.
29276 Idea by: Mario Vazquez
29278 * util/grub.d/00_header.in: Load pf2 and image modules.
29280 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29282 grub-mkconfig multiple terminal support.
29284 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29285 * util/grub.d/00_header.in: Likewise.
29287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29289 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29290 we use cd $(srcdir).
29292 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29294 * util/grub.d/10_linux.in: Only use the first word of
29295 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29296 spaces in GRUB_DISTRIBUTOR.
29297 * util/grub.d/10_kfreebsd.in: Likewise.
29298 * util/grub.d/10_hurd.in: Likewise.
29300 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29302 Fix unit testing framework for Qemu 0.12.
29304 * tests/util/grub-shell.in: Remove -serial stdio option.
29306 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29308 POSIX header file wrappers.
29310 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29312 * lib/posix_wrap/ctype.h: Likewise.
29313 * lib/posix_wrap/errno.h: Likewise.
29314 * lib/posix_wrap/langinfo.h: Likewise.
29315 * lib/posix_wrap/limits.h: Likewise.
29316 * lib/posix_wrap/localcharset.h: Likewise.
29317 * lib/posix_wrap/stdint.h: Likewise.
29318 * lib/posix_wrap/stdio.h: Likewise.
29319 * lib/posix_wrap/stdlib.h: Likewise.
29320 * lib/posix_wrap/string.h: Likewise.
29321 * lib/posix_wrap/sys/types.h: Likewise.
29322 * lib/posix_wrap/unistd.h: Likewise.
29323 * lib/posix_wrap/wchar.h: Likewise.
29324 * lib/posix_wrap/wctype.h: Likewise.
29325 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29326 (grub_script.yy.h): Likewise.
29327 * script/yylex.l: Remove POSIX emulation #defines.
29328 * Makefile.in (POSIX_CFLAGS): New variable.
29329 (GNULIB_UTIL_CFLAGS): Likewise.
29333 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29334 (regexp_mod_SOURCES): New variable.
29335 (regexp_mod_CFLAGS): Likewise.
29336 (regexp_mod_LDFLAGS): Likewise.
29337 * commands/regexp.c: New file.
29338 * gnulib/regcomp.c: New file. Imported from gnulib.
29339 * gnulib/regex.c: Likewise.
29340 * gnulib/regex_internal.c: Likewise.
29341 * gnulib/regex_internal.h: Likewise.
29342 * gnulib/regexec.c: Likewise.
29343 * gnulib/regex.h: Likewise.
29345 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29347 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29348 unsupported video mode types.
29350 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29352 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29354 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29356 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29357 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29359 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29361 Remove unused grub_vga_get_font.
29363 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29364 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29366 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29368 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29369 * include/grub/misc.h: Likewise.
29371 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29373 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29374 for which failure is fatal.
29376 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29378 * util/grub-install.in: Use mkdir -p to create grub directory.
29379 * util/i386/efi/grub-install.in: Likewise.
29380 * util/ieee1275/grub-install.in: Likewise.
29382 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29384 * Makefile.in (LEX): new variable.
29386 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29388 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29389 `=' and added double quotes on operands of this equality test.
29391 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29393 * Makefile.in (uninstall): Remove a leftover debug echo.
29394 Reported by: Grégoire Sutre
29396 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29398 MIPS multiboot2 support.
29400 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29401 (multiboot2_mod_SOURCES): New variable.
29402 (multiboot2_mod_CFLAGS): Likewise.
29403 (multiboot2_mod_LDFLAGS): Likewise.
29404 (multiboot2_mod_ASFLAGS): Likewise.
29405 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29407 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29408 (MULTIBOOT_MBI_REGISTER): Likewise.
29409 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29410 (MULTIBOOT_ELF32_MACHINE): Likewise.
29411 (MULTIBOOT_ELF64_MACHINE): Likewise.
29412 * include/grub/mips/multiboot.h: New file.
29413 * include/grub/video.h (grub_video_driver_id): New type
29414 GRUB_VIDEO_DRIVER_SM712.
29415 (grub_video_get_info_and_fini): Export.
29416 (grub_video_get_palette): Likewise.
29417 (grub_video_get_driver_id): Likewise.
29418 * include/multiboot2.h: Resynced with spec.
29419 * loader/i386/multiboot.c: Moved from here ...
29420 * loader/multiboot.c: ... here. All users updated.
29421 (grub_multiboot_boot): Use platform-specific macros.
29422 * loader/i386/multiboot_elfxx.c: Moved from here ...
29423 * loader/multiboot_elfxx.c: ... here. All users updated.
29424 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29425 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29426 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29428 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29430 Import gnulib argp module.
29432 * gnulib/argp-ba.c: New file.
29433 * gnulib/argp-eexst.c: Likewise.
29434 * gnulib/argp-fmtstream.c: Likewise.
29435 * gnulib/argp-fmtstream.h: Likewise.
29436 * gnulib/argp-fs-xinl.c: Likewise.
29437 * gnulib/argp-help.c: Likewise.
29438 * gnulib/argp-namefrob.h: Likewise.
29439 * gnulib/argp-parse.c: Likewise.
29440 * gnulib/argp-pin.c: Likewise.
29441 * gnulib/argp-pv.c: Likewise.
29442 * gnulib/argp-pvh.c: Likewise.
29443 * gnulib/argp-version-etc.c: Likewise.
29444 * gnulib/argp-version-etc.h: Likewise.
29445 * gnulib/argp-xinl.c: Likewise.
29446 * gnulib/argp.h: Likewise.
29448 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29450 * kern/device.c (grub_device_iterate): Clear errors after failed
29453 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29455 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29456 returned by firmware.
29458 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29460 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29461 compilation on coreboot and qemu
29463 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29465 * include/multiboot2.h: Resync with spec.
29467 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29469 Multiboot2 tag support
29471 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29472 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29473 Remove loader/multiboot_loader.c.
29474 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29475 (grub_multiboot2_real_boot): Likewise.
29476 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29477 (grub_get_multiboot_mmap_count): New proto.
29478 (grub_fill_multiboot_mmap): Likewise.
29479 (grub_multiboot_set_video_mode): Likewise.
29480 (grub_multiboot_set_console): Likewise.
29481 (grub_multiboot_load): Likewise.
29482 (grub_multiboot_load_elf): Likewise.
29483 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29484 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29485 * include/multiboot.h: Resynced with specification.
29486 * include/multiboot2.h: Resynced with specification.
29487 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29488 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29489 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29490 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29492 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29493 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29494 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29496 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29498 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29499 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29501 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29502 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29503 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29505 * loader/i386/multiboot_mbi2.c: New file.
29507 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29509 Resync with gnulib.
29511 * Makefile.in (GNULIB_CFLAGS): New variable.
29512 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29513 (grub_script_check_CFLAGS): New variable.
29514 * gnulib/alloca.h: Resync with gnulib.
29515 * gnulib/error.c: Likewise.
29516 * gnulib/error.h: Likewise.
29517 * gnulib/fnmatch.c: Likewise.
29518 * gnulib/fnmatch_loop.c: Likewise.
29519 * gnulib/getdelim.c: Likewise.
29520 * gnulib/getline.c: Likewise.
29521 * gnulib/getopt.c: Likewise.
29522 * gnulib/getopt1.c: Likewise.
29523 * gnulib/getopt_int.h: Likewise.
29524 * gnulib/gettext.h: Likewise.
29525 * gnulib/progname.c: Likewise.
29526 * gnulib/progname.h: Likewise.
29528 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29530 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29531 which is the case with --disabled-nls.
29533 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29534 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29535 * util/misc.c: Likewise.
29536 * util/mkisofs/mkisofs.c: Likewise.
29537 * util/mkisofs/mkisofs.h: Likewise.
29539 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29541 Simplify Apple CC support.
29543 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29544 Add 0 byte at the end not to have a symbol with empty target.
29545 * mmap/i386/pc/mmap_helper.S: Likewise.
29546 * genmk.rb: Ignore errors 2030 and 2050.
29547 * kern/i386/pc/startup.S: Use LOCAL when possible.
29549 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29551 Testcase and the fix for final semicolon on cmdline.
29553 * tests/grub_script_final_semicolon.in: New testcase.
29554 * conf/tests.rmk: Rules for the new testcase.
29555 * script/parser.y: Grammar fix.
29557 2010-03-26 BVK Chaitanya <bvk@localhost>
29559 Blank lines testcase for GRUB script.
29561 * tests/grub_script_blanklines.in: New testcase.
29562 * conf/tests.rmk: Rules for the new testcase.
29564 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29566 Don't use __FILE__.
29568 * genmk.rb: Add -DGRUB_FILE to all C targets.
29569 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29570 * include/grub/list.h: Likewise.
29571 * include/grub/misc.h: Likewise.
29572 * include/grub/mm.h: Likewise.
29573 * include/grub/test.h: Likewise.
29574 * kern/mm.c: Likewise.
29575 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29577 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29579 Sunpc partitions support.
29581 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29582 (grub_fstest_SOURCES): Likewise.
29583 (pkglib_MODULES): Add part_sunpc.mod.
29584 (part_sunpc_mod_SOURCES): New variable.
29585 (part_sunpc_mod_CFLAGS): Likewise.
29586 (part_sunpc_mod_LDFLAGS): Likewise.
29587 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29588 * partmap/sunpc.c: New file.
29590 2010-03-26 BVK Chaitanya <bvk@localhost>
29592 For loop support to GRUB script.
29594 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29595 (grub_script_create_cmdfor): New function prototype.
29596 (grub_script_execute_cmdfor): New function prototype.
29597 * script/execute.c (grub_script_execute_cmdfor): New function.
29598 * script/parser.y (command): New for command.
29599 (forcmd): New grammar rule.
29600 * script/script.c (grub_script_create_cmdfor): New function.
29601 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29603 * tests/grub_script_for1.in: New testcase.
29604 * conf/tests.rmk: Rules for new testcase.
29606 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29610 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29611 'partition' is NULL, grub_partition_get_start already does that.
29612 * commands/loadenv.c (check_blocklists): Likewise.
29613 (write_blocklists): Likewise.
29614 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29615 (grub_fstest_SOURCES): Likewise.
29616 (pkglib_MODULES): Add part_bsd.mod.
29617 (part_bsd_mod_SOURCES): New variable.
29618 (part_bsd_mod_CFLAGS): Likewise.
29619 (part_bsd_mod_LDFLAGS): Likewise.
29620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29621 (grub_emu_SOURCES): Likewise.
29622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29623 * include/grub/bsdlabel.h: New file.
29624 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29626 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29627 (grub_partition_map_list): New variable.
29628 (grub_partition_map_register): Inline.
29629 (grub_partition_map_unregister): Likewise.
29630 (FOR_PARTITION_MAPS): New macro.
29631 (grub_partition_map_iterate): Removed.
29632 (grub_partition_get_start): Handle nested partitions.
29633 * include/grub/msdos_partition.h: Remove bsd-related entries.
29634 (grub_pc_partition): Remove.
29635 * kern/disk.c (grub_disk_close): Free partition data.
29636 (grub_disk_adjust_range): Handle nested partitions.
29637 * kern/partition.c (grub_partition_map_probe): New function.
29638 (grub_partition_probe): Parse name to number, handle subpartitions.
29639 (get_partmap): New function.
29640 (grub_partition_iterate): Handle subpartitions.
29641 (grub_partition_get_name): Likewise.
29642 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29643 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29644 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29645 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29647 (acorn_partition_map_probe): Remove.
29648 (acorn_partition_map_get_name): Likewise.
29649 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29651 Set 'index' to 0 since there can be only one partition entry per sector.
29652 (amiga_partition_map_probe): Remove.
29653 (amiga_partition_map_get_name): Likewise.
29654 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29656 Set 'offset' and 'index' to real positions of partitions.
29657 (apple_partition_map_probe): Remove.
29658 (apple_partition_map_get_name): Likewise.
29659 * partmap/bsdlabel.c: New file.
29660 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29662 Allocate 'data' so it can be correctly freed.
29663 Set 'index' to offset inside sector.
29664 (gpt_partition_map_probe): Remove.
29665 (gpt_partition_map_get_name): Likewise.
29666 * partmap/msdos.c (grub_partition_parse): Remove.
29667 (pc_partition_map_iterate): Don't force raw access.
29669 Make 'ext_offset' a local variable.
29670 (pc_partition_map_probe): Remove.
29671 (pc_partition_map_get_name): Remove.
29672 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29674 (sun_partition_map_probe): Remove.
29675 (sun_partition_map_get_name): Likewise.
29676 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29677 (grub_pcpart_type): Likewise.
29678 * util/hostdisk.c (open_device): Handle new numbering scheme.
29679 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29680 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29681 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29682 * util/grub-install.in: Insert all subpartition modules.
29683 * util/ieee1275/grub-install.in: Likewise.
29685 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29687 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29690 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29692 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29694 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29696 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29697 match where 'make install' puts them.
29698 * util/i386/efi/grub-install.in: Likewise.
29700 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29702 * .bzrignore: Add gentrigtables, grub-script-check,
29703 grub_script_check_init.c, grub_script_check_init.h, and
29706 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29708 * kern/parser.c: Indented.
29710 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29712 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29714 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29716 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29717 alpha_mask_size == 0 case.
29719 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29721 GRUB shell lexer and parser improvements.
29723 * conf/any-emu.rmk: Build rule updates.
29724 * conf/common.rmk: Likewise.
29725 * conf/i386-coreboot.rmk: Likewise.
29726 * conf/i386-efi.rmk: Likewise.
29727 * conf/i386-ieee1275.rmk: Likewise.
29728 * conf/i386-pc.rmk: Likewise.
29729 * conf/powerpc-ieee1275.rmk: Likewise.
29730 * conf/x86_64-efi.rmk: Likewise.
29732 * configure.ac: Configure check for flex.
29734 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29736 (grub_lexer_param): Struct member updates.
29737 (grub_parser_param): Likewise.
29738 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29739 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29740 (grub_script_lexer_init): Prototype update.
29741 (grub_script_lexer_record_start): Likewise.
29742 (grub_script_lexer_record_stop): Likewise.
29743 (grub_script_lexer_yywrap): New function prototype.
29744 (grub_script_lexer_fini): Likewise.
29745 (grub_script_execute_argument_to_string): Removed by...
29746 (grub_script_execute_argument_to_argv): ...better version.
29748 * script/execute.c (ROUND_UPTO): New macro.
29749 (grub_script_execute_cmdline): Out of memory fixes.
29750 (grub_script_execute_menuentry): Likewise.
29751 (grub_script_execute_argument_to_string): Removed. Update all
29753 (grub_script_execute_argument_to_argv): ...better version.
29754 * script/function.c (grub_script_function_create): Use
29755 grub_script_execute_argument_to_argv instead of
29756 grub_script_execute_argument_to_string.
29758 * script/lexer.c (check_varstate): Removed.
29759 (check_textstate): Removed.
29760 (grub_script_lexer_record_start): Likewise.
29761 (grub_script_lexer_record_stop): Likewise.
29762 (recordchar): Replaced with...
29763 (grub_script_lexer_record): ...new function.
29764 (nextchar): Removed.
29765 (grub_script_lexer_init): Rewritten.
29766 (grub_script_yylex): Rewritten.
29767 (append_newline): New function.
29768 (grub_script_lexer_yywrap): New function.
29769 (grub_script_lexer_fini): New function.
29770 (grub_script_yyerror): Sets error flag.
29772 * script/yylex.l: New file.
29773 (grub_lexer_yyfree): Wrapper for flex yyffre.
29774 (grub_lexer_yyalloc): Likewise.
29775 (grub_lexer_yyrealloc): Likewise.
29776 * script/parser.y: Refactored.
29778 * script/script.c (grub_script_arg_add): Out of memory fixes.
29779 (grub_script_add_arglist): Likewise.
29780 (grub_script_create_cmdline): Likewise.
29781 (grub_script_create_cmdmenu): Likewise.
29782 (grub_script_add_cmd): Likewise.
29783 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29784 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29787 * tests/grub_script_echo1.in: New testcase.
29788 * tests/grub_script_vars1.in: New testcase.
29789 * tests/grub_script_echo_keywords.in: New testcase.
29791 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29793 Remove some redundancy in build system.
29795 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29796 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29797 (TARGET_LDFLAGS): Add -nostdlib.
29798 (TARGET_IMG_LDFLAGS): Likewise.
29799 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29800 anything since mmap isn't available.
29801 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29803 (pkglib_MODULES): Remove reboot.mod.
29804 (reboot_mod_SOURCES): Removed.
29805 (reboot_mod_CFLAGS): Likewise.
29806 (reboot_mod_LDFLAGS): Likewise.
29807 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29808 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29809 (DEFSYMFILES): Add kernel_syms.lst.
29810 (kernel_img_HEADERS): Add common headers.
29811 (symlist.c): New target.
29812 (kernel_syms.lst): Likewise.
29813 (pkglib_MODULES): Add memdisk.mod.
29814 (memdisk_mod_SOURCES): New variable.
29815 (memdisk_mod_CFLAGS): Likewise.
29816 (memdisk_mod_LDFLAGS): Likewise.
29817 (pkglib_MODULES): Add reboot.mod.
29818 (reboot_mod_SOURCES): New variable.
29819 (reboot_mod_CFLAGS): Likewise.
29820 (reboot_mod_LDFLAGS): Likewise.
29821 (pkglib_MODULES): Add date.mod.
29822 (date_mod_SOURCES): New variable.
29823 (date_mod_CFLAGS): Likewise.
29824 (date_mod_LDFLAGS): Likewise.
29825 (pkglib_MODULES): Add datehook.mod.
29826 (datehook_mod_SOURCES): New variable.
29827 (datehook_mod_CFLAGS): Likewise.
29828 (datehook_mod_LDFLAGS): Likewise.
29829 (pkglib_MODULES): Add lsmmap.mod.
29830 (lsmmap_mod_SOURCES): New variable.
29831 (lsmmap_mod_CFLAGS): Likewise.
29832 (lsmmap_mod_LDFLAGS): Likewise.
29833 (pkglib_MODULES): Add boot.mod.
29834 (boot_mod_SOURCES): New variable.
29835 (boot_mod_CFLAGS): Likewise.
29836 (boot_mod_LDFLAGS): Likewise.
29837 * conf/i386-coreboot.rmk: Removed redundant parts.
29838 * conf/i386-ieee1275.rmk: Likewise.
29839 * conf/i386-pc.rmk: Likewise.
29840 * conf/mips-yeeloong.rmk: Likewise.
29841 * conf/mips.rmk: Likewise.
29842 * conf/powerpc-ieee1275.rmk: Likewise.
29843 * conf/sparc64-ieee1275.rmk: Likewise.
29844 * conf/x86_64-efi.rmk: Likewise.
29845 * conf/i386-coreboot.rmk: Moved qemu parts ..
29846 * conf/i386-qemu.rmk: ... here
29847 * conf/i386-efi.rmk: Moved common parts to...
29848 * conf/x86-efi.rmk: ... here.
29849 * conf/i386.rmk: Added modules common to all x86 variants.
29850 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29851 * disk/memdisk.c: Remove grub/machine/kernel.h.
29852 * gensymlist.sh.in: Include symbol.h.
29853 * hook/datehook.c: Correct module name.
29854 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29855 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29856 * include/grub/i386/efi/serial.h: New file.
29857 * include/grub/x86_64/efi/serial.h: Likewise.
29858 * util/time.c: Likewise.
29859 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29861 2010-03-14 Colin King <colin.king@ubuntu.com>
29862 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29864 Shrink the pre-partition-table part of boot.img by eight bytes.
29866 * boot/i386/pc/boot.S (ERR): New macro.
29867 (chs_mode): Use ERR.
29868 (geometry_error): Likewise.
29869 (hd_probe_error): Remove. This is only used once, so we wrwite
29871 (read_error): Instead of printing read_error_string, just set up
29872 %si and fall through to ...
29873 (error_message): ... this new function, also used by ERR.
29875 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29877 Speed up consecutive hostdisk operations on the same device.
29879 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29880 (grub_util_biosdisk_open): Initialise disk->data.
29881 (struct linux_partition_cache): New structure.
29882 (linux_find_partition): Cache partition start positions; these are
29883 expensive to compute on every read and write.
29884 (open_device): Cache open file descriptor in disk->data, so that we
29885 don't have to reopen it and flush the buffer cache for consecutive
29886 operations on the same device.
29887 (grub_util_biosdisk_close): New function.
29888 (grub_util_biosdisk_dev): Set `close' member.
29890 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29891 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29892 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29893 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29894 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29896 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29898 Compile parts of grub-emu as modules.
29900 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29901 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29902 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29903 (all-local): Add $(GRUB_EMU).
29904 (install-local): Install $(GRUB_EMU).
29905 (uninstall): Uninstall $(GRUB_EMU).
29906 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29907 * kern/dl.c: Likewise.
29908 * commands/sleep.c: Not include machine/time.h.
29909 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29910 (COMMON_CFLAGS): Likewise.
29911 (sbin_UTILITIES): Remove grub-emu.
29912 (grub_emu_SOURCES): Removed.
29913 (kernel_img_RELOCATABLE): New variable.
29914 (pkglib_PROGRAMS): Add kernel.img.
29915 (kernel_img_SOURCES): New variable
29916 (kernel_img_CFLAGS): Likewise.
29917 (kernel_img_LDFLAGS): Likewise.
29918 (TARGET_NO_STRIP): Likewise.
29919 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29920 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29921 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29922 (grub-emu): New target.
29923 (GRUB_EMU): New variable.
29924 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29925 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29926 * loader/xnu.c: Likewise.
29927 * include/grub/pci.h: Likewise.
29928 * genemuinit.sh: New file.
29929 * genemuinitheader.sh: Likewise.
29930 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29931 Support TARGET_NO_DYNAMIC_MODULES.
29932 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29933 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29934 * disk/loopback.c: Likewise.
29935 * font/font_cmd.c: Likewise.
29936 * partmap/acorn.c: Likewise.
29937 * partmap/amiga.c: Likewise.
29938 * partmap/apple.c: Likewise.
29939 * partmap/gpt.c: Likewise.
29940 * partmap/msdos.c: Likewise.
29941 * partmap/sun.c: Likewise.
29942 * parttool/msdospart.c: Likewise.
29943 * term/gfxterm.c: Likewise.
29944 * video/bitmap.c: Likewise.
29945 * video/readers/jpeg.c: Likewise.
29946 * video/readers/png.c: Likewise.
29947 * video/readers/tga.c: Likewise.
29948 * video/video.c: Likewise.
29949 * util/grub-emu.c (read_command_list): Removed.
29950 (main): Don't call util_init_nls.
29951 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29952 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29954 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29957 date.mod, datehook.mod.
29958 (datetime_mod_SOURCES): New variable.
29959 (datetime_mod_CFLAGS): Likewise.
29960 (datetime_mod_LDFLAGS): Likewise.
29961 (date_mod_SOURCES): Likewise.
29962 (date_mod_CFLAGS): Likewise.
29963 (date_mod_LDFLAGS): Likewise.
29964 (datehook_mod_SOURCES): Likewise.
29965 (datehook_mod_CFLAGS): Likewise.
29966 (datehook_mod_LDFLAGS): Likewise.
29967 * conf/sparc64-ieee1275.rmk: Likewise.
29968 * lib/ieee1275/datetime.c: New file.
29970 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29972 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29973 (ieee1275_fb_mod_SOURCES): New variable.
29974 (ieee1275_fb_mod_CFLAGS): Likewise.
29975 (ieee1275_fb_mod_LDFLAGS): Likewise.
29976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29978 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29979 (HEAP_MAX_ADDR): Likewise.
29980 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29982 Correct stop condition.
29983 (grub_ieee1275_devices_iterate): New function.
29984 * video/ieee1275.c: New file.
29986 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29988 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29990 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29992 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29993 SCRATCH_PAD_DISKBOOT as scratch.
29994 (bootit): Pass Openfirmware pointer in %o4.
29995 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29997 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29998 with util/grub-mkrawimage.c.
29999 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30000 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30001 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30002 (grub_aout_load) [GRUB_UTIL]: Likewise.
30003 * include/grub/kernel.h (grub_modules_get_end): New proto.
30004 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30005 (SCRATCH_PAD_BOOT): New definition.
30006 (SCRATCH_PAD_DISKBOOT): Likewise.
30007 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30008 * include/grub/sparc64/ieee1275/ieee1275.h
30009 (grub_ieee1275_original_stack): New variable
30010 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30012 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30013 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30014 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30015 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30016 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30017 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30018 (grub_platform_image_format_t): New type.
30019 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30020 * kern/main.c (grub_modules_get_end)
30021 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30022 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30023 (codestart): Switch stacks.
30024 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30026 (grub_heap_init): Use grub_modules_get_end.
30027 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30029 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30031 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30033 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30035 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30037 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30039 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30042 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30044 * genmoddep.awk: Output all missing symbols and not only first.
30046 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30048 * NEWS: Put the date of 1.98 release.
30050 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30052 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30055 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30057 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30058 completition in the middle of string.
30060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30062 * util/grub-mkrescue.in: Use mktemp with explicit template.
30064 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30066 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30068 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30070 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30073 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30075 Fix FreeBSD compilation.
30077 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30078 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30080 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30082 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30084 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30086 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30088 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30090 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30092 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30094 Support relative image path in theme file.
30096 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30097 (image_set_property): Handle theme_dir and relative path.
30099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30101 * configure.ac: Alias amd64 to x86_64.
30103 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30105 * NEWS: mention multiboot on EFI.
30107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30109 * kern/main.c (grub_load_modules): Handle errors from init functions of
30112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30114 * normal/autofs.c (autoload_fs_module): Handle errors.
30116 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30118 Disable linux.mod on qemu-mips since it's not functional and leads
30119 to compilation failure.
30121 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30122 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30123 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30124 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30125 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30126 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30127 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30128 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30129 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30130 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30131 Reported by: BVK Chaitanya
30133 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30135 * INSTALL: Add gettext as a dependency and add qemu to a new section
30136 "Prerequisites for make-check".
30138 2010-03-04 Christian Franke <franke@computer.org>
30140 * util/grub-pe2elf.c: Add missing include "progname.h".
30142 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30144 * normal/crypto.c (read_crypto_list): Fix a typo.
30145 Reported by: Seth Goldberg.
30147 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30149 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30150 Reported by: Seth Goldberg.
30152 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30154 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30159 * genmk.rb: Remove terminal*.lst in make clean.
30160 Reported by: Seth Goldberg.
30162 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30164 * util/i386/efi/grub-install.in: Copy gettext files.
30166 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30168 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30170 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30172 Wait for user entry basing on presence of output rather than on errors.
30174 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30175 (grub_install_newline_hook): Likewise.
30176 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30177 * normal/menu.c (show_menu): Check line_counter to determine presence
30179 * normal/term.c (grub_normal_line_counter): New variable.
30180 (grub_normal_get_line_counter): New function.
30181 (grub_install_newline_hook): Likewise.
30183 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30185 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30187 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30189 * configure.ac: Update version to 1.98.
30191 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30193 * util/grub.d/10_linux.in (linux_entry): Don't default to
30194 gfxpayload=keep if Linux doesn't support video handover.
30196 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30198 Don't compile video modules on yeeloong since video subsystem is part
30201 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30202 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30203 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30204 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30205 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30206 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30207 * include/grub/bitmap_scale.h: Likewise.
30208 * include/grub/bufio.h: Likewise.
30209 * include/grub/font.h: Likewise.
30210 * include/grub/gfxterm.h: Likewise.
30211 * include/grub/video.h: Likewise.
30212 * include/grub/vbe.h: Don't include video_fb.h.
30213 * video/i386/pc/vbe.c: Include video_fb.h.
30214 * commands/i386/pc/vbetest.c: Include video.h.
30216 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30218 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30219 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30220 default entry if GRUB_SAVEDEFAULT=true. This allows using
30221 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30222 saving a new default on every boot.
30224 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30226 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30227 * normal/term.c (read_terminal_list): Likewise.
30228 * normal/main.c (grub_normal_init_page): Likewise.
30229 (grub_normal_read_line_real): Likewise.
30231 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30233 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30235 Reported by: Seth Goldberg.
30237 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30239 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30240 duplicate declaration of `start'.
30242 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30244 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30246 Reported by: Georgy Buranov
30248 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30250 * util/grub-mkrawimage.c (usage): Change string formatting to
30253 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30255 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30258 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30260 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30261 Reported by: Michael Suchanek.
30263 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30265 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30266 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30268 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30270 Remove any reference to non-free fonts.
30272 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30273 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30274 uses non-free components.
30275 * font/font.c (grub_font_get_name): Remove example name.
30276 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30277 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30278 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30279 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30281 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30283 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30285 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30287 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30289 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30291 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30293 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30295 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30297 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30299 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30300 * docs/grub.texi (Command-line and menu entry commands): Document play
30303 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30305 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30306 parse arguments as inline tempo and notes. Move code for playing notes
30308 (play): ... new function.
30310 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30312 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30313 grub_uint16_t instead of short.
30314 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30315 disk from little endian to cpu endianness.
30317 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30319 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30320 GRUB_TICKS_PER_SECOND instead of 120.
30322 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30324 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30325 escape sequence after \e.
30327 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30330 non-ASCII characters.
30332 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30335 set root in single quotes to prevent \, from being unescaped.
30337 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30339 Prevent unknown commands from stopping menuentry execution.
30341 * script/execute.c (grub_script_execute_cmdline): Print error after
30344 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30346 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30347 Reported by: Pavel Pisa.
30349 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30351 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30353 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30355 Merge grub_ieee1275_map_physical into grub_map and rename to
30358 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30359 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30361 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30362 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30364 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30366 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30369 opening and not after.
30371 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30373 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30376 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30378 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30379 (alloc_phys): Use ALIGN_UP instead of align_addr.
30381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30383 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30385 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30387 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30389 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30391 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30396 Fix over-4GiB seek on sparc64.
30398 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30399 Replace pos_i and pos_lo with pos. All users updated.
30400 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30402 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30404 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30407 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30409 * util/grub-mkrawimage.c (main): Call set_program_name.
30411 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30413 Properly align 64-bit targets.
30415 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30416 (generate_image): Use ALIGN_ADDR.
30418 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30420 Properly create cross-endian images.
30422 * include/grub/types.h (grub_host_to_target_addr): New macro
30423 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30425 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30427 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30429 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30431 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30433 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30434 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30435 (grub_linux_boot): Divide by 64K when on VESA.
30437 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30439 Support GRUB_GFXPAYLOAD_LINUX.
30441 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30442 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30444 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30446 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30447 to show messages instead of discarding them.
30448 Process errors after executing command and not before. Keep old method
30451 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30453 * configure.ac: Check for ft2build.h.
30455 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30457 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30459 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30461 * genkernsyms.sh.in: Use TARGET_CC.
30463 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30467 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30469 * include/grub/multiboot2.h: Remove leftover file.
30470 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30471 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30473 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30475 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30477 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30479 Fix warnings in grub-emu when compiling with maximum warning options.
30481 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30482 (grub_arch_modules_addr): Return 0 and not NULL.
30483 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30484 (xstrdup): Use newstr instead of dup.
30485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30486 of disk to dsk to avoid shadowing.
30487 (find_free_slot): Fix prototype.
30488 * util/getroot.c (grub_util_is_dmraid): Make static.
30489 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30490 Add missing prototype.
30491 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30493 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30495 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30498 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30500 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30503 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30505 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30506 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30507 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30508 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30509 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30510 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30514 * include/grub/err.h (grub_err_printf): Don't export.
30516 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30518 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30520 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30522 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30523 * kern/misc.c (grub_gettext_dummy): Make static.
30525 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30527 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30529 * kern/term.c (grub_putchar): Likewise.
30531 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30533 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30534 buggy hook call and memory leak.
30536 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30538 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30540 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30542 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30548 Return grub_errno on allocation error.
30550 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30552 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30554 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30556 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30557 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30559 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30561 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30563 (grub_pxefs_open): Likewise.
30565 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30567 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30568 * util/grub.d/10_kfreebsd.in: Likewise.
30569 * util/grub.d/10_linux.in: Likewise.
30571 2010-02-06 Colin D Bennett <colin@gibibit.com>
30573 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30574 (gfxmenu_mod_SOURCES): New variable.
30575 (gfxmenu_mod_CFLAGS): Likewise.
30576 (gfxmenu_mod_LDFLAGS): Likewise.
30577 * include/grub/term.h (grub_term_set_current_output): Declare
30579 * docs/gfxmenu-theme-example.txt: New file.
30580 * gfxmenu/gfxmenu.c: Likewise.
30581 * gfxmenu/gui_box.c: Likewise.
30582 * gfxmenu/gui_canvas.c: Likewise.
30583 * gfxmenu/gui_circular_progress.c: Likewise.
30584 * gfxmenu/gui_image.c: Likewise.
30585 * gfxmenu/gui_label.c: Likewise.
30586 * gfxmenu/gui_list.c: Likewise.
30587 * gfxmenu/gui_progress_bar.c: Likewise.
30588 * gfxmenu/gui_string_util.c: Likewise.
30589 * gfxmenu/gui_util.c: Likewise.
30590 * gfxmenu/icon_manager.c: Likewise.
30591 * gfxmenu/model.c: Likewise.
30592 * gfxmenu/named_colors.c: Likewise.
30593 * gfxmenu/theme_loader.c: Likewise.
30594 * gfxmenu/view.c: Likewise.
30595 * gfxmenu/widget-box.c: Likewise.
30596 * include/grub/gfxmenu_model.h: Likewise.
30597 * include/grub/gfxmenu_view.h: Likewise.
30598 * include/grub/gfxwidgets.h: Likewise.
30599 * include/grub/gui.h: Likewise.
30600 * include/grub/gui_string_util.h: Likewise.
30601 * include/grub/icon_manager.h: Likewise.
30603 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30605 Agglomerate scrolling in gfxterm.
30607 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30608 (grub_virtual_screen_setup): Initialise 'total_screen'.
30609 (write_char): Split to ...
30610 (paint_char): ... this ...
30611 (write_char): ... and this.
30612 (paint_char): Handle delayed scrolling.
30613 (draw_cursor): Likewise.
30614 (scroll_up): Split to ...
30615 (real_scroll): ... this ...
30616 (scroll_up): ... and this.
30617 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30619 (grub_gfxterm_refresh): Call real_scroll.
30621 2010-02-06 Colin D Bennett <colin@gibibit.com>
30623 * include/grub/misc.h (grub_iscntrl): New inline function.
30624 (grub_isalnum): Likewise.
30625 (grub_strtol): Likewise.
30627 2010-02-06 Colin D Bennett <colin@gibibit.com>
30629 * normal/menu_text.c (get_entry_number): Move from here ...
30630 * normal/menu.c (get_entry_number): ... moved here.
30631 * include/grub/menu.h (grub_menu_get_default_entry_index):
30633 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30634 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30635 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30636 (grub_menu_viewer_should_return): Likewise.
30637 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30638 * normal/menu_text.c (run_menu): Enable menu switching.
30639 * normal/menu_viewer.c (should_return): New variable.
30640 (menu_viewer_changed): Likewise.
30641 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30642 (grub_menu_viewer_should_return): New function.
30643 (menuviewer_write_hook): Likewise.
30644 (grub_menu_viewer_init): Likewise.
30646 2010-02-06 Colin D Bennet <colin@gibibit.com>
30647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30649 Support for gfxterm in a window.
30651 * include/grub/gfxterm.h: New file.
30652 * include/grub/video.h (struct grub_video_rect): New declaration.
30653 (grub_video_rect_t): Likewise.
30654 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30655 (refcount): New variable.
30656 (render_target): Likewise.
30657 (window): Likewise.
30658 (repaint_callback): Likewise.
30659 (grub_virtual_screen_setup): Use 'render_target'.
30660 (init_window): New function.
30661 (grub_gfxterm_init_window): Likewise.
30662 (grub_gfxterm_init): Check reference counter.
30664 (destroy_window): New function.
30665 (grub_gfxterm_destroy_window): Likewise.
30666 (grub_gfxterm_fini): Check reference counter.
30667 Use destroy_window.
30668 (redraw_screen_rect): Restore viewport.
30669 Use 'render_target' and 'window'.
30670 Call 'repaint_callback'.
30671 (write_char): Use 'render_target'.
30672 (draw_cursor): Likewise.
30673 (scroll_up): Restore viewport.
30674 Use 'render_target' and 'window'.
30675 Call 'repaint_callback'.
30676 (grub_gfxterm_cls): Likewise.
30677 (grub_gfxterm_refresh): Use 'window'.
30678 (grub_gfxterm_set_repaint_callback): New function.
30679 (grub_gfxterm_background_image_cmd): Use 'window'.
30680 (grub_gfxterm_get_term): New function.
30681 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30683 2010-02-06 Colin D Bennett <colin@gibibit.com>
30685 Bitmap scaling support.
30687 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30688 (bitmap_scale_mod_SOURCES): New variable.
30689 (bitmap_scale_mod_CFLAGS): Likewise.
30690 (bitmap_scale_mod_LDFLAGS): Likewise.
30691 * include/grub/bitmap_scale.h: New file.
30692 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30693 (background_image_cmd_options): New variable.
30694 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30695 (cmd): Rename and change type to ...
30696 (background_image_cmd_handle): ... this. All users updated.
30697 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30698 * video/bitmap_scale.c: New file.
30700 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30704 * Makefile.in (LIBSDL): New variable.
30705 (enable_grub_emu_sdl): Likewise.
30706 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30707 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30708 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30709 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30710 * util/sdl.c: New file.
30712 2010-02-06 Colin D Bennett <colin@gibibit.com>
30713 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30715 Double buffering support.
30717 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30718 * include/grub/video.h: Update comment.
30719 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30721 (grub_video_fb_doublebuf_blit_init): New prototype.
30722 * term/gfxterm.c (scroll_up): Support double buffering.
30723 (grub_gfxterm_refresh): Likewise.
30724 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30725 (grub_video_fb_doublebuf_blit_init): Likewise.
30726 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30727 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30728 'displayed_page', 'render_page' and 'update_screen'.
30729 (grub_video_vbe_fini): Free offscreen buffer.
30730 (doublebuf_pageflipping_commit): New function.
30731 (doublebuf_pageflipping_update_screen): Likewise.
30732 (doublebuf_pageflipping_init): Likewise.
30733 (double_buffering_init): Likewise.
30734 (grub_video_vbe_setup): Enable doublebuffering.
30735 (grub_video_vbe_swap_buffers): Implement.
30736 (grub_video_vbe_set_active_render_target): Handle double buffering.
30737 (grub_video_vbe_get_active_render_target): Likewise.
30738 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30739 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30740 (grub_video_vbe_enable_double_buffering): Likewise.
30741 (grub_video_vbe_swap_buffers): Use update_screen.
30742 (grub_video_set_mode): Use double buffering.
30744 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30746 * maintainance/gentrigtables.py: Remove.
30747 * lib/trig.c: Likewise.
30749 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30751 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30753 (trigtables.c): New rule.
30754 (gentrigtables): Likewise.
30755 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30757 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30759 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30762 2010-02-06 Colin D Bennet <colin@gibibit.com>
30764 Trigonometry support.
30766 * include/grub/trig.h: New file.
30767 * lib/trig.c: Likewise.
30768 * maintainance/gentrigtables.py: Likewise.
30769 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30770 (trig_mod_SOURCES): New variable.
30771 (trig_mod_CFLAGS): Likewise.
30772 (trig_mod_LDFLAGS): Likewise.
30774 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30776 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30779 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30781 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30784 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30786 * util/hostdisk.c (open_device): Don't use partition device when reading
30787 before the partition.
30788 (grub_util_biosdisk_read): Don't read from partition and before the
30789 partition in single operation.
30790 (grub_util_biosdisk_write): Don't write to partition and before the
30791 partition in single operation.
30793 2010-02-03 Torsten Landschoff <torsten@debian.org>
30795 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30798 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30800 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30802 (grub_biosdisk_write): Refuse to write to CDROM.
30804 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30808 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30810 * font/font.c (find_glyph): Check that bmp_idx is available before
30812 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30813 with (font == NULL).
30815 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30817 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30819 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30821 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30822 * util/grub-script-check.c (getline): Fix empty lines case.
30824 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30826 * Makefile.in (check): Exit with fail status when one of the tests
30828 * tests/example_functional_test.c (example_test): Fix reversed assert.
30829 * tests/example_unit_test.c (example_test): Likewise.
30831 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30833 * util/grub.d/10_linux.in: This script does not use any of the
30834 contents of gettext.sh, only the external command `gettext', so stop
30835 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30836 the same prefix as GRUB.)
30837 * util/grub.d/10_kfreebsd.in: Likewise.
30839 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30841 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30844 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30846 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30849 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30851 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30852 having a 4KiB and not 32KiB buffer size.
30854 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30856 * util/hostfs.c: Include `<errno.h>'.
30857 (grub_hostfs_read): Handle errors from fseeko() and fread().
30859 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30861 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30862 loop when using read hooks on files whose size isn't sector-aligned.
30864 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30866 Remove unused parameter.
30868 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30869 (grub_iso9660_open): Remove initialization of `data->length'.
30871 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30873 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30874 memleak conditions.
30876 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30878 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30879 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30881 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30883 * util/bin2h.c (usage): Fix warning (space after backslash).
30885 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30887 * font/font.c: Include `grub/fontformat.h.
30888 Remove font file format constants.
30889 (grub_font_load): Use the new macros.
30890 * include/grub/fontformat.h: New file.
30891 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30892 (write_font_pf2): Use the new macros.
30894 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30896 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30899 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30903 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30904 (_start): Macroify `0x7F'.
30906 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30907 (make_install_device): Use "(pxe)" as fallback prefix when booting
30910 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30912 * configure.ac: Reset LIBS after check for libgcc symbols.
30914 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30916 * util/hostdisk.c (open_device): Add trailing newline to debug
30919 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30921 * configure.ac: Check for `limits.h'.
30922 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30924 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30926 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30927 capitalize error strings.
30929 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30931 * util/grub.d/10_hurd.in: Add a recovery mode.
30933 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30935 * configure.ac: Check for libgcc symbols with -nostdlib.
30937 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30939 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30941 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30943 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30944 stack since heap may be unavailable at that point.
30945 (grub_ofconsole_gotoxy): Likewise.
30947 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30949 * configure.ac: Check for _restgpr_14_x.
30950 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30951 and _savegpr_* prototypes.
30953 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30955 Use generic grub_reboot() for i386-efi.
30957 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30958 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30959 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30961 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30963 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30964 presence of "prefix" variable as it breaks when normal.mod is
30967 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30969 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30970 stack since heap is unavailable at that point.
30972 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30974 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30975 (grub_freebsd_bootinfo): Rewritten.
30976 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30978 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30980 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30982 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30984 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30987 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30989 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30990 around for handling "/" to the correct fix. Fix a memory leak. Use
30991 xstrdup instead of strdup.
30993 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30995 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30997 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30999 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31001 * font/font.c (struct grub_font): New member 'bmp_idx'.
31002 (font_init): Initialise 'bmp_idx'.
31003 (load_font_index): Fill 'bmp_idx'.
31004 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31006 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31008 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31013 Move context handling out of the kernel.
31015 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31016 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31017 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31018 * conf/i386-efi.rmk: Likewise.
31019 * conf/i386-ieee1275.rmk: Likewise.
31020 * conf/i386-pc.rmk: Likewise.
31021 * conf/powerpc-ieee1275.rmk: Likewise.
31022 * conf/sparc64-ieee1275.rmk: Likewise.
31023 * conf/x86_64-efi.rmk: Likewise.
31024 * include/grub/env.h: Include grub/menu.h.
31025 (grub_env_var_type): Removed.
31026 (grub_env_var): Replaced field 'type' with 'global'.
31027 (grub_env_find): New prototype.
31028 (grub_env_context_open): Remove EXPORT_FUNC.
31029 (grub_env_context_close): Likewise.
31030 (grub_env_export): Likewise.
31031 (grub_env_set_data_slot): Removed.
31032 (grub_env_get_data_slot): Likewise.
31033 (grub_env_unset_data_slot): Likewise.
31034 (grub_env_unset_menu): New prototype.
31035 (grub_env_set_menu): Likewise.
31036 (grub_env_get_menu): Likewise.
31037 * include/grub/env_private.h: New file.
31038 * include/grub/normal.h (grub_context_init): New prototype.
31039 (grub_context_fini): Likewise.
31040 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31041 * normal/context.c (grub_cmd_export): ... to here.
31042 * kern/env.c: Include env_private.h.
31043 (HASHSZ): Moved to include/grub/env_private.h.
31044 (grub_env_context): Likewise.
31045 (grub_env_sorted_var): Likewise.
31046 (current_context): Renamed from this ...
31047 (grub_current_context): ...to this. 'static' removed. All users updated.
31048 (grub_env_find): Removed 'static'.
31049 (grub_env_context_open): Moved to normal/context.c.
31050 (grub_env_context_close): Likewise.
31051 (grub_env_export): Likewise.
31052 (mangle_data_slot_name): Removed.
31053 (grub_env_set_data_slot): Likewise.
31054 (grub_env_get_data_slot): Likewise.
31055 (grub_env_unset_data_slot): Likewise.
31056 * kern/main.c (grub_set_root_dev): Don't export root.
31057 It will be done later.
31058 (grub_main): Don't export prefix.
31059 It will be done later.
31060 * normal/context.c: New file.
31061 * normal/main.c (free_menu): Use grub_env_unset_menu.
31062 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31063 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31064 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31065 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31067 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31071 * commands/setpci.c: New file.
31072 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31073 (setpci_mod_SOURCES): New variable.
31074 (setpci_mod_CFLAGS): Likewise.
31075 (setpci_mod_LDFLAGS): Likewise.
31077 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31079 Byte-addressable PCI configuration space.
31081 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31083 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31084 GRUB_PCI_REG_CACHELINE.
31085 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31087 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31088 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31089 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31090 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31091 grub_pci_make_address.
31092 (lock_rom_area): Likewise.
31093 * commands/lspci.c (grub_lspci_iter): Use macroses
31094 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31095 of grub_pci_make_address.
31096 * disk/ata.c (grub_ata_pciinit): Likewise.
31097 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31098 (GRUB_PCI_REG_VENDOR): Likewise.
31099 (GRUB_PCI_REG_DEVICE): Likewise.
31100 (GRUB_PCI_REG_COMMAND): Likewise.
31101 (GRUB_PCI_REG_STATUS): Likewise.
31102 (GRUB_PCI_REG_REVISION): Likewise.
31103 (GRUB_PCI_REG_CLASS): Likewise.
31104 (GRUB_PCI_REG_CACHELINE): Likewise.
31105 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31106 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31107 (GRUB_PCI_REG_BIST): Likewise.
31108 (GRUB_PCI_REG_ADDRESSES): Likewise.
31109 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31110 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31111 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31112 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31113 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31114 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31115 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31116 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31117 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31118 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31119 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31120 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31121 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31122 (GRUB_PCI_REG_MIN_GNT): Likewise.
31123 (GRUB_PCI_REG_MAX_LAT): Likewise.
31124 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31125 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31126 * video/efi_uga.c (find_framebuf): Likewise.
31127 * video/sm712.c (grub_video_sm712_setup): Likewise.
31128 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31131 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31133 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31134 can be reliably determined to be supported.
31136 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31138 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31139 that VESA is supported.
31140 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31143 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31145 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31147 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31149 * util/misc.c (make_system_path_relative_to_its_root): Work around
31150 special-casing of "/", as previous incarnation of this routine did.
31152 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31154 Fix any-emu compilation.
31156 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31157 * grub_bin2h_SOURCES: New variable.
31159 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31161 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31163 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31165 * util/grub.d/00_header.in: Fix handling of locale_dir.
31167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31169 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31170 as possible unifont location (Gentoo).
31171 Reported by: Alexander Brüning
31173 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31175 Don't try to generate lists for kernel.img.
31177 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31178 (pkglib_MODULES): Remove kernel.img.
31179 (kernel_img_EXPORTS): Removed.
31180 (kernel_img_RELOCATABLE): New variable.
31181 * conf/x86_64-efi.rmk: Likewise.
31182 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31184 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31186 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31187 grub_xasprintf or grub_snprintf.
31188 (grub_vsprintf): Likewise.
31189 (grub_snprintf): New proto.
31190 (grub_vsnprintf): Likewise.
31191 (grub_xasprintf): Likewise.
31192 (grub_xvasprintf): Likewise.
31193 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31194 (grub_sprintf): Removed.
31195 (grub_vsnprintf): New function.
31196 (grub_snprintf): Likewise.
31197 (grub_xvasprintf): Likewise.
31198 (grub_xasprintf): Likewise.
31199 (grub_vsprintf): Renamed to ...
31200 (grub_vsnprintf_real): ...this. New argument max_len.
31202 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31204 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31205 fix grub-script-check warning.
31207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31209 * include/grub/font.h (grub_font_load): Fix prototype.
31211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31213 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31215 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31217 * include/grub/x86_64/at_keyboard.h: New file.
31219 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31221 * loader/mips/linux.c: Include missing grub/i18n.h.
31223 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31225 * normal/menu.c (notify_execution_failure): Clarify error message.
31227 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31229 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31230 return value (and revert all return statements). Update users.
31232 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31234 * kern/device.c (grub_device_iterate): Allocate new part_ent
31235 structure based on sizeof (*p) rather than sizeof (p->next), to
31236 account for structure padding.
31238 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31239 disk is NULL, which might happen for LVM physical volumes with no
31242 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31244 * loader/mips/linux.c (grub_cmd_initrd)
31245 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31247 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31249 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31250 (grub_video_video_init, grub_video_bitmap_init)
31251 (grub_font_manager_init, grub_term_gfxterm_init)
31252 (grub_at_keyboard_init): New extern declarations.
31253 (grub_machine_init): Initialize gfxterm and at_keyboard.
31255 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31257 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31258 `gfxterm.mod' into core image.
31260 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31262 (kernel_img_FORMAT): Copy to ...
31264 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31265 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31266 (kernel_img_FORMAT): ... here, and ...
31268 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31269 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31270 (kernel_img_FORMAT): ... here.
31272 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31273 and input (at_keyboard) terminals in kernel.
31274 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31276 (pkglib_MODULES): Remove `pci.mod'.
31277 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31278 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31279 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31280 (at_keyboard_mod_LDFLAGS): Remove variables.
31282 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31284 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31286 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31288 * include/grub/mips/libgcc.h: Only export symbols for functions
31289 that libgcc provides.
31291 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31295 * bus/bonito.c: New file.
31296 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31297 GRUB_PCI_NUM_DEVICES.
31298 * term/i386/pc/serial.c: Move to ...
31299 * term/serial.c: ... here. All users updated.
31300 * util/i386/pc/grub-mkimage.c: Move to ...
31301 * util/grub-mkrawimage.c: ... here. All users updated.
31302 * term/i386/pc/at_keyboard.c: Move to ...
31303 * term/at_keyboard.c: ... here. All users updated.
31304 * conf/mips-qemu-mips.rmk: New file.
31305 * conf/mips-yeeloong.rmk: Likewise.
31306 * conf/mips.rmk: Likewise.
31307 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31309 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31311 (grub_ata_pciinit): Support CS5536.
31312 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31313 * font/font_cmd.c (loadfont_command): Open file before passing it to
31315 (pseudo_file_read): New function.
31316 (pseudo_file_close): Likewise.
31317 (pseudo_fs): New structure.
31318 (load_font_module): New function.
31319 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31320 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31321 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31322 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31323 * include/grub/i386/at_keyboard.h: Split into ...
31324 * include/grub/at_keyboard.h: ... this ...
31325 * include/grub/i386/at_keyboard.h: ... and this.
31326 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31328 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31330 (grub_elf64_size): Likewise.
31331 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31333 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31334 * include/grub/i386/coreboot/serial.h: Rewritten.
31335 * include/grub/i386/ieee1275/serial.h: Include
31336 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31337 * include/grub/i386/pc/serial.h: Moved from here ...
31338 * include/grub/serial.h: ... to here. All users updated.
31339 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31340 (GRUB_PCI_NUM_BUS): Likewise.
31341 (GRUB_PCI_NUM_DEVICES): Likewise.
31342 (grub_pci_device_map_range): Add missing volatile keyword.
31343 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31344 * include/grub/mips/at_keyboard.h: New file.
31345 * include/grub/mips/cache.h: Likewise.
31346 * include/grub/mips/io.h: Likewise.
31347 * include/grub/mips/kernel.h: Likewise.
31348 * include/grub/mips/libgcc.h: Likewise.
31349 * include/grub/mips/pci.h: Likewise.
31350 * include/grub/mips/qemu-mips/boot.h: Likewise.
31351 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31352 * include/grub/mips/qemu-mips/loader.h: Likewise.
31353 * include/grub/mips/qemu-mips/memory.h: Likewise.
31354 * include/grub/mips/qemu-mips/serial.h: Likewise.
31355 * include/grub/mips/qemu-mips/time.h: Likewise.
31356 * include/grub/mips/relocator.h: Likewise.
31357 * include/grub/mips/time.h: Likewise.
31358 * include/grub/mips/types.h: Likewise.
31359 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31360 * include/grub/mips/yeeloong/boot.h: Likewise.
31361 * include/grub/mips/yeeloong/kernel.h: Likewise.
31362 * include/grub/mips/yeeloong/loader.h: Likewise.
31363 * include/grub/mips/yeeloong/memory.h: Likewise.
31364 * include/grub/mips/yeeloong/pci.h: Likewise.
31365 * include/grub/mips/yeeloong/serial.h: Likewise.
31366 * include/grub/mips/yeeloong/time.h: Likewise.
31367 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31368 * kern/elf.c (grub_elf32_size): New parameter. All users
31370 (grub_elf64_size): Likewise.
31371 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31372 Load modules before saying "Welcome to GRUB!".
31373 Call grub_refresh after saying "Welcome to GRUB!".
31374 * kern/mips/cache.S: New file.
31375 * kern/mips/cache_flush.S: Likewise.
31376 * kern/mips/dl.c: Likewise.
31377 * kern/mips/init.c: Likewise.
31378 * kern/mips/qemu-mips/init.c: Likewise.
31379 * kern/mips/startup.S: Likewise.
31380 * kern/mips/yeeloong/init.c: Likewise.
31381 * kern/term.c (grub_putcode): Handle NULL terminal.
31382 (grub_getcharwidth): Likewise.
31383 (grub_getkey): Likewise.
31384 (grub_checkkey): Likewise.
31385 (grub_getkeystatus): Likewise.
31386 (grub_getxy): Likewise.
31387 (grub_getwh): Likewise.
31388 (grub_gotoxy): Likewise.
31389 (grub_cls): Likewise.
31390 (grub_setcolorstate): Likewise.
31391 (grub_setcolor): Likewise.
31392 (grub_getcolor): Likewise.
31393 (grub_refresh): Likewise.
31394 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31395 (write_jump): Add hatch nop.
31396 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31397 * lib/mips/setjmp.S: New file.
31398 * loader/mips/linux.c: Likewise.
31399 * term/i386/pc/at_keyboard.c: Move from here ...
31400 * term/at_keyboard.c: ... to here.
31401 * term/i386/pc/serial.c: Moved from here ...
31402 * term/serial.c: ... to here. All users updated.
31403 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31404 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31405 (serial_translate_key_sequence): Avoid deadlock.
31406 (grub_serial_getkey): Handle backspace.
31407 (grub_serial_putchar): Fix newline handling.
31408 * util/i386/pc/grub-mkimage.c: Move from here ...
31409 * util/grub-mkrawimage.c: ... to here. All users updated.
31410 (generate_image): New parameters 'font_path' and 'format'.
31411 Support embedding font.
31412 Use grub_host_to_target* instead of grub_cpu_to_le*.
31413 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31414 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31415 (options): New option "--font".
31417 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31418 (main): Handle "--font".
31419 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31420 (grub_virtual_screen_setup): Set bg_color_display.
31421 (redraw_screen_rect): Use bg_color_display instead of incorrect
31423 (grub_gfxterm_cls): Likewise.
31424 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31425 Support embedding config file.
31426 (add_segments): Likewise.
31427 (options): New option "--config".
31428 (main): Handle "--config".
31429 * video/sm712.c: New file.
31431 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31433 Fix parallel builds.
31435 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31436 font.c depend on ascii.h).
31438 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31440 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31442 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31444 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31445 By default: disabled.
31446 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31449 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31451 * font/font.c: Update copyright years.
31452 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31454 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31456 * font/font.c: Include `ascii.h'.
31457 (ASCII_BITMAP_SIZE): New macro.
31458 (ascii_font_glyph): Define.
31459 (ascii_glyph_lookup): New function.
31460 (grub_font_get_string_width): Change comment. If glyph not found, use
31461 ascii_glyph_lookup.
31462 (grub_font_get_glyph_with_fallback): If glyph not available returns
31463 ascii_glyph_lookup.
31464 * util/grub-mkfont.c (file_formats): New enum.
31465 (options): Add `ascii-bitmaps' new option.
31466 (usage): Add `asii-bitmaps' new option.
31467 (write_font_ascii_bitmap): New function.
31468 (write_font): Rename to ...
31469 (write_font_p2): ... this. Remove print_glyphs call.
31470 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31471 used. Call print_glyphs.
31472 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31474 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31476 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31477 (grub_bin2h_SOURCES): New variable.
31478 * util/bin2h.c: New file.
31480 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31482 * include/multiboot.h: Resynced with spec.
31483 * include/multiboot2.h: Likewise.
31484 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31485 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31487 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31489 * include/grub/term.h (grub_term_register_input,
31490 grub_term_register_output): Check return of terminal init()
31491 routines, and abort if errors are raised.
31493 * commands/terminal.c: Update copyright year.
31495 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31497 * commands/terminal.c (grub_cmd_terminal_input)
31498 (grub_cmd_terminal_output): Check return of terminal init()
31499 routines, and abort if errors are raised.
31501 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31503 * include/grub/i386/bsd.h: Fix include pathes.
31505 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31507 Add missing *BSD copyright headers.
31509 * include/grub/aout.h: Add BSD licence.
31510 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31511 * include/grub/i386/freebsd_linker.h: ... here,
31512 * include/grub/i386/freebsd_reboot.h: ... here,
31513 * include/grub/i386/netbsd_bootinfo.h: ... here,
31514 * include/grub/i386/netbsd_reboot.h: ... here,
31515 * include/grub/i386/openbsd_bootarg.h: ... here,
31516 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31517 licence to each file.
31519 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31521 * acinclude.m4: Remove `nop' assembly instruction; it's not
31522 implemented by all architectures.
31524 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31526 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31527 ELILO. This is no longer necessary.
31529 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31531 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31533 * util/grub-script-check.c: grub-script-check tool.
31534 * conf/common.rmk: Make rules for grub-script-check.
31536 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31538 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31539 spotting it back in 2008. Shame on me for forgetting he did.
31541 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31543 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31545 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31546 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31547 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31548 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31549 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31550 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31552 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31554 * include/grub/test.h: Add license header.
31555 * tests/example_functional_test.c: Likewise.
31556 * tests/example_unit_test.c: Likewise.
31557 * tests/lib/functional_test.c: Likewise.
31558 * tests/lib/test.c: Likewise.
31559 * tests/lib/unit_test.c: Likewise.
31561 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31563 Use flag-based instead of hook-based video mode selection and "auto"
31566 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31567 (grub_video_set_mode): Changed prototype. All users updated.
31568 (grub_video_check_mode_flag): New inline function.
31569 * video/video.c (parse_modespec): New function.
31570 (grub_video_set_mode): Parse flags and keywords.
31572 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31574 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31577 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31579 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31581 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31583 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31585 * util/grub-emu.c (usage): Likewise.
31586 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31587 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31588 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31589 * util/i386/pc/grub-setup.c (usage): Likewise.
31591 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31593 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31595 (grub_util_info): Likewise.
31596 (grub_util_error): Likewise.
31597 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31598 and/or new lines in `grub_util_warna', `grub_util_info',
31599 `grub_util_error' calls.
31600 * util/getroot.c: Likewise.
31601 * util/grub-editenv.c: Likewise.
31602 * util/grub-emu.c: Likewise.
31603 * util/grub-fstest.c: Likewise.
31604 * util/grub-mkdevicemap.c: Likewise.
31605 * util/grub-mkfont.c: Likewise.
31606 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31607 * util/grub-mkrelpath.c: Likewise.
31608 * util/grub-pe2elf.c: Likewise.
31609 * util/grub-probe.c: Likewise.
31610 * util/hostdisk.c: Likewise.
31611 * util/i386/efi/grub-mkimage.c: Likewise.
31612 * util/i386/pc/grub-mkimage.c: Likewise.
31613 * util/i386/pc/grub-setup.c: Likewise.
31614 * util/ieee1275/ofpath.c: Likewise.
31615 * util/mkisofs/eltorito.c: Likewise.
31616 * util/mkisofs/rock.c: Likewise.
31617 * util/mkisofs/write.c: Likewise.
31618 * util/raid.c: Likewise.
31619 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31620 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31622 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31624 Enable multiboot on non-pc.
31626 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31627 multiboot.mod and multiboot2.mod to ...
31628 * conf/i386.rmk (pkglib_MODULES): ... here.
31629 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31631 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31632 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31634 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31635 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31637 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31640 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31641 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31643 (ata_mod_SOURCES): Removed.
31644 (ata_mod_CFLAGS): Likewise.
31645 (ata_mod_LDFLAGS): Likewise.
31646 (relocator_mod_SOURCES): Removed.
31647 (relocator_mod_CFLAGS): Likewise.
31648 (relocator_mod_ASFLAGS): Likewise.
31649 (relocator_mod_LDFLAGS): Likewise.
31651 * include/grub/x86_64/multiboot.h: New file.
31652 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31655 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31657 Video multiboot support.
31659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31661 * include/multiboot.h: Resynced with multiboot specification.
31662 * include/multiboot2.h: Likewise.
31663 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31664 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31665 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31666 (HAS_VGA_TEXT): Likewise.
31667 (accepts_video): New variable.
31668 (grub_multiboot_set_accepts_video): New function.
31669 (grub_multiboot_get_mbi_size): Account for video structures.
31670 (set_video_mode): New function.
31671 (retrieve_video_parameters): Likewise.
31672 (grub_multiboot_make_mbi): Fill video fields.
31674 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31678 * include/grub/video.h (grub_video_driver_id): New type.
31679 (grub_video_adapter): New member 'id'. All users updated.
31680 (grub_video_get_driver_id): New proto.
31681 * video/video.c (grub_video_get_driver_id): New function.
31683 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31685 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31688 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31690 * normal/cmdline.c (print_completion): Gettextizze.
31692 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31694 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31696 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31698 * gettext/gettext.c (grub_gettext_translate): Push and pop
31700 (grub_gettext_delete_list): Change comment style.
31701 * kern/err.c (grub_error): Gettextizze.
31702 (grub_fatal): Gettextizze.
31704 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31706 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31707 (grub_linux16_real_boot): ... this.
31708 * kern/i386/loader.S: Likewise.
31709 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31710 (grub_linux16_boot): New function. Switches to text mode and calls
31711 grub_linux16_real_boot().
31713 * loader/i386/bsd.c: Include `<grub/video.h>'.
31714 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31715 text mode before calling grub_unix_real_boot().
31717 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31718 (grub_multiboot_boot): Switch to text mode before calling
31719 grub_relocator32_boot().
31721 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31722 (grub_chainloader_boot): Switch to text mode before calling
31723 grub_chainloader_real_boot().
31725 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31726 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31728 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31731 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31732 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31734 * util/grub.d/00_header.in: Define a "savedefault" function for use
31736 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31738 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31739 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31741 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31742 saved_entry if boot_once is unset.
31743 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31744 previous saved entry (i.e. grub-reboot).
31746 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31748 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31750 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31752 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31754 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31756 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31758 * util/grub-reboot.in: Fix --version output.
31759 * util/grub-set-default.in: Likewise.
31761 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31763 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31766 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31768 * util/grub.d/00_header.in: Quote the value assigned to `default',
31769 in case it contains spaces.
31771 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31773 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31774 `save_default_entry' call from the macosx case to the linux case.
31776 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31777 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31779 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31780 in `chosen' environment variable.
31781 * normal/menu_text.c (get_entry_number): Check if the variable
31782 matches the title of a menu entry.
31783 (run_menu): Pass menu to get_entry_number.
31785 * util/grub-reboot.in: New file.
31786 * util/grub-set-default.in: New file.
31787 * conf/common.rmk (grub-reboot): New utility.
31788 (grub-set-default): New utility.
31790 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31791 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31792 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31793 move it to `saved_entry' for the next boot. Load environment on
31795 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31796 * util/grub.d/10_hurd.in: Likewise.
31797 * util/grub.d/10_linux.in (linux_entry): Likewise.
31798 * util/grub.d/10_windows.in: Likewise.
31799 * util/grub.d/30_os-prober.in: Likewise.
31801 * util/grub-install.in: Create environment block.
31802 * util/i386/efi/grub-install.in: Likewise.
31803 * util/ieee1275/grub-install.in: Likewise.
31804 * util/sparc64/ieee1275/grub-install.in: Likewise.
31806 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31808 Unit testing framework for GRUB.
31810 * Makefile.in: Test framework build rules for 'make check'.
31811 * conf/tests.rmk: Build rules for individual tests and framework.
31813 * include/grub/test.h: Header file for whitebox tests.
31814 * tests/lib/functional_test.c: Framework support for whitebox
31816 * tests/lib/test.c: Common whitebox testing code for unit and
31818 * tests/lib/unit_test.c: Framework support for whitebox unit
31821 * tests/util/grub-shell-tester.in: Support utility for grub-script
31823 * tests/util/grub-shell.in: Utility to execute grub-script
31824 commands in a Qemu instance.
31826 * tests/example_functional_test.c: Example whitebox functional
31828 * tests/example_grub_script_test.in: Example grub-script test.
31829 * tests/example_scripted_test.in: Example scripted test.
31830 * tests/example_unit_test.c: Example whitebox unit test.
31832 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31834 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31835 Add loader/i386/multiboot_mbi.c.
31836 (multiboot2_mod_SOURCES): Likewise.
31837 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31838 (multiboot2_mod_SOURCES): Likewise.
31839 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31840 (grub_multiboot_make_mbi): Likewise.
31841 (grub_multiboot_free_mbi): Likewise.
31842 (grub_multiboot_init_mbi): Likewise.
31843 (grub_multiboot_add_module): Likewise.
31844 (grub_multiboot_set_bootdev): Likewise.
31845 * loader/i386/multiboot.c (mbi): Removed.
31846 (mbi_dest): Likewise.
31847 (alloc_mbi): New variable.
31848 (grub_multiboot_payload_size): Removed. All users updated.
31849 (grub_multiboot_pure_size): New variable.
31850 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31851 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31852 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31853 (grub_fill_multiboot_mmap): Likewise.
31854 (grub_multiboot_get_bootdev): Likewise.
31855 (grub_multiboot): Use multiboot_mbi functions.
31856 * loader/i386/multiboot_mbi.c: New file.
31858 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31860 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31861 it would result in module crash.
31863 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31865 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31866 (grub_ofconsole_getwh): Split to ...
31867 (grub_ofconsole_getwh): ... this.
31868 (grub_ofconsole_dimensions): ...and this.
31869 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31871 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31875 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31877 * loader/i386/pc/multiboot2.c: Removed stalled file.
31879 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31881 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31882 Reported by: Grégoire Sutre
31884 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31886 * util/misc.c (canonicalize_file_name): New function.
31887 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31888 instead of realpath().
31890 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31892 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31893 and make it clearer that it's optional. Based on confusion
31896 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31898 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31899 in premature implicit newline.
31901 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31903 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31904 which resulted in garbled command line at the end of screen.
31906 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31909 initialization with similar approach as with other Linux loaders.
31911 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31913 Fix i386-ieee1275 build.
31915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31916 and grub_term_height() for video_{width,height} initialization.
31918 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31920 Fix grub-emu build.
31922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31924 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31925 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31927 Support for multiple terminals.
31929 * Makefile.in (pkglib_DATA): terminal.lst.
31930 (terminal.lst): New target.
31931 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31932 (GRUB_MOD_INIT(handler)): Likewise.
31933 (GRUB_MOD_FINI(handler)): Likewise.
31934 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31935 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31936 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31937 (grub_cmd_sleep): Use grub_term_save_pos.
31938 * commands/terminal.c: New file.
31939 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31940 commands/terminal.c and lib/charset.c.
31941 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31942 (pkglib_MODULES): Add terminal.mod.
31943 (terminal_mod_SOURCES): New variable.
31944 (terminal_mod_CFLAGS): Likewise.
31945 (terminal_mod_LDFLAGS): Likewise.
31946 * genhandlerlist.sh: Don't handle terminals.
31947 * genmk.rb: Generate terminal-*.lst.
31948 * genterminallist.sh: New file.
31949 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31950 (grub_is_valid_utf8): Likewise.
31951 (grub_utf8_to_ucs4_alloc): Likewise.
31952 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31953 (grub_menu_register_viewer): Changed argument.
31954 (grub_menu_try_text): New proto.
31955 (grub_gfxmenu_try_hook): New declaration.
31956 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31957 (grub_menu_init_page): Additional argument term.
31958 (grub_normal_init_page): Likewise.
31959 (grub_cmdline_get): Arguments simplified.
31960 (grub_utf8_to_ucs4_alloc): Removed.
31961 (grub_print_ucs4): Additional argument term.
31962 (grub_getstringwidth): Likewise.
31963 (grub_print_message_indented): Likewise.
31964 (grub_menu_text_register_instances): New proto.
31965 (grub_show_menu): Likewise.
31966 (read_terminal_list): Likewise.
31967 (grub_set_more): Likewise.
31968 * include/grub/parser.h: Include handler.h.
31969 * include/grub/reader.h: Rewritten.
31970 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31971 (GRUB_TERM_WIDTH): Changed to function.
31972 (GRUB_TERM_HEIGHT): Likewise.
31973 (GRUB_TERM_BORDER_WIDTH): Likewise.
31974 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31975 (GRUB_TERM_NUM_ENTRIES): Likewise.
31976 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31977 (GRUB_TERM_CURSOR_X): Likewise.
31978 (grub_term_input_class): Likewise.
31979 (grub_term_output_class): Likewise.
31980 (grub_term_outputs_disabled): New declaration.
31981 (grub_term_inputs_disabled): Likewise.
31982 (grub_term_outputs): Likewise.
31983 (grub_term_inputs): Likewise.
31984 (grub_term_register_input): Rewritten.
31985 (grub_term_register_output): Likewise.
31986 (grub_term_unregister_input): Likewise.
31987 (grub_term_unregister_output): Likewise.
31988 (FOR_ACTIVE_TERM_INPUTS): New macro.
31989 (FOR_DISABLED_TERM_INPUTS): Likewise.
31990 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31991 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31992 * include/grub/terminfo.h: Add oterm argument to all protypes.
31993 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31994 Use grub_rescue_run.
31995 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31997 * kern/reader.c: Removed. All users updated.
31998 * kern/rescue_reader.c (grub_rescue_init): Removed.
31999 (grub_rescue_reader): Likewise.
32000 (grub_register_rescue_reader): Likewise.
32001 (grub_rescue_run): New function based on kern/reader.c.
32002 * kern/term.c: Adapted for multiterm.
32003 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32004 (grub_is_valid_utf8): Likewise.
32005 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32006 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32008 * loader/i386/linux.c (grub_linux_boot): Likewise.
32009 * normal/auth.c (grub_username_get): New function.
32010 (grub_auth_check_authentication): Use grub_username_get.
32011 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32012 * normal/color.c: Adapt for multiterm.
32013 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32014 (grub_normal_init_page): Additional argument term.
32015 (read_lists): Call read_terminal_lists.
32016 (grub_enter_normal_mode): Call grub_cmdline_run.
32017 Handle grub_normal_exit_level.
32018 (grub_cmd_normal): Make reentrant.
32019 (grub_cmd_normal_exit): New function.
32020 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32021 * normal/menu.c: Adapt for multiterm.
32022 * normal/menu_entry.c: Likewise.
32023 * normal/menu_text.c: Likewise.
32024 * normal/menu_viewer.c: Removed. All users updated.
32025 * normal/term.c: New file.
32026 * util/console.c: Change order of includes to workaround a bug in
32028 * term/terminfo.c: New argument oterm on all exported functions.
32030 * util/grub-editenv.c (grub_term_input_class): Removed.
32031 (grub_term_output_class): Likewise.
32033 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32035 Make loader output a bit more user-friendly.
32037 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32038 is being loaded. Likewise for the Hurd.
32040 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32041 that kernel of FreeBSD ${version} is being loaded.
32043 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32045 (grub_cmd_initrd): Likewise.
32046 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32047 that Linux ${version} is being loaded. Likewise for initrd.
32049 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32051 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32053 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32055 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32056 (GRUB_MOD_INIT): Gettextizze.
32057 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32058 (GRUB_MOD_INIT): Gettextizze.
32059 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32060 (grub_cmd_linux): Capitalise Linux.
32061 (GRUB_MOD_INIT): Gettextizze.
32062 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32063 (grub_cmd_linux): Capitalise Linux.
32064 (GRUB_MOD_INIT): Gettextizze.
32065 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32066 (grub_cmd_linux): Capitalise Linux.
32067 (GRUB_MOD_INIT): Gettextizze.
32068 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32069 (GRUB_MOD_INIT): Gettextizze.
32070 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32071 (grub_cmd_linux): Capitalise Linux.
32072 (GRUB_MOD_INIT): Gettextizze.
32073 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32074 (grub_cpu_xnu_init): Gettextizze.
32075 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32076 (GRUB_MOD_INIT): Gettextizze.
32077 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32078 (GRUB_MOD_INIT): Gettextizze.
32079 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32080 (grub_linux_load64): Capitalise Linux.
32081 (GRUB_MOD_INIT): Gettextizze.
32082 * loader/xnu.c: Include `<grub/i18n.h>'.
32083 (GRUB_MOD_INIT): Gettextizze.
32084 * po/POTFILES: Add `loader/efi/appleloader.c',
32085 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32086 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32087 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32088 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32089 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32090 and `loader/xnu.c'.
32092 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32094 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32096 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32098 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32099 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32100 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32102 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32104 Reset Multiboot 2 support. New loader implements the draft in
32105 /branches/multiboot2 and shares as much code as possible with the
32106 production Multiboot 1 implementation.
32108 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32109 * loader/multiboot2.c: Likewise.
32110 * loader/i386/multiboot_helper.S: Likewise.
32111 * include/multiboot2.h: Replace with latest version from the draft
32112 in /branches/multiboot2.
32114 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32115 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32116 and `loader/multiboot2.c'.
32117 (pkglib_MODULES): Add `multiboot2.mod'.
32118 (multiboot2_mod_SOURCES): New variable.
32119 (multiboot2_mod_LDFLAGS): Likewise.
32120 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32122 * conf/i386-pc.rmk: Likewise.
32124 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32125 (multiboot_mod_SOURCES): Remove variable.
32126 (multiboot_mod_LDFLAGS): Likewise.
32127 (multiboot_mod_CFLAGS): Likewise.
32129 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32130 `<multiboot2.h>' instead of `<multiboot.h>'.
32131 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32132 (MULTIBOOT_HEADER_MAGIC): New macros.
32134 * loader/multiboot_loader.c (module_version_status): Remove variable.
32135 (find_multi_boot2_header): Remove function.
32136 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32137 logic. Always check for the Multiboot version we're compiling for.
32138 (grub_cmd_module_loader): Likewise.
32139 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32140 command instead of `multiboot'.
32142 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32144 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32145 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32148 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32149 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32151 Fix breakage introduced with previous commit.
32153 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32155 * normal/handler.c (read_handler_list): Revert part of previous commit
32156 affecting this file.
32157 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32158 (grub_normal_execute): ... here.
32160 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32162 Merge prefix-redefinition-fix branch.
32164 * normal/autofs.c (read_fs_list): Make function capable of being
32165 run multiple times, gracefuly replacing the previous data
32167 * normal/dyncmd.c (read_command_list): Likewise.
32168 * normal/handler.c (read_handler_list): Likewise.
32169 * normal/main.c (read_lists): New function. Calls all the
32170 list reading functions.
32171 (grub_normal_execute): Use read_lists() instead of calling all
32172 list reading functions explicitly. Register read_lists() as a
32173 variable hook attached to ${prefix}.
32175 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32177 Merge crypto branch.
32179 * Makefile.in (pkglib_DATA): Add crypto.lst.
32180 (crypto.lst): New target.
32181 * commands/hashsum.c: New file.
32182 * commands/password.c (check_password): Use grub_crypto_memcmp.
32183 * commands/password_pbkdf2.c: New file.
32184 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32185 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32186 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32187 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32188 -I$(srcdir)/lib/libgcrypt_wrap.
32189 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32190 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32191 password_pbkdf2.mod.
32192 (crypto_mod_SOURCES): New variable.
32193 (crypto_mod_CFLAGS): Likewise.
32194 (crypto_mod_LDFLAGS): Likewise.
32195 (hashsum_mod_SOURCES): New variable.
32196 (hashsum_mod_CFLAGS): Likewise.
32197 (hashsum_mod_LDFLAGS): Likewise.
32198 (pbkdf2_mod_SOURCES): New variable.
32199 (pbkdf2_mod_CFLAGS): Likewise.
32200 (pbkdf2_mod_LDFLAGS): Likewise.
32201 (password_pbkdf2_mod_SOURCES): New variable.
32202 (password_pbkdf2_mod_CFLAGS): Likewise.
32203 (password_pbkdf2_mod_LDFLAGS): Likewise.
32204 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32205 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32206 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32207 Include conf/gcry.rmk.
32208 * include/grub/auth.h: Rewritten.
32209 * include/grub/crypto.h: New file.
32210 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32211 * include/grub/normal.h (read_crypto_list): New prototype.
32212 * lib/crypto.c: New file.
32213 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32214 * lib/pbkdf2.c: Likewise.
32215 * normal/auth.c (grub_auth_strcmp): Removed.
32216 (grub_iswordseparator): Likewise.
32217 (grub_auth_strword): Likewise.
32218 (is_authenticated): Use grub_strword.
32219 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32220 and grub_strword. Pass entered password to authentication callback.
32221 * normal/crypto.c: New file.
32222 * normal/main.c: Call read_crypto_list.
32223 * util/grub-mkpasswd-pbkdf2.c: New file.
32224 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32226 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32228 Fix descent and ascent calculation.
32230 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32231 (options): New option "asce".
32233 (add_char): Ignore invalid glyphs for descent calculation.
32234 Calculate ascent from actual content.
32235 (print_glyphs): Use 'asce'.
32236 (write_font): Likewise. Allow ascent override.
32237 (main): Handle "asce" option.
32239 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32241 * kern/err.c: Include `<grub/i18n.h>'.
32242 (grub_print_error): Add full stop. Gettextizze.
32243 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32244 (grub_bsd_load_elf): Capitalise ELF.
32245 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32246 (grub_cmd_freebsd_module): Likewise.
32247 (grub_cmd_freebsd_module_elf): Likewise.
32248 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32250 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32252 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32253 * commands/search_file.c (HELP_MESSAGE): New macro.
32254 * commands/search_label.c (HELP_MESSAGE): Likewise.
32255 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32256 * po/POTFILES: Add `commands/search_file.c',
32257 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32258 `commands/search.c'.
32260 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32262 * config.rpath: Update from Gnulib.
32264 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32266 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32268 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32270 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32272 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32274 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32275 arguments to fread so that we get a return value in bytes, rather
32276 than something that will normally be rounded down to 0.
32277 Adjust error handling to avoid producing garbage when size_t is not
32278 the same size as long long.
32280 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32282 * util/mkisofs/write.c (padblock_write): Check return value of
32285 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32287 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32290 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32292 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32294 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32295 instead of manual alignment.
32296 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32297 verbose). Avoid attempts to read past end of the device
32298 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32299 but GRUB_DISK_CACHE_SIZE may exceed that).
32301 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32303 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32304 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32307 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32309 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32311 (grub_efi_piwg_device_path): New structure
32312 (grub_efi_piwg_device_path_t): New type.
32313 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32314 (devpath_1): Transform to a structure. All users updated.
32315 (devpath_2): Likewise.
32316 (devpath_3): Likewise.
32317 (devpath_4): Likewise.
32318 (devpath_5): Likewise.
32320 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32322 * loader/efi/appleloader.c: Restored. Update all users.
32324 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32326 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32328 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32329 (struct boot_blocklist): Move from here ...
32330 * include/grub/i386/pc/boot.h [ASM_FILE]
32331 (struct grub_boot_blocklist): ... to here. Update all users.
32332 (setup): Only initialize `start' member of `first_block'
32333 structure. Add assert() calls to verify the other members.
32335 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32336 (generate_image): Fix broken blocklist length initialization.
32337 Add assert() call to verify blocklist `segment' field.
32339 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32341 * loader/efi/appleloader.c: Remove. Update all users.
32343 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32345 * boot/i386/pc/boot.S: Update copyright year.
32346 * boot/i386/pc/cdboot.S: Likewise.
32347 * boot/i386/pc/diskboot.S: Likewise.
32348 * boot/i386/pc/lnxboot.S: Likewise.
32349 * boot/i386/pc/pxeboot.S: Likewise.
32350 * bus/pci.c: Likewise.
32351 * commands/cmp.c: Likewise.
32352 * commands/help.c: Likewise.
32353 * commands/hexdump.c: Likewise.
32354 * commands/i386/pc/halt.c: Likewise.
32355 * commands/i386/pc/play.c: Likewise.
32356 * commands/i386/pc/vbeinfo.c: Likewise.
32357 * commands/ls.c: Likewise.
32358 * commands/test.c: Likewise.
32359 * disk/dmraid_nvidia.c: Likewise.
32360 * disk/i386/pc/biosdisk.c: Likewise.
32361 * disk/ieee1275/nand.c: Likewise.
32362 * disk/ieee1275/ofdisk.c: Likewise.
32363 * disk/lvm.c: Likewise.
32364 * disk/raid.c: Likewise.
32365 * disk/raid6_recover.c: Likewise.
32366 * disk/scsi.c: Likewise.
32367 * fs/affs.c: Likewise.
32368 * fs/cpio.c: Likewise.
32369 * fs/ext2.c: Likewise.
32370 * fs/hfs.c: Likewise.
32371 * fs/iso9660.c: Likewise.
32372 * fs/ntfs.c: Likewise.
32373 * fs/sfs.c: Likewise.
32374 * fs/udf.c: Likewise.
32375 * fs/ufs.c: Likewise.
32376 * fs/xfs.c: Likewise.
32377 * gencmdlist.sh: Likewise.
32378 * genmk.rb: Likewise.
32379 * include/grub/disk.h: Likewise.
32380 * include/grub/efi/api.h: Likewise.
32381 * include/grub/efi/efi.h: Likewise.
32382 * include/grub/efi/pe32.h: Likewise.
32383 * include/grub/elf.h: Likewise.
32384 * include/grub/fs.h: Likewise.
32385 * include/grub/i386/at_keyboard.h: Likewise.
32386 * include/grub/i386/pc/memory.h: Likewise.
32387 * include/grub/i386/pc/vbe.h: Likewise.
32388 * include/grub/i386/pci.h: Likewise.
32389 * include/grub/i386/tsc.h: Likewise.
32390 * include/grub/ieee1275/ieee1275.h: Likewise.
32391 * include/grub/ntfs.h: Likewise.
32392 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32393 * include/grub/sparc64/libgcc.h: Likewise.
32394 * include/grub/symbol.h: Likewise.
32395 * include/grub/types.h: Likewise.
32396 * include/multiboot2.h: Likewise.
32397 * io/gzio.c: Likewise.
32398 * kern/device.c: Likewise.
32399 * kern/disk.c: Likewise.
32400 * kern/efi/efi.c: Likewise.
32401 * kern/efi/mm.c: Likewise.
32402 * kern/elf.c: Likewise.
32403 * kern/file.c: Likewise.
32404 * kern/i386/dl.c: Likewise.
32405 * kern/i386/pc/init.c: Likewise.
32406 * kern/i386/pc/startup.S: Likewise.
32407 * kern/ieee1275/ieee1275.c: Likewise.
32408 * kern/ieee1275/init.c: Likewise.
32409 * kern/main.c: Likewise.
32410 * kern/mm.c: Likewise.
32411 * kern/powerpc/dl.c: Likewise.
32412 * kern/sparc64/dl.c: Likewise.
32413 * kern/x86_64/dl.c: Likewise.
32414 * lib/hexdump.c: Likewise.
32415 * loader/efi/appleloader.c: Likewise.
32416 * loader/i386/ieee1275/linux.c: Likewise.
32417 * loader/i386/pc/chainloader.c: Likewise.
32418 * loader/i386/pc/linux.c: Likewise.
32419 * loader/i386/pc/multiboot2.c: Likewise.
32420 * loader/ieee1275/multiboot2.c: Likewise.
32421 * loader/multiboot2.c: Likewise.
32422 * loader/multiboot_loader.c: Likewise.
32423 * loader/powerpc/ieee1275/linux.c: Likewise.
32424 * normal/completion.c: Likewise.
32425 * normal/menu_entry.c: Likewise.
32426 * partmap/apple.c: Likewise.
32427 * util/grub.d/10_hurd.in: Likewise.
32428 * util/hostfs.c: Likewise.
32429 * video/readers/png.c: Likewise.
32431 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32433 * include/grub/misc.h (GNUC_PREREQ): New macro.
32434 (ATTRIBUTE_ERROR): New macro.
32435 * include/grub/list.h (grub_bad_type_cast_real): Use
32438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32440 * normal/menu_text.c (print_message): Change messages.
32442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32444 * normal/menu_entry.c (store_completion): Gettextizze.
32446 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32448 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32450 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32452 * po/POTFILES: Sort correctly.
32454 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32456 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32457 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32458 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32460 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32461 summary. Gettextizze the strings.
32462 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32463 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32464 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32466 (GRUB_MOD_INIT): Remove command name from summary.
32467 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32469 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32470 * term/i386/pc/serial.c (options): Add full stops.
32471 (GRUB_MOD_INIT): Remove command name from the summary.
32473 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32475 * commands/acpi.c: Gettextizze help strings and/or options. Include
32476 `grub/i18n.h' if needed.
32477 * commands/blocklist.c: Likewise.
32478 * commands/boot.c: Likewise.
32479 * commands/cat.c: Likewise.
32480 * commands/cmp.c: Likewise.
32481 * commands/configfile.c: Likewise.
32482 * commands/crc.c: Likewise.
32483 * commands/date.c: Likewise.
32484 * commands/echo.c: Likewise.
32485 * commands/efi/fixvideo.c: Likewise.
32486 * commands/efi/loadbios.c: Likewise.
32487 * commands/gptsync.c: Likewise.
32488 * commands/halt.c: Likewise.
32489 * commands/handler.c: Likewise.
32490 * commands/hdparm.c: Likewise.
32491 * commands/hexdump.c: Likewise.
32492 * commands/i386/cpuid.c: Likewise.
32493 * commands/i386/pc/drivemap.c: Likewise.
32494 * commands/i386/pc/halt.c: Likewise.
32495 * commands/i386/pc/pxecmd.c: Likewise.
32496 * commands/i386/pc/vbeinfo.c: Likewise.
32497 * commands/i386/pc/vbetest.c: Likewise.
32498 * commands/ieee1275/suspend.c: Likewise.
32499 * commands/keystatus.c: Likewise.
32500 * commands/loadenv.c: Likewise.
32501 * commands/ls.c: Likewise.
32502 * commands/lsmmap.c: Likewise.
32503 * commands/lspci.c: Likewise.
32504 * commands/memrw.c: Likewise.
32505 * commands/minicmd.c: Likewise.
32506 * commands/parttool.c: Likewise.
32507 * commands/password.c: Likewise.
32508 * commands/probe.c: Likewise.
32509 * commands/read.c: Likewise.
32510 * commands/reboot.c: Likewise.
32511 * commands/search.c: Likewise.
32512 * commands/sleep.c: Likewise.
32513 * commands/test.c: Likewise.
32514 * commands/true.c: Likewise.
32515 * commands/usbtest.c: Likewise.
32516 * commands/videotest.c: Likewise.
32517 * commands/xnu_uuid.c: Likewise.
32518 * disk/loopback.c: Likewise.
32519 * hello/hello.c: Likewise.
32520 * loader/i386/bsd.c: Likewise.
32521 * term/i386/pc/serial.c: Likewise.
32522 * po/POTFILES: Add new files.
32524 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32526 * term/i386/pc/at_keyboard.c
32527 (keyboard_controller_wait_untill_ready): Rename to ...
32528 (keyboard_controller_wait_until_ready): ... this. Update all users.
32530 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32532 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32533 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32534 string using string width.
32535 * normal/menu_text.c (grub_print_message_indented): Use
32536 grub_print_spaces and not print_spaces.
32537 (print_timeout): Likewise.
32538 (print_spaces): Move to...
32539 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32541 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32543 Import from Gnulib.
32545 * gnulib/getdelim.c: New file.
32546 * gnulib/getline.c: Likewise.
32548 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32550 * include/grub/list.h (grub_assert_fail): Removed.
32551 (grub_bad_type_cast_real): New function.
32552 (grub_bad_type_cast): New macro.
32553 (GRUB_AS_LIST): Use grub_bad_type_cast.
32554 (GRUB_AS_LIST_P): Likewise.
32555 (GRUB_AS_NAMED_LIST): Likewise.
32556 (GRUB_AS_NAMED_LIST_P): Likewise.
32557 (GRUB_AS_PRIO_LIST): Likewise.
32558 (GRUB_AS_PRIO_LIST_P): Likewise.
32559 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32561 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32563 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32566 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32568 * configure.ac: Check for TARGET_CFLAGS initialization before we
32569 initialize it ourselves (sigh).
32570 Move a few modifications to TARGET_CFLAGS to be unconditional
32571 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32574 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32575 * term/i386/pc/at_keyboard.c
32576 (keyboard_controller_wait_untill_ready): Likewise.
32577 (keyboard_controller_led): Rename `led_status' paramter to avoid
32580 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32582 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32585 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32587 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32589 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32591 * normal/menu_text.c (grub_print_message_indented): Prevent
32592 past-the-end-of-array dereference.
32594 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32596 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32597 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32599 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32601 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32602 * normal/main.c (grub_normal_read_line): Remove a space from the
32605 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32607 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32608 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32609 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32610 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32611 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32612 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32613 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32615 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32617 * video/readers/jpeg.c (cmd): Declare.
32618 (grub_cmd_jpegtest): Use `grub_command_t' type.
32619 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32621 (GRUB_MOD_FINI): Use `cmd' to unregister.
32622 * video/readers/png.c (cmd): Declare.
32623 (grub_cmd_pngtest): Use `grub_command_t' type.
32624 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32626 (GRUB_MOD_FINI): Use `cmd' to unregister.
32627 * video/readers/tga.c (cmd): Declare.
32628 (grub_cmd_tgatest): Use `grub_command_t' type.
32629 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32631 (GRUB_MOD_FINI): Use `cmd' to unregister.
32633 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32635 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32637 * kern/corecmd.c (grub_register_core_commands): Likewise.
32638 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32639 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32640 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32641 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32642 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32643 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32644 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32645 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32646 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32647 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32648 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32649 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32650 * normal/handler.c (insert_handler): Likewise.
32651 * normal/main.c (GRUB_MOD_INIT): Likewise.
32652 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32654 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32656 * commands/help.c (grub_cmd_help): Print the command name before the
32658 (GRUB_MOD_INIT): Remove command name from the summary.
32659 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32661 * lib/arg.c (find_long): Print the command name before the summary.
32662 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32664 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32665 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32666 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32667 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32668 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32669 * commands/date.c (GRUB_MOD_INIT): Likewise.
32670 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32671 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32672 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32673 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32674 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32675 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32676 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32677 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32678 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32679 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32680 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32681 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32682 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32683 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32684 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32685 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32686 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32687 * commands/password.c (GRUB_MOD_INIT): Likewise.
32688 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32689 * commands/read.c (GRUB_MOD_INIT): Likewise.
32690 * commands/search.c (GRUB_MOD_INIT): Likewise.
32691 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32692 * commands/test.c (GRUB_MOD_INIT): Likewise.
32693 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32694 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32695 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32696 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32697 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32698 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32699 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32700 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32701 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32702 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32703 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32704 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32705 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32706 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32708 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32710 Use search command for preliminar UUID search.
32712 * commands/search.c: Split into ...
32713 * commands/search_wrap.c: ...this
32714 * commands/search.c: ...and this.
32715 * commands/search_file.c: New file.
32716 * commands/search_label.c: New file.
32717 * commands/search_uuid.c: New file.
32718 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32719 Add commands/search_wrap.c, commands/search_file.c,
32720 commands/search_label.c and commands/search_uuid.c.
32721 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32722 (search_mod_SOURCES): Set to commands/search_wrap.c.
32723 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32725 (search_fs_file_mod_SOURCES): New variable.
32726 (search_fs_file_mod_CFLAGS): Likewise.
32727 (search_fs_file_mod_LDFLAGS): Likewise.
32728 (search_label_mod_SOURCES): Likewise.
32729 (search_label_mod_CFLAGS): Likewise.
32730 (search_label_mod_LDFLAGS): Likewise.
32731 (search_fs_uuid_mod_SOURCES): New variable.
32732 (search_fs_uuid_mod_CFLAGS): Likewise.
32733 (search_fs_uuid_mod_LDFLAGS): Likewise.
32734 (fs_file_mod_SOURCES): Removed.
32735 (fs_file_mod_CFLAGS): Likewise.
32736 (fs_file_mod_LDFLAGS): Likewise.
32737 (fs_uuid_mod_SOURCES): Removed.
32738 (fs_uuid_mod_CFLAGS): Likewise.
32739 (fs_uuid_mod_LDFLAGS): Likewise.
32740 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32741 Set to util/grub-install.in.
32742 * disk/fs_file.c: Removed.
32743 * disk/fs_uuid.c: Likewise.
32744 * include/grub/search.h: New file.
32745 * util/grub-install.in: Handle sparc64.
32746 Create and use load.cfg.
32747 * util/sparc64/ieee1275/grub-install.in: Removed.
32749 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32751 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32752 Ignore return status if CF is cleared.
32753 (grub_biosdisk_get_diskinfo_standard): Likewise.
32755 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32757 * term/i386/pc/at_keyboard.c
32758 (keyboard_controller_wait_untill_ready): New function.
32759 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32760 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32761 for keyboard polling, rather than duplicate the same loop. This
32762 saves a few bytes in code size.
32764 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32766 Support for (pxe[:server[:gateway]]) syntax and
32767 use environment variable for PXE.
32769 * commands/i386/pc/pxecmd.c (options): Removed.
32770 (print_ip): Removed.
32771 (grub_cmd_pxe): Removed
32772 (grub_cmd_pxe_unload): New function.
32773 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32774 (grub_pxe_your_ip): Made static.
32775 (grub_pxe_default_server_ip): Likewise.
32776 (grub_pxe_default_gateway_ip): Likewise.
32777 (grub_pxe_blksize): Likewise.
32778 (parse_ip): New function.
32779 (grub_pxe_open): Support server and gateway specification.
32780 (grub_pxe_close): Free disk->data.
32781 (grub_pxefs_open): Use disk->data.
32782 (grub_pxefs_read): Likewise.
32783 (grub_env_write_readonly): New function.
32784 (set_mac_env): Likewise.
32785 (set_env_limn_ro): Likewise.
32786 (parse_dhcp_vendor): Likewise.
32787 (grub_pxe_detect): Set the environment variables.
32788 (set_ip_env): New function.
32789 (write_ip_env): Likewise.
32790 (grub_env_write_pxe_default_server): Likewise.
32791 (grub_env_write_pxe_default_gateway): Likewise.
32792 (grub_env_write_pxe_blocksize): Likewise.
32793 (GRUB_MOD_INIT(pxe)): Set environment variables.
32794 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32795 (grub_pxe_mac_addr_t): ... this. All users updated.
32796 (grub_pxe_your_ip): Removed.
32797 (grub_pxe_server_ip): Likewise.
32798 (grub_pxe_gateway_ip): Likewise.
32799 (grub_pxe_blksize): Likewise.
32801 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32803 * commands/help.c: Include `<grub/i18n.h>'.
32804 (grub_cmd_help): Gettextizze.
32805 (GRUB_MOD_INIT): Likewise.
32806 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32807 (GRUB_MOD_INIT): Gettextizze.
32808 * commands/search.c: Include `<grub/i18n.h>'.
32809 (options): Gettextizze.
32810 (GRUB_MOD_INIT): Gettextizze.
32811 * lib/arg.c: Include `<grub/i18n.h>'.
32812 (help_options): Gettextizze.
32813 (find_long): Likewise.
32814 (grub_arg_show_help): Likewise.
32815 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32816 (read_command_list): Gettextizze.
32817 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32818 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32820 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32822 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32823 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32824 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32825 (led_status): New variable.
32826 (keyboard_controller_led): New function.
32827 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32828 update led status for caps lock, num lock and scroll lock.
32830 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32832 * util/hostdisk.c (open_device): Fix a comment.
32834 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32836 * util/grub-install.in (host_os): New variable.
32837 * util/i386/efi/grub-install.in (host_os): Likewise.
32839 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32841 * util/mkisofs/write.c (padblock_write): Abort when given an
32842 excedingly large embed image, instead of silently truncating it.
32844 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32846 * include/multiboot.h: Indentation fixes.
32848 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32850 * include/multiboot.h (struct multiboot_aout_symbol_table)
32851 (struct multiboot_elf_section_header_table): New structure
32852 declarations (stolen from GRUB Legacy).
32853 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32856 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32857 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32860 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32862 * include/multiboot.h: Make comments src2texi-friendly.
32864 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32866 For consistency with [multiboot]/docs/boot.S.
32868 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32869 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32870 (MULTIBOOT_MAGIC2): Rename from this ...
32871 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32873 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32875 * include/multiboot.h: Remove `<grub/types.h>'.
32876 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32877 types. Update all users.
32879 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32881 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32882 `couldn't' and `can not' by `cannot'.
32883 * commands/i386/pc/drivemap.c: Likewise.
32884 * disk/ata.c: Likewise.
32885 * disk/ieee1275/nand.c: Likewise.
32886 * fs/affs.c: Likewise.
32887 * fs/fat.c: Likewise.
32888 * fs/hfs.c: Likewise.
32889 * fs/hfsplus.c: Likewise.
32890 * fs/iso9660.c: Likewise.
32891 * fs/jfs.c: Likewise.
32892 * fs/minix.c: Likewise.
32893 * fs/reiserfs.c: Likewise.
32894 * fs/sfs.c: Likewise.
32895 * fs/udf.c: Likewise.
32896 * fs/ufs.c: Likewise.
32897 * fs/xfs.c: Likewise.
32898 * loader/powerpc/ieee1275/linux.c: Likewise.
32899 * loader/sparc64/ieee1275/linux.c: Likewise.
32900 * util/grub-probe.c: Likewise.
32901 * util/misc.c: Likewise.
32903 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32905 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32907 * commands/acpi.c: Likewise.
32908 * commands/blocklist.c: Likewise.
32909 * commands/efi/loadbios.c: Likewise.
32910 * commands/i386/pc/drivemap.c: Likewise.
32911 * commands/loadenv.c: Likewise.
32912 * commands/memrw.c: Likewise.
32913 * commands/password.c: Likewise.
32914 * commands/videotest.c: Likewise.
32915 * disk/ata.c: Likewise.
32916 * disk/ata_pthru.c: Likewise.
32917 * disk/dmraid_nvidia.c: Likewise.
32918 * disk/ieee1275/nand.c: Likewise.
32919 * disk/ieee1275/ofdisk.c: Likewise.
32920 * disk/loopback.c: Likewise.
32921 * disk/lvm.c: Likewise.
32922 * disk/mdraid_linux.c: Likewise.
32923 * disk/raid.c: Likewise.
32924 * disk/raid6_recover.c: Likewise.
32925 * disk/scsi.c: Likewise.
32926 * efiemu/main.c: Likewise.
32927 * efiemu/mm.c: Likewise.
32928 * efiemu/pnvram.c: Likewise.
32929 * efiemu/symbols.c: Likewise.
32930 * font/font.c: Likewise.
32931 * fs/cpio.c: Likewise.
32932 * fs/hfsplus.c: Likewise.
32933 * fs/iso9660.c: Likewise.
32934 * fs/jfs.c: Likewise.
32935 * fs/minix.c: Likewise.
32936 * fs/ntfs.c: Likewise.
32937 * fs/ntfscomp.c: Likewise.
32938 * fs/reiserfs.c: Likewise.
32939 * fs/ufs.c: Likewise.
32940 * fs/xfs.c: Likewise.
32941 * gettext/gettext.c: Likewise.
32942 * include/grub/auth.h: Likewise.
32943 * kern/elf.c: Likewise.
32944 * kern/file.c: Likewise.
32945 * kern/ieee1275/init.c: Likewise.
32946 * kern/ieee1275/mmap.c: Likewise.
32947 * kern/ieee1275/openfw.c: Likewise.
32948 * kern/powerpc/dl.c: Likewise.
32949 * kern/sparc64/dl.c: Likewise.
32950 * lib/arg.c: Likewise.
32951 * loader/i386/bsd.c: Likewise.
32952 * loader/i386/bsdXX.c: Likewise.
32953 * loader/i386/efi/linux.c: Likewise.
32954 * loader/i386/efi/xnu.c: Likewise.
32955 * loader/i386/ieee1275/linux.c: Likewise.
32956 * loader/i386/linux.c: Likewise.
32957 * loader/i386/multiboot.c: Likewise.
32958 * loader/i386/pc/linux.c: Likewise.
32959 * loader/i386/pc/multiboot2.c: Likewise.
32960 * loader/i386/xnu.c: Likewise.
32961 * loader/ieee1275/multiboot2.c: Likewise.
32962 * loader/macho.c: Likewise.
32963 * loader/machoXX.c: Likewise.
32964 * loader/multiboot2.c: Likewise.
32965 * loader/multiboot_loader.c: Likewise.
32966 * loader/powerpc/ieee1275/linux.c: Likewise.
32967 * loader/sparc64/ieee1275/linux.c: Likewise.
32968 * loader/xnu.c: Likewise.
32969 * loader/xnu_resume.c: Likewise.
32970 * mmap/i386/pc/mmap.c: Likewise.
32971 * normal/menu_viewer.c: Likewise.
32972 * partmap/acorn.c: Likewise.
32973 * partmap/amiga.c: Likewise.
32974 * partmap/apple.c: Likewise.
32975 * script/lexer.c: Likewise.
32976 * term/gfxterm.c: Likewise.
32977 * term/i386/pc/serial.c: Likewise.
32978 * term/i386/pc/vga.c: Likewise.
32979 * term/ieee1275/ofconsole.c: Likewise.
32980 * term/terminfo.c: Likewise.
32981 * video/bitmap.c: Likewise.
32982 * video/efi_gop.c: Likewise.
32983 * video/efi_uga.c: Likewise.
32984 * video/fb/video_fb.c: Likewise.
32985 * video/i386/pc/vbe.c: Likewise.
32986 * video/readers/tga.c: Likewise.
32987 * video/video.c: Likewise.
32989 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32991 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32992 * commands/lspci.c: Likewise.
32993 * commands/probe.c: Likewise.
32994 * commands/xnu_uuid.c: Likewise.
32995 * conf/i386-coreboot.rmk: Likewise.
32996 * conf/i386-efi.rmk: Likewise.
32997 * conf/i386-ieee1275.rmk: Likewise.
32998 * conf/i386-pc.rmk: Likewise.
32999 * conf/powerpc-ieee1275.rmk: Likewise.
33000 * conf/sparc64-ieee1275.rmk: Likewise.
33001 * conf/x86_64-efi.rmk: Likewise.
33002 * fs/i386/pc/pxe.c: Likewise.
33003 * gettext/gettext.c: Likewise.
33004 * include/grub/efi/graphics_output.h: Likewise.
33005 * include/grub/i386/pc/memory.h: Likewise.
33006 * kern/env.c: Likewise.
33007 * kern/i386/qemu/startup.S: Likewise.
33008 * lib/i386/pc/biosnum.c: Likewise.
33009 * lib/i386/relocator.c: Likewise.
33010 * lib/i386/relocator_asm.S: Likewise.
33011 * lib/relocator.c: Likewise.
33012 * loader/i386/bsd.c: Likewise.
33013 * loader/i386/multiboot.c: Likewise.
33014 * loader/i386/pc/chainloader.c: Likewise.
33015 * loader/i386/xnu.c: Likewise.
33016 * loader/xnu.c: Likewise.
33017 * normal/main.c: Likewise.
33018 * normal/menu_text.c: Likewise.
33019 * util/getroot.c: Likewise.
33020 * util/grub-mkconfig_lib.in: Likewise.
33021 * util/grub.d/00_header.in: Likewise.
33022 * util/i386/pc/grub-mkimage.c: Likewise.
33023 * util/mkisofs/eltorito.c: Likewise.
33024 * util/mkisofs/exclude.h: Likewise.
33025 * util/mkisofs/hash.c: Likewise.
33026 * util/mkisofs/iso9660.h: Likewise.
33027 * util/mkisofs/joliet.c: Likewise.
33028 * util/mkisofs/mkisofs.c: Likewise.
33029 * util/mkisofs/mkisofs.h: Likewise.
33030 * util/mkisofs/multi.c: Likewise.
33031 * util/mkisofs/name.c: Likewise.
33032 * util/mkisofs/rock.c: Likewise.
33033 * util/mkisofs/tree.c: Likewise.
33034 * util/mkisofs/write.c: Likewise.
33035 * video/efi_gop.c: Likewise.
33037 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33039 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33042 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33044 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33045 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33047 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33049 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33050 (GRUB_MOD_INIT(memrw)): Update help line.
33052 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33054 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33055 Use grub_extcmd_t. All users updated.
33056 (options): New variable.
33057 (grub_cmd_read): Restructure for readability. Support "-v" option.
33058 (grub_cmd_write): Restructure for readability.
33060 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33062 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33064 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33066 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33067 with the actual contents of the correspondending make variable.
33068 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33069 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33070 specifying `*.lst' and `efiemu??.o'
33072 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33074 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33075 after function name.
33076 Noticed by Rene Engelhard <rene@debian.org>.
33078 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33080 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33081 (options): New variable.
33082 (iospace): Likewise.
33083 (grub_lspci_iter): List IO spaces if "-i" was given.
33084 (grub_cmd_lspci): Parse options.
33085 (GRUB_MOD_INIT(lspci)): Use extcmd.
33086 (GRUB_MOD_FINI(lspci)): Likewise.
33088 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33090 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33091 `function' keyword.
33092 Patch by Tony Mancill <tmancill@debian.org>.
33094 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33096 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33097 (grub_uhci_portstatus): Likewise.
33098 (grub_uhci_portstatus): Add necessary delay.
33099 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33101 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33103 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33104 (GRUB_MOD_INIT): Likewise.
33105 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33106 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33107 * commands/echo.c (options): Fix capitalizations and/or full stops.
33108 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33109 (enable_rom_area): Likewise.
33110 (GRUB_MOD_INIT): Likewise.
33111 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33112 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33113 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33114 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33115 * commands/hexdump.c (options): Likewise.
33116 * commands/i386/cpuid.c (options): Likewise.
33117 (GRUB_MOD_INIT): Likewise.
33118 * commands/i386/pc/drivemap.c (options): Likewise.
33119 (GRUB_MOD_INIT): Likewise.
33120 * commands/i386/pc/halt (options): Likewise.
33121 (GRUB_MOD_INIT): Likewise.
33122 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33123 * commands/i386/pc/pxecmd.c (options): Likewise.
33124 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33125 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33126 * commands/keystatus.c (options): Likewise.
33127 (GRUB_MOD_INIT): Likewise.
33128 * commands/loadenv.c (options): Likewise.
33129 * commands/ls.c (options): Likewise.
33130 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33131 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33132 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33133 * commands/parttool.c (helpmsg): Likewise.
33134 * commands/probe.c (options): Likewise.
33135 * commands/read.c (GRUB_MOD_INIT): Likewise.
33136 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33137 * commands/search.c (options): Likewise.
33138 * commands/sleep.c (options): Likewise.
33139 * commands/test.c (GRUB_MOD_INIT): Likewise.
33140 * commands/true.c (GRUB_MOD_INIT): Likewise.
33141 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33142 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33143 * lib/arg.c (help_options): Likewise.
33144 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33146 * po/POTFILES: Add `commands/loadenv.c'.
33148 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33150 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33151 instead of specifying them explicit.
33153 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33155 * NEWS: Add grub-probe support for GNU/Hurd.
33157 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33159 * NEWS: gettext was added after 1.97.
33161 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33163 * util/mkisofs/msdos_partition.h: New file (based on
33164 include/grub/msdos_partition.h).
33165 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33166 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33167 (ld_options, main): Recognize --protective-msdos-label.
33168 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33169 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33170 (padblock_write): If `use_protective_msdos_label' is set, patch a
33171 protective DOS-style label in the output image.
33173 * util/grub-mkrescue.in: Use --protective-msdos-label.
33175 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33177 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33180 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33182 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33184 (ld_options, main): Recognize `--embedded-boot'.
33185 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33187 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33188 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33189 (padblock_write): Likewise. Rewrite to support embedded boot image.
33191 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33192 for BIOS-based disk boot instead of only ElTorito.
33194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33196 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33197 build (not needed for bootstrap).
33199 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33201 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33202 from i386-pc build (not needed for bootstrap).
33203 Rewrite a pair of strings.
33205 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33207 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33209 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33211 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33213 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33215 * kern/env.c (grub_env_context_open): Mark exported variable for
33218 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33220 * kern/env.c (grub_env_export): Create nonexistent variables before
33223 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33225 * include/grub/auth.h: Include `<grub/i18n.h>'.
33226 (GRUB_GET_PASSWORD): Gettextizze string.
33227 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33229 (grub_utf8_to_ucs4_alloc): Fix indentation.
33230 (grub_print_ucs4): Likewise.
33231 (grub_getstringwidth): Likewise.
33232 (print_message_indented): New declaration.
33233 * normal/auth.c: Include `<grub/i18n.h>'.
33234 (grub_auth_check_authentication): Gettexttize string.
33235 * normal/cmdline.c: Include `<grub/i18n.h>'.
33236 (grub_cmdline_get): Gettextizze.
33237 * normal/color.c: Include `<grub/i18n.h>'.
33238 (grub_parse_color_name_pair): Gettexttize strings.
33239 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33240 string (use `print_message_indented').
33241 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33242 `include/grub/normal.h'.
33243 (print_message_indented): Renamed to ...
33244 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33245 used in normal/main.c).
33246 (print_message): Use `grub_print_message_indented' instead of
33247 `print_message_indented'.
33248 (print_timeout): Likewise.
33249 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33250 (grub_normal_print_device_info): Gettexttize strings.
33251 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33253 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33255 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33256 of arguments. Return number of tokens and not arguments. All users
33259 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33261 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33262 non-MSDOS paritions.
33264 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33266 * include/grub/types.h (UNUSED): Removed since it conflicts with
33267 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33268 Reported by Grégoire Sutre.
33270 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33272 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33273 (grub_print_ucs4_alloc): Likewise.
33274 (grub_getstringwidth): Likewise.
33275 * normal/main.c (grub_normal_init_page): Gettextize version string.
33276 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33277 (getstringwidth): Renamed to ...
33278 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33279 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33280 (grub_print_ucs4): Remove `static' qualifer (now used in
33282 * po/POTFILES: Add normal/main.c.
33284 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33286 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33287 (print_message_indented): Add `margin_left' and `margin_right'
33289 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33291 (print_timeout): Use `print_message_indented' to print the message.
33292 Deletes `second_stage' parameter.
33293 (run_menu): Update `print_timeout' calls.
33295 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33297 Fix console palette on OpenFirmware.
33299 * term/ieee1275/ofconsole.c (MAX): Removed.
33300 (colors): Redone based on VGA palette.
33301 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33302 colors are supported.
33303 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33305 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33307 Fix potential EfiEmu double prepare.
33309 * efiemu/main.c (prepared): New variable
33310 (grub_efiemu_unload): Set prepare to '0'.
33311 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33313 set_virtual_address_map support.
33315 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33317 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33319 (grub_efiemu_crc32): Likewise.
33320 (grub_efiemu_crc64): Likewise.
33321 (grub_efiemu_set_virtual_address_map): Likewise.
33322 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33324 (grub_autoefi_set_virtual_address_map): Likewise.
33325 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33326 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33327 Restructure flow to accomodate it.
33328 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33329 (grub_efiemu_crc): Recompute CRC32.
33330 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33331 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33332 * efiemu/symbols.c (relocated_handle): New variable.
33333 (grub_efiemu_free_syms): Free relocated_handle.
33334 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33335 (grub_efiemu_write_sym_markers): New function.
33336 (grub_efiemu_set_virtual_address_map): Likewise.
33338 Newer XNU parameters.
33340 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33341 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33342 (grub_xnu_fill_devicetree): New prototype.
33343 (grub_xnu_heap_real_start): New variable.
33344 * loader/xnu.c (get_name_ptr): New function.
33345 (grub_xnu_load_driver): Fill namelen and name.
33347 64-bit xnu support.
33349 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33350 and 'loader/macho64.c'.
33351 * conf/i386-pc.rmk: Likewise.
33352 * conf/x86_64-efi.rmk: Likewise.
33353 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33354 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33355 * include/grub/macho.h (grub_macho_segment64): New structure.
33356 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33357 (grub_macho_size32): ... to this.
33358 (grub_macho32_get_entry_point): Renamed from ...
33359 (grub_macho_get_entry_point32): ... to this.
33360 (grub_macho_contains_macho64): New prototype.
33361 (grub_macho_size64): Likewise.
33362 (grub_macho_get_entry_point64): Likewise.
33363 (grub_macho32_load): Renamed from ...
33364 (grub_macho_load32): ... to this.
33365 (grub_macho32_filesize): Renamed from ...
33366 (grub_macho_filesize32): ... to this.
33367 (grub_macho32_readfile): Renamed from ...
33368 (grub_macho_readfile32): ... to this.
33369 (grub_macho_filesize64): New prototype.
33370 (grub_macho_readfile64): Likewise.
33371 (grub_macho_parse32): Likewise.
33372 (grub_macho_parse64): Likewise.
33373 * loader/macho.c: Split into ...
33374 * loader/machoXX.c: ... and this. Replace 32 with XX.
33375 * loader/macho32.c: New file.
33376 * loader/macho64.c: Likewise.
33377 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33378 (grub_cmd_xnu_kernel): Make 32-bit only.
33379 (grub_cmd_xnu_kernel64): New function.
33380 (grub_xnu_load_driver): Support Mach-O 64.
33381 (grub_cmd_xnu_mkext): Likewise.
33382 * util/grub.d/30_os-prober.in (osx_entry): New function.
33383 Generate entries for 64-bit boot too.
33385 Eliminate ad-hoc tree format in XNU and EfiEmu.
33387 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33388 * efiemu/pnvram.c: Rewritten to use environment variables.
33391 Inline utf16_to_utf8.
33393 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33394 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33396 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33398 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33399 * commands/usbtest.c (grub_usb_get_string): ... move here.
33400 (usb_print_str): Fix error handling.
33401 * include/grub/usb.h (grub_usb_get_string): Remove.
33403 UTF-8 to UTF-16 transformation.
33405 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33406 (charset_mod_SOURCES): New variable.
33407 (charset_mod_CFLAGS): Likewise.
33408 (charset_mod_LDFLAGS): Likewise.
33409 * include/grub/utf.h: New file.
33410 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33412 Support for device properties.
33414 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33415 (grub_xnu_devprop_device_header): Likewise.
33416 (grub_xnu_devprop_device_descriptor): Likewise.
33417 (grub_xnu_devprop_add_device): New prototype.
33418 (grub_xnu_devprop_remove_device): Likewise.
33419 (grub_xnu_devprop_remove_property): Likewise.
33420 (grub_xnu_devprop_add_property_utf8): Likewise.
33421 (grub_xnu_devprop_add_property_utf16): Likewise.
33422 (grub_cpu_xnu_init): Likewise.
33423 (grub_cpu_xnu_fini): Likewise.
33424 (grub_cpu_xnu_unload): Likewise.
33425 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33426 (property_descriptor): Likewise.
33427 (devices): New variable.
33428 (grub_xnu_devprop_remove_property): New function.
33429 (grub_xnu_devprop_add_device): Likewise.
33430 (grub_xnu_devprop_remove_device): Likewise.
33431 (grub_xnu_devprop_add_property): Likewise.
33432 (grub_xnu_devprop_add_property_utf8): Likewise.
33433 (grub_xnu_devprop_add_property_utf16): Likewise.
33434 (hextoval): Likewise.
33435 (grub_cpu_xnu_fill_devprop): Likewise.
33436 (grub_cmd_devprop_load): Likewise.
33437 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33438 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33439 (cmd_devprop_load): New variable.
33440 (grub_cpu_xnu_init): New function.
33441 (grub_cpu_xnu_fini): Likewise.
33442 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33443 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33444 (grub_cmd_xnu_devtree): Likewise.
33445 (hextoval): New function.
33446 (unescape): Likewise.
33447 (grub_xnu_fill_devicetree): Likewise.
33449 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33450 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33452 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33454 Workaround for broken ATI VBE.
33456 * video/i386/pc/vbe.c (last_set_mode): New variable.
33457 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33458 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33459 (grub_video_vbe_setup): Don't check for reserved flag.
33461 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33463 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33464 the `find' command.
33466 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33468 UUID support for HFS.
33470 * fs/hfs.c (grub_hfs_uuid): New function.
33471 (grub_hfs_fs): New value .uuid.
33472 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33474 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33476 Fix a segfault with parsing unknown long options.
33478 * util/grub-mkrelpath.c (options): Zero terminate it.
33480 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33482 * include/grub/misc.h (grub_puts): New declaration.
33483 (grub_puts_): Likewise.
33484 * kern/misc.c (grub_puts): New definition.
33485 (grub_puts_): Likewise.
33487 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33489 * util/grub-probe.c (probe): Improve error message.
33491 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33493 * loader/i386/multiboot_elfxx.c
33494 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33497 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33499 Relocator framework
33501 * loader/i386/xnu_helper.S: Removed. All users updated.
33502 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33503 (relocator_mod_SOURCES): New variable.
33504 (relocator_mod_CFLAGS): Likewise.
33505 (relocator_mod_LDFLAGS): Likewise.
33506 (relocator_mod_ASFLAGS): Likewise.
33507 * conf/x86_64.rmk: Likewise.
33508 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33509 (grub_multiboot_payload_entry_offset): Likewise.
33510 (grub_multiboot_forward_relocator): Likewise.
33511 (grub_multiboot_forward_relocator_end): Likewise.
33512 (grub_multiboot_backward_relocator): Likewise.
33513 (grub_multiboot_backward_relocator_end): Likewise.
33514 (grub_multiboot_payload_eip): New variable.
33515 (grub_multiboot_payload_orig): Likewise.
33516 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33517 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33518 * include/grub/i386/memory.h
33519 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33520 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33521 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33522 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33523 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33524 * include/grub/i386/relocator.h: New file.
33525 * include/grub/x86_64/relocator.h: Likewise.
33526 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33527 (XNU_RELOCATOR): New macro.
33528 (grub_xnu_launcher_start): Remove.
33529 (grub_xnu_launcher_end): Likewise.
33530 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33531 (grub_xnu_heap_real_start): Remove.
33532 (grub_xnu_heap_start): Change to void *. All users updated.
33533 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33534 * lib/i386/relocator.c: New file.
33535 * lib/i386/relocator_asm.S: Likewise.
33536 * lib/i386/relocator_backward.S: Likewise.
33537 * lib/mips/relocator.c: Likewise.
33538 * lib/mips/relocator_asm.S: Likewise.
33539 * lib/relocator.c: Likewise.
33540 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33542 (playground): Likewise.
33543 (grub_multiboot_payload_orig): New variable.
33544 (grub_multiboot_payload_dest): Likewise.
33545 (grub_multiboot_payload_size): Likewise.
33546 (grub_multiboot_payload_eip): Likewise.
33547 (grub_multiboot_payload_esp): Likewise.
33548 (grub_multiboot_boot): Use grub_relocator32_boot.
33549 (grub_multiboot_unload): Free relocators.
33550 (grub_multiboot): Setup stack. Use relocators.
33551 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33552 (grub_multiboot_load_elfXX): Use relocators.
33553 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33554 (grub_multiboot_payload_size): Likewise.
33555 (grub_multiboot_payload_dest): Likewise.
33556 (grub_multiboot_payload_entry_offset): Likewise.
33557 (grub_multiboot_forward_relocator): Likewise.
33558 (grub_multiboot_backward_relocator): Likewise.
33559 (grub_multiboot_real_boot): Likewise.
33560 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33561 (grub_xnu_entry_point): Likewise.
33562 (grub_xnu_arg1): Likewise.
33563 (grub_xnu_stack): Likewise.
33564 (grub_xnu_launch): Removed.
33565 (grub_xnu_boot_resume): New function.
33566 (grub_xnu_boot): Use relocators.
33567 * loader/i386/xnu_helper.S: Removed.
33568 * loader/xnu.c (grub_xnu_heap_start): New variable.
33569 (grub_xnu_heap_size): Likewise.
33570 (grub_xnu_heap_malloc): Use relocators.
33571 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33573 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33575 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33578 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33580 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33581 GRUB_ERR_NONE before calling grub_env_set.
33583 2009-12-12 Robert Millan <rmh@aybabtu.com>
33585 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33586 * genmk.rb (video): New variable.
33587 (CLEANFILES, VIDEOFILES): Add #{video}.
33588 (#{video}): New target rule.
33589 * genvideolist.sh: New file.
33590 * Makefile.in (pkglib_DATA): Add video.lst.
33591 (video.lst): New target rule.
33592 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33594 * util/grub.d/30_os-prober.in: Replace `vbe' with
33595 ${GRUB_VIDEO_BACKEND}.
33597 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33599 * THANKS: Add David Miller.
33601 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33603 libpciaccess support.
33605 * Makefile.in (LIBPCIACCESS): New variable.
33606 (enable_grub_emu_pci): Likewise.
33607 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33608 util/pci.c and commands/lspci.c.
33609 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33610 * configure.ac (grub-emu-pci): New option.
33611 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33612 (grub_pci_device_unmap_range): Likewise.
33613 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33614 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33615 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33616 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33617 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33618 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33619 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33620 * include/grub/pciutils.h: New file.
33621 * util/pci.c: Likewise.
33623 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33625 * util/misc.c: Don't include <errno.h> twice.
33627 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33629 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33630 name in an error message.
33631 (grub_biosdisk_rw): Likewise.
33633 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33635 Eliminate NTFS 4Gib barrier.
33637 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33638 (read_run_data): Likewise.
33639 (grub_ntfs_read_run_list): Likewise.
33640 (grub_ntfs_read_block): Likewise.
33641 (grub_ntfs_iterate_dir): Likewise.
33642 (read_mft): Likewise.
33643 (read_data): Likewise.
33645 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33646 to avoid 64-bit division
33647 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33648 (grub_ntfs_rlst): Use grub_disk_addr_t.
33650 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33652 Eliminate grub-fstest 4Gib barrier.
33654 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33655 (read_file): Fix error reporting.
33657 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33659 Eliminate hexdump 4Gib barrier.
33661 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33662 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33664 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33666 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33669 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33671 Remove miscellaneous files in distclean target.
33673 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33675 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33677 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33678 if they're already set. This resolves the conflict between my
33679 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33680 fixing the --grub-probe option again.
33681 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33682 change on 2009-10-06, so that we now once again source
33683 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33685 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33687 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33688 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33689 `util/devicemap.c'.
33691 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33693 * include/grub/misc.h (grub_printf_): New declaration.
33694 * kern/misc.c (grub_printf_): New definition.
33695 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33696 instead of `grub_printf' and `_'.
33697 * normal/menu_entry.c (store_completion): Likewise.
33699 (grub_menu_entry_run): Likewise.
33700 * normal/menu_text.c (grub_wait_after_message): Likewise.
33701 (notify_booting): Likewise.
33702 (notify_fallback): Likewise.
33703 (notify_execution_failure): Likewise.
33705 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33707 * configure.ac: Check for vasprintf.
33708 * util/misc.c (asprintf): Move allocation from here ...
33709 (vasprintf): ... to here. New function.
33710 (xasprintf): New function.
33711 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33713 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33714 * util/grub-mkfont.c (write_font): Likewise.
33715 * util/grub-probe.c (probe): Likewise.
33716 * util/hostdisk.c (make_device_name): Likewise.
33718 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33721 anything even prefixed with 'cdrom' as a cdrom.
33723 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33725 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33728 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33730 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33731 grub_gettext_msg_list.
33732 (grub_gettext_gettranslation_from_position): Return const char *
33734 (grub_gettext_translate): Add the translated strings into a list,
33735 returns from the list if existing there.
33736 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33737 (grub_gettext_delete_list): Delete the list.
33738 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33739 lang environment variable is changed.
33740 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33742 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33744 Rename kernel.mod to kernel.img.
33746 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33747 (kernel_mod_EXPORTS): Rename to ...
33748 (kernel_img_EXPORTS): ... this.
33749 (kernel_mod_SOURCES): Rename to ...
33750 (kernel_img_SOURCES): ... this.
33751 (kernel_mod_HEADERS): Rename to ...
33752 (kernel_img_HEADERS): ... this. All users updated.
33753 (kernel_mod_CFLAGS): Rename to ...
33754 (kernel_img_CFLAGS): ... this.
33755 (kernel_mod_ASFLAGS): Rename to ...
33756 (kernel_img_ASFLAGS): ... this.
33757 (kernel_mod_LDFLAGS): Rename to ...
33758 (kernel_img_LDFLAGS): ... this.
33759 * conf/x86_64-efi.rmk: Likewise.
33760 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33761 (read_kernel_image): ... this. All users updated.
33762 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33764 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33766 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33767 (print_spaces): New function.
33768 (grub_print_ucs4): New function.
33769 (getstringwidth): New function.
33770 (print_message_indented): New function.
33771 (print_message): Gettexttize strings using print_message_indented.
33772 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33774 (get_entry_number): Gettextize and uses dynamic terminal width.
33775 (notify_booting, notify_fallback, notify_execution_failure):
33777 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33780 (grub_menu_entry_run): Likewise.
33781 * PO/POTFILES: Add normal/menu_entry.c.
33783 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33785 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33787 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33789 * util/grub-install.in: Install gettext .mo files.
33790 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33792 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33794 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33797 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33799 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33800 non-firmware-dependant one in realmode.S takes precedence.
33802 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33804 * commands/halt.c: Replace misc arch-specific headers with
33806 * commands/reboot.c: Likewise.
33807 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33809 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33810 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33811 (kernel_img_SOURCES): ... to here.
33813 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33814 * include/grub/i386/pc/init.h: Likewise.
33815 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33816 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33818 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33820 * include/grub/i386/halt.h: Remove.
33821 * include/grub/i386/reboot.h: Likewise.
33823 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33825 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33827 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33828 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33829 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33831 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33832 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33833 (usage): Add missing comma in printf.
33835 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33837 Use the same reboot approach on i386 coreboot and qemu as we do on
33840 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33841 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33842 * kern/i386/reboot.c: Remove.
33843 * include/grub/i386/reboot.h (grub_reboot): Export function.
33844 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33845 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33846 0xf000:0xfff0 instead of 0xffff:0x0000.
33847 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33848 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33850 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33852 Fix $srcdir != $objdir build.
33854 * Makefile.in (po/%.po): Rewrite as ...
33855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33857 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33859 Fix GNU/Hurd grub-install crash.
33860 * util/grub-probe.c (probe): Try to access `path' only when it is not
33863 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33865 Correct module naming.
33867 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33868 (GRUB_MOD_INIT(efi_uga)): ... to this
33869 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33870 (GRUB_MOD_FINI(efi_uga)): ... to this
33871 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33872 (GRUB_MOD_INIT(efi_gop)): ... to this
33873 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33874 (GRUB_MOD_FINI(efi_gop)): ... to this
33876 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33878 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33880 (usage): Translate `arg' strings using gettext().
33881 Thanks to Jordi Mallach for the suggestion.
33883 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33885 GOP support. Based on patch from Bean
33886 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33888 * video/efi_gop.c: New file.
33889 * include/grub/efi/graphics_output.h: Likewise.
33890 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33891 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33893 * conf/x86_64-efi.rmk: Likewise.
33895 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33897 Rename efi_fb to efi_uga.
33899 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33901 (efi_fb_mod_SOURCES): Rename this ...
33902 (efi_uga_mod_SOURCES): ... to this.
33903 (efi_fb_mod_CFLAGS): Rename this ...
33904 (efi_uga_mod_CFLAGS): ... to this.
33905 (efi_fb_mod_LDFLAGS): Rename this ...
33906 (efi_uga_mod_LDFLAGS): ... to this.
33907 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33909 (efi_fb_mod_SOURCES): Rename this ...
33910 (efi_uga_mod_SOURCES): ... to this.
33911 (efi_fb_mod_CFLAGS): Rename this ...
33912 (efi_uga_mod_CFLAGS): ... to this.
33913 (efi_fb_mod_LDFLAGS): Rename this ...
33914 (efi_uga_mod_LDFLAGS): ... to this.
33915 * video/efi_fb.c: Move this ...
33916 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33918 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33920 * po/README: New file. Explain our PO file workflow.
33922 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33924 * po/ChangeLog: Remove. Move relevant entries back to ...
33925 * ChangeLog: ... here.
33926 * po/ca.po: Remove (now handled by TLP).
33927 * po/id.po: Likewise.
33928 * po/zh_CN.po: Likewise.
33929 * Makefile.in (LINGUAS): Initialize in a way that supports
33932 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33934 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33935 reliing on po/LINGUAS.
33936 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33937 (po/%.po): ... this.
33939 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33941 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33942 (main): Use `program_name' instead of nonexistent `progname'.
33944 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33946 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33947 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33949 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33951 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33953 * conf/i386-efi.rmk: Likewise.
33954 * conf/i386-ieee1275.rmk: Likewise.
33955 * conf/powerpc-ieee1275.rmk: Likewise.
33956 * conf/sparc64-ieee1275.rmk: Likewise.
33957 * conf/x86_64-efi.rmk: Likewise.
33959 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33961 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33963 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33965 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33967 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33969 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33970 (grub_mkdevicemap_SOURCES): New variable.
33971 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33972 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33973 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33974 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33975 (grub_mkdevicemap_SOURCES): Remove.
33976 * conf/i386-efi.rmk: Likewise.
33977 * conf/i386-ieee1275.rmk: Likewise.
33978 * conf/i386-pc.rmk: Likewise.
33979 * conf/powerpc-ieee1275.rmk: Likewise.
33980 * conf/sparc64-ieee1275.rmk: Likewise.
33981 * conf/x86_64-efi.rmk: Likewise.
33982 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33983 (usage): Fix strings to use `program_name'.
33984 (main): Initialize gettext.
33985 * util/grub-editenv.c: Likewise.
33986 * util/grub-emu.c: Likewise.
33987 * util/grub-fstest.c: Likewise.
33988 * util/grub-mkdevicemap.c: Likewise.
33989 * util/grub-mkfont.c: Likewise.
33990 * util/grub-mkrelpath.c: Likewise.
33991 * util/grub-pe2elf.c: Likewise.
33992 * util/grub-probe.c: Likewise.
33993 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33994 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33995 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33997 * util/misc.c: Include `"progname.h"'.
33998 (progname): Remove variable.
33999 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34001 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34003 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34004 printf and print a newline after the menuentry header line.
34005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34007 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34009 autoconf >= 2.60 support $(localedir).
34011 * INSTALL: Note that autoconf 2.60 is required.
34012 * configure.ac (AC_PREREQ): Bump to 2.60.
34013 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34014 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34016 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34018 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34021 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34023 * normal/main.c (grub_normal_read_line): Fix off-by-one
34026 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34028 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34029 "parser.grub" in grub_command_execute() call.
34031 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34033 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34034 * conf/i386-efi.rmk: Likewise.
34035 * conf/i386-ieee1275.rmk: Likewise.
34036 * conf/i386-pc.rmk: Likewise.
34037 * conf/powerpc-ieee1275.rmk: Likewise.
34038 * conf/sparc64-ieee1275.rmk: Likewise.
34039 * conf/x86_64-efi.rmk: Likewise.
34040 * gettext/gettex.c: Include <grub/i18n.h>.
34041 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34043 * include/grub/i18n.h: ... to here
34044 * include/grub/i18n.h: ... to here.
34045 * kern/misc.c: Include <grub/i18n.h>
34046 (grub_gettext_dummy): Move above user.
34048 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34050 * util/Makefile.in (install-local): Convert a `for' into a normal
34053 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34055 * autogen.sh: Add automake call.
34056 * config.guess: Remove.
34057 * config.sub: Likewise.
34058 * install-sh: Likewise.
34060 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34062 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34064 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34066 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34067 function to a normal shell `for'.
34069 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34071 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34073 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34075 * util/grub-mkrelpath.c: New file.
34076 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34077 (grub_mkrelpath_SOURCES): New variable.
34078 * include/grub/util/misc.h: New function prototype.
34079 * util/misc.c (make_system_path_relative_to_its_root): New function.
34081 * util/grub-mkconfig_lib.in (bindir): New variable.
34082 (grub_mkrelpath): Likewise.
34083 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34085 * util/probe.c (probe): Make the file path relative to its root.
34086 Change a info message to use the GRUB path. Enable again the
34087 check if we can read the file with GRUB facilities.
34089 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34092 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34094 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34097 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34099 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34102 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34104 * util/getroot.c (grub_util_is_dmraid): New function.
34105 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34106 devices as normal ones, not as LVM.
34108 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34110 * conf/common.rmk: Add grub-gettext_lib target and updates
34111 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34113 * gettext/gettext.c: New file. (Reads mo files).
34114 * include/grub/file.h (grub_file_pread): New prototype.
34115 * include/grub/i18n.h (_): New prototype.
34116 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34118 * kern/misc.c (grub_gettext_dummy): New function.
34119 * normal/menu_text.c: Include <grub/i18n.h>.
34120 * normal/menu_text.c (print_timeout): Gettexttize string.
34121 * normal/menu_text.c (print_message): Gettexttize string.
34122 * po/POTFILES: Add `normal/menu_text.c'.
34123 * po/ca.po: Add new translations.
34124 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34125 gettext module and defines locale_dir and lang in grub.cfg.
34126 * NEWS: Add gettext support.
34128 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34130 * util/hostdisk.c: Include `<grub/i18n.h>'.
34131 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34132 (make_device_name): Rewrite using asprintf.
34133 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34134 (find_system_device): If a device is not found, generate one just
34135 by reusing the OS path name.
34136 (read_device_map): Make it permissible for device.map not to exist.
34138 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34140 * script/sh/execute.c: Move from here ...
34141 * script/execute.c: ... to here. Update all users.
34142 * script/sh/function.c: Move from here ...
34143 * script/function.c: ... to here. Update all users.
34144 * script/sh/lexer.c: Move from here ...
34145 * script/lexer.c: ... to here. Update all users.
34146 * script/sh/main.c: Move from here ...
34147 * script/main.c: ... to here. Update all users.
34148 * script/sh/parser.y: Move from here ...
34149 * script/parser.y: ... to here. Update all users.
34150 * script/sh/script.c: Move from here ...
34151 * script/script.c: ... to here. Update all users.
34153 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34155 * configure.ac: Detect all `emu' platforms. Define
34156 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34157 --enable-grub-emu logic. Disable include/grub/machine
34158 symlink on `emu' platforms.
34160 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34161 * gensymlist.sh.in: Likewise.
34163 * include/grub/i386/coreboot/machine.h: Remove file.
34164 * include/grub/i386/efi/machine.h: Likewise.
34165 * include/grub/i386/ieee1275/machine.h: Likewise.
34166 * include/grub/i386/pc/machine.h: Likewise.
34167 * include/grub/i386/qemu/machine.h: Likewise.
34168 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34169 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34170 * include/grub/x86_64/efi/machine.h: Likewise.
34172 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34173 * commands/halt.c: Likewise.
34174 * commands/reboot.c: Likewise.
34175 * include/grub/autoefi.h: Likewise.
34176 * include/grub/i386/at_keyboard.h: Likewise.
34177 * include/grub/i386/kernel.h: Likewise.
34178 * include/grub/i386/loader.h: Likewise.
34179 * include/grub/i386/pc/memory.h: Likewise.
34180 * kern/dl.c: Likewise.
34181 * kern/i386/coreboot/init.c: Likewise.
34182 * loader/i386/bsd.c: Likewise.
34183 * loader/i386/linux.c: Likewise.
34184 * loader/multiboot_loader.c: Likewise.
34185 * term/i386/pc/serial.c: Likewise.
34186 * term/usb_keyboard.c: Likewise.
34188 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34189 `<grub/machine/machine.h>'
34190 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34191 * util/misc.c: Remove `<grub/machine/machine.h>' and
34192 `<grub/machine/time.h>'.
34194 * Makefile.in (enable_grub_emu): Remove variable.
34195 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34197 * conf/any-emu.rmk: New file.
34198 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34199 (grub_emu_init.c): Move from here ...
34200 * conf/any-emu.rmk: ... to here.
34202 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34203 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34204 * conf/any-emu.rmk: ... to here.
34206 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34208 * include/grub/parser.h (grub_parser_register): Document need
34209 of `name' parameter.
34210 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34211 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34214 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34216 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34218 * include/grub/i18n.h (N_): New macro.
34219 * util/mkisofs/mkisofs.h: Likewise.
34220 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34222 (usage): Use gettext() to translate help strings when printing them.
34224 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34226 Based on patch from Bean
34227 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34229 * video/efi_fb.c: New file.
34230 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34231 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34233 * conf/x86_64-efi.rmk: Likewise.
34235 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34237 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34238 * util/i386/pc/grub-setup.c: Likewise.
34240 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34242 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34244 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34245 file_get_storage_info to implement grub_guess_root_device.
34247 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34249 * Makefile.in (target): Use make's builtin $(shell) function
34250 instead of calling directly $(SHELL) to create the locale directories,
34251 inside the $(foreach) function.
34253 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34255 * util/grub-mkrescue.in: Print an error and usage if output option
34256 has not been given.
34258 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34260 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34261 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34262 root and /boot are on different devices.
34264 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34266 Fix build for srcdir != objdir.
34268 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34269 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34271 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34272 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34273 reference for input.
34275 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34277 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34278 or hardlinking it). Remove -J option, Joliet is not compatible with
34279 multiple source directories.
34281 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34282 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34284 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34285 (process_input_dir): New function. Process an arbitrary input
34287 Misc adjustments to support both "override mode" and system-wide mode.
34289 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34291 * configure.ac (UNIFONT_BDF): Rename to ...
34292 (FONT_SOURCE): ... this. Update all users.
34294 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34296 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34297 to the list of unifont files to look for.
34299 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34301 Patch from Joe Auricchio <jauricchio@gmail.com>
34302 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34303 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34304 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34306 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34308 * Makefile.in (install-local): Add a missing backslash.
34310 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34312 * include/grub/x86_64/io.h: New file.
34314 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34317 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34318 Include `"progname.h"'.
34319 (main): Initialize gettext.
34320 * util/i386/pc/grub-setup.c: Gettexttize.
34321 * util/i386/pc/grub-mkimage.c: Likewise.
34323 * Makefile.in (po/*.po): Redefine as ...
34324 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34326 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34328 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34331 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34332 (program_name): Remove.
34333 (main): Initialize gettext support.
34334 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34335 Include `<libintl.h>'.
34338 * util/mkisofs/eltorito.c: Gettexttize.
34339 * util/mkisofs/joliet.c: Likewise.
34340 * util/mkisofs/mkisofs.c: Likewise.
34341 * util/mkisofs/multi.c: Likewise.
34342 * util/mkisofs/rock.c: Likewise.
34343 * util/mkisofs/tree.c: Likewise.
34344 * util/mkisofs/write.c: Likewise.
34346 * po/POTFILES: Update with new files.
34348 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34350 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34351 * util/mkisofs/iso9660.h: Likewise.
34352 * util/mkisofs/joliet.c: Likewise.
34353 * util/mkisofs/mkisofs.c: Likewise.
34354 * util/mkisofs/mkisofs.h: Likewise.
34355 * util/mkisofs/rock.c: Likewise.
34356 * util/mkisofs/tree.c: Likewise.
34357 * util/mkisofs/write.c: Likewise.
34359 * util/mkisofs/eltorito.c (rcsid): Remove.
34360 * util/mkisofs/hash.c: Likewise.
34361 * util/mkisofs/joliet.c: Likewise.
34362 * util/mkisofs/name.c: Likewise.
34363 * util/mkisofs/rock.c: Likewise.
34364 * util/mkisofs/tree.c: Likewise.
34365 * util/mkisofs/write.c: Likewise.
34367 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34369 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34370 instead of static allocation.
34371 * util/mkisofs/match.h: Likewise.
34373 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34375 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34376 and `util/grub.d/10_linux.in'.
34377 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34378 translatable Shell files.
34380 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34382 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34386 * INSTALL: Document Automake is needed for bootstrap.
34387 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34388 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34389 Add gettext initialization.
34390 (kfreebsd_entry): Make menuentry output translatable.
34392 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34394 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34395 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34396 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34397 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34398 (LINGUAS): Auto-generate using `po/LINGUAS'.
34399 * po/LINGUAS: New file.
34401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34403 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34405 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34406 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34407 bindtextdomain() calls for gettext initialization.
34409 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34411 * gnulib/progname.c: New file (imported from Gnulib).
34412 * gnulib/progname.h: Likewise.
34413 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34414 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34415 (usage): Replace `progname' with `program_name'.
34416 (main): Use set_program_name() for program name initialization.
34418 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34420 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34422 * Makefile.in (CPPFLAGS): ... to here.
34424 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34426 * aclocal.m4: Move from here ...
34427 * acinclude.m4: ... to here.
34428 * autogen.sh: Add call to `aclocal'.
34429 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34431 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34433 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34434 (LINGUAS): New variable.
34435 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34436 (install-local): Install MO files.
34437 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34438 * include/grub/i18n.h: New file.
34439 * po/POTFILES: New file.
34440 * po/ca.po: New file.
34441 * util/grub.d/10_linux.in (bindir): New variable.
34442 Add gettext initialization.
34443 (linux_entry): Make menuentry output translatable.
34444 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34445 (usage): Make --help output translatable.
34446 (main): Initialize gettext.
34448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34450 * import_gcry.py: New file (written by Vladimir with minor
34452 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34454 * INSTALL: Document that Python is required for bootstrap.
34456 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34458 Import ciphers from libgcrypt 1.4.4.
34460 * lib/libgcrypt/cipher/ChangeLog
34461 * lib/libgcrypt/cipher/ac.c
34462 * lib/libgcrypt/cipher/arcfour.c
34463 * lib/libgcrypt/cipher/bithelp.h
34464 * lib/libgcrypt/cipher/blowfish.c
34465 * lib/libgcrypt/cipher/camellia-glue.c
34466 * lib/libgcrypt/cipher/camellia.c
34467 * lib/libgcrypt/cipher/camellia.h
34468 * lib/libgcrypt/cipher/cast5.c
34469 * lib/libgcrypt/cipher/cipher.c
34470 * lib/libgcrypt/cipher/crc.c
34471 * lib/libgcrypt/cipher/des.c
34472 * lib/libgcrypt/cipher/dsa.c
34473 * lib/libgcrypt/cipher/ecc.c
34474 * lib/libgcrypt/cipher/elgamal.c
34475 * lib/libgcrypt/cipher/hash-common.c
34476 * lib/libgcrypt/cipher/hash-common.h
34477 * lib/libgcrypt/cipher/hmac-tests.c
34478 * lib/libgcrypt/cipher/md.c
34479 * lib/libgcrypt/cipher/md4.c
34480 * lib/libgcrypt/cipher/md5.c
34481 * lib/libgcrypt/cipher/primegen.c
34482 * lib/libgcrypt/cipher/pubkey.c
34483 * lib/libgcrypt/cipher/rfc2268.c
34484 * lib/libgcrypt/cipher/rijndael-tables.h
34485 * lib/libgcrypt/cipher/rijndael.c
34486 * lib/libgcrypt/cipher/rmd.h
34487 * lib/libgcrypt/cipher/rmd160.c
34488 * lib/libgcrypt/cipher/rsa.c
34489 * lib/libgcrypt/cipher/seed.c
34490 * lib/libgcrypt/cipher/serpent.c
34491 * lib/libgcrypt/cipher/sha1.c
34492 * lib/libgcrypt/cipher/sha256.c
34493 * lib/libgcrypt/cipher/sha512.c
34494 * lib/libgcrypt/cipher/tiger.c
34495 * lib/libgcrypt/cipher/twofish.c
34496 * lib/libgcrypt/cipher/whirlpool.c
34498 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34500 Fix build for systems without error().
34502 * gnulib/error.c: New file (imported from Gnulib).
34503 * gnulib/error.h: Likewise.
34504 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34505 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34506 (this variable is now used by error()).
34508 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34510 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34511 instead of relying that char is signed.
34513 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34515 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34516 blocksize different from specified.
34517 (grub_pxefs_read): Likewise.
34519 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34521 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34523 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34524 (grub_ata_readwrite): Likewise. Update 2 format strings.
34525 (grub_atapi_read): Likewise.
34527 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34528 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34529 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34530 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34531 (ata_mod_LDFLAGS): Move from here ...
34532 * conf/i386.rmk: ... to here ...
34533 * conf/x86_64-efi.rmk: ... and here.
34534 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34535 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34537 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34539 Relicense multiboot.h, with RMS' blessing.
34541 * include/multiboot.h: Change to X11 license.
34543 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34545 Support --version in grub-mkisofs.
34547 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34548 (OPTION_VERSION): New macro.
34549 (ld_options): Recognize --version.
34550 (usage): Move `program_name' from here ...
34551 (program_name): ... to here. Add `static' qualifier.
34552 (main): Recognize `OPTION_VERSION'.
34554 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34556 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34557 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34559 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34561 Fix help2man generation for mkisofs.
34563 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34564 (usage): Send output to stdout (rather than stderr).
34566 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34568 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34569 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34570 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34571 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34572 (bin_SCRIPTS): Add `grub-mkfloppy'.
34573 (grub_mkfloppy_SOURCES): New variable.
34575 * util/grub-mkrescue.in: New file.
34576 * util/i386/pc/grub-mkfloppy.in: New file.
34578 * util/i386/coreboot/grub-mkrescue.in: Remove.
34579 * util/i386/pc/grub-mkrescue.in: Remove.
34581 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34583 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34585 * include/multiboot.h (struct multiboot_header): ... to here. Update
34587 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34589 * include/multiboot.h (struct multiboot_info): ... to here. Update
34591 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34593 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34595 * include/grub/multiboot.h (struct grub_mod_list): Move
34597 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34600 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34602 * include/multiboot2.h (multiboot_word): Rename from this ...
34603 (multiboot2_word): ... to this. Update all users.
34604 (multiboot_header): Rename from this ...
34605 (multiboot2_header): ... to this. Update all users.
34606 (multiboot_tag_header): Rename from this ...
34607 (multiboot2_tag_header): ... to this. Update all users.
34608 (multiboot_tag_start): Rename from this ...
34609 (multiboot2_tag_start): ... to this. Update all users.
34610 (multiboot_tag_name): Rename from this ...
34611 (multiboot2_tag_name): ... to this. Update all users.
34612 (multiboot_tag_module): Rename from this ...
34613 (multiboot2_tag_module): ... to this. Update all users.
34614 (multiboot_tag_memory): Rename from this ...
34615 (multiboot2_tag_memory): ... to this. Update all users.
34616 (multiboot_tag_unused): Rename from this ...
34617 (multiboot2_tag_unused): ... to this. Update all users.
34618 (multiboot_tag_end): Rename from this ...
34619 (multiboot2_tag_end): ... to this. Update all users.
34621 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34623 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34624 this platform we should support Multiboot1 first.
34626 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34627 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34628 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34630 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34632 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34633 of write calls (converting them to fwrite() if they aren't already).
34634 (get_torito_desc): Likewise.
34635 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34637 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34639 * util/i386/pc/grub-install.in: Move from here ...
34640 * util/grub-install.in: ... to here. Update all users.
34642 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34644 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34646 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34648 Support for El Torito without floppy emulation.
34650 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34651 (init_boot_catalog): Improve error handling.
34652 (get_torito_desc): Don't use floppy emulation unless requested by
34653 user. Patch boot information table when requested via
34654 `-boot-info-table'.
34655 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34656 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34657 (use_boot_info_table): New variables.
34658 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34659 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34660 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34661 `--eltorito-emul-floppy'.
34662 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34663 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34664 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34665 (use_boot_info_table, get_731): New prototypes.
34666 * util/mkisofs/write.c (get_731): New function.
34668 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34670 Fix the generation of the man page.
34672 * util/pc/i386/grub-install.in: Source
34673 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34675 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34677 Large file support for grub-mkisofs.
34679 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34680 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34681 (session_start): Upgrade type to `uint64_t'. Update all users.
34682 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34683 (struct directory_entry): Upgrade type of `starting_block' and
34684 `size' to `uint64_t'. Update all users.
34685 (struct deferred): Remove unused structure.
34686 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34688 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34689 file is larger than `UINT32_MAX'.
34690 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34691 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34693 (struct deferred_write): Upgrade type of `extent' and `size' to
34694 `uint64_t'. Update all users.
34695 (last_extent_written): Upgrade type to `uint64_t'. Update all
34697 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34698 Update all users. Upgrade type of `remain' to `int64_t' and
34699 `use' to `size_t'. Use error() to handle fread() errors.
34700 (write_files): Rely on write_one_file() rather than calling
34701 xfwrite() directly.
34703 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34705 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34707 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34709 * util/mkisofs/fnmatch.c: Remove.
34710 * util/mkisofs/getopt1.c: Likewise.
34711 * util/mkisofs/getopt.c: Likewise.
34712 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34713 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34714 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34715 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34716 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34718 * configure.ac: Detect `mingw32msvc' host_os.
34719 Check for lstat(), getuid() and getgid().
34721 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34722 instances of `u_char' with `uint8_t'.
34724 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34725 [!HAVE_GETUID] (getuid): New function (stub).
34726 [!HAVE_GETGID] (getgid): Likewise.
34727 [!HAVE_LSTAT] (lstat): Likewise.
34728 [!S_IROTH] (S_IROTH): New macro (dummy).
34729 [!S_IRGRP] (S_IRGRP): Likewise.
34731 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34733 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34734 conditional expression).
34736 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34738 Import from Gnulib.
34740 * gnulib/fnmatch.c: New file.
34741 * gnulib/fnmatch.h: Likewise.
34742 * gnulib/fnmatch_loop.c: Likewise.
34743 * gnulib/getopt.c: Likewise.
34744 * gnulib/getopt.h: Likewise.
34745 * gnulib/getopt1.c: Likewise.
34746 * gnulib/getopt_int.h: Likewise.
34747 * gnulib/gettext.h: Likewise.
34749 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34751 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34752 * normal/handler.c (read_handler_list): Likewise.
34754 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34758 * kern/command.c (grub_register_command_prio): Use
34759 grub_zalloc() instead of explicitly zeroing data.
34760 * kern/list.c: Include `<grub/mm.h>'.
34761 (grub_named_list_find): Replace `0' with `NULL'.
34762 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34763 (fs_module_list): Change type to `grub_named_list_t'. Update all
34765 * normal/dyncmd.c (read_command_list): Add space between function
34766 call and parenthesis.
34767 * normal/handler.c (read_handler_list): Likewise.
34769 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34771 * normal/auth.c (punishment_delay): Moved from here ...
34772 (grub_auth_strcmp): ... to here (inside function).
34774 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34776 * include/grub/list.h (struct grub_named_list): Remove `const'
34777 qualifier from `name'.
34778 (struct grub_prio_list): Likewise.
34780 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34782 * normal/auth.c: Include `<grub/time.h>'.
34783 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34785 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34787 * normal/auth.c (punishment_delay): New variable.
34788 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34789 (grub_auth_check_authentication): Punish failed login attempts with
34790 an incremental (2^N) delay.
34792 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34794 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34795 path with $(srcdir).
34797 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34799 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34801 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34803 * util/i386/coreboot/grub-mkrescue.in: New file.
34804 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34807 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34808 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34809 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34811 * util/mkisofs/defaults.h: New file.
34812 * util/mkisofs/eltorito.c: Likewise.
34813 * util/mkisofs/exclude.h: Likewise.
34814 * util/mkisofs/fnmatch.c: Likewise.
34815 * util/mkisofs/getopt.c: Likewise.
34816 * util/mkisofs/getopt1.c: Likewise.
34817 * util/mkisofs/hash.c: Likewise.
34818 * util/mkisofs/include/fctldefs.h: Likewise.
34819 * util/mkisofs/include/mconfig.h: Likewise.
34820 * util/mkisofs/include/prototyp.h: Likewise.
34821 * util/mkisofs/include/statdefs.h: Likewise.
34822 * util/mkisofs/iso9660.h: Likewise.
34823 * util/mkisofs/joliet.c: Likewise.
34824 * util/mkisofs/match.c: Likewise.
34825 * util/mkisofs/match.h: Likewise.
34826 * util/mkisofs/mkisofs.c: Likewise.
34827 * util/mkisofs/mkisofs.h: Likewise.
34828 * util/mkisofs/multi.c: Likewise.
34829 * util/mkisofs/name.c: Likewise.
34830 * util/mkisofs/rock.c: Likewise.
34831 * util/mkisofs/tree.c: Likewise.
34832 * util/mkisofs/write.c: Likewise.
34834 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34836 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34839 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34841 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34842 `grub-mkimage' (and use $0 when possible).
34844 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34846 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34847 error message for excessively large memory map.
34849 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34851 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34854 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34856 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34857 message for coreboot users.
34859 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34861 Fix build with GNU gold.
34863 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34864 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34865 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34867 * aclocal.m4: Likewise.
34869 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34871 * configure.ac (AC_PREREQ): Bump to 2.59d.
34872 * INSTALL: Make it more clear when Autoconf and Ruby are
34873 needed and when to run `./autogen.sh'.
34875 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34877 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34880 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34882 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34884 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34886 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34887 giving it to GNU Mach.
34889 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34891 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34892 GNU partition number to get internal GRUB partition number.
34894 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34896 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34897 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34899 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34901 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34902 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34905 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34907 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34909 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34913 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34914 `-isystem=$(srcdir)/include'.
34916 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34918 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34919 checked (grub-install doesn't currently rely on it).
34921 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34925 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34926 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34927 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34928 * conf/i386-ieee1275.rmk: Likewise.
34929 * conf/i386-pc.rmk: Likewise.
34930 * conf/powerpc-ieee1275.rmk: Likewise.
34931 * conf/sparc64-ieee1275.rmk: Likewise.
34932 * conf/x86_64-efi.rmk: Likewise.
34934 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34936 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34938 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34940 * include/grub/misc.h: Stop checking for APPLE_CC.
34942 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34944 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34945 doesn't cause an infinite call loop.
34947 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34949 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34952 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34954 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34956 * Makefile.in: Likewise.
34958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34960 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34964 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34966 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34968 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34970 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34972 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34974 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34976 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34978 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34979 in $(MAKEINFO) invocation. This makes it clear in output that
34980 errors are being ignored.
34982 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34984 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34986 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34987 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34988 * conf/i386-ieee1275.rmk: Likewise.
34989 * conf/i386-pc.rmk: Likewise.
34990 * conf/powerpc-ieee1275.rmk: Likewise.
34991 * conf/sparc64-ieee1275.rmk: Likewise.
34992 * conf/x86_64-efi.rmk: Likewise.
34994 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34996 * util/grub-editenv.c (main): If only a command is given, use
34997 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34998 (usage): FILENAME is now optional and has a default.
35000 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35002 Improve grub-mkconfig performance when there are several menu
35003 entries on a single filesystem.
35005 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35006 prepare_grub_to_access_device.
35007 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35008 * util/grub.d/30_os-prober.in: Likewise.
35010 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35012 * util/grub.d/10_freebsd.in: Remove.
35013 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35014 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35016 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35018 * docs/grub.cfg: Fix example usage of *BSD loaders.
35020 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35022 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35023 grub_util_error() call.
35025 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35027 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35028 `reserved_first_sector' member.
35029 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35030 `reserved_first_sector' to 1.
35031 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35032 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35033 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35034 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35035 filesystems which begin at first sector.
35036 (options): New option --skip-fs-probe.
35037 (main): Handle --skip-fs-probe and pass it to setup().
35039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35041 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35042 (memset): Fix function prototype.
35044 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35045 2009-10-25 Vasily Averin <vvs@parallels.com>
35047 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35048 `dirent.direntlen == 0'.
35050 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35052 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35054 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35056 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35058 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35059 `__trampoline_setup' and `__ucmpdi2'.
35060 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35061 that libgcc provides.
35063 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35065 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35066 * include/grub/sparc64/libgcc.h (memset): Likewise.
35067 * include/grub/misc.h (memset, memcmp): New function prototypes.
35069 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35071 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35073 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35077 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35078 * docs/grub.cfg: Compensate for recent change in multiboot
35079 loader (since 2009-08-14 it won't pass filename to payload).
35080 * util/grub.d/10_hurd.in: Likewise.
35082 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35084 * config.guess: Update to latest version from config git
35086 * config.sub: Likewise.
35088 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35090 Fix build on sparc64.
35092 * configure.ac: Perform checks for libgcc symbols before
35093 adding `-nostdlib' to LDFLAGS.
35095 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35097 Let user specify OpenBSD root device.
35099 * loader/i386/bsd.c (openbsd_root): New variable.
35100 (openbsd_opts): New option 'root'.
35101 (OPENBSD_ROOT_ARG): New macro.
35102 (grub_openbsd_boot): Use 'openbsd_root'.
35103 (grub_cmd_openbsd): Fill 'openbsd_root'.
35105 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35107 * NEWS: Misc adjustments.
35109 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35111 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35113 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35115 * configure.ac: Bump version to 1.97.
35117 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35119 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35120 -mno-3dnow on x86 architectures. Some toolchains enable these
35121 features by default, but they rely on registers that aren't enabled
35122 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35124 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35126 Make entry text a bit more readable.
35128 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35130 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35132 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35134 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35136 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35139 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35141 * configure.ac: Add missing dollar.
35143 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35145 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35147 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35148 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35150 * include/grub/sparc64/libgcc.h: Likewise. Use
35151 preprocessor conditionals.
35153 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35155 * conf/common.rmk (grub-dumpbios): Remove rule.
35156 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35157 * util/grub-dumpbios.in: Remove file.
35159 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35161 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35162 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35164 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35165 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35168 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35169 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35170 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35171 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35174 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35176 * term/tparm.c: Switch to GPLv3.
35178 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35180 * include/grub/i386/cpuid.h: Add header protection.
35182 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35184 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35186 * include/grub/i386/cpuid.h: New file.
35187 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35188 (has_longmode): Rename to ...
35189 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35190 `static' attribute.
35191 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35192 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35193 on a CPU that doesn't implement AMD64 instruction set.
35195 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35197 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35198 that version.texi is rebuilt on version number changes.
35200 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35202 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35205 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35207 * util/i386/pc/grub-install.in: Source
35208 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35209 that the --grub-probe option will work.
35210 * util/sparc64/ieee1275/grub-install.in: Likewise.
35212 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35214 * configure.ac: Bump version to 1.97~beta4.
35216 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35218 Resync grub-mkdevicemap in x86_64-efi.
35220 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35221 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35222 `util/devicemap.c'.
35224 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35226 * util/grub-editenv.c (create_envblk_file): Write new block with a
35227 .new suffix and then rename it into place, to ensure atomic
35230 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35232 Do not automatically install headers.
35234 * Makefile.in (include_DATA): Remove. Update all users.
35236 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35238 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35239 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35241 * util/osdetect.lua: Remove.
35242 * script/lua/lauxlib.c: Likewise.
35243 * script/lua/ldebug.c: Likewise.
35244 * script/lua/grub_main.c: Likewise.
35245 * script/lua/lauxlib.h: Likewise.
35246 * script/lua/ldebug.h: Likewise.
35247 * script/lua/ltablib.c: Likewise.
35248 * script/lua/liolib.c: Likewise.
35249 * script/lua/lstrlib.c: Likewise.
35250 * script/lua/lualib.h: Likewise.
35251 * script/lua/ldo.c: Likewise.
35252 * script/lua/ldump.c: Likewise.
35253 * script/lua/ldo.h: Likewise.
35254 * script/lua/loslib.c: Likewise.
35255 * script/lua/lundump.c: Likewise.
35256 * script/lua/grub_lib.c: Likewise.
35257 * script/lua/ldblib.c: Likewise.
35258 * script/lua/lundump.h: Likewise.
35259 * script/lua/lmem.c: Likewise.
35260 * script/lua/grub_lib.h: Likewise.
35261 * script/lua/lmathlib.c: Likewise.
35262 * script/lua/lstate.c: Likewise.
35263 * script/lua/ltm.c: Likewise.
35264 * script/lua/lvm.c: Likewise.
35265 * script/lua/lmem.h: Likewise.
35266 * script/lua/lstate.h: Likewise.
35267 * script/lua/ltm.h: Likewise.
35268 * script/lua/ltable.c: Likewise.
35269 * script/lua/lvm.h: Likewise.
35270 * script/lua/llex.c: Likewise.
35271 * script/lua/lgc.c: Likewise.
35272 * script/lua/grub_lua.h: Likewise.
35273 * script/lua/loadlib.c: Likewise.
35274 * script/lua/lfunc.c: Likewise.
35275 * script/lua/lopcodes.c: Likewise.
35276 * script/lua/lparser.c: Likewise.
35277 * script/lua/ltable.h: Likewise.
35278 * script/lua/llex.h: Likewise.
35279 * script/lua/lgc.h: Likewise.
35280 * script/lua/lfunc.h: Likewise.
35281 * script/lua/lbaselib.c: Likewise.
35282 * script/lua/lopcodes.h: Likewise.
35283 * script/lua/lparser.h: Likewise.
35284 * script/lua/lzio.c: Likewise.
35285 * script/lua/linit.c: Likewise.
35286 * script/lua/lobject.c: Likewise.
35287 * script/lua/llimits.h: Likewise.
35288 * script/lua/lstring.c: Likewise.
35289 * script/lua/lzio.h: Likewise.
35290 * script/lua/lapi.c: Likewise.
35291 * script/lua/lcode.c: Likewise.
35292 * script/lua/lua.h: Likewise.
35293 * script/lua/lobject.h: Likewise.
35294 * script/lua/lstring.h: Likewise.
35295 * script/lua/lapi.h: Likewise.
35296 * script/lua/lcode.h: Likewise.
35297 * script/lua/luaconf.h: Likewise.
35299 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35301 * docs/grub.texi (Command-line and menu entry commands): Document
35302 date and echo commands.
35304 2009-09-24 Pavel Roskin <proski@gnu.org>
35306 * include/grub/kernel.h (struct grub_module_header): Remove
35307 `grub_module_header_types'. Make `type' unsigned. Make `size'
35308 32-bit on all platforms.
35309 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35310 8-bit field. Use grub_host_to_target32() for `size'.
35311 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35312 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35313 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35315 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35317 Fix "lost keypress" bug in at_keyboard.
35319 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35320 Checks for readyness of input buffer (without flushing it).
35321 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35322 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35324 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35326 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35327 size check within GRUB_MACHINE_PCBIOS section.
35329 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35331 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35333 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35334 KEYBOARD_ISREADY check.
35335 (grub_at_keyboard_checkkey): Rename to ...
35336 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35337 Remove gratuitous cast.
35339 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35341 * configure.ac: Call AC_PROG_MKDIR_P.
35342 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35343 version.texi in $(builddir) rather than $(srcdir).
35344 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35345 to makeinfo's @include search path.
35347 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35349 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35351 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35353 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35356 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35358 Build info documentation. Some code borrowed from Automake.
35360 * configure.ac: Check for makeinfo.
35361 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35362 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35364 (MOSTLYCLEANFILES): Add vti.tmp.
35365 (docs/version.texi, docs/stamp-vti): Update automatically.
35366 (docs/grub.info): Build info documentation. Use --force and ignore
35368 (all-local): Add $(INFOS).
35369 (install-local): Install info files.
35370 (uninstall): Uninstall info files.
35371 * docs/version.texi: Remove from revision control. This file is
35372 automatically generated on build now.
35373 * gendistlist.sh: Add `*.info'.
35375 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35377 * kern/term.c: Fix indentation.
35379 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35381 * util/hostdisk.c: Fix a comment.
35383 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35385 Fix regression introduced in r2539.
35387 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35390 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35392 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35393 os-prober. Under normal operation, it does not print anything to
35394 stderr; if it does, we need to debug it, and throwing away stderr
35395 makes that excessively difficult.
35397 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35399 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35401 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35403 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35404 AC_LANG_PROGRAM from autoconf.
35405 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35406 prototypes (fixes warning).
35408 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35409 `--disable-werror' was used.
35411 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35413 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35414 uninitialized `lastaddr'.
35416 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35418 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35420 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35422 * commands/test.c (get_fileinfo): Return immediately if
35423 grub_fs_probe fails.
35425 2009-09-14 José Martínez <xosemp@gmail.com>
35427 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35429 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35431 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35434 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35436 * configure.ac: Remove --enable-grub-pe2elf. Only build
35437 grub-pe2elf when needed by the build system itself.
35438 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35440 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35442 * configure.ac: Bump version to 1.97~beta3.
35443 * docs/version.texi: Likewise.
35445 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35447 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35448 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35450 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35451 (grub_linux_setup_video): ... to here (with some adjustments).
35453 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35455 Fix memory corruption issue (spotted by Colin Watson).
35457 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35458 causing returned size to be stored in an incorrect memory location.
35459 Fix use of uninitialized value when storing the returned size.
35461 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35463 Change clean rules to properly remove files
35465 * genmk.rb: add new clean rules
35466 * Makefile.in (clean): add the new targets
35467 (mostlyclean): likewise
35469 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35471 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35473 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35474 non-resident files.
35476 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35478 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35479 part of bug #27349.
35481 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35483 * util/grub-mkconfig.in: Make the created config mode 400 and
35484 print a warning if it fails.
35486 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35488 * util/grub.d/40_custom.in: Ask user to type custom entries below
35489 comment, rather than below 'exec tail' line.
35491 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35493 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35494 visible in grub.cfg.
35496 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35498 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35501 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35503 * docs/grub.cfg: Add an example menu entry for memtest86+.
35505 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35507 * config.guess: Update to latest version from config git.
35508 * config.sub: Likewise.
35510 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35512 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35513 unknown-command case. Fixes bug #27320.
35515 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35517 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35518 `help' if the command exists.
35520 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35522 * INSTALL: Require GCC 4.1.3 or later.
35524 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35526 * Makefile.in (RMKFILES): add i386-qemu.rmk
35527 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35528 $(srcdir)/stamp-h.in
35530 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35532 * util/grub-probe.c (probe): Comment out buggy codepath, which
35533 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35534 should be re-enabled after 1.97.
35536 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35538 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35541 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35543 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35544 unnecessary calls to grub_error.
35546 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35548 * NEWS: Mention `keystatus' and Unicode fonts.
35550 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35552 * configure.ac: Bump version to 1.97~beta2.
35553 * docs/version.texi: Likewise.
35555 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35557 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35558 containing unwind information in some cases where it previously did
35559 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35560 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35563 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35565 Embedding loadenv module into grub-emu
35567 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35576 2009-09-03 Magnus Granberg <zorry@ume.nu>
35578 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35579 include -fPIE in the default specs.
35580 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35583 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35585 * INSTALL: Note that GNU Bison 2.3 or later is required.
35587 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35589 * kern/i386/pc/startup.S: Fix typo.
35591 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35593 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35596 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35598 * docs/grub.texi (Naming convention): Describe one-based partition
35600 (Device syntax): Likewise.
35601 (File name syntax): Likewise.
35602 (Block list syntax): Likewise.
35603 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35605 (File name syntax): Likewise.
35606 (Command-line and menu entry commands): Document acpi, blocklist,
35607 crc, export, insmod, keystatus, ls, set, and unset commands.
35609 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35611 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35612 to avoid implying that only one of --shift, --ctrl, or --alt may be
35615 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35617 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35618 rather than comparing against S_IFREG, which will almost never work.
35620 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35622 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35623 (write_blocklists): Likewise.
35625 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35627 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35628 argument to grub_printf.
35630 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35632 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35635 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35637 * kern/file.c (grub_file_read): Spelling fix
35639 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35641 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35642 loading of headers in some cases.
35644 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35646 * configure.ac: Bump version to 1.97~beta1.
35647 * docs/version.texi: Likewise.
35649 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35651 * include/grub/i386/xnu.h: Add license header.
35652 include grub/err.h explicitly.
35654 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35656 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35657 to `ufs' in the vfs.root.mountfrom kernel parameter.
35659 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35661 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35663 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35664 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35666 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35667 `ARRAY_SIZE' macro.
35669 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35671 * kern/file.c (grub_file_read): Check offset.
35672 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35673 * fs/jfs.c (grub_jfs_read_file): Likewise.
35674 * fs/ntfs.c (grub_ntfs_read): Likewise.
35675 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35676 * fs/minix.c (grub_minix_read_file): Correct offset check.
35677 * fs/ufs.c (grub_ufs_read_file): Likewise.
35679 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35681 * term/i386/pc/console.c (bios_data_area): Cast
35682 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35684 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35686 1-bit optimised blitters.
35688 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35696 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35698 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35699 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35700 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35701 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35702 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35703 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35704 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35706 * video/video.c (grub_video_get_blit_format): Return
35707 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35709 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35711 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35712 the first argument to grub_printf.
35714 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35715 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35717 Add `getkeystatus' terminal method. Add a new `keystatus' command
35720 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35721 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35722 modifier key bitmasks.
35723 (struct grub_term_input): Add `getkeystatus' member.
35724 (grub_getkeystatus): Add prototype.
35725 * kern/term.c (grub_getkeystatus): New function.
35727 * include/grub/i386/pc/memory.h
35728 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35729 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35731 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35732 (grub_console_term_input): Set `getkeystatus' member.
35733 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35735 (grub_usb_keyboard_getreport): Likewise.
35736 (grub_usb_keyboard_checkkey): Likewise.
35737 (grub_usb_keyboard_getkeystatus): New function.
35738 (grub_usb_keyboard_term): Set `getkeystatus' member.
35740 * commands/keystatus.c: New file.
35741 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35742 (keystatus_mod_SOURCES): New variable.
35743 (keystatus_mod_CFLAGS): Likewise.
35744 (keystatus_mod_LDFLAGS): Likewise.
35745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35746 commands/keystatus.c.
35747 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35749 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35754 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35756 Split befs.mod and afs.mod into *_be.mod and *.mod
35758 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35759 (grub_fstest_SOURCES): Likewise.
35760 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35761 (afs_be_mod_SOURCES): New variable.
35762 (afs_be_mod_CFLAGS): Likewise.
35763 (afs_be_mod_LDFLAGS): Likewise.
35764 (befs_be_mod_SOURCES): Likewise.
35765 (befs_be_mod_CFLAGS): Likewise.
35766 (befs_be_mod_LDFLAGS): Likewise.
35767 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35769 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35770 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35771 (grub_emu_SOURCES): Likewise.
35772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35775 * fs/afs_be.c: New file.
35776 * fs/befs_be.c: New file.
35777 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35778 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35779 (U16): Replaced with ...
35780 (grub_afs_to_cpu16): ...this. All users updated.
35781 (U32): Replaced with ...
35782 (grub_afs_to_cpu32): ...this. All users updated.
35783 (U64): Replaced with ...
35784 (grub_afs_to_cpu64): ...this. All users updated.
35785 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35786 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35787 (grub_afs_validate_sblock): Check only one endianness.
35788 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35789 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35790 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35791 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35792 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35793 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35794 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35795 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35797 2009-08-26 Bean <bean123ch@gmail.com>
35799 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35801 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35802 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35803 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35805 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35807 NetBSD memory map support.
35809 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35810 (grub_netbsd_btinfo_mmap_header): New structure.
35811 (grub_netbsd_btinfo_mmap_entry): Likewise.
35812 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35814 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35816 Enable bsd.mod on coreboot.
35818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35819 (bsd_mod_SOURCES): New variable.
35820 (bsd_mod_CFLAGS): Likewise.
35821 (bsd_mod_LDFLAGS): Likewise.
35822 (bsd_mod_ASFLAGS): Likewise.
35823 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35824 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35826 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35828 Cleanup NetBSD root support.
35830 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35831 grub_bsd_get_device.
35834 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35836 * util/grub.d/00_header.in: Move check for the video backend of
35837 gfxterm from here ...
35838 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35839 a suitable video backend.
35841 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35843 Fix breakage in grub-setup.
35845 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35846 "msdos_partition_map".
35848 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35850 Fix breakage in normal/auth.c.
35852 * normal/auth.c (grub_iswordseparator): New function.
35854 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35856 Authentication support.
35858 * commands/password.c: New file.
35859 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35860 (password_mod_SOURCES): New variable.
35861 (password_mod_CFLAGS): Likewise.
35862 (password_mod_LDFLAGS): Likewise.
35863 (normal_mod_SOURCES): Add normal/auth.c.
35864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35866 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35868 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35872 * include/grub/auth.h: New file.
35873 * include/grub/err.h (grub_err_t): New enum value
35874 GRUB_ERR_ACCESS_DENIED.
35875 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35877 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35878 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35880 * normal/auth.c: New file.
35881 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35882 (grub_cmdline_run): Don't allow to go to command line without
35884 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35885 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35886 menuentry without superuser rights.
35887 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35888 user isn't a superuser.
35890 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35892 Save space by inlining misc.c functions.
35894 * kern/misc.c (grub_iswordseparator): Made static.
35895 * kern/misc.c (grub_strcat): Moved from here ...
35896 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35897 * kern/misc.c (grub_strncat): Moved from here ...
35898 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35899 * kern/misc.c (grub_strcasecmp): Moved from here ...
35900 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35901 * kern/misc.c (grub_strncasecmp): Moved from here ...
35902 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35903 * kern/misc.c (grub_isalpha): Moved from here ...
35904 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35905 * kern/misc.c (grub_isdigit): Moved from here ...
35906 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35907 * kern/misc.c (grub_isgraph): Moved from here ...
35908 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35909 * kern/misc.c (grub_tolower): Moved from here ...
35910 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35912 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35914 * script/sh/function.c (grub_script_function_find): Cut error message
35915 not to flood terminal.
35916 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35918 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35920 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35922 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35923 `report' grub_uint8_t *.
35924 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35925 Use a 50-millisecond timeout rather than just repeating
35926 grub_usb_keyboard_getreport 50 times.
35927 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35929 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35931 Rename *_partition_map to part_*
35933 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35934 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35935 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35936 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35938 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35940 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35941 * util/grub-probe.c (probe_partmap): Don't transform partition name
35942 to get module name.
35944 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35946 Fix OpenBSD and NetBSD support.
35948 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35949 memory address conflict.
35950 (OPENBSD_MMAP_ACPI): New definition.
35951 (OPENBSD_MMAP_NVS): Likewise.
35952 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35953 and OPENBSD_MMAP_NVS.
35954 Add memory map terminator
35955 Explicit cast when calling grub_unix_real_boot.
35956 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35958 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35960 Let user specify NetBSD root device.
35962 * loader/i386/bsd.c (netbsd_root): New variable.
35963 (netbsd_opts): New option 'root'.
35964 (NETBSD_ROOT_ARG): New macro.
35965 (grub_netbsd_boot): Use 'netbsd_root'.
35966 (grub_bsd_unload): Free 'netbsd_root'.
35967 (grub_cmd_netbsd): Fill 'netbsd_root'.
35969 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35971 Support for 64-bit NetBSD.
35973 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35974 point when booting non-FreeBSD.
35976 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35978 Support --no-smp and --no-acpi for NetBSD.
35980 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35981 (NETBSD_AB_NOACPI): Likewise.
35982 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35983 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35985 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35987 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35989 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35990 errors. Call grub_error when needed.
35992 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35994 * commands/search.c (search_fs): Try searching without autoload first.
35995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35996 filesystem module explicitly for faster booting.
35998 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36000 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36002 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36004 * util/grub.d/30_os-prober.in: Disable os-prober if
36005 `GRUB_DISABLE_OS_PROBER' was set to true.
36007 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36009 * partmap/pc.c: Rename to ...
36010 * partmap/msdos.c: ... this. Update all users.
36011 (grub_pc_partition_map): Rename to ...
36012 (grub_msdos_partition_map): ... this. Update all users.
36014 * parttool/pcpart.c: Rename to ...
36015 * parttool/msdospart.c: ... this. Update all users.
36017 * include/grub/pc_partition.h: Rename to ...
36018 * include/grub/msdos_partition.h: ... this. Update all users.
36019 (grub_pc_partition_bsd_entry): Rename to ...
36020 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36021 (grub_pc_partition_disk_label): Rename to ...
36022 (grub_msdos_partition_disk_label): ... this. Update all users.
36023 (grub_pc_partition_entry): Rename to ...
36024 (grub_msdos_partition_entry): ... this. Update all users.
36025 (grub_pc_partition_mbr): Rename to ...
36026 (grub_msdos_partition_mbr): ... this. Update all users.
36027 (grub_pc_partition): Rename to ...
36028 (grub_msdos_partition): ... this. Update all users.
36029 (grub_pc_partition_is_empty): Rename to ...
36030 (grub_msdos_partition_is_empty): ... this. Update all users.
36031 (grub_pc_partition_is_extended): Rename to ...
36032 (grub_msdos_partition_is_extended): ... this. Update all users.
36033 (grub_pc_partition_is_bsd): Rename to ...
36034 (grub_msdos_partition_is_bsd): ... this. Update all users.
36036 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36037 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36038 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36039 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36040 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36041 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36042 (gpt_mod_LDFLAGS): Rename to ...
36043 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36044 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36045 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36046 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36047 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36048 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36049 (part_gpt_mod_LDFLAGS): ... this.
36050 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36051 `pcpart.mod' to `msdospart.mod'.
36052 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36054 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36055 (msdospart_mod_LDFLAGS): ... this.
36057 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36059 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36060 (openbsd_opts): Likewise.
36061 (netbsd_opts): Likewise.
36062 (freebsd_flags): Added 0 terminator.
36063 (openbsd_flags): Likewise.
36064 (netbsd_flags): Likewise.
36065 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36066 (grub_cmd_freebsd): Transformed into extended command.
36067 (grub_cmd_openbsd): Likewise.
36068 (grub_cmd_netbsd): Likewise.
36069 (cmd_freebsd): Changed type to grub_extcmd_t.
36070 (cmd_openbsd): Likewise.
36071 (cmd_netbsd): Likewise.
36072 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36073 grub_cmd_openbsd as extended commands.
36074 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36075 cmd_netbsd and cmd_openbsd
36077 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36079 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36081 2009-08-21 Pavel Roskin <proski@gnu.org>
36083 * Makefile.in (install-local): When checking if a file is in the
36084 build directory, use "test -e" to detect symlinks.
36086 * Makefile.in (install-local): Remove all files in
36087 $(DESTDIR)$(pkglibdir) before installing new files there.
36089 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36091 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36094 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36096 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36097 explicitly specified by the user.
36099 2009-08-18 Pavel Roskin <proski@gnu.org>
36101 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36102 grub_uint8_t pointer for data.
36103 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36105 * video/fb/fbutil.c: Remove unnecessary casts.
36107 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36111 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36112 (grub_vbe_set_video_mode): Save active mode info
36113 only after setting the mode.
36114 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36117 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36119 Rename variables for clarity.
36121 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36122 (active_vbe_mode_info): ... this. All users updated.
36123 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36125 (initial_mode): Rename to ...
36126 (initial_vbe_mode): ... this. All users updated.
36127 (mode_in_use): Rename to ..
36128 (vbe_mode_in_use): ... this. All users updated.
36129 (mode_list): Rename to ..
36130 (vbe_mode_list): ... this. All users updated.
36131 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36132 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36133 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36134 'mode_list_size' to 'vbe_mode_list_size'.
36135 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36136 'best_mode_info' to 'best_vbe_mode_info' and
36137 'best_mode' to 'best_vbe_mode'
36139 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36141 Remove duplicate grub_video_fb_get_video_ptr.
36143 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36144 (grub_video_fb_get_video_ptr): ... this.
36145 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36146 * video/fb/fbutil.c: Add comment about addressing.
36147 (get_data_ptr): Rename to ...
36148 (grub_video_fb_get_video_ptr): ... this. All users updated.
36149 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36151 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36153 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36154 grub_dprintf() that was just added.
36156 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36158 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36159 (DEFAULT_VIDEO_MODE): Remove macros.
36160 (grub_linux_boot): Remove assumption that Linux has FB support,
36161 and use "text" as default video mode.
36163 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36165 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36167 * fs/fat.c (grub_fat_read_data): Likewise.
36169 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36171 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36173 (grub_module): Likewise.
36175 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36177 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36178 mbi->cmdline but free playground.
36180 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36182 Handle group offset on UFS1.
36184 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36185 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36187 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36189 Split ufs.mod into ufs1.mod and ufs2.mod.
36191 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36192 (grub_fstest_SOURCES): Likewise.
36193 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36194 (ufs_mod_SOURCES): Remove.
36195 (ufs_mod_CFLAGS): Likewise.
36196 (ufs_mod_LDFLAGS): Likewise.
36197 (ufs1_mod_SOURCES): New variable.
36198 (ufs1_mod_CFLAGS): Likewise.
36199 (ufs1_mod_LDFLAGS): Likewise.
36200 (ufs2_mod_SOURCES): New variable.
36201 (ufs2_mod_CFLAGS): Likewise.
36202 (ufs2_mod_LDFLAGS): Likewise.
36203 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36204 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36206 (grub_emu_SOURCES): Likewise.
36207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36208 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36209 (grub_setup_SOURCES): Likewise.
36210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36211 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36212 (grub_setup_SOURCES): Likewise.
36213 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36215 * fs/ufs2.c: New file.
36216 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36218 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36222 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36223 subsystem at the end.
36224 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36225 (video_fb_mod_SOURCES): New variable.
36226 (video_fb_mod_CFLAGS): Likewise.
36227 (video_fb_mod_LDFLAGS): Likewise.
36228 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36229 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36230 * video/i386/pc/vbeblit.c: Moved from here ...
36231 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36232 * video/i386/pc/vbefill.c: Moved from here ...
36233 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36234 * video/i386/pc/vbeutil.c: Moved from here ...
36235 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36236 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36237 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36238 * include/grub/i386/pc/vbefill.h: Moved from here ...
36239 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36240 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36241 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36242 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36243 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36244 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36245 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36246 (grub_video_adapter): Added 'get_info_and_fini'.
36247 (grub_video_get_info_and_fini): New prototype.
36248 (grub_video_set_mode): make modestring const char *.
36249 * loader/i386/linux.c (grub_linux_setup_video): Use
36250 grub_video_get_info_and_fini.
36251 (grub_linux_boot): Move modesetting just before booting.
36252 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36253 grub_video_get_info_and_fini.
36254 * video/i386/pc/vbe.c: Moved framebuffer part ...
36255 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36256 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36257 grub_video_fbstd_colors and grub_video_fb_set_palette.
36258 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36259 grub_video_fb_init.
36260 (grub_video_vbe_fini): Use grub_video_fb_fini.
36261 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36262 render_target and use grub_video_fb_set_active_render_target and
36263 grub_video_fb_set_palette.
36264 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36265 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36266 (grub_video_vbe_adapter): Use framebuffer.
36267 * video/video.c (grub_video_get_info_and_fini): New function.
36268 (grub_video_set_mode): Make modestring const char *.
36269 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36270 values are already initialised.
36272 2009-08-14 Pavel Roskin <proski@gnu.org>
36274 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36276 * boot/i386/pc/diskboot.S: Likewise.
36277 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36278 sectors allow compilation on MacOSX.
36279 * conf/i386-pc.rmk: Enable unconditional compilation of
36282 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36284 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36285 * util/grub.d/00_header.in: Enter interruptible sleep if
36286 GRUB_HIDDEN_TIMEOUT is set.
36288 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36290 * include/grub/symbol.h: Add the LOCAL macro.
36291 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36292 starting with "L_".
36294 2009-08-13 Pavel Roskin <proski@gnu.org>
36296 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36297 any modern compilers we support.
36299 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36300 Use local labels starting with "L_" so that Apple assembler
36301 knows they are local.
36303 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36305 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36306 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36307 (bsd_kernel_types): ... this enum.
36309 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36310 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36311 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36313 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36314 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36315 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36318 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36320 * util/grub-dumpdevtree: Moved from here ...
36321 * util/i386/efi/grub-dumpdevtree: ... to here.
36322 (hexify): New function. Converts a string to its hex version.
36323 Generate hex versions of "efi" and "device-properties" by calling
36324 hexify() on the ASCII strings rather than by hardcoding numbers.
36326 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36328 * fs/jfs.c: Update copyright year.
36330 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36332 * util/grub.d/00_header.in: Fix a comment.
36333 * util/grub.d/10_linux.in: Likewise.
36334 * util/grub.d/10_windows.in: Likewise.
36335 * util/grub.d/10_hurd.in: Likewise.
36337 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36339 * util/grub-mkconfig.in: Allow the user to specify the used font
36342 2009-08-08 Pavel Roskin <proski@gnu.org>
36344 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36345 available, xfs.mod needs it now.
36347 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36348 the "g" modifier in sed when the intention is to strip something
36349 once. This fixes comparison of kernels with multiple dashes.
36351 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36352 on it. Add missing space before closing bracket. Fix
36353 misleading formatting.
36355 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36357 * docs/grub.texi: Major overhaul. Remove all sections that are
36358 specific to GRUB Legacy, or mostly composed of Legacy-specific
36361 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36363 * docs/version.texi: New file. Provides version information for
36366 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36368 * docs/grub.texi: Update CVS information to SVN.
36369 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36371 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36373 * util/grub-mkconfig.in: Remove a wrong `fi'.
36375 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36377 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36378 (grub_jfs_uuid): New function.
36379 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36381 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36383 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36385 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36386 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36388 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36390 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36391 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36394 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36395 not just "vmlinu[zx]".
36396 Moved from here ...
36397 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36400 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36401 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36404 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36406 * util/grub.d/10_freebsd.in: Use an absolute device path for
36407 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36409 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36412 handling of multiple abstraction modules.
36414 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36416 Fix a bug resulting in black screen when loading Linux using a
36419 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36422 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36423 (grub_vbe_bios_getset_dac_palette_width): New function.
36424 (grub_vbe_bios_get_dac_palette_width)
36425 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36426 grub_vbe_bios_getset_dac_palette_width()).
36428 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36429 check for return status.
36430 (grub_vbe_get_video_mode_info): When getting information for a packed
36431 mode (<= 8 bpp), obtain DAC palette width using
36432 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36433 {red,green,blue}_mark_size.
36435 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36437 * commands/search.c (options): Fix help output to match actual code.
36439 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36441 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36444 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36446 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36447 on XFS or ReiserFS.
36449 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36451 Support Apple partition map with sector size different from 512 bytes.
36453 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36454 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36455 and 'apart.partmap_size'.
36457 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36458 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36462 * commands/i386/cpuid.c (options): New variable.
36463 (grub_cmd_cpuid): Return real error.
36464 (GRUB_MOD_INIT(cpuid)): Declare options.
36466 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36468 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36471 2009-07-31 Bean <bean123ch@gmail.com>
36473 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36475 (grub_fshelp_node): Move inode field to the end.
36476 (grub_xfs_data): Remove inode field.
36477 (grub_xfs_inode_block): Calculate inode size using sblock.
36478 (grub_xfs_inode_offset): Likewise.
36479 (grub_xfs_read_inode): Calculate inode size using sblock.
36480 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36481 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36482 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36483 to match inode size.
36484 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36485 not accessible when data is null.
36486 (grub_xfs_open): Likewise.
36488 2009-07-31 Bean <bean123ch@gmail.com>
36490 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36491 Don't change pv->disk if it's already set.
36493 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36494 (grub_raid_register): ... here.
36495 (grub_raid_rescan): Removed.
36497 * include/grub/raid.h (grub_raid_rescan): Removed.
36499 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36500 (fstest): Replace grub_raid_rescan with module fini function followed
36503 * util/grub-probe.c: Add include file <grub/raid.h>.
36504 (probe_raid_level): New function.
36505 (probe): Detect abstraction by walking the disk device, support two
36506 level of abstraction (LVM on RAID) when detecting partition map.
36508 2009-07-31 Pavel Roskin <proski@gnu.org>
36510 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36511 to grub_zalloc(), it was erroneous.
36512 Reported by Bean <bean123ch@gmail.com>
36514 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36516 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36517 embedding zone, not only the first one.
36519 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36521 * term/gfxterm.c (clear_char): New function.
36522 (grub_virtual_screen_setup): Use clear_char.
36523 (scroll_up): Likewise.
36524 (grub_virtual_screen_cls): Likewise.
36526 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36528 * util/deviceiter.c (get_acceleraid_disk_name): New static
36530 (grub_util_iterate_devices): Handle Accelraid devices.
36531 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36533 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36535 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36536 separator for the suggested gfxpayload string (';' collides with the
36537 parser and needs escaping).
36539 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36541 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36542 Clear direction flag before jumping to OS.
36543 (grub_multiboot2_real_boot): Likewise.
36545 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36547 * util/i386/pc/grub-install: Fix parsing of --disk-module
36550 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36552 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36555 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36557 * util/grub-mkconfig.in (package_version): New variable.
36558 Use it do display the version.
36560 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36562 * kern/file.c (grub_file_open): Revert to previous check with
36565 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36567 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36568 from help line. It's out of sync with code.
36570 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36572 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36573 entries on failed boot.
36575 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36577 * kern/file.c (grub_file_open): Fix an error check.
36579 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36581 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36582 partition map couldn't be identified.
36584 2009-07-23 Pavel Roskin <proski@gnu.org>
36586 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36587 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36588 case of little endian words becomes just an optimization.
36589 Respect const modifier.
36590 (md5_final): Use code that doesn't depend on endianness.
36592 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36593 to avoid loss of upper bits if align is unsigned and shorter
36596 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36598 UUID support for UFS
36600 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36601 (grub_ufs_uuid): New function.
36602 (grub_ufs_fs): add .uuid
36604 2009-07-21 Pavel Roskin <proski@gnu.org>
36606 * kern/dl.c (grub_dl_check_header): Make static.
36608 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36610 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36611 add drivemap for Vista. It breaks Windows 7.
36613 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36615 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36618 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36622 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36623 (grub_fstest_SOURCES): Likewise.
36624 (pkglib_MODULES): Add befs.mod.
36625 (befs_mod_SOURCES): New variable.
36626 (befs_mod_CFLAGS): Likewise.
36627 (befs_mod_LDFLAGS): Likewise.
36628 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36630 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36631 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36632 (grub_setup_SOURCES): Likewise.
36633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36635 (grub_setup_SOURCES): Likewise.
36636 * fs/befs.c: New file.
36637 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36638 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36639 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36640 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36641 (B_KEY_INDEX_ALIGN): New declaration.
36642 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36643 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36644 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36645 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36646 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36647 (grub_afs_mount) [MODE_BFS]: Likewise.
36648 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36649 (grub_afs_fs): Use GRUB_AFS_FSNAME
36650 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36651 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36652 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36653 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36655 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36657 * util/getroot.c (find_root_device): Add support for MacOSX.
36658 * util/hostdisk.c: Likewise.
36660 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36662 * font/font.c (find_glyph): Check whether a font is present to avoid
36663 segmentation fault.
36665 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36667 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36669 2009-07-20 Pavel Roskin <proski@gnu.org>
36671 * configure.ac: Trim excessively wordy excuses.
36673 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36675 Add symlink, mtime and label support to AtheFS.
36677 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36678 (grub_afs_iterate_dir): Handle symlinks.
36679 (grub_afs_open): Use grub_afs_read_symlink.
36680 (grub_afs_dir): Likewise.
36682 (grub_afs_label): New function.
36683 (grub_afs_fs): Add grub_afs_label.
36684 (grub_afs_read_symlink): New function.
36686 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36688 Fix AtheFS support.
36690 * fs/afs.c: Fix comments style.
36691 (grub_afs_blockrun): Declare as packed.
36692 (grub_afs_datastream): Likewise.
36693 (grub_afs_bnode): Likewise.
36694 (grub_afs_btree): Likewise.
36695 (grub_afs_sblock): Likewise.
36696 Declare `name' as char.
36697 (grub_afs_inode): Declare as packed.
36698 Change void *vnode to grub_uint32_t unused.
36699 (grub_afs_iterate_dir): Check that key_size is positive.
36700 (grub_afs_mount): Don't read superblock twice.
36701 (grub_afs_dir): Don't free node in case of error,
36702 grub_fshelp_find_file already handles this.
36703 (grub_afs_open): Likewise.
36705 2009-07-19 Pavel Roskin <proski@gnu.org>
36707 * Makefile.in: Remove LIBLZO and enable_lzo.
36708 * conf/i386-pc.rmk: Remove lzo support.
36709 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36710 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36712 * kern/i386/pc/lzo1x.S: Remove.
36713 * kern/i386/pc/startup.S: Remove lzo support.
36714 * util/i386/pc/grub-mkimage.c: Likewise.
36716 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36718 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36719 * fs/xfs.c (grub_xfs_dir): Likewise.
36720 * fs/afs.c (grub_afs_dir): Likewise.
36721 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36722 (grub_iso9660_open): Likewise.
36723 * fs/jfs.c (grub_jfs_open): Likewise.
36724 * fs/ext2.c (grub_ext2_dir): Likewise.
36725 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36726 * script/sh/lexer.c (grub_script_yylex): Likewise.
36728 2009-07-16 Pavel Roskin <proski@gnu.org>
36730 * configure.ac: Never add "-c" to CFLAGS.
36732 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36734 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36735 grub_cv_cc_efiemu should be used.
36737 * configure.ac: Typo fixes.
36739 * kern/mm.c (grub_zalloc): New function.
36740 (grub_debug_zalloc): Likewise.
36741 * include/grub/mm.h: Declare grub_zalloc() and
36742 grub_debug_zalloc().
36743 * util/misc.c (grub_zalloc): New function.
36744 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36745 instead of grub_malloc(), remove unneeded initializations.
36746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36747 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36748 * commands/parttool.c (grub_cmd_parttool): Likewise.
36749 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36750 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36751 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36752 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36753 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36754 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36755 (grub_cmd_efiemu_pnvram): Likewise.
36756 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36757 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36758 (grub_iso9660_iterate_dir): Likewise.
36759 * fs/jfs.c (grub_jfs_opendir): Likewise.
36760 * fs/ntfs.c (list_file): Likewise.
36761 (grub_ntfs_mount): Likewise.
36762 * kern/disk.c (grub_disk_open): Likewise.
36763 * kern/dl.c (grub_dl_load_core): Likewise.
36764 * kern/elf.c (grub_elf_file): Likewise.
36765 * kern/env.c (grub_env_context_open): Likewise.
36766 (grub_env_set): Likewise.
36767 (grub_env_set_data_slot): Likewise.
36768 * kern/file.c (grub_file_open): Likewise.
36769 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36770 * loader/i386/multiboot.c (grub_module): Likewise.
36771 * loader/xnu.c (grub_xnu_create_key): Likewise.
36772 (grub_xnu_create_value): Likewise.
36773 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36774 (read_config_file): Likewise.
36775 * normal/menu_entry.c (make_screen): Likewise.
36776 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36777 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36778 * script/sh/script.c (grub_script_parse): Likewise.
36779 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36780 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36781 * video/readers/png.c (grub_png_output_byte): Likewise.
36782 (grub_video_reader_png): Likewise.
36784 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36786 Enable all targets that can be built by default
36788 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36789 grub-mkfont and grub-fstest if they can be built
36791 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36793 Fix hang and segmentation fault in grub-emu-usb
36795 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36796 * util/usb.c (grub_libusb_devices): likewise
36797 (grub_libusb_init): rename to ...
36798 (GRUB_MOD_INIT (libusb)):...this
36799 (grub_libusb_fini): rename to ..
36800 (GRUB_MOD_FINI (libusb)):...this
36801 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36802 * include/grub/disk.h (grub_raid_init): removed, it's useless
36803 (grub_raid_fini): likewise
36804 (grub_lvm_init): likewise
36805 (grub_lvm_fini): likewise
36806 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36809 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36813 * Makefile.in (LIBUSB): new macro
36814 * genmk.rb (Utility/print_tail): new method
36815 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36816 (top level): call util.print_tail at the end.
36818 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36820 Make FreeBSD accept zpool.cache
36822 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36823 type is /boot/zfs/zpool.cache
36825 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36829 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36830 correct wrong typedef
36831 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36833 2009-07-15 Pavel Roskin <proski@gnu.org>
36835 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36836 * kern/disk.c (struct grub_disk_cache): Likewise.
36838 * commands/probe.c (options): Typo fix.
36840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36841 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36843 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36845 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36846 the end of "Error" to make the message more readable.
36848 * boot/i386/pc/boot.S (kernel_segment): Remove.
36849 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36852 * boot/i386/pc/boot.S (boot_version): Remove.
36853 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36856 * include/grub/i386/pc/boot.h: Sort all offsets.
36857 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36858 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36859 * boot/i386/pc/boot.S: Assert location of every offset listed in
36860 include/grub/i386/pc/boot.h.
36862 2009-07-13 Pavel Roskin <proski@gnu.org>
36864 * include/grub/i386/coreboot/machine.h: Rename
36865 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36866 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36867 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36869 * kern/dl.c: Force native word size to suppress warnings when
36870 compiling grub-emu.
36872 * kern/device.c (grub_device_iterate): Change struct part_ent to
36873 hold the name, not a pointer to it. Use one grub_malloc() per
36874 partition, not two. Free partition_name if grub_malloc() fails.
36875 Set ents to NULL only before grub_partition_iterate() is called.
36877 2009-07-11 Bean <bean123ch@gmail.com>
36879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36882 2009-07-10 Bean <bean123ch@gmail.com>
36883 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36885 * kern/ieee1275/openfw.c (grub_children_iterate)
36886 (grub_devalias_iterate): Fix size evaluation for property or path
36887 strings, which was broken since r2132.
36889 2009-07-07 Pavel Roskin <proski@gnu.org>
36891 * commands/search.c (search_file): Merge into ...
36892 (search_fs): ... this. Accept search type as argument.
36893 (grub_cmd_search): Pass search type to search_fs().
36895 * include/grub/util/console.h: New file.
36896 * util/console.c: Use it instead of grub/machine/console.h.
36897 * util/grub-emu.c: Likewise.
36899 * lib/arg.c (find_long_option): Remove.
36900 (find_long): Add `len' argument, make `s' const char *.
36901 (grub_arg_parse): Parse long options in place, not in a
36904 2009-07-06 Pavel Roskin <proski@gnu.org>
36906 * commands/search.c (search_fs): Fix potential NULL pointer
36909 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36912 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36914 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36917 2009-07-05 Pavel Roskin <proski@gnu.org>
36919 * include/grub/i386/linux.h (struct linux_kernel_params):
36920 Restore padding3, it's still needed.
36922 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36924 * util/osdetect.lua: Likewise.
36926 2009-07-05 Bean <bean123ch@gmail.com>
36928 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36930 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36931 (grub_lua_getenv): Likewise.
36932 (grub_lua_setenv): Likewise.
36933 (save_errno): New function.
36934 (push_result): Likewise.
36935 (grub_lua_enum_device): Likewise.
36936 (grub_lua_enum_file): Likewise.
36937 (grub_lua_file_open): Likewise.
36938 (grub_lua_file_close): Likewise.
36939 (grub_lua_file_seek): Likewise.
36940 (grub_lua_file_read): Likewise.
36941 (grub_lua_file_getline): Likewise.
36942 (grub_lua_file_getsize): Likewise.
36943 (grub_lua_file_getpos): Likewise.
36944 (grub_lua_file_eof): Likewise.
36945 (grub_lua_file_exist): Likewise.
36946 (grub_lua_add_menu): Likewise.
36948 * script/lua/grub_lua.h (isupper): New inline function.
36949 (islower): Likewise.
36950 (ispunct): Likewise.
36951 (isxdigit): Likewise.
36952 (strcspn): Change to normal function.
36953 (strpbkr): New function declaration.
36954 (memchr): Likewise.
36956 * script/lua/grub_main.c (scan_str): New function.
36957 (strcspn): Likewise.
36958 (strpbrk): Likewise.
36959 (memchr): Likewise.
36961 * script/lua/linit.c (lualibs): Enable the string library.
36963 * util/osdetect.lua: New file.
36965 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36967 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36968 `capabilities' member.
36970 2009-07-02 Pavel Roskin <proski@gnu.org>
36972 * genparttoollist.sh: Add missing newline at the end.
36974 2009-07-01 Pavel Roskin <proski@gnu.org>
36976 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36978 * util/hostdisk.c (open_device): Remove `const' from
36979 `sysctl_size', as sysctlbyname() can change it (in this case it
36980 doesn't actually happen).
36982 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36983 using signed long int constants.
36985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36986 constant to avoid a warning on FreeBSD.
36988 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36991 * Makefile.in: Install include/grub/machine symlink.
36993 * Makefile.in: When installing symlinks, use "cp -fR", which
36994 works on FreeBSD and MacOSX.
36995 From Yves Blusseau <cl7m42e02@sneakemail.com>
36997 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36998 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37000 * util/misc.c: Move grub_reboot() and grub_halt() ...
37001 * util/grub-emu.c: ... here. Make main_env static.
37002 * include/grub/util/misc.h: Remove main_env.
37004 * kern/mm.c: Use correct format to print size_t.
37006 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37007 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37008 * kern/powerpc/dl.c: Likewise.
37009 * kern/sparc64/dl.c: Likewise.
37010 * kern/x86_64/dl.c: Likewise.
37012 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37014 Fix grub-emu build on sparc64-ieee1275.
37016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37019 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37021 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37022 (grub_reboot, grub_halt): New functions.
37024 * util/i386/pc/misc.c: Delete. Update all users.
37025 * util/sparc64/ieee1275/misc.c: Likewise.
37026 * util/powerpc/ieee1275/misc.c: Likewise.
37028 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37030 * conf/i386.rmk (setjmp_mod_SOURCES)
37031 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37032 * conf/common.rmk (setjmp_mod_SOURCES)
37033 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37034 to use $(target_cpu).
37035 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37036 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37037 * conf/powerpc-ieee1275.rmk: Likewise.
37038 * conf/sparc64-ieee1275.rmk: Likewise.
37040 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37041 $(target_cpu) for kern/$(target_cpu)/dl.c.
37042 * conf/i386-efi.rmk: Likewise.
37043 * conf/i386-ieee1275.rmk: Likewise.
37044 * conf/x86_64-efi.rmk: Likewise.
37045 * conf/i386-coreboot.rmk: Likewise.
37046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37047 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37048 kern/$(target_cpu)/cache.S.
37049 * conf/sparc64-ieee1275.rmk: Likewise.
37051 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37053 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37054 type to `grub_uint8_t', and adjust `padding9' accordingly.
37056 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37058 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37060 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37061 assembly in final jump, using register constraints.
37063 (grub_linux_boot): For text mode, initialize `have_vga' using
37064 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37066 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37067 right before the final jump.
37069 Set `video_mode' to 0x3.
37071 Document initialization of `video_page', `video_mode' and
37074 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37076 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37077 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37078 and set GRUB_LINUX_FLAG_QUIET appropriately.
37080 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37082 Fix build on Debian / sparc.
37084 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37086 2009-06-28 Pavel Roskin <proski@gnu.org>
37088 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37091 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37093 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37095 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37098 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37102 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37103 file can't be opened. grub_file_open() is already supposed to set
37104 grub_errno / grub_errmsg appropriately.
37105 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37107 2009-06-27 Pavel Roskin <proski@gnu.org>
37108 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37110 * include/grub/dl.h: Include grub/elf.h.
37111 (struct grub_dl): Add symtab field.
37112 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37113 GRUB_MODULES_MACHINE_READONLY.
37114 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37115 of the header for read-only modules.
37116 (grub_dl_unload): Free mod->symtab for read-only modules.
37117 * kern/i386/dl.c: Use mod->symtab.
37118 * kern/powerpc/dl.c: Likewise.
37119 * kern/sparc64/dl.c: Likewise.
37120 * kern/x86_64/dl.c: Likewise.
37122 * conf/i386-qemu.rmk: New file.
37123 * kern/i386/qemu/startup.S: Likewise.
37124 * kern/i386/qemu/mmap.c: Likewise.
37125 * boot/i386/qemu/boot.S: Likewise.
37126 * include/grub/i386/qemu/time.h: Likewise.
37127 * include/grub/i386/qemu/serial.h: Likewise.
37128 * include/grub/i386/qemu/kernel.h: Likewise.
37129 * include/grub/i386/qemu/console.h: Likewise.
37130 * include/grub/i386/qemu/boot.h: Likewise.
37131 * include/grub/i386/qemu/init.h: Likewise.
37132 * include/grub/i386/qemu/machine.h: Likewise.
37133 * include/grub/i386/qemu/loader.h: Likewise.
37134 * include/grub/i386/qemu/memory.h: Likewise.
37136 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37137 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37138 [qemu] (pkglib_IMAGES): Add `boot.img'.
37139 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37140 [qemu] (boot_img_FORMAT): New variables.
37141 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37142 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37143 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37144 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37145 [qemu] (kernel_img_FORMAT): New variables.
37147 * configure.ac: Recognise `i386-qemu'.
37149 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37150 (for no compression).
37151 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37152 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37153 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37154 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37157 2009-06-27 Pavel Roskin <proski@gnu.org>
37159 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37161 * efiemu/prepare32.c: Likewise.
37162 * efiemu/prepare64.c: Likewise.
37164 2009-06-26 Pavel Roskin <proski@gnu.org>
37166 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37167 * include/grub/elf.h: Define symbols without "32" or "64" based
37168 on GRUB_TARGET_WORDSIZE.
37169 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37170 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37172 * efiemu/loadcore64.c: Likewise.
37173 * loader/i386/bsd32.c: Likewise.
37174 * loader/i386/bsd64.c: Likewise.
37175 * kern/dl.c: Remove own ELF definitions.
37176 * util/i386/efi/grub-mkimage.c: Likewise.
37178 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37180 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37181 segment 0x0 unconditionally, because the reference generated by
37182 GAS is an absolute address.
37184 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37186 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37187 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37189 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37191 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37192 indexes. Check for -f explicitly.
37193 (search_file): Improve error message.
37194 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37196 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37198 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37199 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37201 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37204 * conf/i386-ieee1275.rmk: Likewise.
37205 * conf/i386-coreboot.rmk: Likewise.
37207 * kern/i386/pc/startup.S (grub_stop): Remove function.
37208 * kern/i386/ieee1275/startup.S: Likewise.
37209 * kern/i386/coreboot/startup.S: Likewise.
37210 * kern/i386/misc.S (grub_stop): New function.
37212 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37214 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37215 * kern/i386/realmode.S (real_to_prot): ... to here.
37217 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37219 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37221 (kernel_elf_SOURCES): Rename to ...
37222 (kernel_img_SOURCES): ... this.
37223 (kernel_elf_HEADERS): Rename to ...
37224 (kernel_img_HEADERS): ... this. Update all users.
37225 (kernel_elf_ASFLAGS): Rename to ...
37226 (kernel_img_ASFLAGS): ... this.
37227 (kernel_elf_CFLAGS): Rename to ...
37228 (kernel_img_CFLAGS): ... this.
37229 (kernel_elf_LDFLAGS): Rename to ...
37230 (kernel_img_LDFLAGS): ... this.
37231 * conf/i386-coreboot.rmk: Likewise.
37232 * conf/powerpc-ieee1275.rmk: Likewise.
37234 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37237 2009-06-21 Pavel Roskin <proski@gnu.org>
37239 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37240 to match nested functions.
37241 * loader/sparc64/ieee1275/linux.c: Likewise.
37243 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37245 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37247 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37248 all i386 platforms.
37250 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37252 Fix asm file handling on ELF, and remove workarounds.
37254 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37255 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37256 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37257 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37259 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37261 Load BSD ELF modules
37263 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37264 and loader/i386/bsd64.c
37265 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37266 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37267 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37268 (grub_freebsd_load_elfmodule32): New declaration
37269 (grub_freebsd_load_elfmoduleobj64): Likewise
37270 (grub_freebsd_load_elf_meta32): Likewise
37271 (grub_freebsd_load_elf_meta64): Likewise
37272 (grub_freebsd_add_meta): Likewise
37273 (grub_freebsd_add_meta_module): Likewise
37274 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37275 (grub_freebsd_add_meta_module): Likewise and move module-specific
37276 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37277 (grub_cmd_freebsd): Add elf-kernel specific parts
37278 based on grub_freebsd_add_meta_module
37279 (grub_cmd_freebsd_module): Add type parsing moved from
37280 grub_freebsd_add_meta_module
37281 (grub_cmd_freebsd_module_elf): New function
37282 (cmd_freebsd_module_elf): New variable
37283 (GRUB_MOD_INIT): Register freebsd_module_elf
37284 * loader/i386/bsd32.c: New file
37285 * loader/i386/bsd64.c: Likewise
37286 * loader/i386/bsdXX.c: Likewise
37287 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37288 (grub_elf64_load): Likewise
37289 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37291 (grub_elf64_load_hook_t): Likewise
37293 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37295 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37297 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37298 don't write a menu entry for recovery mode.
37300 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37302 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37303 after it's no longer needed.
37305 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37307 * include/grub/i386/loader.h (grub_linux_prot_size)
37308 (grub_linux_tmp_addr, grub_linux_real_addr)
37309 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37310 GRUB_MACHINE_PCBIOS.
37311 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37312 common grub_util_info() call to ...
37313 (generate_image): ... here.
37314 Fix use of uninitialized memory, comparison of signed with
37315 unsigned integers and memory leak.
37316 Remove bogus module address message.
37318 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37320 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37322 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37324 2009-06-19 Pavel Roskin <proski@gnu.org>
37326 * configure.ac: Remove stray AC_MSG_CHECKING.
37328 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37330 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37332 2009-06-18 Pavel Roskin <proski@gnu.org>
37334 * conf/common.rmk: Add fs_file.mod.
37335 * disk/fs_file.c: New file.
37336 * include/grub/disk.h (enum grub_disk_dev_id): Add
37337 GRUB_DISK_DEVICE_FILE_ID.
37339 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37341 Fix build with Apple's toolchain. Part 2
37343 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37346 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37348 Fix build with Apple's toolchain. Part 1
37350 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37352 * configure.ac: remove a leftover AC_MSG_RESULT
37353 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37356 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37360 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37361 (decomp_block): initialize ch
37362 use grub_memcpy instead of memcpy
37364 2009-06-17 Pavel Roskin <proski@gnu.org>
37366 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37367 version, use declarations needed to use vga_text as the startup
37370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37371 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37373 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37374 and grub_at_keyboard_fini(), it's done on module load and
37377 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37379 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37380 file can't be found.
37381 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37383 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37385 Fix newline handling
37387 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37388 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37389 (grub_script_yylex): don't segfault on unterminated script
37390 newline terminates command and variable
37392 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37394 avoid double grub_adjust_range call. Bug reported by David Simner
37396 * kern/disk.c (grub_disk_write): change to raw disk access before
37399 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37401 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37402 spaces, for the benefit of help2man.
37403 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37405 2009-06-16 Pavel Roskin <proski@gnu.org>
37407 * kern/i386/halt.c: Include grub/machine/init.h.
37408 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37410 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37412 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37413 drivemap menuentry.
37415 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37417 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37420 2009-06-16 Pavel Roskin <proski@gnu.org>
37422 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37423 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37424 save %dx, we only need %dl and we never change it.
37425 * boot/i386/pc/cdboot.S: Don't set the root drive.
37426 * boot/i386/pc/pxeboot.S: Likewise.
37427 * include/grub/i386/pc/boot.h: Remove
37428 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37429 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37430 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37431 * kern/i386/pc/init.c (make_install_device): Remove references
37432 to grub_root_drive.
37433 * kern/i386/pc/startup.S: Likewise.
37434 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37436 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37440 * commands/xnu_uuid.c: new file
37441 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37442 (xnu_uuid_mod_SOURCES): new variable
37443 (xnu_uuid_mod_CFLAGS): likewise
37444 (xnu_uuid_mod_LDFLAGS): likewise
37445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37446 * conf/i386-ieee1275.rmk: likewise
37447 * conf/i386-pc.rmk: likewise
37448 * conf/powerpc-ieee1275.rmk: likewise
37449 * conf/sparc64-ieee1275.rmk: likewise
37450 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37452 2009-06-16 Pavel Roskin <proski@gnu.org>
37454 * configure.ac: Avoid '==' in test command, it's not portable.
37456 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37460 * commands/probe.c: new file
37461 * conf/common.rmk (pkglib_MODULES): add probe.mod
37462 (probe_mod_SOURCES): new variable
37463 (probe_mod_CFLAGS): likewise
37464 (probe_mod_LDFLAGS): likewise
37465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37466 * conf/i386-ieee1275.rmk: likewise
37467 * conf/i386-pc.rmk: likewise
37468 * conf/powerpc-ieee1275.rmk: likewise
37469 * conf/sparc64-ieee1275.rmk: likewise
37471 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37473 Fix handling of string like \"hello\" and "a
37476 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37477 (grub_script_yylex): fix parsing of quoting, escaping and newline
37479 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37484 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37486 * util/grub-mkconfig.in: Fix parsing of --output option.
37488 2009-06-12 Pavel Roskin <proski@gnu.org>
37490 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37491 genmk.rb don't need to be generated or installed.
37493 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37495 * commands/i386/pc/drivemap_int13h.S: add more comments
37497 2009-06-11 Pavel Roskin <proski@gnu.org>
37499 * Makefile.in (uninstall): Uninstall manuals.
37501 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37502 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37503 and update-grub_lib in two places.
37504 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37506 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37507 a compiler warning.
37509 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37510 `entry_lo' to fix variable shadowing.
37512 2009-06-11 Christian Franke <franke@computer.org>
37514 * kern/misc.c (__enable_execute_stack): Add missing return type
37515 to prevent gcc warning.
37517 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37519 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37521 2009-06-11 Pavel Roskin <proski@gnu.org>
37523 * Makefile.in: Don't rely on any scripts being executable.
37524 Always use $(SHELL) to run shell scripts.
37526 * configure.ac: Always define ___main if using -nostdlib. This
37527 fixes tests on Cygwin.
37529 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37533 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37534 is in bytes and not in blocks
37536 2009-06-11 Pavel Roskin <proski@gnu.org>
37538 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37541 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37543 * util/grub.d/30_os-prober.in: Fix a comment. Source
37544 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37545 to set the root device. Place drivemap command in the generated
37548 2009-06-11 Pavel Roskin <proski@gnu.org>
37550 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37551 have long been resolved.
37553 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37555 * util/grub.d/10_linux.in: Capitalise "Linux".
37557 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37559 2009-06-11 Pavel Roskin <proski@gnu.org>
37561 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37562 fix a gcc warning and ensure that the function won't ever exit.
37564 * kern/i386/ieee1275/init.c: Add missing prototype for
37565 grub_stop_floppy().
37567 * loader/ieee1275/multiboot2.c [__i386__]: Include
37568 grub/cpu/multiboot.h.
37570 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37571 casts to short - they are not portable and cause warnings. Fix
37572 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37574 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37578 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37580 (grub_get_root_biosnumber_saved): new variable
37581 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37582 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37583 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37584 %dx after the call if necessary
37585 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37586 (boot_mod_SOURCES): remove
37587 (boot_mod_CFLAGS): remove
37588 (boot_mod_LDFLAGS): remove
37589 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37590 (boot_mod_SOURCES): new variable
37591 (boot_mod_CFLAGS): likewise
37592 (boot_mod_LDFLAGS): likewise
37593 * conf/i386-efi.rmk: likewise
37594 * conf/i386-ieee1275.rmk: likewise
37595 * conf/i386-pc.rmk: likewise
37596 * conf/powerpc-ieee1275.rmk: likewise
37597 * conf/sparc64-ieee1275.rmk: likewise
37598 * conf/x86_64-efi.rmk: likewise
37599 * include/grub/i386/pc/biosnum.h: new file
37600 * lib/i386/pc/biosnum.c: likewise
37601 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37602 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37603 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37605 2009-06-10 Pavel Roskin <proski@gnu.org>
37607 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37608 Use separate variables. Read only the file size at the end, but
37609 not the checksum that we don't use.
37611 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37612 Adjust all callers.
37614 * kern/ieee1275/openfw.c: Remove libc includes.
37615 * kern/ieee1275/cmain.c: Likewise.
37616 * include/grub/ieee1275/ieee1275.h: Likewise.
37618 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37621 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37623 * Makefile.in: Remove all trailing whitespace.
37624 * conf/i386-pc.rmk: Likewise.
37625 * conf/powerpc-ieee1275.rmk: Likewise.
37626 * conf/sparc64-ieee1275.rmk: Likewise.
37627 * docs/grub.texi: Likewise.
37628 * docs/texinfo.tex: Likewise.
37629 * disk/fs_uuid.c: Likewise.
37630 * disk/lvm.c: Likewise.
37631 * disk/scsi.c: Likewise.
37632 * disk/ata.c: Likewise.
37633 * disk/ieee1275/ofdisk.c: Likewise.
37634 * disk/i386/pc/biosdisk.c: Likewise.
37635 * disk/host.c: Likewise.
37636 * disk/raid.c: Likewise.
37637 * disk/efi/efidisk.c: Likewise.
37638 * disk/usbms.c: Likewise.
37639 * disk/memdisk.c: Likewise.
37640 * disk/loopback.c: Likewise.
37641 * kern/powerpc/dl.c: Likewise.
37642 * kern/device.c: Likewise.
37643 * kern/dl.c: Likewise.
37644 * kern/sparc64/dl.c: Likewise.
37645 * kern/ieee1275/ieee1275.c: Likewise.
37646 * kern/term.c: Likewise.
37647 * kern/fs.c: Likewise.
37648 * kern/i386/dl.c: Likewise.
37649 * kern/i386/pc/startup.S: Likewise.
37650 * kern/i386/pc/init.c: Likewise.
37651 * kern/i386/pc/mmap.c: Likewise.
37652 * kern/i386/pc/lzo1x.S: Likewise.
37653 * kern/i386/ieee1275/init.c: Likewise.
37654 * kern/i386/realmode.S: Likewise.
37655 * kern/i386/tsc.c: Likewise.
37656 * kern/partition.c: Likewise.
37657 * kern/corecmd.c: Likewise.
37658 * kern/file.c: Likewise.
37659 * kern/efi/efi.c: Likewise.
37660 * kern/efi/init.c: Likewise.
37661 * kern/efi/mm.c: Likewise.
37662 * kern/main.c: Likewise.
37663 * kern/err.c: Likewise.
37664 * kern/env.c: Likewise.
37665 * kern/disk.c: Likewise.
37666 * kern/generic/millisleep.c: Likewise.
37667 * kern/generic/rtc_get_time_ms.c: Likewise.
37668 * kern/misc.c: Likewise.
37669 * kern/parser.c: Likewise.
37670 * genmk.rb: Likewise.
37671 * configure.ac: Likewise.
37672 * boot/i386/pc/diskboot.S: Likewise.
37673 * boot/i386/pc/pxeboot.S: Likewise.
37674 * boot/i386/pc/boot.S: Likewise.
37675 * boot/i386/pc/lnxboot.S: Likewise.
37676 * boot/i386/pc/cdboot.S: Likewise.
37677 * parttool/pcpart.c: Likewise.
37678 * video/readers/tga.c: Likewise.
37679 * video/video.c: Likewise.
37680 * video/bitmap.c: Likewise.
37681 * lib/envblk.c: Likewise.
37682 * lib/i386/setjmp.S: Likewise.
37683 * fs/xfs.c: Likewise.
37684 * fs/afs.c: Likewise.
37685 * fs/fat.c: Likewise.
37686 * fs/ntfs.c: Likewise.
37687 * fs/udf.c: Likewise.
37688 * fs/affs.c: Likewise.
37689 * fs/iso9660.c: Likewise.
37690 * fs/hfs.c: Likewise.
37691 * fs/fshelp.c: Likewise.
37692 * fs/ext2.c: Likewise.
37693 * fs/jfs.c: Likewise.
37694 * fs/reiserfs.c: Likewise.
37695 * fs/hfsplus.c: Likewise.
37696 * fs/minix.c: Likewise.
37697 * fs/cpio.c: Likewise.
37698 * fs/sfs.c: Likewise.
37699 * fs/ufs.c: Likewise.
37700 * efiemu/prepare.c: Likewise.
37701 * efiemu/loadcore_common.c: Likewise.
37702 * efiemu/runtime/efiemu.sh: Likewise.
37703 * efiemu/runtime/efiemu.S: Likewise.
37704 * efiemu/runtime/efiemu.c: Likewise.
37705 * efiemu/pnvram.c: Likewise.
37706 * efiemu/main.c: Likewise.
37707 * efiemu/i386/pc/cfgtables.c: Likewise.
37708 * efiemu/i386/loadcore64.c: Likewise.
37709 * efiemu/i386/loadcore32.c: Likewise.
37710 * efiemu/loadcore.c: Likewise.
37711 * efiemu/symbols.c: Likewise.
37712 * efiemu/mm.c: Likewise.
37713 * include/grub/autoefi.h: Likewise.
37714 * include/grub/datetime.h: Likewise.
37715 * include/grub/term.h: Likewise.
37716 * include/grub/hfs.h: Likewise.
37717 * include/grub/lvm.h: Likewise.
37718 * include/grub/i386/tsc.h: Likewise.
37719 * include/grub/i386/linux.h: Likewise.
37720 * include/grub/i386/xnu.h: Likewise.
37721 * include/grub/i386/efiemu.h: Likewise.
37722 * include/grub/i386/pc/biosdisk.h: Likewise.
37723 * include/grub/i386/pc/memory.h: Likewise.
37724 * include/grub/i386/pc/vbe.h: Likewise.
37725 * include/grub/parttool.h: Likewise.
37726 * include/grub/video.h: Likewise.
37727 * include/grub/memory.h: Likewise.
37728 * include/grub/fs.h: Likewise.
37729 * include/grub/partition.h: Likewise.
37730 * include/grub/xnu.h: Likewise.
37731 * include/grub/efi/api.h: Likewise.
37732 * include/grub/efi/pe32.h: Likewise.
37733 * include/grub/efi/memory.h: Likewise.
37734 * include/grub/multiboot.h: Likewise.
37735 * include/grub/usbdesc.h: Likewise.
37736 * include/grub/multiboot2.h: Likewise.
37737 * include/grub/acpi.h: Likewise.
37738 * include/grub/efiemu/efiemu.h: Likewise.
37739 * include/grub/disk.h: Likewise.
37740 * include/grub/ieee1275/ieee1275.h: Likewise.
37741 * include/grub/net.h: Likewise.
37742 * include/grub/machoload.h: Likewise.
37743 * include/grub/macho.h: Likewise.
37744 * include/multiboot.h: Likewise.
37745 * genmoddep.awk: Likewise.
37746 * normal/main.c: Likewise.
37747 * normal/menu_entry.c: Likewise.
37748 * normal/menu_viewer.c: Likewise.
37749 * normal/completion.c: Likewise.
37750 * normal/cmdline.c: Likewise.
37751 * normal/misc.c: Likewise.
37752 * normal/datetime.c: Likewise.
37753 * bus/usb/usbtrans.c: Likewise.
37754 * bus/usb/ohci.c: Likewise.
37755 * bus/usb/uhci.c: Likewise.
37756 * bus/usb/usb.c: Likewise.
37757 * mmap/efi/mmap.c: Likewise.
37758 * mmap/i386/pc/mmap_helper.S: Likewise.
37759 * mmap/i386/pc/mmap.c: Likewise.
37760 * mmap/i386/mmap.c: Likewise.
37761 * mmap/i386/uppermem.c: Likewise.
37762 * mmap/mmap.c: Likewise.
37763 * commands/acpi.c: Likewise.
37764 * commands/echo.c: Likewise.
37765 * commands/blocklist.c: Likewise.
37766 * commands/loadenv.c: Likewise.
37767 * commands/usbtest.c: Likewise.
37768 * commands/boot.c: Likewise.
37769 * commands/parttool.c: Likewise.
37770 * commands/search.c: Likewise.
37771 * commands/cat.c: Likewise.
37772 * commands/i386/pc/play.c: Likewise.
37773 * commands/i386/pc/drivemap.c: Likewise.
37774 * commands/i386/pc/vbeinfo.c: Likewise.
37775 * commands/i386/pc/acpi.c: Likewise.
37776 * commands/i386/pc/vbetest.c: Likewise.
37777 * commands/ls.c: Likewise.
37778 * commands/cmp.c: Likewise.
37779 * commands/test.c: Likewise.
37780 * commands/efi/acpi.c: Likewise.
37781 * commands/gptsync.c: Likewise.
37782 * commands/help.c: Likewise.
37783 * partmap/amiga.c: Likewise.
37784 * partmap/apple.c: Likewise.
37785 * partmap/acorn.c: Likewise.
37786 * partmap/pc.c: Likewise.
37787 * partmap/sun.c: Likewise.
37788 * partmap/gpt.c: Likewise.
37789 * script/sh/lexer.c: Likewise.
37790 * script/sh/function.c: Likewise.
37791 * font/font.c: Likewise.
37792 * font/font_cmd.c: Likewise.
37793 * loader/powerpc/ieee1275/linux.c: Likewise.
37794 * loader/efi/chainloader.c: Likewise.
37795 * loader/multiboot_loader.c: Likewise.
37796 * loader/macho.c: Likewise.
37797 * loader/i386/multiboot.c: Likewise.
37798 * loader/i386/linux.c: Likewise.
37799 * loader/i386/pc/linux.c: Likewise.
37800 * loader/i386/pc/multiboot2.c: Likewise.
37801 * loader/i386/pc/chainloader.c: Likewise.
37802 * loader/i386/pc/xnu.c: Likewise.
37803 * loader/i386/bsd_trampoline.S: Likewise.
37804 * loader/i386/efi/linux.c: Likewise.
37805 * loader/i386/multiboot_elfxx.c: Likewise.
37806 * loader/i386/bsd_helper.S: Likewise.
37807 * loader/i386/bsd.c: Likewise.
37808 * loader/i386/linux_trampoline.S: Likewise.
37809 * loader/i386/xnu_helper.S: Likewise.
37810 * loader/i386/xnu.c: Likewise.
37811 * loader/i386/bsd_pagetable.c: Likewise.
37812 * loader/i386/multiboot_helper.S: Likewise.
37813 * loader/xnu.c: Likewise.
37814 * loader/xnu_resume.c: Likewise.
37815 * io/gzio.c: Likewise.
37816 * term/efi/console.c: Likewise.
37817 * term/terminfo.c: Likewise.
37818 * term/ieee1275/ofconsole.c: Likewise.
37819 * term/i386/pc/serial.c: Likewise.
37820 * term/i386/pc/vesafb.c: Likewise.
37821 * term/i386/pc/vga.c: Likewise.
37822 * term/usb_keyboard.c: Likewise.
37823 * term/gfxterm.c: Likewise.
37824 * aclocal.m4: Likewise.
37825 * util/lvm.c: Likewise.
37826 * util/grub.d/30_os-prober.in: Likewise.
37827 * util/grub.d/10_hurd.in: Likewise.
37828 * util/console.c: Likewise.
37829 * util/grub-macho2img.c: Likewise.
37830 * util/grub-probe.c: Likewise.
37831 * util/hostfs.c: Likewise.
37832 * util/i386/pc/grub-mkimage.c: Likewise.
37833 * util/i386/pc/grub-setup.c: Likewise.
37834 * util/i386/efi/grub-mkimage.c: Likewise.
37835 * util/grub-mkconfig.in: Likewise.
37836 * util/raid.c: Likewise.
37837 * util/resolve.c: Likewise.
37838 * util/grub-mkdevicemap.c: Likewise.
37839 * util/grub-emu.c: Likewise.
37840 * util/getroot.c: Likewise.
37841 * util/hostdisk.c: Likewise.
37842 * util/usb.c: Likewise.
37843 * util/grub-editenv.c: Likewise.
37844 * util/misc.c: Likewise.
37846 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37848 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37849 `genparttoollist.sh'.
37850 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37851 Add `*.sh' to the list find searches for and change `mdate.sh'
37854 2009-06-10 Pavel Roskin <proski@gnu.org>
37856 * include/grub/multiboot2.h: Provide compatibility defines for
37858 * include/multiboot2.h: Include stdint.h only if needed, using
37860 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37862 * loader/ieee1275/multiboot2.c: Likewise.
37863 * loader/multiboot2.c: Likewise.
37864 * loader/multiboot_loader.c: Likewise.
37866 * configure.ac: Use -nostdlib when probing for the target. It
37867 should not be required to have libc for the target.
37869 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37870 they fail without libc headers for the target.
37871 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37873 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37874 preprocessor conditionals.
37876 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37877 build system doesn't need to be aware of the tar.c internals.
37879 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37881 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37883 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37885 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37886 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37888 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37890 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37891 aren't available if ata.mod gets used.
37893 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37895 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37896 initialising controller.
37897 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37899 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37901 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37902 to choose between ata and biosdisk module on i386-pc.
37904 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37906 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37907 Subclass and Programming Interface fields in terms of the 3 byte
37908 Class Code register.
37909 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37911 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37912 interface is OHCI. Add grub_dprintf for symmetry with
37914 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37915 interface is UHCI. Add interf variable for programming
37916 interface. Print interface with class/subclass.
37918 * bus/usb/ohci.c: Set interf with correct field.
37920 * bus/usb/uhci.c: Remove unneeded doubled lines.
37921 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37922 Remove whitespace inside comment.
37924 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37926 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37927 as fallback an equivalent option without depth.
37929 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37931 Not fail if unable to retrieve C/H/S on LBA disks
37933 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37934 if unable to retrieve C/H/S on LBA disks
37936 2009-06-08 Pavel Roskin <proski@gnu.org>
37938 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37941 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37943 * Makefile.in (uninstall): Remove all $lib_DATA files.
37945 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37947 Bugfix: install on partitionless device
37949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37952 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37954 * Makefile.in (uninstall): Remove all $include_DATA files.
37956 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37958 * commands/true.c: New file. Implement the true and false commands.
37959 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37960 (true_mod_SOURCES): New variable.
37961 (true_mod_CFLAGS): Likewise.
37962 (true_mod_LDFLAGS): Likewise.
37964 2009-06-05 Colin D Bennett <colin@gibibit.com>
37966 Optimized font character lookup using binary search instead of linear
37967 search. Fonts now are required to have the character index ordered by
37970 * font/font.c (load_font_index): Verify that fonts have ordered
37972 (find_glyph): Use binary search instead of linear search to find a
37973 character in a font.
37975 2009-06-05 Michael Scherer <misc@mandriva.org>
37977 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37978 uses case sensitive btree.
37979 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37980 only for case insensitive filesystems.
37982 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37984 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37985 * conf/common.rmk (search_mod_CFLAGS): likewise
37987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37989 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37990 compensate a compiler bug
37992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37994 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37997 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37999 Definitions for creating asm symbols with Apple's CC
38001 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38002 [APPLE_CC] (VARIABLE): likewise
38004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38006 Disable lnxboot.img when compiled
38009 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38010 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38011 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38012 [! APPLE_CC] (CODE_LENG): skip
38013 [! APPLE_CC] (setup_sects): likewise
38014 [! APPLE_CC]: skip filling
38016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38018 Address in trampolines based on 32-bit registers when compiled
38021 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38023 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38025 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38027 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38029 * kern/misc.c [APPLE_CC] (memcpy): new function
38030 [APPLE_CC] (memmove): likewise
38031 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38032 (memcpy): define alias conditionally on !APPLE_CC
38035 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38036 APPLE_CC are defined
38037 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38038 (grub_assert_fail): make prototype conditional
38040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38042 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38044 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38046 (CLEANFILES): add grub-macho2img
38047 (grub_macho2img_SOURCES): new variable
38048 * kern/i386/pc/startup.S (bss_start): new variable
38049 (bss_end): likewise
38050 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38051 * util/grub-macho2img.c: new file
38053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38055 Use objconv when compiling with Apple's CC
38057 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38058 (efiemu64.o): likewise
38059 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38060 when compiling with Apple's CC
38061 (efiemu64_s.o): likewise
38062 * configure.ac: check for objconv when compiling with Apple's CC
38063 * genmk.rb: use objconv for modules when compiled with Apple's CC
38065 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38067 Define segment as well as section when compiling with
38070 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38071 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38072 (efiemu_convert_pointer): likewise
38073 (efiemu_set_virtual_address_map): likewise
38074 (efiemu_convert_pointer): likewise
38075 (efiemu_getcrc32): likewise
38076 (init_crc32_table): likewise
38077 (reflect): likewise
38078 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38079 (GRUB_MOD_DEP): likewise
38081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38083 Allow a compilation without -mcmodel=large
38085 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38086 when compiled without -mcmodel=large
38087 (filter_memory_map): remove memory post 4 GiB when compiled
38088 without -mcmodel=large
38089 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38090 TARGET_CFLAGS when -mcmodel=large isn't supported
38092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38094 Remove nested functions in efiemu core
38096 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38098 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38100 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38102 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38104 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38106 (grub_cpu_is_tsc_supported): likewise
38107 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38109 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38111 Absolute addressing through constant with Apple's cc
38113 * kern/i386/pc/startup.S: Define necessary constants
38114 and address through it when using ABS with Apple's CC
38115 * boot/i386/pc/diskboot.S: likewise
38116 * boot/i386/pc/boot.S: likewise
38117 * boot/i386/pc/lnxboot.S: likewise
38118 * boot/i386/pc/cdboot.S: likewise
38119 * mmap/i386/pc/mmap_helper.S: likewise
38120 * commands/i386/pc/drivemap_int13h.S: likewise
38122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38124 Check if compiler is apple cc
38126 * Makefile.in (ASFLAGS): new variable
38127 (TARGET_ASFLAGS): likewise
38128 (TARGET_MODULE_FORMAT): likewise
38129 (TARGET_APPLE_CC): likewise
38130 (OBJCONV): likewise
38131 (TARGET_IMG_CFLAGS): likewise
38132 (TARGET_CPPFLAGS): add includedir
38133 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38134 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38135 Check for linker script only if compiler isn't Apple's CC
38136 (TARGET_MODULE_FORMAT): set
38137 (TARGET_APPLE_CC): likewise
38138 (TARGET_ASFLAGS): likewise
38139 (ASFLAGS): likewise
38140 Check for objcopy only if compiler isn't Apple's CC
38141 Check for BSS symbol only if compiler isn't Apple's CC
38142 * genmk.rb: adapt nm options if we use Apple's utils
38143 * aclocal.m4 (grub_apple_cc): new test
38144 (grub_apple_target_cc): likewise
38146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38148 Simplify sed expressions and improve awk
38150 * Makefile.in (install-local): simplify sed expression
38151 * gencmdlist.sh: likewise
38152 * genmoddep.awk: avoid adding module as a dependency of itself
38154 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38156 Add missing start symbols
38158 * boot/i386/pc/boot.S: add start
38159 * boot/i386/pc/pxeboot.S: likewise
38161 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38163 Fix wrong assumptions with grub-mkimage on EFI
38165 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38166 (relocate_addresses): consider both r_addend and value at offset
38167 (make_mods_section): zerofill modinfo and header
38168 (convert_elf): write prefix here
38170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38172 Use .asciz instead of .string
38174 * i386/pc/diskboot.S: use .asciz instead of .string
38175 * i386/pc/boot.S: likewise
38176 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38177 (GRUB_MOD_NAME): likewise
38179 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38183 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38184 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38185 (grub_video_setup): remove
38186 (grub_video_set_mode): new prototype
38187 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38189 (linux_vesafb_res): compile only on PCBIOS
38190 (grub_linux_boot): support gfxpayload
38191 * loader/i386/pc/xnu.c (video_hook): new function
38192 (grub_xnu_set_video): support gfxpayload
38193 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38194 (DEFAULT_VIDEO_HEIGHT): likewise
38195 (DEFAULT_VIDEO_FLAGS): likewise
38196 (DEFAULT_VIDEO_MODE): new definition
38197 (video_hook): new function
38198 (grub_gfxterm_init): use grub_video_set_mode
38199 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38201 * video/video.c (grub_video_setup): removed
38202 (grub_video_set_mode): new function based on grub_gfxterm_init and
38205 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38207 Avoid calling biosdisk in drivemap
38209 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38210 (revparse_biosdisk): likewise
38211 (list_mappings): derive name from id directly
38212 (grub_cmd_drivemap): use tryparse_diskstring
38214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38218 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38219 (grub_lexer_param): add tokenonhold
38220 (grub_script_create_cmdline): remove cmdline. All callers updated
38221 (grub_script_function_create): make functionname
38222 grub_script_arg. All callers updated
38223 (grub_script_execute_argument_to_string): new prototype
38224 * kern/parser.c (state_transitions): reorder
38225 (grub_parser_cmdline_state): fix a bug and make more compact
38226 * script/sh/execute.c (grub_script_execute_argument_to_string):
38228 (grub_script_execute_cmdline): use new format
38229 * script/sh/function.c (grub_script_function_create): make functionname
38230 grub_script_arg. All callers updated
38231 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38232 (grub_script_yylex): remove
38233 (grub_script_yylex2): renamed to ...
38234 (grub_script_yylex): ...renamed
38235 parse the expressions like a${b}c
38236 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38237 (GRUB_PARSER_TOKEN_VAR): remove
38238 (GRUB_PARSER_TOKEN_NAME): likewise
38239 ("if"): declare as typeless
38240 ("while"): likewise
38241 ("function"): likewise
38246 (argument): likewise
38247 (script): accept empty scripts and make exit on error
38248 (arguments): use GRUB_PARSER_TOKEN_ARG
38249 (function): likewise
38250 (command): move error handling to script
38251 (menuentry): move grub_script_lexer_ref before
38252 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38253 argument. All callers updated
38255 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38257 Prevent GRUB from probing floppies during boot.
38259 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38260 * commands/search.c (options): Add --no-floppy.
38261 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38262 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38263 --no-floppy when searching for UUIDs.
38265 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38267 Simplify the code duplication in commands/search.c.
38269 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38270 (search_fs): ... this. Update all users.
38272 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38274 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38276 2009-05-28 Pavel Roskin <proski@gnu.org>
38278 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38279 Remove the original symlink explicitly.
38281 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38282 just one slash. That's how grub_fshelp_find_file() does it.
38284 2009-05-26 Pavel Roskin <proski@gnu.org>
38286 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38289 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38292 2009-05-25 Christian Franke <franke@computer.org>
38294 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38296 (grub_atapi_identify): Add wait after drive select.
38297 (grub_ata_identify): Do more strict status register check before
38298 calling grub_atapi_identify (). Suppress error message if status
38299 register is 0x00 after command failure. Add status register
38300 check after PIO read to avoid bogus identify due to stuck DRQ.
38301 Thanks to Pavel Roskin for testing.
38302 (grub_device_initialize): Remove unsafe status register check.
38303 Thanks to 'phcoder' for problem report and patch.
38304 Prevent sign extension in debug message.
38306 2009-05-23 Colin D Bennett <colin@gibibit.com>
38308 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38309 definition file, and functions defined in `normal/menu.c' have had
38310 their prototypes moved to `include/grub/menu.h' for consistency.
38312 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38314 (grub_menu_get_entry): Likewise.
38315 (grub_menu_get_timeout): Likewise.
38316 (grub_menu_set_timeout): Likewise.
38317 (grub_menu_execute_entry): Likewise.
38318 (grub_menu_execute_with_fallback): Likewise.
38319 (grub_menu_entry_run): Likewise.
38321 * include/grub/normal.h: Re-ordered and grouped function
38322 prototypes by file that the function is defined in.
38323 (grub_menu_execute_callback): Removed; moved to menu.h.
38324 (grub_menu_get_entry): Likewise.
38325 (grub_menu_get_timeout): Likewise.
38326 (grub_menu_set_timeout): Likewise.
38327 (grub_menu_execute_entry): Likewise.
38328 (grub_menu_execute_with_fallback): Likewise.
38329 (grub_menu_entry_run): Likewise.
38330 (grub_menu_addentry): Renamed from this ...
38331 (grub_normal_add_menu_entry): ... to this.
38333 * normal/main.c (grub_menu_addentry): Renamed from this ...
38334 (grub_normal_add_menu_entry): ... to this.
38336 * script/sh/execute.c (grub_script_execute_menuentry): Update
38337 reference to renamed grub_menu_addentry function.
38339 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38341 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38343 2009-05-22 Pavel Roskin <proski@gnu.org>
38345 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38346 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38347 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38348 compiling for the i386 targets, but not for the utilities.
38350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38352 (grub_root_drive): Likewise.
38353 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38355 (grub_root_drive): Change size to byte.
38356 (grub_start_addr): Remove.
38357 (grub_end_addr): Likewise.
38358 (grub_apm_bios_info): Likewise.
38360 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38362 * normal/i386: Remove.
38363 * normal/powerpc: Likewise.
38364 * normal/sparc64: Likewise.
38365 * normal/x86_64: Likewise.
38367 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38369 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38370 * loader/i386/linux_trampoline.S: Fix indentation
38371 * loader/i386/xnu_helper.S: Likewise
38373 2009-05-18 Colin D Bennett <colin@gibibit.com>
38375 Display error messages when parsing a Lua statement fails.
38376 Previously, executing a syntactically invalid statement like
38377 ")foo" or "bar;" would silently fail.
38379 * script/lua/grub_main.c (handle_lua_error): New function.
38380 (grub_lua_parse_line): Improved reporting of Lua parser and
38383 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38385 Remove -Werror which causes build to fail on some systems
38387 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38388 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38389 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38391 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38393 trampoline for linux on 64-bit platform
38395 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38396 loader/i386/efi/linux_trampoline.S
38397 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38399 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38401 * loader/i386/linux_trampoline.S: moved here
38402 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38404 (jumpvector): removed
38405 (grub_linux_trampoline_start): new declaration
38406 (grub_linux_trampoline_end): likewise
38407 (grub_linux_boot): use trampoline when on 64-bit platform
38408 * loader/i386/linux.c: likewise
38410 2009-05-16 Pavel Roskin <proski@gnu.org>
38412 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38413 const to avoid a warning.
38414 (grub_lua_setenv): Likewise.
38415 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38416 lmsg to fix a warning.
38418 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38420 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38421 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38422 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38423 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38424 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38425 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38426 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38427 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38429 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38431 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38433 2009-05-16 Bean <bean123ch@gmail.com>
38435 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38436 (lua_mod_SOURCES): New variable.
38437 (lua_mod_CFLAGS): Likewise.
38438 (lua_mod_LDFLAGS): Likewise.
38440 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38441 (setjmp_mod_SOURCES): New variable.
38442 (setjmp_mod_CFLAGS): Likewise.
38443 (setjmp_LDFLAGS): Likewise.
38445 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38446 (setjmp_mod_SOURCES): New variable.
38447 (setjmp_mod_CFLAGS): Likewise.
38448 (setjmp_LDFLAGS): Likewise.
38450 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38451 (setjmp_mod_SOURCES): New variable.
38452 (setjmp_mod_CFLAGS): Likewise.
38453 (setjmp_LDFLAGS): Likewise.
38455 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38456 (setjmp_mod_SOURCES): New variable.
38457 (setjmp_mod_CFLAGS): Likewise.
38458 (setjmp_LDFLAGS): Likewise.
38460 * normal/i386/setjmp.S: Moved from here ...
38461 * lib/i386/setjmp.S: ... Moved here
38462 * normal/x86_64/setjmp.S: Moved from here ...
38463 * lib/x86_64/setjmp.S: ... Moved here
38464 * normal/powerpc/setjmp.S: Moved from here ...
38465 * lib/powerpc/setjmp.S: ... Moved here
38466 * normal/sparc64/setjmp.S: Moved from here ...
38467 * lib/sparc64/setjmp.S: ... Moved here
38469 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38470 returns_twice in mingw.
38472 * script/lua/grub_lib.c: New file.
38473 * script/lua/grub_lib.h: Likewise.
38474 * script/lua/grub_lua.h: Likewise.
38475 * script/lua/grub_main.c: Likewise.
38476 * script/lua/lapi.c: Likewise.
38477 * script/lua/lapi.h: Likewise.
38478 * script/lua/lauxlib.c: Likewise.
38479 * script/lua/lauxlib.h: Likewise.
38480 * script/lua/lbaselib.c: Likewise.
38481 * script/lua/lcode.c: Likewise.
38482 * script/lua/lcode.h: Likewise.
38483 * script/lua/ldblib.c: Likewise.
38484 * script/lua/ldebug.c: Likewise.
38485 * script/lua/ldebug.h: Likewise.
38486 * script/lua/ldo.c: Likewise.
38487 * script/lua/ldo.h: Likewise.
38488 * script/lua/ldump.c: Likewise.
38489 * script/lua/lfunc.c: Likewise.
38490 * script/lua/lfunc.h: Likewise.
38491 * script/lua/lgc.c: Likewise.
38492 * script/lua/lgc.h: Likewise.
38493 * script/lua/linit.c: Likewise.
38494 * script/lua/liolib.c: Likewise.
38495 * script/lua/llex.c: Likewise.
38496 * script/lua/llex.h: Likewise.
38497 * script/lua/llimits.h: Likewise.
38498 * script/lua/lmathlib.c: Likewise.
38499 * script/lua/lmem.c: Likewise.
38500 * script/lua/lmem.h: Likewise.
38501 * script/lua/loadlib.c: Likewise.
38502 * script/lua/lobject.c: Likewise.
38503 * script/lua/lobject.h: Likewise.
38504 * script/lua/lopcodes.c: Likewise.
38505 * script/lua/lopcodes.h: Likewise.
38506 * script/lua/loslib.c: Likewise.
38507 * script/lua/lparser.c: Likewise.
38508 * script/lua/lparser.h: Likewise.
38509 * script/lua/lstate.c: Likewise.
38510 * script/lua/lstate.h: Likewise.
38511 * script/lua/lstring.c: Likewise.
38512 * script/lua/lstring.h: Likewise.
38513 * script/lua/lstrlib.c: Likewise.
38514 * script/lua/ltable.c: Likewise.
38515 * script/lua/ltable.h: Likewise.
38516 * script/lua/ltablib.c: Likewise.
38517 * script/lua/ltm.c: Likewise.
38518 * script/lua/ltm.h: Likewise.
38519 * script/lua/lua.h: Likewise.
38520 * script/lua/luaconf.h: Likewise.
38521 * script/lua/lualib.h: Likewise.
38522 * script/lua/lundump.c: Likewise.
38523 * script/lua/lundump.h: Likewise.
38524 * script/lua/lvm.c: Likewise.
38525 * script/lua/lvm.h: Likewise.
38526 * script/lua/lzio.c: Likewise.
38527 * script/lua/lzio.h: Likewise.
38529 2009-05-16 Bean <bean123ch@gmail.com>
38531 * include/grub/kernel.h (grub_module_header_types): Add type
38534 * kern/main.c (grub_load_config): New function.
38535 (grub_main): Call grub_load_config to read boot config.
38537 * grub-mkimage (generate_image): New parameter config_path.
38538 (options): New option --config.
38539 (main): Parse --config option, and pass it to generate_image.
38541 2009-05-14 Christian Franke <franke@computer.org>
38543 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38544 This fixes build on Cygwin.
38546 2009-05-14 Pavel Roskin <proski@gnu.org>
38548 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38549 jump. This saves two bytes, so the typical case of 2 swapped
38550 drives would fit 32 bytes.
38552 2009-05-13 Pavel Roskin <proski@gnu.org>
38554 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38555 grub_uint32_t to avoid a warning.
38557 * loader/i386/linux.c (allocate_pages): When assigning
38558 real_mode_mem, cast through grub_size_t to fix a warning. The
38559 code already makes sure that the value would fit a pointer.
38560 (grub_linux_setup_video): Cast render_target->data to
38561 grub_size_t to fix a warning.
38563 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38565 * commands/i386/pc/drivemap.c: New file - implement drivemap
38567 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38568 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38570 2009-05-13 Pavel Roskin <proski@gnu.org>
38572 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38573 embedding_area_exists.
38575 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38577 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38578 it easier to understand / work with.
38579 Improve warning messages for cases where there's no embedding area,
38580 or when it is too small (or core.img too large).
38582 2009-05-13 Pavel Roskin <proski@gnu.org>
38584 * loader/i386/pc/multiboot2.c: Add necessary includes for
38585 grub_multiboot2_real_boot().
38587 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38588 PX record is always little-endian. We only need the lower 2
38591 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38592 facilitate code reuse.
38593 (grub_cpio_mount): Use "struct head", not a char buffer. This
38594 fixes a warning reported by gcc 4.4.
38596 * kernel/disk.c (grub_disk_read): Use void pointer for the
38598 (grub_disk_write): Use const void pointer for the buffer.
38599 Adjust all callers. Remove unnecessary casts.
38601 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38603 * util/i386/pc/grub-install.in: Update copyright year.
38605 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38609 * commands/gptsync.c: new file
38610 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38611 (gptsync_mod_SOURCES): new variable
38612 (gptsync_mod_CFLAGS): likewise
38613 (gptsync_mod_LDFLAGS): likewise
38614 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38616 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38617 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38618 * conf/i386-ieee1275.rmk: likewise
38619 * conf/i386-pc.rmk: likewise
38620 * conf/powerpc-ieee1275.rmk: likewise
38622 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38626 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38627 (grub_dl_ref): likewise
38629 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38631 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38632 split in two functions (one for msdos and one for gpt).
38634 2009-05-08 Pavel Roskin <proski@gnu.org>
38636 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38639 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38640 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38641 Initialize them with -1. Add sanity check for bad1. Eliminate
38644 2009-05-08 David S. Miller <davem@davemloft.net>
38646 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38648 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38650 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38653 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38656 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38658 2009-05-05 David S. Miller <davem@davemloft.net>
38660 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38662 2009-05-05 Pavel Roskin <proski@gnu.org>
38664 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38665 of grub_dl_ref() and grub_dl_unref().
38666 * commands/parttool.c: Remove preprocessor conditionals around
38667 grub_dl_ref() and grub_dl_unref().
38668 * fs/affs.c: Likewise.
38669 * fs/afs.c: Likewise.
38670 * fs/cpio.c: Likewise.
38671 * fs/ext2.c: Likewise.
38672 * fs/fat.c: Likewise.
38673 * fs/hfs.c: Likewise.
38674 * fs/hfsplus.c: Likewise.
38675 * fs/iso9660.c: Likewise.
38676 * fs/jfs.c: Likewise.
38677 * fs/minix.c: Likewise.
38678 * fs/ntfs.c: Likewise.
38679 * fs/reiserfs.c: Likewise.
38680 * fs/sfs.c: Likewise.
38681 * fs/udf.c: Likewise.
38682 * fs/ufs.c: Likewise.
38683 * fs/xfs.c: Likewise.
38684 * include/grub/dl.h: Likewise.
38685 * loader/xnu.c: Likewise.
38687 2009-05-04 Pavel Roskin <proski@gnu.org>
38689 * commands/acpi.c: Remove unused variable my_mod.
38690 * partmap/amiga.c: Likewise.
38691 * partmap/apple.c: Likewise.
38692 * partmap/gpt.c: Likewise.
38693 * partmap/pc.c: Likewise.
38694 * partmap/sun.c: Likewise.
38695 * term/gfxterm.c: Likewise.
38696 * term/i386/pc/vesafb.c: Likewise.
38697 * term/i386/pc/vga.c: Likewise.
38699 2009-05-04 David S. Miller <davem@davemloft.net>
38701 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38702 pointer args to grub_ieee1275_get_property().
38704 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38707 devices, and do not traverse down under controller nodes.
38709 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38710 (grub_ofdisk_open): Use it to un-escape "," characters.
38711 * kern/disk.c (find_part_sep): New.
38712 (grub_disk_open): Use it to find the first non-escaped ','
38713 character in the disk name.
38714 * util/ieee1275/devicemap.c (escape_of_path): New.
38715 (grub_util_emit_devicemap_entry): Use it.
38716 * util/sparc64/ieee1275/grub-install.in: Update script to
38717 strip partition specifiers properly by not triggering on
38718 '\' escaped ',' characters.
38720 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38722 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38724 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38726 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38727 on documentation from Wikipedia).
38729 2009-05-04 Pavel Roskin <proski@gnu.org>
38731 * disk/ata.c: Spelling fixes.
38732 * disk/raid.c: Likewise.
38733 * disk/usbms.c: Likewise.
38734 * disk/dmraid_nvidia.c: Likewise.
38735 * kern/ieee1275/openfw.c: Likewise.
38736 * kern/ieee1275/init.c: Likewise.
38737 * kern/ieee1275/cmain.c: Likewise.
38738 * boot/i386/pc/cdboot.S: Likewise.
38739 * video/readers/png.c: Likewise.
38740 * video/i386/pc/vbe.c: Likewise.
38741 * fs/udf.c: Likewise.
38742 * fs/hfs.c: Likewise.
38743 * fs/reiserfs.c: Likewise.
38744 * efiemu/runtime/efiemu.c: Likewise.
38745 * efiemu/main.c: Likewise.
38746 * efiemu/mm.c: Likewise.
38747 * include/grub/elf.h: Likewise.
38748 * include/grub/xnu.h: Likewise.
38749 * include/grub/usbdesc.h: Likewise.
38750 * include/grub/usb.h: Likewise.
38751 * include/grub/script_sh.h: Likewise.
38752 * include/grub/lib/LzmaEnc.h: Likewise.
38753 * include/grub/efiemu/efiemu.h: Likewise.
38754 * include/grub/command.h: Likewise.
38755 * normal/menu.c: Likewise.
38756 * normal/main.c: Likewise.
38757 * normal/datetime.c: Likewise.
38758 * bus/usb/uhci.c: Likewise.
38759 * mmap/i386/uppermem.c: Likewise.
38760 * mmap/mmap.c: Likewise.
38761 * commands/acpi.c: Likewise.
38762 * commands/test.c: Likewise.
38763 * partmap/apple.c: Likewise.
38764 * font/font.c: Likewise.
38765 * loader/sparc64/ieee1275/linux.c: Likewise.
38766 * loader/macho.c: Likewise.
38767 * loader/i386/bsd_trampoline.S: Likewise.
38768 * loader/i386/bsd.c: Likewise.
38769 * loader/xnu.c: Likewise.
38770 * term/i386/pc/vesafb.c: Likewise.
38771 * term/usb_keyboard.c: Likewise.
38772 * util/resolve.c: Likewise.
38773 * util/getroot.c: Likewise.
38775 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38777 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38779 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38781 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38784 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38786 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38787 parameter only available on BIOS.
38789 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38791 Removed wrong semicolon in declaration
38793 * grub/misc.h (grub_dprintf): remove semicolon
38795 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38797 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38798 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38799 is done by grub_cmd_linux() now).
38800 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38801 restore video to text mode.
38802 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38803 indicates lack of "vga=" parameter. "vga=0" is mapped to
38804 `GRUB_LINUX_VID_MODE_NORMAL'.
38806 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38808 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38809 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38810 and `normal/script.c'. Add `kern/rescue_reader.c',
38811 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38812 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38813 `grub_script.tab.c'.
38815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38821 * Makefile.in: Remove duplicated 2008 in Copyright line.
38823 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38825 * util/misc.c (grub_util_warn): New function. Emits a warning
38827 * include/grub/util/misc.h (grub_util_warn): New declaration.
38829 * util/i386/pc/grub-install.in: Understand --force and pass it down
38832 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38834 (setup): Improve error messages and add warnings when requested to
38835 install in odd layouts. Refuse to install using blocklists unless
38838 2009-05-04 martin f. krafft <madduck@madduck.net>
38840 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38842 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38844 Updated copyright year
38846 * fs/hfsplus.c: updated copyright year
38848 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38852 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38853 in the space previously used by unused3
38854 (grub_hfsplus_uuid): new function
38855 (grub_hfsplus_fs): added uuid field
38857 2009-05-03 Pavel Roskin <proski@gnu.org>
38859 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38860 suppress warnings. It's no longer needed.
38861 * disk/host.c: Likewise.
38862 * disk/ata_pthru.c: Likewise.
38863 * disk/loopback.c: Likewise.
38864 * hook/datehook.c: Likewise.
38865 * parttool/pcpart.c: Likewise.
38866 * fs/i386/pc/pxe.c: Likewise.
38867 * fs/ntfscomp.c: Likewise.
38868 * efiemu/main.c: Likewise.
38869 * mmap/mmap.c: Likewise.
38870 * commands/crc.c: Likewise.
38871 * commands/hexdump.c: Likewise.
38872 * commands/hdparm.c: Likewise.
38873 * commands/acpi.c: Likewise.
38874 * commands/echo.c: Likewise.
38875 * commands/minicmd.c: Likewise.
38876 * commands/blocklist.c: Likewise.
38877 * commands/memrw.c: Likewise.
38878 * commands/loadenv.c: Likewise.
38879 * commands/usbtest.c: Likewise.
38880 * commands/lsmmap.c: Likewise.
38881 * commands/boot.c: Likewise.
38882 * commands/parttool.c: Likewise.
38883 * commands/configfile.c: Likewise.
38884 * commands/search.c: Likewise.
38885 * commands/ieee1275/suspend.c: Likewise.
38886 * commands/cat.c: Likewise.
38887 * commands/i386/pc/pxecmd.c: Likewise.
38888 * commands/i386/pc/play.c: Likewise.
38889 * commands/i386/pc/halt.c: Likewise.
38890 * commands/i386/pc/vbeinfo.c: Likewise.
38891 * commands/i386/pc/vbetest.c: Likewise.
38892 * commands/lspci.c: Likewise.
38893 * commands/date.c: Likewise.
38894 * commands/handler.c: Likewise.
38895 * commands/ls.c: Likewise.
38896 * commands/test.c: Likewise.
38897 * commands/cmp.c: Likewise.
38898 * commands/efi/loadbios.c: Likewise.
38899 * commands/efi/fixvideo.c: Likewise.
38900 * commands/halt.c: Likewise.
38901 * commands/help.c: Likewise.
38902 * commands/reboot.c: Likewise.
38903 * hello/hello.c: Likewise.
38904 * script/sh/main.c: Likewise.
38905 * loader/xnu.c: Likewise.
38906 * term/terminfo.c: Likewise.
38907 * term/i386/pc/serial.c: Likewise.
38908 * term/usb_keyboard.c: Likewise.
38910 2009-05-03 David S. Miller <davem@davemloft.net>
38912 * normal/menu.c: Include grub/parser.h
38914 2009-05-03 Pavel Roskin <proski@gnu.org>
38916 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38918 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38919 Suggested by Javier Martín <lordhabbit@gmail.com>
38921 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38922 efiemu??.o doesn't exist.
38923 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38926 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38928 FreeBSD 64-bit support
38930 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38931 and loader/i386/bsd_trampoline.S
38932 (bsd_mod_ASFLAGS): new variable
38933 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38934 (FREEBSD_MODTYPE_KERNEL64): likewise
38935 (grub_bsd64_trampoline_start): likewise
38936 (grub_bsd64_trampoline_end): likewise
38937 (grub_bsd64_trampoline_selfjump): likewise
38938 (grub_bsd64_trampoline_gdt): likewise
38939 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38940 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38941 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38942 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38943 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38945 * loader/i386/bsd_pagetable.c: new file
38946 * loader/i386/bsd_trampoline.S: likewise
38947 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38948 (ALIGN_VAR): likewise
38949 (entry_hi): new variable
38950 (kern_end_mdofs): likewise
38951 (is_64bit): likewise
38952 (grub_freebsd_add_meta): use ALIGN_VAR
38953 (grub_e820_mmap): new declaration
38954 (grub_freebsd_add_mmap): new function
38955 (grub_freebsd_add_meta_module): support 64 bit kernels
38956 (grub_freebsd_list_modules): use ALIGN_VAR
38957 (gdt_descriptor): new declaration
38958 (grub_freebsd_boot): support 64 bit kernels
38959 (grub_bsd_elf64_hook): new function
38960 (grub_bsd_load_elf): support elf64
38962 2009-05-03 Bean <bean123ch@gmail.com>
38964 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38965 after we get the result of if statement.
38967 2009-05-03 Bean <bean123ch@gmail.com>
38969 * Makefile.in (enable_efiemu): New variable.
38971 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38973 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38975 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38976 path, add -mno-red-zone option.
38977 (efiemu64_s.o): Likewise.
38978 (efiemu64.o): Use macro $^ for source file.
38980 * configure.ac (--enable-efiemu): New option.
38982 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38986 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38987 (pkglib_MODULES): add xnu.mod
38988 (xnu_mod_SOURCES): new variable
38989 (xnu_mod_CFLAGS): likewise
38990 (xnu_mod_LDFLAGS): likewise
38991 (xnu_mod_ASFLAGS): likewise
38992 * conf/i386-pc.rmk: likewise
38993 * conf/x86_64-efi.rmk: likewise
38994 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38996 * include/grub/i386/macho.h: new file
38997 * include/grub/i386/xnu.h: likewise
38998 * include/grub/macho.h: likewise
38999 * include/grub/machoload.h: likewise
39000 * include/grub/x86_64/macho.h: likewise
39001 * include/grub/x86_64/xnu.h: likewise
39002 * include/grub/xnu.h: likewise
39003 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39004 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39005 * loader/i386/efi/xnu.c: new file
39006 * loader/i386/pc/xnu.c: likewise
39007 * loader/i386/xnu.c: likewise
39008 * loader/i386/xnu_helper.S: likewise
39009 * loader/macho.c: likewise
39010 * loader/xnu.c: likewise
39011 * loader/xnu_resume.c: likewise
39012 * util/grub-dumpdevtree: likewise
39013 * include/grub/i386/pit.h: include grub/err.h
39014 (grub_pit_wait): export
39015 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39017 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39021 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39022 _linux_efi, linux_efi.
39023 new files in grub-emu
39024 new targets efiemu32.o and efiemu64.o
39025 * loader/linux_normal_efiemu.c: likewise
39026 * loader/i386/efi/linux.c: added preliminary efiemu support
39027 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39029 * include/grub/autoefi.h: new file
39030 * include/grub/i386/efiemu.h: likewise
39031 * include/grub/i386/pc/efiemu.h: likewise
39032 * include/grub/efi/api.h: add LL suffix when necessary
39033 new definitions relating to tables
39034 * include/grub/efiemu/efiemu.h: new file
39035 * include/grub/efiemu/runtime.h: likewise
39036 * efiemu/prepare.c: likewise
39037 * efiemu/loadcore_common.c: likewise
39038 * efiemu/loadcore64.c: likewise
39039 * efiemu/runtime/efiemu.sh: likewise
39040 * efiemu/runtime/efiemu.S: likewise
39041 * efiemu/runtime/efiemu.c: likewise
39042 * efiemu/runtime/config.h: likewise
39043 * efiemu/prepare32.c: likewise
39044 * efiemu/main.c: likewise
39045 * efiemu/modules/pnvram.c: likewise
39046 * efiemu/modules/i386: likewise
39047 * efiemu/modules/i386/pc: likewise
39048 * efiemu/modules/acpi.c: likewise
39049 * efiemu/i386/pc/cfgtables.c: likewise
39050 * efiemu/i386/loadcore64.c: likewise
39051 * efiemu/i386/loadcore32.c: likewise
39052 * efiemu/prepare64.c: likewise
39053 * efiemu/loadcore.c: likewise
39054 * efiemu/symbols.c: likewise
39055 * efiemu/mm.c: likewise
39056 * efiemu/loadcore32.c: likewise
39058 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39062 * commands/acpi.c: new file
39063 * commands/i386/pc/acpi.c: likewise
39064 * commands/efi/acpi.c: likewise
39065 * include/grub/acpi.h: likewise
39066 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39067 (acpi_mod_SOURCES): new variable
39068 (acpi_mod_CFLAGS): likewise
39069 (acpi_mod_LDFLAGS): likewise
39070 * conf/i386-efi.rmk: likewise
39071 * conf/x86_64-efi.rmk: likewise
39073 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39075 Missing part from mmap patch
39077 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39078 (grub_mmap_unregister)
39079 (grub_mmap_free_and_unregister): use grub_mmap_register
39081 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39085 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39086 * loader/i386/linux.c (find_mmap_size): likewise
39087 (allocate_pages): likewise
39088 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39089 (grub_fill_multiboot_mmap): likewise
39090 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39091 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39092 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39093 (OPENBSD_MMAP_RESERVED): likewise
39094 * include/grub/i386/pc/memory.h: include grub/memory.h
39095 (grub_lower_mem): removed
39096 (grub_upper_mem): likewise
39097 (GRUB_MACHINE_MEMORY_ACPI): new definition
39098 (GRUB_MACHINE_MEMORY_NVS): likewise
39099 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39100 (GRUB_MACHINE_MEMORY_HOLE): likewise
39101 (grub_machine_mmap_register): likewise
39102 (grub_machine_mmap_unregister): likewise
39103 (grub_machine_get_upper): likewise
39104 (grub_machine_get_lower): likewise
39105 (grub_machine_get_post64): likewise
39106 * include/grub/i386/efi/memory.h: new file
39107 * include/grub/x86_64/efi/memory.h: likewise
39108 * include/grub/efi/memory.h: likewise
39109 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39110 (mmap_mod_SOURCES): new variable
39111 (mmap_mod_LDFLAGS): likewise
39112 (mmap_mod_ASFLAGS): likewise
39113 * conf/i386-coreboot.rmk: likewise
39114 * conf/i386-ieee1275.rmk: likewise
39115 * conf/i386-efi.rmk: likewise
39116 * conf/x86_64-efi.rmk: likewise
39117 * include/grub/types.h (UINT_TO_PTR): new macro
39118 (PTR_TO_UINT32): likewise
39119 (PTR_TO_UINT64): likewise
39120 * include/grub/memory.h: new file
39121 * mmap/i386/pc/mmap.c: likewise
39122 * mmap/i386/pc/mmap_helper.S: likewise
39123 * mmap/i386/uppermem.c: likewise
39124 * mmap/mmap.c: likewise
39125 * mmap/efi/mmap.c: likewise
39126 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39128 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39129 (grub_upper_mem): likewise
39130 (grub_machine_init): don't use grub_upper_mem,
39131 make grub_lower_mem local
39132 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39133 grub_mmap_iterate and grub_mmap_get_upper
39134 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39136 2009-05-02 Bean <bean123ch@gmail.com>
39138 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39139 script/sh/parser.y.
39140 (pkglib_MODULES): Add normal.mod and sh.mod.
39141 (normal_SOURCES): New variable.
39142 (normal_mod_CFLAGS): Likewise.
39143 (normal_mod_LDFLAGS): Likewise.
39144 (sh_mod_SOURCES): Likewise.
39145 (sh_mod_CFLAGS): Likewise.
39146 (sh_mod_LDFLAGS): Likewise.
39148 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39149 script/sh/lexer.c_DEPENDENCIES.
39150 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39151 kern/rescue_reader.c and kern/rescue_parser.c.
39152 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39153 (grub_emu_SOURCES): Change source files.
39154 (pkglib_MODULES): Remove normal.mod.
39155 (normal_SOURCES): Removed.
39156 (normal_mod_CFLAGS): Likewise.
39157 (normal_mod_LDFLAGS): Likewise.
39158 * conf/i386-coreboot.rmk: Likewise.
39159 * conf/i386-efi.rmk: Likewise.
39160 * conf/i386-ieee1276.rmk: Likewise.
39161 * conf/powerpc-ieee1275.rmk: Likewise.
39162 * conf/sparc64-ieee1275.rmk: Likewise.
39163 * conf/x86_64-efi.rmk: Likewise.
39165 * include/grub/command.h (grub_command_execute): New inline function.
39167 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39169 * include/grub/normal.h: Remove <grub/setjmp.h>.
39170 (grub_fs_module_list): Moved to normal/autofs.c.
39171 (grub_exit_env): Removed.
39172 (grub_command_execute): Likewise.
39173 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39175 (read_command_list): New function declaration.
39176 (read_fs_list): Likewise.
39178 * include/parser.h: Include <grub/reader.h>.
39179 (grub_parser_split_cmdline): Change type of getline parameter.
39180 (grub_parser): New structure.
39181 (grub_parser_class): New variable.
39182 (grub_parser_execute): New function declaration.
39183 (grub_register_rescue_parser): Likewise.
39184 (grub_parser_register): New inline function.
39185 (grub_parser_unregister): Likewise.
39186 (grub_parser_get_current): Likewise.
39187 (grub_parser_set_current): Likewise.
39189 * include/grub/reader.h: New file.
39190 * kern/reader.c: Likewise.
39191 * kern/rescue_parser.c: Likewise.
39192 * kern/rescue_reader.c: Likewise.
39193 * normal/autofs.c: Likewise.
39194 * normal/dyncmd.c: Likewise.
39196 * include/grub/rescue.h: Removed.
39197 * normal/command.h: Likewise.
39199 * include/grub/script.h: Moved to ...
39200 * include/grub/script_sh.h: ... Moved here.
39201 * normal/execute.c: Moved to ...
39202 * script/sh/execute.c: ... Moved here.
39203 * normal/function.c: Moved to ...
39204 * script/sh/function.c: ... Moved here.
39205 * normal/lexer.c: Moved to ...
39206 * script/sh/lexer.c: ... Moved here.
39207 * normal/parser.y: Moved to ...
39208 * script/sh/parser.y: ... Moved here.
39209 * normal/script.c: Moved to ...
39210 * script/sh/script.c: ... Moved here.
39212 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39214 (grub_exit_env): Removed.
39215 (fs_module_list): Moved to normal/autofs.c.
39216 (grub_file_getline): Don't handle comment here.
39217 (free_menu): Skip removed field entry->commands.
39218 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39220 (read_config_file): Removed nested parameter, change getline function.
39221 (grub_enter_normal_mode): Removed.
39222 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39223 (read_command_list): Likewise.
39224 (autoload_fs_module): Moved to normal/autofs.c.
39225 (read_fs_list): Likewise.
39226 (reader_nested): New variable.
39227 (grub_normal_execute): Run parser.sh to switch to sh parser.
39228 (grub_cmd_rescue): Removed.
39229 (cmd_normal): Removed.
39230 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39232 (grub_cmdline_run): New function.
39233 (grub_normal_reader_init): Likewise.
39234 (grub_normal_read_line): Likewise.
39235 (grub_env_write_pager): Likewise.
39236 (cmdline): New variable.
39237 (grub_normal_reader): Likewise.
39238 (GRUB_MOD_INIT): Register normal reader and set as current, register
39239 pager hook, register normal command with grub_register_command_prio,
39240 so that it won't show up in command.lst.
39241 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39242 grub_fs_autoload_hook.
39244 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39245 (grub_menu_execute_entry): Replace grub_script_execute with
39246 grub_parser_execute, change parameter to grub_command_execute.
39248 * normal/menu_text.c: Remove <grub/script.h>.
39250 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39251 and <grub/parser.h>.
39252 (run): Change editor_getline to use new parser interface. Change
39253 parameter to grub_command_execute.
39255 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39256 <grub/reader.h> and <grub/parser.h>.
39257 (grub_load_normal_mode): Execute normal command.
39258 (grub_main): Call grub_register_core_commands,
39259 grub_register_rescue_parser and grub_register_rescue_reader, use
39260 grub_reader_loop to enter input loop.
39262 * kern/parser.c (grub_parser_split_cmdline): Change type of
39264 (grub_parser_class): New variable.
39265 (grub_parser_execute): New function.
39267 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39268 * loader/multiboot2.c: Likewise.
39269 * loader/sparc64/ieee1275/linux.c: Likewise.
39271 * util/grub-emu.c (read_command_list): New dummy function.
39273 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39275 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39276 count to 16 for CCISS and IDA.
39278 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39280 * normal/menu_text.c (grub_wait_after_message): Print a newline
39281 after waiting for user input.
39283 * loader/i386/linux.c: Include `<grub/normal.h>'.
39284 (grub_cmd_linux): Improve the error message about `ask' mode, by
39285 waiting for user input so it's not missed (we can do this, since
39286 user requested interaction).
39288 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39290 Added missing lst to grub-mkrescue
39292 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39293 and ${input_dir}/parttool.lst
39295 2009-04-30 David S. Miller <davem@davemloft.net>
39297 * util/hostdisk.c (device_is_wholedisk): New function.
39298 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39299 zero only if device_is_wholedisk() returns true.
39301 * util/hostdisk.c (convert_system_partition_to_system_disk):
39302 Handle virtual disk devices named /dev/vdiskX as found on sparc
39305 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39306 lettered partition specifier is found, convert to numbered.
39308 2009-04-29 David S. Miller <davem@davemloft.net>
39310 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39311 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39313 * normal/command.c: Add missing newline at end of file.
39315 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39317 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39319 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39320 ihandles have a 32-bit type but need to be stored in a "void *".
39322 2009-04-28 Pavel Roskin <proski@gnu.org>
39324 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39325 not disk. Adjust all dependencies.
39326 (grub_fs_uuid_close): Use grub_device_close(), not
39329 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39330 parent's partition, don't copy it by reference, as it gets freed
39333 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39335 Preboot hooks support
39337 * commands/boot.c (struct grub_preboot_t): new declaration
39338 (preboots_head): new variable
39339 (preboots_tail): likewise
39340 (grub_loader_register_preboot_hook): new function
39341 (grub_loader_unregister_preboot_hook): likewise
39342 (grub_loader_set): launch preboot hooks
39343 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39344 (grub_loader_register_preboot_hook): new declaration
39345 (grub_loader_unregister_preboot_hook): likewise
39347 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39351 * disk/scsi.c (grub_scsi_open): added missing cast when
39352 calling grub_dprintf
39354 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39356 Bug and warning fixes
39358 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39360 * commands/test.c (test_parse): fixed bug with file tests and corrected
39361 declaration of find_file
39363 2009-04-26 Pavel Roskin <proski@gnu.org>
39365 * Makefile.in: Don't install empty manual pages if help2man is
39366 missing. Use help2man option for output, not shell redirection.
39368 2009-04-26 David S. Miller <davem@davemloft.net>
39370 * util/grub-mkdevicemap.c (make_device_map): Add missing
39371 NESTED_FUNC_ATTR to process_device().
39373 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39377 * commands/test.c: rewritten to use bash-like test
39379 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39381 Parttool autoloading and improvements
39383 * Makefile.in (pkglib_DATA): add parttool.lst
39384 (parttool.lst): new target
39385 * genmk.rb: generate parttool-*
39386 (CLEANFILES): add #{parttool}
39387 (PARTTOOLFILES): new variable
39388 * genparttoollist.sh: new file
39389 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39390 (grub_pcpart_type): likewise
39391 * commands/parttool.c (helpmsg): new variable
39392 (grub_cmd_parttool): output help if not enough arguments are supplied
39394 (GRUB_MOD_INIT(parttool)): use helpmsg
39396 2009-04-24 David S. Miller <davem@davemloft.net>
39398 Avoiding opening same device multiple times in device iterator.
39400 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39401 and use it to build a list of partitions in iterate_disk() and
39402 iterate_partition().
39404 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39407 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39408 grub_devalias_iterate() result instead of unconditional 0.
39409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39410 Also, capture hook return value, either directly or via
39411 grub_children_iterate(), and propagate to caller.
39412 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39413 grub_children_iterate): Return value is now 'int' instead of
39415 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39416 like a proper iterator, stopping when hooks return non-zero.
39417 (grub_devalias_iterate): Likewise.
39419 2009-04-23 David S. Miller <davem@davemloft.net>
39421 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39423 2009-04-22 David S. Miller <davem@davemloft.net>
39425 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39426 is larger than address_cells, use that value for address_cells too.
39428 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39429 IEEE1275_MAX_PATH_LEN): Define.
39430 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39431 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39432 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39433 'devtype'. Explicitly NULL terminate devalias expansion.
39435 * util/sparc64/ieee1275/misc.c: New file.
39436 * util/sparc64/ieee1275/grub-setup.c: New file.
39437 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39438 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39439 * util/sparc64/ieee1275/grub-install.in: New file.
39440 * util/ieee1275/ofpath.c: New file.
39441 * util/ieee1275/devicemap.c: New file.
39442 * util/devicemap.c: New file.
39443 * util/deviceiter.c: New file.
39444 * kern/sparc64/ieee1275/init.c: New file.
39445 * include/grub/util/ofpath.h: New file.
39446 * include/grub/util/deviceiter.h: New file.
39447 * util/grub-mkdevicemap.c: Include deviceiter.h.
39448 Implement using grub_util_emit_devicemap_entry and
39449 grub_util_iterate_devices.
39450 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39451 util/devicemap.c into grub-mkdevicemap
39452 * conf/i386-efi.rmk: Likewise.
39453 * conf/i386-ieee1275.rmk: Likewise.
39454 * conf/i386-pc.rmk: Likewise.
39455 * conf/powerpc-ieee1275.rmk: Likewise.
39456 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39457 images and installation utilities. Build kernel as image
39458 instead of as elf binary. Use common rules as much as possible.
39460 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39462 Correct GPT definition
39464 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39467 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39469 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39471 2009-04-19 David S. Miller <davem@davemloft.net>
39473 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39474 (grub_rescue_cmd_linux): Rename to...
39475 (grub_cmd_linux): and fix prototype.
39476 (grub_rescue_cmd_initrd): Rename to...
39477 (grub_cmd_initrd): and fix prototype.
39478 (cmd_linux, cmd_initrd): New.
39479 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39480 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39482 2009-04-17 Pavel Roskin <proski@gnu.org>
39484 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39486 (grub_ohci_transfer): Likewise.
39488 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39491 return without a value. Fix inconsistent indentation.
39493 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39494 match struct grub_fs.
39496 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39497 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39498 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39499 * commands/lspci.c (grub_lspci_iter): Likewise.
39501 2009-04-16 Bean <bean123ch@gmail.com>
39503 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39506 2009-04-15 Pavel Roskin <proski@gnu.org>
39508 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39509 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39510 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39513 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39515 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39516 that no multiple data or metadata areas are supported and `Unknown
39519 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39521 Move loader out of the kernel
39523 * kern/loader.c: moved to ...
39524 * commands/boot.c: ... moved here
39525 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39526 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39527 * include/grub/kernel.h (grub_machine_fini): export
39528 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39529 (grub_loader_set): likewise
39530 (grub_loader_unset): likewise
39531 (grub_loader_boot): likewise
39532 * conf/common.rmk: new module boot.mod
39533 (pkglib_MODULES): add boot.mod
39534 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39535 (grub_emu_SOURCES): likewise
39536 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39537 (grub_emu_SOURCES): likewise
39538 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39539 (grub_emu_SOURCES): likewise
39540 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39541 (grub_emu_SOURCES): likewise
39542 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39543 (grub_emu_SOURCES): likewise
39544 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39545 (grub_emu_SOURCES): likewise
39546 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39547 (grub_emu_SOURCES): likewise
39549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39551 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39553 * kern/misc.c (grub_itoa): Removed function
39554 (grub_ltoa): likewise
39555 (grub_vsprintf): use grub_lltoa
39557 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39561 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39562 * conf/i386-coreboot.rmk: likewise
39563 * conf/i386-ieee1275.rmk: likewise
39564 * conf/powerpc-ieee1275.rmk: likewise
39566 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39568 * INSTALL: Add that `./autogen.sh' needs to be run before
39571 2009-04-14 Bean <bean123ch@gmail.com>
39573 * Makefile.in (pkglib_DATA): Add handler.lst.
39574 (handler.lst): New rule.
39576 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39577 * conf/i386-coreboot.rmk: Likewise.
39578 * conf/i386-ieee1275.rmk: Likewise.
39579 * conf/i386-efi.rmk: Likewise.
39580 * conf/x86_64-efi.rmk: Likewise.
39581 * conf/powerpc-ieee1275.rmk: Likewise.
39582 * conf/sparc64-ieee1275.rmk: Likewise.
39584 * genhandlerlist.sh: New file.
39586 * genmk.rb: Add rules to generate handler.lst.
39588 * include/grub/normal.h (grub_file_getline): New function definition.
39589 (read_handler_list): Likewise.
39590 (free_handler_list): Likewise.
39592 * include/grub/term.h (grub_term_register_input): Add name parameter
39593 for auto generation of handler.lst.
39594 (grub_term_register_output): Likewise.
39596 * normal/handler.c: New file.
39598 * normal/main.c (get_line): Renamed to grub_file_getline.
39599 (read_config_file): Use the newly renamed grub_file_getline.
39600 (read_command_list): Likewise.
39601 (read_fs_list): Likewise.
39602 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39603 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39605 * term/efi/console.c (grub_console_init): Add name parameter for auto
39606 generation of handler.lst.
39607 * term/gfxterm.c: Likewise.
39608 * term/i386/pc/at_keyboard.c: Likewise.
39609 * term/i386/pc/console.c: Likewise.
39610 * term/i386/pc/serial.c: Likewise.
39611 * term/i386/pc/vesafb.c: Likewise.
39612 * term/i386/pc/vga.c: Likewise.
39613 * term/i386/pc/vga_text.c: Likewise.
39614 * term/ieee1275/ofconsole.c: Likewise.
39615 * term/usb_keyboard.c: Likewise.
39617 2009-04-14 Bean <bean123ch@gmail.com>
39619 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39620 properly with null character.
39622 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39624 * configure: Remove.
39625 * config.h.in: Likewise.
39626 * stamp-h.in: Likewise.
39627 * DISTLIST: Likewise.
39628 * conf/common.mk: Likewise.
39629 * conf/i386-coreboot.mk: Likewise.
39630 * conf/i386-efi.mk: Likewise.
39631 * conf/i386-ieee1275.mk: Likewise.
39632 * conf/i386.mk: Likewise.
39633 * conf/i386-pc.mk: Likewise.
39634 * conf/powerpc-ieee1275.mk: Likewise.
39635 * conf/sparc64-ieee1275.mk: Likewise.
39636 * conf/x86_64-efi.mk: Likewise.
39638 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39641 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39642 David S. Miller <davem@davemloft.net>
39644 * util/hostdisk.c (make_device_name): Fix buffer length
39647 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39649 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39650 <sys/param.h> and <sys/sysctl.h>.
39651 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39652 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39653 opening the device and reset them afterwards.
39655 2009-04-13 Pavel Roskin <proski@gnu.org>
39657 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39658 Reported by John Stanley <jpsinthemix@verizon.net>
39660 2009-04-13 Robert Millan <rmh@aybabtu.com>
39662 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39663 that name for menuentries when appropriate.
39665 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39667 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39669 2009-04-13 Robert Millan <rmh@aybabtu.com>
39671 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39672 to Linux, simply abort telling the user it's no longer supported.
39674 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39676 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39677 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39678 `freebsd_loadenv' only when devices.hints exist.
39680 2009-04-13 Pavel Roskin <proski@gnu.org>
39682 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39684 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39686 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39688 (grub_drive): Likewise.
39690 2009-04-13 David S. Miller <davem@davemloft.net>
39692 * kern/sparc64/ieee1275/ieee1275.c: New file.
39693 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39694 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39695 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39696 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39697 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39698 grub_ieee1275_alloc_physmem): Declare new exported functions.
39700 * include/grub/sparc64/ieee1275/loader.h: New file.
39701 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39702 * include/grub/sparc64/kernel.h: Likewise.
39703 * loader/sparc64/ieee1275/linux.c: Likewise.
39705 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39706 (grub_fstest_SOURCES): Likewise.
39708 * util/hostdisk.c (make_device_name): Do not make any assumptions
39709 about the length of drive names.
39711 * kern/dl.c (grub_dl_load_file): Close file immediately when
39712 we are done using it.
39714 2009-04-12 David S. Miller <davem@davemloft.net>
39716 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39717 values. Noticed by Pavel Roskin.
39719 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39722 * genmk.rb: Add more flexible image type specification, also
39723 pass --strip-unneeded to objcopy.
39724 * conf/i386-pc.rmk: Use *_FORMAT.
39725 * conf/i386-pc.mk: Rebuilt.
39727 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39728 (OFDISK_HASH_SZ): Define.
39729 (ofdisk_hash): New hash table.
39730 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39731 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39732 instead of device phandle which is not unique.
39734 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39735 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39736 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39737 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39738 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39739 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39740 GRUB_KERNEL_MACHINE_DATA_END): Define.
39741 (grub_kernel_image_size, grub_total_module_size): Declare.
39743 2009-04-12 Pavel Roskin <proski@gnu.org>
39745 * configure.ac: Change the logic when we check for target tools.
39746 Do it when the target is specified and it's different from the
39747 specified value of the host.
39749 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39751 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39752 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39753 GNU/kFreeBSD. Check if a device is a character device. Use
39754 DIOCGMEDIASIZE to get the size.
39755 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39756 support for GNU/kFreeBSD.
39757 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39758 is a character device instead of a block device. Add support for
39759 FreeBSD device names.
39761 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39762 is a character device instead of a block device.
39764 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39765 is a character device instead of a block device.
39767 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39769 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39770 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39771 FreeBSD. Check if a device is a character device. Use
39772 DIOCGMEDIASIZE to get the size.
39773 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39774 support for FreeBSD.
39775 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39776 is a character device instead of a block device. Add support for
39777 FreeBSD device names.
39779 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39780 a character device instead of a block device.
39781 (grub_util_check_char_device): New function.
39783 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39784 a character device instead of a block device.
39786 * include/grub/util/getroot.h (grub_util_check_char_device): New
39789 2009-04-11 David S. Miller <davem@davemloft.net>
39791 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39793 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39794 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39795 function, if present.
39796 (__bswapdi2): Likewise.
39798 * include/grub/sparc64/ieee1275/boot.h: New file.
39799 * boot/sparc64/ieee1275/boot.S: Likewise.
39800 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39802 * kern/misc.c (grub_ltoa): New function.
39803 (grub_vsprintf): Use it to format 'long' integers.
39805 2009-04-10 David S. Miller <davem@davemloft.net>
39807 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39808 slots are of type grub_ieee1275_cell_t.
39809 (grub_nand_read): Likewise.
39810 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39811 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39812 macros are used to compare values in arg/ret block of the call.
39813 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39814 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39815 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39816 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39817 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39818 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39819 grub_ieee1275_close, grub_ieee1275_set_property,
39820 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39821 grub_ieee1275_cell_t.
39822 * kern/ieee1275/openfw.c (grub_map): Likewise.
39823 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39824 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39826 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39827 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39828 (grub_devalias_iterate): Likewise.
39830 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39834 * fs/ufs.c (INODE_NBLOCKS): new definition
39835 (struct grub_ufs_dirent): added fields for non-BSD dirents
39836 (grub_ufs_get_file_block): fixed double indirect handling
39837 (grub_ufs_lookup_symlink): use more robust way to determine whether
39839 (grub_ufs_find_file): support for non-BSD dirents
39840 (grub_ufs_dir): support for non-BSD dirents
39842 2009-04-10 Bean <bean123ch@gnail.com>
39844 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39845 attribute, otherwise the size would be wrong for i386 platform.
39847 * include/grub/pci.h (grub_pci_read_word): New inline function.
39848 (grub_pci_read_byte): Likewise.
39849 (grub_pci_write): Likewise.
39850 (grub_pci_write_word): Likewise.
39851 (grub_pci_write_byte): Likewise.
39853 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39855 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39856 (find_framebuf): Scan pci to locate the frame buffer address.
39858 * commands/efi/fixvideo.c: New file.
39860 * commands/efi/loadbios.c: Likewise.
39862 * commands/memrw.c: Likewise.
39864 * util/grub-dumpbios.in: Likewise.
39866 * conf/common.rmk (grub-dumpbios): New utility.
39867 (pkglib_MODULES): New module memrw.mod.
39868 (memrw_mod_SOURCE): New macro.
39869 (memrw_mod_CFLAGS): Likewise.
39870 (memrw_mod_LDFLAGS): Likewise.
39872 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39874 (loadbios_mod_SOURCE): New macro.
39875 (loadbios_mod_CFLAGS): Likewise.
39876 (loadbios_mod_LDFLAGS): Likewise.
39877 (fixvideo_mod_SOURCE): Likewise.
39878 (fixvideo_mod_CFLAGS): Likewise.
39879 (fixvideo_mod_LDFLAGS): Likewise.
39881 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39883 (loadbios_mod_SOURCE): New macro.
39884 (loadbios_mod_CFLAGS): Likewise.
39885 (loadbios_mod_LDFLAGS): Likewise.
39886 (fixvideo_mod_SOURCE): Likewise.
39887 (fixvideo_mod_CFLAGS): Likewise.
39888 (fixvideo_mod_LDFLAGS): Likewise.
39890 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39892 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39894 2009-04-07 David S. Miller <davem@davemloft.net>
39896 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39897 support for R_SPARC_OLO10 relocations. Fix compile warning for
39898 R_SPARC_WDISP30 case.
39899 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39901 2009-04-06 Pavel Roskin <proski@gnu.org>
39903 * include/grub/misc.h (ARRAY_SIZE): New macro.
39904 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39906 * loader/i386/linux.c (allocate_pages): Use free_pages().
39907 (grub_linux_unload): Don't use free_pages().
39908 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39909 wrong index. Treat all other modes as text modes.
39910 (grub_cmd_linux): Initialize vid_mode unconditionally to
39911 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39913 * commands/help.c (print_command_help): Use cmd->prio, not
39914 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39916 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39920 * parttool/pcpart.c: new file
39921 * commands/parttool.c: likewise
39922 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39923 (parttool_mod_SOURCES): new variable
39924 (parttool_mod_CFLAGS): likewise
39925 (parttool_mod_LDFLAGS): likewise
39926 (pcpart_mod_SOURCES): likewise
39927 (pcpart_mod_CFLAGS): likewise
39928 (pcpart_mod_LDFLAGS): likewise
39929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39930 and parttool/pcpart.c
39931 * conf/i386-efi.rmk: likewise
39932 * conf/i386-ieee1275.rmk: likewise
39933 * conf/i386-pc.rmk: likewise
39934 * conf/powerpc-ieee1275.rmk: likewise
39935 * conf/sparc64-ieee1275.rmk: likewise
39936 * conf/x86_64-ieee1275.rmk: likewise
39938 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39940 Support for mtime and further expandability of dir command
39942 * include/grub/lib/datetime.h: moved to ...
39943 * include/grub/datetime.h: ... moved here and added
39944 declaration of grub_unixtime2datetime. All users updated
39945 * include/grub/fs.h: new syntax for dir and mtime functions in
39947 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39948 and GRUB_FSHELP_FLAGS_MASK
39949 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39950 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39951 (grub_ext2_mtime): new function
39952 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39953 (grub_hfsplus_mtime): new function
39954 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39955 (GRUB_UFS_ATTR_FILE): likewise
39956 (GRUB_UFS_ATTR_LNK): likewise
39957 (struct grub_ufs_sblock): new fields mtime
39958 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39960 (grub_ufs_dir): mtime support
39961 (grub_ufs_mtime): new function
39962 * fs/affs.c (grub_affs_dir): use new dir syntax
39963 * fs/afs.c (grub_afs_dir): likewise
39964 * fs/cpio.c (grub_cpio_dir): likewise
39965 * fs/fat.c (grub_fat_find_dir): likewise
39966 * fs/hfs.c (grub_hfs_dir): likewise
39967 * fs/iso9660.c (grub_iso9660_dir): likewise
39968 * fs/jfs.c (grub_jfs_dir): likewise
39969 * fs/minix.c (grub_minix_dir): likewise
39970 * fs/ntfs.c (grub_ntfs_dir): likewise
39971 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39972 * fs/sfs.c (grub_sfs_dir): likewise
39973 * fs/xfs.c (grub_xfs_dir): likewise
39974 * util/hostfs.c (grub_hostfs_dir): likewise
39975 * lib/datetime.c: moved to ...
39976 * normal/datetime.c: ... moved here
39977 (grub_unixtime2datetime): new function
39978 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39979 * normal/completion.c (iterate_dir): use new dir syntax
39980 * normal/misc.c (grub_normal_print_device_info): tell the
39981 last modification time of a volume
39982 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39983 * conf/common.rmk: added lib/datetime.c to ls.mod
39984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39985 (normal_mod_SOURCES): likewise
39986 (datetime_mod_SOURCES): Removed lib/datetime.c
39987 * conf/i386-efi.rmk: likewise
39988 * conf/i386-ieee1275.rmk: likewise
39989 * conf/i386-pc.rmk: likewise
39990 * conf/powerpc-ieee1275.rmk: likewise
39991 * conf/sparc64-ieee1275.rmk: likewise
39992 * conf/x86_64-efi.rmk: likewise
39994 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39996 Trim trailing spaces in FAT label and support mtools-like labels
39998 * fs/fat.c (grub_fat_iterate_dir): New function based
39999 on grub_fat_find_dir
40000 (grub_fat_find_dir): use grub_fat_iterate_dir
40001 (grub_fat_label): likewise
40003 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40007 remove extraneous kernel_elf_HEADERS
40009 2009-04-04 Bean <bean123ch@gnail.com>
40011 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40013 * util/misc.c: Likewise.
40015 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40017 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40018 instead of grub_printf.
40020 2009-04-03 Robert Millan <rmh@aybabtu.com>
40022 * loader/i386/linux.c (grub_linux_setup_video): Fill
40023 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40024 values from `mode info' structure instead of hardcoded
40027 2009-04-01 Pavel Roskin <proski@gnu.org>
40029 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40031 * genmk.rb: Likewise.
40032 * configure.ac: Likewise.
40034 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40036 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40037 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40039 2009-04-01 David S. Miller <davem@davemloft.net>
40041 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40042 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40043 (grub_setjmp): Mark with 'returns_twice' attribute.
40044 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40045 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40046 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40048 2009-04-01 Robert Millan <rmh@aybabtu.com>
40050 Reapply fix from 2008-07-28 which was accidentally reverted; also
40051 perform the same fix to a similar check in same function.
40053 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40054 with the same number are found, just use issue a warning with
40055 grub_dprintf(), as this error has been reported to be non-fatal.
40057 2009-03-31 Pavel Roskin <proski@gnu.org>
40059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40060 for cross-compilation.
40062 2009-03-30 Robert Millan <rmh@aybabtu.com>
40064 Fix i386-ieee1275 build.
40066 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40067 Remove declaration.
40069 2009-03-30 Pavel Roskin <proski@gnu.org>
40071 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40072 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40073 zero-terminated, rely only on the strlen value. Fix comparison
40074 of strings differing in length.
40076 2009-03-30 Robert Millan <rmh@aybabtu.com>
40078 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40079 checking for abi version. Improve error messages on BIOS to notify
40080 user about `linux16' command.
40082 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40086 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40087 in case of collision
40088 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40090 2009-03-29 Robert Millan <rmh@aybabtu.com>
40092 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40093 set `vid_mode' accordingly.
40094 (grub_linux_boot): Process `vid_mode' and set video mode.
40096 2009-03-29 Robert Millan <rmh@aybabtu.com>
40098 * util/grub.d/10_linux.in (linux_entry): New function.
40099 Factorize generation of Linux boot entries.
40101 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40103 Make the format of Environment Block plain text. The boot loader
40104 part is not tested well yet.
40106 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40108 (envblk): Likewise.
40109 (usage): Remove "info" and "clear". Add "unset". Update the
40110 description of "set", as this does not delete variables any
40112 (create_envblk_file): Complete rewrite.
40113 (open_envblk_file): Likewise.
40114 (cmd_info): Removed.
40115 (cmd_list): Likewise.
40116 (cmd_set): Likewise.
40117 (cmd_clear): Likewise.
40118 (list_variables): New function.
40119 (write_envblk): Likewise.
40120 (set_variables): Likewise.
40121 (unset_variables): Likewise.
40122 (main): Complete rewrite.
40124 * commands/loadenv.c (buffer): Removed.
40125 (envblk): Likewise.
40126 (open_envblk_file): New function.
40127 (read_envblk_file): Complete rewrite.
40128 (grub_cmd_load_env): Likewise.
40129 (grub_cmd_list_env): Likewise.
40130 (struct blocklist): New struct.
40131 (free_blocklists): New function.
40132 (check_blocklists): Likewise.
40133 (write_blocklists): Likewise.
40134 (grub_cmd_save_env): Complete rewrite.
40136 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40137 a plain text signature.
40138 (GRUB_ENVBLK_MAXLEN): Removed.
40139 (struct grub_envblk): Complete rewrite.
40140 (grub_envblk_find): Removed.
40141 (grub_envblk_insert): Likewise.
40142 (grub_envblk_open): New prototype.
40143 (grub_envblk_set): Likewise.
40144 (grub_envblk_delete): Put const to VALUE.
40145 (grub_envblk_iterate): Put const to NAME and VALUE.
40146 (grub_envblk_close): New prototype.
40147 (grub_envblk_buffer): New inline function.
40148 (grub_envblk_size): Likewise.
40150 * lib/envblk.c: Include grub/mm.h.
40151 (grub_env_find): Removed.
40152 (grub_envblk_open): New function.
40153 (grub_envblk_close): Likewise.
40154 (escaped_value_len): Likewise.
40155 (find_next_line): Likewise.
40156 (grub_envblk_insert): Removed.
40157 (grub_envblk_set): New function.
40158 (grub_envblk_delete): Complete rewrite.
40159 (grub_envblk_iterate): Likewise.
40161 2009-03-28 Robert Millan <rmh@aybabtu.com>
40163 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40164 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40165 variables. Use 16-bit loader.
40166 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40168 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40169 (grub_linux16_boot): ... this. Update all users.
40170 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40171 (grub_linux_boot): ... this. Update all users.
40173 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40174 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40175 commands to `linux16' and `initrd16'.
40176 (GRUB_MOD_FINI(linux)): Rename to ...
40177 (GRUB_MOD_FINI(linux16)): ... this.
40179 2009-03-24 Pavel Roskin <proski@gnu.org>
40181 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40182 not just for compilation.
40184 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40186 Move multiboot helper out of kernel
40188 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40189 `loader/i386/multiboot_helper.S'.
40190 * conf/i386-coreboot.rmk: Likewise
40191 * conf/i386-ieee1275.rmk: Likewise
40193 * kern/i386/loader.S: Move multiboot helpers from here...
40194 * loader/i386/multiboot_helper.S: ...moved here
40195 * include/grub/i386/loader.h: Move declarations of multiboot
40196 helpers from here...
40197 * include/grub/i386/multiboot.h: ...moved here
40198 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40200 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40202 * kern/env.c (grub_env_context_open): Added an argument to specify
40203 whether a new context inherits exported variables from current
40204 one. This is useful when making a sandbox to interpret a config
40206 All callers updated.
40208 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40210 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40212 * kern/env.c (grub_env_context_close): Fix memory leaks.
40214 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40216 * normal/main.c (grub_normal_execute): Added an argument
40217 BATCH to specify if an interactive interface should be provided
40218 after reading a config file.
40219 All callers updated.
40220 (read_command_list): Prevent being executed twice.
40221 (read_fs_list): Likewise.
40223 * include/grub/normal.h (grub_normal_execute): Updated the
40226 2009-03-22 Pavel Roskin <proski@gno.org>
40228 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40230 * kern/i386/pc/startup.S: Likewise.
40231 * kern/i386/efi/startup.S: Likewise.
40232 * kern/i386/ieee1275/startup.S: Likewise.
40233 * kern/i386/coreboot/startup.S: Likewise.
40234 * kern/x86_64/efi/startup.S: Likewise.
40236 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40237 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40238 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40240 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40242 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40244 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40246 Use vaddr of correct segment for entry_point.
40248 2009-03-21 Bean <bean123ch@gmail.com>
40250 * commands/blocklist.c: Add include file <grub/command.h>, remove
40251 <grub/normal.h> and <grub/arg.h>.
40252 (grub_cmd_blocklist): Use the new command interface.
40253 (GRUB_MOD_INIT): Likewise.
40254 (GRUB_MOD_FINI): Likewise.
40255 * commands/boot.c: Likewise.
40256 * commands/cat.c: Likewise.
40257 * commands/cmp.c: Likewise.
40258 * commands/configfile.c: Likewise.
40259 * commands/crc.c: Likewise.
40260 * commands/echo.c: Likewise.
40261 * commands/halt.c: Likewise.
40262 * commands/handler.c: Likewise.
40263 * commands/hdparm.c: Likewise.
40264 * commands/help.c: Likewise.
40265 * commands/hexdump.c: Likewise.
40266 * commands/loadenv.c: Likewise.
40267 * commands/ls.c: Likewise.
40268 * commands/lsmmap.c: Likewise.
40269 * commands/lspci.c: Likewise.
40270 * commands/loadenv.c: Likewise.
40271 * commands/read.c: Likewise.
40272 * commands/reboot.c: Likewise.
40273 * commands/search.c: Likewise.
40274 * commands/sleep.c: Likewise.
40275 * commands/test.c: Likewise.
40276 * commands/usbtest.c: Likewise.
40277 * commands/videotest.c: Likewise.
40278 * commands/i386/cpuid.c: Likewise.
40279 * commands/i386/pc/halt.c: Likewise.
40280 * commands/i386/pc/play.c: Likewise.
40281 * commands/i386/pc/pxecmd.c: Likewise.
40282 * commands/i386/pc/vbeinfo.c: Likewise.
40283 * commands/i386/pc/vbetest.c: Likewise.
40284 * commands/ieee1275/suspend.c: Likewise.
40285 * disk/loopback.c: Likewise.
40286 * font/font_cmd.c: Likewise.
40287 * hello/hello.c: Likewise.
40288 * loader/efi/appleloader.c: Likewise.
40289 * loader/efi/chainloader.c: Likewise.
40290 * loader/i386/bsd.c: Likewise.
40291 * loader/i386/efi/linux.c: Likewise.
40292 * loader/i386/ieee1275/linux.c: Likewise.
40293 * loader/i386/linux.c: Likewise.
40294 * loader/i386/pc/chainloader.c: Likewise.
40295 * loader/i386/pc/linux.c: Likewise.
40296 * loader/powerpc/ieee1275/linux.c: Likewise.
40297 * loader/multiboot_loader.c: Likewise.
40298 * term/gfxterm.c: Likewise.
40299 * term/i386/pc/serial.c: Likewise.
40300 * term/terminfo.c: Likewise.
40302 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40303 * term/i386/pc/vga.c: Likewise.
40304 * video/readers/jpeg.c: Likewise.
40305 * video/readers/png.c: Likewise.
40306 * video/readers/tga.c: Likewise.
40308 * util/grub-fstest (cmd_loopback): Removed.
40309 (cmd_blocklist): Likewise.
40310 (cmd_ls): Likewise.
40311 (grub_register_command): Likewise.
40312 (grub_unregister_command): Likewise.
40313 (execute_command): Use grub_command_find to locate command and execute
40316 * include/grub/efi/chainloader.h: Removed.
40317 * loader/efi/chainloader_normal.c: Likewise.
40318 * loader/i386/bsd_normal.c: Likewise.
40319 * loader/i386/pc/chainloader_normal.c: Likewise.
40320 * loader/i386/pc/multiboot_normal.c: Likewise.
40321 * loader/linux_normal.c: Likewise.
40322 * loader/multiboot_loader_normal.c: Likewise.
40323 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40325 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40326 and grub_register_command_p1.
40328 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40329 kern/command.c, lib/arg.c and commands/extcmd.c.
40330 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40331 (minicmd_mod_SOURCES): New variable.
40332 (minicmd_mod_CFLAGS): Likewise.
40333 (minicmd_mod_LDFLAGS): Likewise.
40334 (extcmd_mod_SOURCES): Likewise.
40335 (extcmd_mod_CFLAGS): Likewise.
40336 (extcmd_mod_LDFLAGS): Likewise.
40337 (boot_mod_SOURCES): Removed.
40338 (boot_mod_CFLAGS): Likewise.
40339 (boot_mod_LDFLAGS): Likewise.
40341 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40343 (kernel_img_HEADERS): Add command.h.
40344 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40345 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40347 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40348 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40349 remove the corresponding normal mode command.
40350 (normal_mod_SOURCES): Remove normal/arg.c.
40351 * conf/i386-coreboot.rmk: Likewise.
40352 * conf/i386-efi.rmk: Likewise.
40353 * conf/i386-ieee1275.rmk: Likewise.
40354 * conf/powerpc-ieee1275.rmk: Likewise.
40355 * conf/x86_64-efi.rmk: Likewise.
40357 * include/grub/arg.h: Move from here ...
40358 * include/grub/lib/arg.h: ... to here.
40360 * normal/arg.c: Move from here ...
40361 * lib/arg.c: ... to here.
40363 * commands/extcmd.c: New file.
40364 * commands/minicmd.c: Likewise.
40365 * include/grub/command.h: Likewise.
40366 * include/grub/extcmd.h: Likewise.
40367 * kern/command.c: Likewise.
40368 * kern/corecmd.c: Likewise.
40370 * kern/list.c (grub_list_iterate): Return int instead of void.
40371 (grub_list_insert): New function.
40372 (grub_prio_list_insert): Likewise.
40374 * kern/rescue.c (grub_rescue_command): Removed.
40375 (grub_rescue_command_list): Likewise.
40376 (grub_rescue_register_command): Likewise.
40377 (grub_rescue_unregister_command): Likewise.
40378 (grub_rescue_cmd_boot): Move to minicmd.c
40379 (grub_rescue_cmd_help): Likewise.
40380 (grub_rescue_cmd_info): Likewise.
40381 (grub_rescue_cmd_boot): Likewise.
40382 (grub_rescue_cmd_testload): Likewise.
40383 (grub_rescue_cmd_dump): Likewise.
40384 (grub_rescue_cmd_rmmod): Likewise.
40385 (grub_rescue_cmd_lsmod): Likewise.
40386 (grub_rescue_cmd_exit): Likewise.
40387 (grub_rescue_print_devices): Moved to corecmd.c.
40388 (grub_rescue_print_files): Likewise.
40389 (grub_rescue_cmd_ls): Likewise.
40390 (grub_rescue_cmd_insmod): Likewise.
40391 (grub_rescue_cmd_set): Likewise.
40392 (grub_rescue_cmd_unset): Likewise.
40393 (attempt_normal_mode): Use grub_command_find to get normal module.
40394 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40395 commands, remove grub_rescue_register_command calls.
40397 * normal/command.c (grub_register_command): Removed.
40398 (grub_unregister_command): Likewise.
40399 (grub_command_find): Likewise.
40400 (grub_iterate_commands): Likewise.
40401 (rescue_command): Likewise.
40402 (export_command): Moved to corecmd.c.
40403 (set_command): Removed.
40404 (unset_command): Likewise.
40405 (insmod_command): Likewise.
40406 (rmmod_command): Likewise.
40407 (lsmod_command): Likewise.
40408 (grub_command_init): Likewise.
40410 * normal/completion.c (iterate_command): Use cmd->prio to check for
40412 (complete_arguments): Use grub_extcmd_t structure to find options.
40413 (grub_normal_do_completion): Change function grub_iterate_commands to
40414 grub_command_iterate.
40416 * normal/execute.c (grub_script_execute_cmd): No need to parse
40419 * normal/main.c (grub_dyncmd_dispatcher): New function.
40420 (read_command_list): Register unload commands as dyncmd.
40421 (grub_cmd_normal): Use new command interface, register rescue,
40422 unregister normal at entry, register normal, unregister rescue at exit.
40424 * include/grub/list.h (grub_list_test_t): New type.
40425 (grub_list_iterate): Return int instead of void.
40426 (grub_list_insert): New function.
40427 (GRUB_AS_NAMED_LIST_P): New macro.
40428 (GRUB_AS_PRIO_LIST): Likewise.
40429 (GRUB_AS_PRIO_LIST_P): Likewise.
40430 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40431 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40432 (grub_prio_list): New structure.
40433 (grub_prio_list_insert): New function.
40434 (grub_prio_list_remove): New inline function.
40436 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40437 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40438 (GRUB_COMMAND_FLAG_MENU): Likewise.
40439 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40440 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40441 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40442 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40443 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40444 (grub_command): Likewise.
40445 (grub_register_command): Likewise.
40446 (grub_command_find): Likewise.
40447 (grub_iterate_commands): Likewise.
40448 (grub_command_init): Likewise.
40449 (grub_arg_parse): Likewise.
40450 (grub_arg_show_help): Likewise.
40452 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40453 (grub_rescue_unregister_command): Likewise.
40455 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40456 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40457 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40459 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40460 grub_rescue_cmd_initrd.
40461 * include/grub/i386/loader.h: Likewise.
40462 * include/grub/x86_64/loader.h: Likewise.
40464 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40466 2009-03-21 Bean <bean123ch@gmail.com>
40468 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40469 instead of stat in mingw environment.
40471 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40473 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40475 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40478 2009-03-21 Bean <bean123ch@gmail.com>
40480 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40481 out of range error.
40483 2009-03-18 Michel Dänzer <michel@daenzer.net>
40485 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40486 checking inode flags for EXT4_EXTENTS_FLAG.
40488 2009-03-18 Robert Millan <rmh@aybabtu.com>
40490 * loader/i386/linux.c: Include `<grub/video.h>' and
40491 `<grub/i386/pc/vbe.h>'..
40492 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40493 (grub_linux32_boot): Attempt to configure video settings with
40494 grub_linux_setup_video().
40495 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40496 to avoid grub_console_fini() which would step out of graphical mode
40499 2009-03-14 Robert Millan <rmh@aybabtu.com>
40501 Fix build on powerpc.
40502 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40504 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40506 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40507 background image command.
40509 2009-03-12 Colin D Bennett <colin@gibibit.com>
40511 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40512 (grub_gfxterm_putchar): Extract pairs of identical calls to
40513 draw_cursor out of conditional blocks.
40515 2009-03-11 Pavel Roskin <proski@gnu.org>
40517 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40518 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40520 2009-03-11 Robert Millan <rmh@aybabtu.com>
40522 * loader/i386/multiboot_elfxx.c
40523 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40525 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40530 2009-03-11 Robert Millan <rmh@aybabtu.com>
40532 * loader/i386/multiboot.c (code_size): New variable.
40533 (grub_multiboot): Define offsets by adding to `code_size' rather
40534 than subtracting from `grub_multiboot_payload_size'. Provide
40535 4-byte alignment to MBI and others by increasing
40536 `boot_loader_name_length' appropriately.
40538 * loader/i386/multiboot_elfxx.c
40539 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40541 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40546 2009-03-08 Robert Millan <rmh@aybabtu.com>
40548 Make loader/i386/linux.c usable on i386-pc again.
40550 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40552 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40555 2009-03-07 Bean <bean123ch@gmail.com>
40557 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40560 2009-03-06 Robert Millan <rmh@aybabtu.com>
40562 Fix display issue on terminals with screen size other than 80x25
40563 (e.g. gfxterm with resolution higher than 640x480).
40565 * normal/main.c (grub_normal_init_page): Display title text in a
40566 position relative to the center of the terminal instead of relying
40567 on a hardcoded offset.
40569 2009-03-04 Robert Millan <rmh@aybabtu.com>
40571 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40574 * Makefile.in (host_kernel): New variable.
40575 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40576 scripts instead of just the windows one.
40577 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40579 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40583 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40584 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40585 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40588 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40590 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40592 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40593 or if there's no space for the disk label and print the partition number on a
40596 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40598 * util/misc.c: Include <time.h>.
40599 (grub_millisleep): New function.
40601 2009-03-04 Bean <bean123ch@gmail.com>
40603 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40604 another option -mno-red-zone.
40606 * commands/handler.c: Change module description.
40608 * kern/handler.c: Add missing space at the end of description line.
40610 * kern/list.c: Likewise.
40612 2009-03-03 Robert Millan <rmh@aybabtu.com>
40614 Move more components to the relocation area, and fix mbi pointer
40615 handling to use the destination rather than the origin (thanks to
40616 Vladimir Serbinenko for spotting).
40618 * loader/i386/multiboot.c (mbi_dest): New variable.
40619 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40620 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40623 2009-03-01 Bean <bean123ch@gmail.com>
40625 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40626 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40627 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40628 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40630 * loader/i386/efi/linux.c (acpi_guid): New variable.
40631 (acpi_guid): Likewise.
40632 (EBDA_SEG_ADDR): New constant.
40633 (LOW_MEM_ADDR): Likewise.
40634 (FAKE_EBDA_SEG): Likewise.
40635 (fake_bios_data): New function.
40636 (grub_linux_boot): Call fake_bios_data.
40638 2009-03-01 Bean <bean123ch@gmail.com>
40640 * commands/terminal.c: Removed.
40642 * commands/handler.c: New file.
40644 * include/grub/list.h: Likewise.
40646 * include/grub/handler.h: Likewise.
40648 * kern/list.c: Likewise.
40650 * kern/handler.c: Likewise.
40652 * kern/term.h: Include header file <grub/handler.h>.
40653 (grub_term_input): Move next field to the beginning.
40654 (grub_term_output): Likewise.
40655 (grub_term_input_class): New variable.
40656 (grub_term_output_class): Likewise.
40657 (grub_term_register_input): Changed to inline function.
40658 (grub_term_register_output): Likewise.
40659 (grub_term_unregister_input): Likewise.
40660 (grub_term_unregister_output): Likewise.
40661 (grub_term_set_current_input): Likewise.
40662 (grub_term_set_current_output): Likewise.
40663 (grub_term_get_current_input): Likewise.
40664 (grub_term_get_current_output): Likewise.
40665 (grub_term_iterate_input): Removed.
40666 (grub_term_iterate_output): Likewise.
40668 * kern/term.c (grub_term_list_input): Removed.
40669 (grub_term_list_output): Likewise.
40670 (grub_term_input_class): New variable.
40671 (grub_term_output_class): Likewise.
40672 (grub_cur_term_input): Change variable as macro.
40673 (grub_cur_term_output): Likewise.
40674 (grub_term_register_input): Removed.
40675 (grub_term_register_output): Likewise.
40676 (grub_term_unregister_input): Likewise.
40677 (grub_term_unregister_output): Likewise.
40678 (grub_term_set_current_input): Likewise.
40679 (grub_term_set_current_output): Likewise.
40680 (grub_term_iterate_input): Likewise.
40681 (grub_term_iterate_output): Likewise.
40682 (grub_term_get_current_input): Likewise.
40683 (grub_term_get_current_output): Likewise.
40685 * util/grub-editenv.c: Include header file <grub/handler.h>.
40686 (grub_term_get_current_input): Removed.
40687 (grub_term_get_current_output): Likewise.
40688 (grub_term_input_class): New variable.
40689 (grub_term_output_class): Likewise.
40691 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40692 (grub_term_get_current_output): Likewise.
40693 (grub_term_input_class): New variable.
40694 (grub_term_output_class): Likewise.
40696 * util/grub-probe.c (grub_term_get_current_input): Removed.
40697 (grub_term_get_current_output): Likewise.
40698 (grub_term_input_class): New variable.
40699 (grub_term_output_class): Likewise.
40701 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40702 (grub_term_get_current_output): Likewise.
40703 (grub_term_input_class): New variable.
40704 (grub_term_output_class): Likewise.
40706 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40707 (terminal_mod_SOURCES): Likewise.
40708 (terminal_mod_CFLAGS): Likewise.
40709 (terminal_mod_LDFLAGS): Likewise.
40711 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40713 (kernel_img_SOURCES): Add list.c and handler.c.
40714 (kernel_img_HEADERS): Add list.h and handler.h.
40716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40718 (kernel_mod_SOURCES): Add list.c and handler.c.
40719 (kernel_mod_HEADERS): Add list.h and handler.h.
40721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40723 (kernel_elf_SOURCES): Add list.c and handler.c.
40724 (kernel_elf_HEADERS): Add list.h and handler.h.
40726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40728 (kernel_elf_SOURCES): Add list.c and handler.c.
40729 (kernel_elf_HEADERS): Add list.h and handler.h.
40731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40733 (kernel_mod_SOURCES): Add list.c and handler.c.
40734 (kernel_mod_HEADERS): Add list.h and handler.h.
40736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40738 (kernel_elf_SOURCES): Add list.c and handler.c.
40739 (kernel_elf_HEADERS): Add list.h and handler.h.
40741 2009-02-27 Robert Millan <rmh@aybabtu.com>
40743 Factorize elf32 / elf64 code in Multiboot loader. This will
40744 prevent it from getting out of sync again.
40746 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40747 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40748 grub_multiboot_load_elf64): Move from here ...
40749 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40750 grub_multiboot_load_elf): ... to here (new file).
40752 2009-02-27 Robert Millan <rmh@aybabtu.com>
40754 * util/grub.d/10_linux.in: Rename "single-user mode" to
40757 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40759 Don't leak in SCSI code.
40760 * disk/scsi.c (grub_scsi_close): free `scsi'.
40762 2009-02-27 Robert Millan <rmh@aybabtu.com>
40764 * loader/i386/pc/multiboot.c: Move from here ...
40765 * loader/i386/multiboot.c: ... to here. Update all users.
40767 2009-02-27 Robert Millan <rmh@aybabtu.com>
40769 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40770 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40772 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40774 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40777 2009-02-27 Robert Millan <rmh@aybabtu.com>
40779 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40780 `0x' qualifier as 0 when base is specified as parameter).
40782 2009-02-24 Bean <bean123ch@gmail.com>
40784 * configure.ac: Check for -mcmodel=large in x86_64 target.
40786 * include/grub/efi/api.h (efi_call_10): New macro.
40787 (efi_wrap_10): New function.
40789 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40790 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40791 (GRUB_PE32_REL_BASED_LOW): Likewise.
40792 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40793 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40794 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40795 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40796 (GRUB_PE32_REL_BASED_REL): Likewise.
40797 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40798 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40799 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40801 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40804 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40805 (efi_wrap_10): New function.
40807 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40809 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40810 MB/MBP model (NV chipset).
40811 (devdata_devs): Add devpath_5 to the list.
40813 * load/i386/efi/linux.c (video_base): Remove variable.
40814 (RGB_MASK): New macro.
40815 (RGB_MAGIC): Likewise.
40816 (LINE_MIN): Likewise.
40817 (LINE_MAX): Likewise.
40818 (FBTEST_STEP): Likewise.
40819 (FBTEST_COUNT): Likewise.
40820 (fb_list): New variable.
40821 (grub_find_video_card): Remove function.
40822 (find_framebuf): New function.
40823 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40826 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40827 problem for x86_64.
40829 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40831 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40833 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40836 2009-02-22 Robert Millan <rmh@aybabtu.com>
40838 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40839 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40840 in our relocation, instead of using it directly from heap. Also
40841 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40843 2009-02-21 Robert Millan <rmh@aybabtu.com>
40845 Implement USB keyboard support (based on patch by Marco Gerards)
40847 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40848 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40849 (usb_keyboard_mod_LDFLAGS): New variables.
40851 * term/usb_keyboard.c: New file.
40853 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40855 Corrected wrong declaration
40857 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40859 2009-02-14 Christian Franke <franke@computer.org>
40861 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40862 (grub_lspci_iter): Print class code and programming interface byte.
40864 2009-02-14 Christian Franke <franke@computer.org>
40866 * gendistlist.sh: Ignore `.svn' directories.
40868 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40870 * fs/fat.c: Add 2009 to Copyright line.
40872 2009-02-14 Christian Franke <franke@computer.org>
40874 * commands/hdparm.c: New file. Provides `hdparm' command
40875 which sends ATA commands via grub_disk_ata_pass_through ().
40877 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40879 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40880 and <grub/cpu/io.h> to include/grub/ata.h.
40881 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40882 (GRUB_CDROM_SECTOR_SIZE): Remove.
40883 (GRUB_ATA_*): Move to include/grub/ata.h.
40884 (GRUB_ATAPI_*): Likewise.
40885 (enum grub_ata_commands): Likewise.
40886 (enum grub_ata_timeout_milliseconds): Likewise.
40887 (struct grub_ata_device): Likewise.
40888 (grub_ata_regset): Likewise.
40889 (grub_ata_regget): Likewise.
40890 (grub_ata_regset2): Likewise.
40891 (grub_ata_regget2): Likewise.
40892 (grub_ata_check_ready): Likewise.
40893 (grub_ata_wait_not_busy): Remove static, exported in
40894 include/grub/ata.h.
40895 (grub_ata_wait_drq): Likewise.
40896 (grub_ata_pio_read): Likewise.
40898 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40899 function for hdparm.mod.
40901 * include/grub/ata.h: New file, contains declarations from
40903 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40905 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40906 (grub_disk_ata_pass_through): New exported variable.
40908 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40910 2009-02-13 Colin D Bennett <colin@gibibit.com>
40912 Support multiple fallback entries, and provide an API to support
40913 executing default+fallback menu entries. Renamed the `terminal' menu
40916 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40917 variable declaration.
40918 (grub_menu_execute_callback): New structure declaration.
40919 (grub_menu_execute_callback_t): New typedef.
40920 (grub_menu_execute_with_fallback): New function declaration.
40921 (grub_menu_get_entry): Likewise.
40922 (grub_menu_get_timeout): Likewise.
40923 (grub_menu_set_timeout): Likewise.
40925 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40927 * normal/menu.c (grub_wait_after_message): Moved to
40928 `normal/menu_text.c'.
40929 (draw_border): Likewise.
40930 (print_message): Likewise.
40931 (print_entry): Likewise.
40932 (print_entries): Likewise.
40933 (grub_menu_init_page): Likewise.
40934 (get_entry_number): Likewise.
40935 (print_timeout): Likewise.
40936 (run_menu): Likewise.
40937 (grub_menu_execute_entry): Likewise.
40938 (show_text_menu): Likewise.
40939 (get_and_remove_first_entry_number): New function.
40940 (grub_menu_execute_with_fallback): Likewise.
40941 (get_entry): Renamed to ...
40942 (grub_menu_get_entry): .. this and made it global.
40943 (get_timeout): Renamed to ...
40944 (grub_menu_get_timeout): ... this and made it global.
40945 (set_timeout): Renamed to ...
40946 (grub_menu_set_timeout): ... this and made it global.
40947 (grub_normal_terminal_menu_viewer): Renamed to ...
40948 (grub_normal_text_menu_viewer): ... this.
40950 * normal/menu_text.c: New file. Extracted text-menu-specific code
40951 from normal/menu.c.
40953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40954 (normal_mod_SOURCES): Likewise.
40956 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40957 (normal_mod_SOURCES): Likewise.
40959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40960 (normal_mod_SOURCES): Likewise.
40962 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40963 (normal_mod_SOURCES): Likewise.
40965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40966 (normal_mod_SOURCES): Likewise.
40968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40969 (normal_mod_SOURCES): Likewise.
40971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40972 (normal_mod_SOURCES): Likewise.
40974 2009-02-11 Robert Millan <rmh@aybabtu.com>
40976 * util/grub.d/00_header.in: Update old reference to `font' command.
40978 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40980 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40982 Based on patch from Javier Martín.
40984 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40986 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40987 to avoid false positives with FAT.
40988 (grub_fstest_SOURCES): Likewise.
40989 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40992 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40993 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40994 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40996 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40998 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40999 bpb.version_specific.fat12_or_fat16.fstype and
41000 bpb.version_specific.fat32.fstype.
41002 2009-02-08 Robert Millan <rmh@aybabtu.com>
41004 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41006 2009-02-08 Robert Millan <rmh@aybabtu.com>
41008 * Makefile.in (host_os, host_cpu): New variables.
41009 (target_os): Remove. Update all users.
41011 2009-02-08 Marco Gerards <marco@gnu.org>
41013 * Makefile.in (enable_grub_emu_usb): New variable.
41014 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41015 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41016 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41017 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41018 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41019 `usbtest.mod' and `usbms.mod'.
41020 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41021 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41022 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41023 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41024 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41027 * disk/usbms.c: New file.
41029 * include/grub/usb.h: Likewise.
41031 * include/grub/usbtrans.h: Likewise.
41033 * include/grub/usbdesc.h: Likewise.
41035 * bus/usb/usbtrans.c: Likewise.
41037 * bus/usb/ohci.c: Likewise.
41039 * bus/usb/uhci.c: Likewise.
41041 * bus/usb/usbhub.c: Likewise.
41043 * bus/usb/usb.c: Likewise.
41045 * commands/usbtest.c: Likewise.
41047 * util/usb.c: Likewise.
41049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41051 * configure.ac: Test for libusb presence.
41053 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41055 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41057 * kern/mm.c: Add more comments.
41059 2009-02-08 Robert Millan <rmh@aybabtu.com>
41061 Patch from Javier Martín.
41062 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41063 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41065 2009-02-08 Robert Millan <rmh@aybabtu.com>
41067 * fs/cpio.c: Split tar functionality to ...
41068 * fs/tar.c: ... here (new file). Update all users.
41070 2009-02-07 Robert Millan <rmh@aybabtu.com>
41072 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41073 backward-incompatible features.
41075 Based on patch from Javier Martín, with some adjustments.
41077 2009-02-07 Michael Scherer <misc@mandriva.org>
41079 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41081 2009-02-07 Robert Millan <rmh@aybabtu.com>
41083 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41084 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41085 after the RAID stuff.
41087 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41089 Fixes problem when running vbetest command as reported by
41090 Vladimir Serbinenko <phcoder@gmail.com>.
41092 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41094 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41096 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41097 /dev/md/NpN style mdraid devices.
41099 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41101 * util/unifont2pff.rb: Remove.
41103 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41108 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41116 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41118 2009-02-02 Christian Franke <franke@computer.org>
41120 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41122 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41124 * INSTALL: Note that we now require at least autoconf 2.59 and
41125 that LZO is optional.
41127 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41129 Base on patch on bug #24154 created by Tomas Tintera
41130 <trosos@seznam.cz>.
41132 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41134 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41136 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41137 <bero@arklinux.org>.
41139 * normal/parser.y (script_init): Add missing semicolon.
41141 2009-01-31 Colin D Bennett <colin@gibibit.com>
41143 * normal/main.c: Add include to grub/menu_viewer.h.
41144 (free_menu_entry_classes): Added.
41145 (grub_normal_menu_addentry): Added class property handling.
41146 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41147 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41149 * normal/menu_viewer.c: New file.
41151 * normal/menu.c (run_menu_entry): Renamed to ...
41152 (grub_menu_execute_entry): ... this and made it as global.
41153 (grub_menu_run): Renamed to ...
41154 (show_text_menu): ... this and made it local.
41155 (show_text_menu): Adapt to new function names.
41156 (grub_normal_terminal_menu_viewer): New global variable.
41158 * include/grub/menu.h: New file.
41160 * include/grub/menu_viewer.h: New file.
41162 * include/grub/normal.h: Added include to grub/menu.h.
41163 (grub_menu_entry): Moved to include/grub/menu.h.
41164 (grub_menu_entry_t): Likewise.
41165 (grub_menu): Likewise.
41166 (grub_menu_t): Likewise.
41167 (grub_normal_terminal_menu_viewer): Added.
41168 (grub_menu_execute_entry): Likewise.
41169 (grub_menu_run): Removed.
41171 * DISTLIST: Added include/grub/menu.h.
41172 Added include/grub/menu_viewer.h.
41173 Added normal/menu_viewer.c.
41175 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41177 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41178 arglist for menutitle arguments.
41180 * normal/main.c (grub_normal_menu_addentry): Likewise.
41182 * normal/parser.y (menuentry): Likewise.
41184 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41186 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41187 (grub_script_create_cmdmenu): Likewise.
41189 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41191 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41194 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41196 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41198 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41200 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41202 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41204 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41206 2009-01-30 Christian Franke <franke@computer.org>
41208 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41209 in option help text.
41211 2009-01-27 Pavel Roskin <proski@gnu.org>
41213 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41215 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41217 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41219 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41221 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41222 unregister function.
41224 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41226 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41228 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41230 * util/grub-mkfont.c (usage): Fix typo.
41232 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41234 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41236 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41238 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41240 * kern/misc.c (grub_strcasecmp): New function.
41241 (grub_strcasecmp): Use grub_size_t instead of int for length.
41243 * include/grub/misc.h: Update function prototypes.
41245 2009-01-26 Robert Millan <rmh@aybabtu.com>
41247 * configure.ac: Fix cross-compilation check.
41249 2009-01-22 Christian Franke <franke@computer.org>
41251 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41252 (precision) digit string. Allow `.format2' without `format1' (width).
41253 Limit input chars for `%s' output to `format2' if specified. This is
41254 compatible with standard printf ().
41256 2009-01-22 Christian Franke <franke@computer.org>
41258 * disk/ata.c (grub_ata_wait_status): Replace by ...
41259 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41260 other status bits may be invalid while BSY is asserted.
41261 (grub_ata_check_ready): New function.
41262 (grub_ata_cmd): Removed.
41263 (grub_ata_wait_drq): New function.
41264 (grub_ata_strncpy): Remove inline.
41265 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41266 and error check now done by grub_ata_wait_drq ().
41267 (grub_ata_pio_write): Likewise.
41268 (grub_atapi_identify): Set DEV before check for !BSY. Use
41269 grub_ata_wait_drq () to wait for data.
41270 (grub_ata_device_initialize): Add status register check to
41271 detect missing SATA slave devices. Add debug messages.
41272 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41273 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41274 transfer loop by grub_ata_pio_write ().
41275 (grub_ata_identify): Set DEV before check for !BSY. Use
41276 grub_ata_wait_drq () to wait for data.
41277 (grub_ata_setaddress): Set DEV before check for !BSY.
41278 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41279 read/write in one loop. Fix invalid command on write. Fix incomplete
41280 command on (size % batch) == 0. Add missing error check after write of
41281 last block. Add debug messages.
41282 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41284 2009-01-19 Christian Franke <franke@computer.org>
41286 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41287 (GRUB_ATAPI_IREASON_*): Likewise.
41288 (grub_ata_pio_write): Fix timeout error return.
41289 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41290 (grub_atapi_wait_drq): New function.
41291 (grub_atapi_packet): New parameter `size'.
41292 Use grub_atapi_wait_drq () and direct write instead of
41293 grub_ata_pio_write ().
41294 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41295 reads the number of bytes requested by the device for each DRQ
41297 (grub_atapi_write): Remove old implementation, return not
41298 implemented instead.
41300 2009-01-19 Christian Franke <franke@computer.org>
41302 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41303 of 512 to calculate data size.
41304 (grub_scsi_read12): Likewise.
41305 (grub_scsi_write10): Likewise.
41306 (grub_scsi_write12): Likewise.
41307 (grub_scsi_read): Adjust size according to blocksize.
41308 Add checks for invalid blocksize and unaligned transfer.
41310 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41312 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41314 * term/gfxterm.c (write_char): Fix background rendering for wide
41317 2009-01-19 Robert Millan <rmh@aybabtu.com>
41319 * config.guess: Update to latest version from config git.
41320 * config.sub: Likewise.
41322 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41324 * Makefile.in: Change font compilation to use new grub-mkfont instead
41327 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41328 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41329 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41330 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41331 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41332 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41333 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41334 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41335 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41337 2009-01-16 Christian Franke <franke@computer.org>
41339 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41340 (enum grub_ata_timeout_milliseconds): New enum.
41341 (grub_ata_wait_status): Add parameter milliseconds.
41342 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41343 recovery from timed-out commands.
41344 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41345 return grub_errno instead of REG_ERROR.
41346 (grub_ata_pio_write): Add parameter milliseconds.
41347 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41348 Pass milliseconds to grub_ata_wait_status () and
41349 grub_ata_pio_read ().
41350 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41351 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41352 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41353 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41354 It is not suitable for device detection, because DEV bit is ignored,
41355 the command may run too long, and not all devices set the signature
41357 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41358 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41359 Fix device selection, DEV bit must be set first to address the registers
41360 of the correct device.
41361 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41362 grub_ata_pio_read/write ().
41363 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41364 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41366 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41368 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41370 2009-01-13 Bean <bean123ch@gmail.com>
41372 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41374 2009-01-13 Bean <bean123ch@gmail.com>
41376 * Makefile.in: (enable_grub_mkfont): New variable.
41377 (freetype_cflags): Likewise.
41378 (freetype_libs): Likewise.
41380 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41381 (grub_mkfont_SOURCES): New variable.
41382 (grub_mkfont_CFLAGS): Likewise.
41383 (grub_mkfont_LDFLAGS): Likewise.
41385 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41386 library if `--enable-grub-mkfont' is requested.
41387 (enable_grub_mkfont): New variable.
41388 (freetype_cflags): Likewise.
41389 (freetype_libs): Likewise.
41391 * util/grub-mkfont.c: New file.
41393 2009-01-12 Christian Franke <franke@computer.org>
41395 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41396 mode check. Fix setting of compat_use[].
41398 2009-01-10 Robert Millan <rmh@aybabtu.com>
41400 Update a few copyright years which we forgot to do in 2008 (only for
41401 files whose changes made in 2008 were copyright-significant)
41403 * Makefile.in: Add 2008 to Copyright line.
41404 * disk/ieee1275/ofdisk.c: Likewise.
41405 * disk/efi/efidisk.c: Likewise.
41406 * kern/dl.c: Likewise.
41407 * kern/sparc64/ieee1275/init.c: Likewise.
41408 * kern/mm.c: Likewise.
41409 * kern/efi/mm.c: Likewise.
41410 * boot/i386/pc/boot.S: Likewise.
41411 * genfslist.sh: Likewise.
41412 * fs/iso9660.c: Likewise.
41413 * fs/hfs.c: Likewise.
41414 * fs/jfs.c: Likewise.
41415 * fs/minix.c: Likewise.
41416 * fs/ufs.c: Likewise.
41417 * gensymlist.sh.in: Likewise.
41418 * genkernsyms.sh.in: Likewise.
41419 * include/grub/misc.h: Likewise.
41420 * include/grub/types.h: Likewise.
41421 * include/grub/symbol.h: Likewise.
41422 * include/grub/elf.h: Likewise.
41423 * include/grub/kernel.h: Likewise.
41424 * include/grub/disk.h: Likewise.
41425 * include/grub/dl.h: Likewise.
41426 * include/grub/i386/linux.h: Likewise.
41427 * include/grub/i386/pc/biosdisk.h: Likewise.
41428 * include/grub/efi/api.h: Likewise.
41429 * include/grub/efi/pe32.h: Likewise.
41430 * include/grub/util/misc.h: Likewise.
41431 * normal/execute.c: Likewise.
41432 * normal/arg.c: Likewise.
41433 * normal/completion.c: Likewise.
41434 * normal/lexer.c: Likewise.
41435 * normal/parser.y: Likewise.
41436 * normal/misc.c: Likewise.
41437 * commands/i386/pc/vbeinfo.c: Likewise.
41438 * commands/hexdump.c: Likewise.
41439 * commands/terminal.c: Likewise.
41440 * commands/ls.c: Likewise.
41441 * commands/help.c: Likewise.
41442 * partmap/pc.c: Likewise.
41443 * loader/efi/chainloader.c: Likewise.
41444 * loader/multiboot_loader.c: Likewise.
41445 * loader/i386/pc/multiboot2.c: Likewise.
41446 * term/efi/console.c: Likewise.
41447 * term/i386/pc/serial.c: Likewise.
41448 * util/lvm.c: Likewise.
41449 * util/console.c: Likewise.
41450 * util/i386/efi/grub-mkimage.c: Likewise.
41451 * util/raid.c: Likewise.
41453 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41455 * commands/videotest.c: Removed include to grub/machine/memory.h.
41457 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41458 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41459 (video_mod_SOURCES): Removed.
41460 (video_mod_CFLAGS): Likewise.
41461 (video_mod_LDFLAGS): Likewise.
41462 (gfxterm_mod_SOURCES): Likewise.
41463 (gfxterm_mod_CFLAGS): Likewise.
41464 (gfxterm_mod_LDFLAGS): Likewise.
41465 (videotest_mod_SOURCES): Likewise.
41466 (videotest_mod_CFLAGS): Likewise.
41467 (videotest_mod_LDFLAGS): Likewise.
41468 (bitmap_mod_SOURCES): Likewise.
41469 (bitmap_mod_CFLAGS): Likewise.
41470 (bitmap_mod_LDFLAGS): Likewise.
41471 (tga_mod_SOURCES): Likewise.
41472 (tga_mod_CFLAGS): Likewise.
41473 (tga_mod_LDFLAGS): Likewise.
41474 (jpeg_mod_SOURCES): Likewise.
41475 (jpeg_mod_CFLAGS): Likewise.
41476 (jpeg_mod_LDFLAGS): Likewise.
41477 (png_mod_SOURCES): Likewise.
41478 (png_mod_CFLAGS): Likewise.
41479 (png_mod_LDFLAGS): Likewise.
41481 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41482 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41483 (video_mod_SOURCES): Added.
41484 (video_mod_CFLAGS): Likewise.
41485 (video_mod_LDFLAGS): Likewise.
41486 (videotest_mod_SOURCES): Likewise.
41487 (videotest_mod_CFLAGS): Likewise.
41488 (videotest_mod_LDFLAGS): Likewise.
41489 (bitmap_mod_SOURCES): Likewise.
41490 (bitmap_mod_CFLAGS): Likewise.
41491 (bitmap_mod_LDFLAGS): Likewise.
41492 (tga_mod_SOURCES): Likewise.
41493 (tga_mod_CFLAGS): Likewise.
41494 (tga_mod_LDFLAGS): Likewise.
41495 (jpeg_mod_SOURCES): Likewise.
41496 (jpeg_mod_CFLAGS): Likewise.
41497 (jpeg_mod_LDFLAGS): Likewise.
41498 (png_mod_SOURCES): Likewise.
41499 (png_mod_CFLAGS): Likewise.
41500 (png_mod_LDFLAGS): Likewise.
41501 (gfxterm_mod_SOURCES): Likewise.
41502 (gfxterm_mod_CFLAGS): Likewise.
41503 (gfxterm_mod_LDFLAGS): Likewise.
41505 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41506 grub/machine/console.h.
41508 2009-01-04 Jerone Young <jerone@gmail.com>
41510 Make on screen instructions clearer
41512 Based on patch created by Jidanni <jidanni@jidanni.org>
41514 * normal/menu.c: print clearer instructions on the screen
41516 2009-01-02 Colin D Bennett <colin@gibibit.com>
41520 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41521 build system and fixed gfxterm.c to work with different sized fonts.
41523 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41525 * configure: Re-generated.
41527 * DISTLIST: Removed font/manager.c.
41529 Added font/font_cmd.c.
41531 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41534 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41536 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41538 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41540 * normal/menu.c: Likewise.
41542 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41543 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41545 * include/grub/font.h: Replaced with new file.
41547 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41548 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41549 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41550 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41551 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41552 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41553 fg_red, fg_green, fg_blue, fg_alpha.
41554 (grub_video_adapter): Removed blit_glyph.
41555 (grub_video_blit_glyph): Removed.
41557 * font/manager.c: Removed file.
41559 * font/font.c: New file.
41561 * font/font_cmd.c: Likewise.
41563 * video/video.c (grub_video_blit_glyph): Removed.
41565 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41566 (grub_video_vbe_map_rgba): Likewise.
41567 (grub_video_vbe_unmap_color_int): Likewise.
41568 (grub_video_vbe_blit_glyph): Removed.
41569 (grub_video_vbe_adapter): Removed blit_glyph.
41571 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41572 (get_pixel): Likewise.
41573 (set_pixel): Likewise.
41575 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41577 * term/gfxterm.c: Adapted to new font engine.
41579 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41581 * term/i386/pc/vga.c: Likewise.
41583 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41591 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41593 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41595 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41597 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41599 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41601 * util/grub.d/00_header.in: Changed to use new loadfont command.
41603 * util/grub-mkconfig_lib.in: Changed font extension.
41605 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41607 * util/getroot.c (grub_util_get_grub_dev): Add support for
41608 /dev/md/dNNpNN style partitionable mdraid devices.
41610 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41612 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41613 at a time limit of the PXE TFTP API correctly.
41614 (grub_pxefs_close): Likewise.
41616 2008-11-29 Robert Millan <rmh@aybabtu.com>
41618 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41619 grub_ata_device_initialize() calls.
41621 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41623 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41625 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41627 2008-11-28 Robert Millan <rmh@aybabtu.com>
41629 Fix build on powerpc-ieee1275. Based on patch created by
41630 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41631 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41632 `kern/ieee1275/mmap.c'.
41633 * include/grub/powerpc/ieee1275/memory.h: New file.
41635 Provide grub-install on coreboot.
41636 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41637 (grub_install_SOURCES): New variable.
41638 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41639 usable on coreboot.
41641 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41643 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41644 to `grub_term_input_t'.
41645 (grub_term_get_current_output): Change return type to
41646 `grub_term_output_t'.
41648 2008-11-22 Robert Millan <rmh@aybabtu.com>
41650 Fix breakage on coreboot due to declaration mismatch.
41651 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41652 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41653 grub_vga_text_cls().
41655 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41656 comments. Avoid copying one more byte than necessary (just in case).
41658 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41659 to 0x200000 (avoids trouble with some OFW implementations, and matches
41660 with the one in Yaboot).
41661 Reported by Manoel Abranches
41663 2008-11-20 Robert Millan <rmh@aybabtu.com>
41665 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41666 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41668 * util/grub-mkconfig_lib.in (grub_warn): New function.
41669 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41670 warnings, to obtain consistent formatting.
41671 * util/grub.d/00_header.in: Likewise.
41672 * util/update-grub_lib.in: Likewise.
41674 * loader/i386/linux.c (allocate_pages): Fix a warning.
41675 Move comment text to `#error' stanza.
41677 Harmonize ieee1275's grub_available_iterate() with the generic
41678 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41679 build problem on i386-ieee1275):
41680 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41681 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41682 parameter `type'. Update all users of this function.
41683 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41684 `kern/ieee1275/mmap.c'.
41685 * kern/ieee1275/init.c
41686 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41688 (grub_machine_mmap_iterate): ... this.
41689 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41690 return type to `grub_err_t'. Update all implementations of this
41691 function prototype.
41692 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41695 Add `lsmmap' command (lists firmware-provided memory map):
41696 * commands/lsmmap.c: New file.
41697 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41698 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41700 * conf/powerpc-ieee1275.rmk: Likewise.
41701 * conf/i386-coreboot.rmk: Likewise.
41702 * conf/i386-ieee1275.rmk: Likewise.
41704 2008-11-19 Robert Millan <rmh@aybabtu.com>
41706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41707 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41708 constraints to initrd allocation (based on code from
41709 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41710 for Linux to find it.
41712 2008-11-14 Robert Millan <rmh@aybabtu.com>
41714 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41715 order to cope with duplicate slashes.
41717 2008-11-14 Robert Millan <rmh@aybabtu.com>
41719 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41720 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41721 don't want to mess with lower memory, because it is used in the Linux
41724 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41725 an appropriate place in lower memory, between 0x10000 and 0x90000,
41726 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41727 is in our heap (probably as a result of it being corrupted during
41728 decompression). Add #error instance with comment to explain why this
41729 loader isn't currently usable on PC/BIOS.
41731 2008-11-14 Robert Millan <rmh@aybabtu.com>
41733 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41734 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41736 2008-11-12 Robert Millan <rmh@aybabtu.com>
41738 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41740 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41741 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41743 * include/grub/i386/pc/memory.h: ... to here.
41745 2008-11-12 Robert Millan <rmh@aybabtu.com>
41747 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41750 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41751 (grub_console_cur_color, grub_console_real_putchar)
41752 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41753 (grub_console_setcolorstate, grub_console_setcolor)
41754 (grub_console_getcolor): Move from here ...
41755 * include/grub/i386/vga_common.h: ... to here (new file).
41757 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41758 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41759 `<grub/i386/io.h>'.
41760 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41761 `<grub/i386/vga_common.h>'.
41763 2008-11-12 Robert Millan <rmh@aybabtu.com>
41765 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41766 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41767 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41769 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41770 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41772 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41773 grub_console_init() with call to grub_vga_text_init().
41774 (grub_machine_fini): Replace call to
41775 grub_console_fini() with call to grub_vga_text_fini() and
41776 grub_at_keyboard_fini().
41778 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41779 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41780 (grub_console_setcolorstate, grub_console_setcolor)
41781 (grub_console_getcolor): New function prototypes.
41783 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41784 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41785 (grub_vga_text_setcursor): Static-ize.
41786 (grub_vga_text_term): New structure.
41787 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41789 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41790 (grub_console_cur_color, grub_console_standard_color)
41791 (grub_console_normal_color, grub_console_highlight_color)
41792 (map_char, grub_console_putchar, grub_console_getcharwidth)
41793 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41794 (grub_console_getcolor): Move from here ...
41795 * term/i386/vga_common.c: ... to here (same function names).
41797 2008-11-12 Robert Millan <rmh@aybabtu.com>
41799 Use newly-added Multiboot support in coreboot.
41801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41802 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41804 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41805 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41806 (codestart): Store the MBI in `startup_multiboot_info' when we're
41807 being loaded using Multiboot.
41809 * kern/i386/coreboot/init.c (grub_machine_init): Move
41810 grub_at_keyboard_init() call to beginning of function (useful for
41811 debugging). Call grub_machine_mmap_init() before attempting to use
41812 grub_machine_mmap_iterate().
41813 (grub_lower_mem, grub_upper_mem): Move from here ...
41814 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41818 function prototype.
41820 2008-11-12 Robert Millan <rmh@aybabtu.com>
41822 Fix a regression introduced by the at_keyboard.mod split. Because
41823 some terminals are default on some platforms and non-default on
41824 others, the first terminal being registered determines which is
41825 going to be default.
41827 * kern/term.c (grub_term_register_input): If this is the first
41828 terminal being registered, set it as the current one.
41829 (grub_term_register_output): Likewise.
41831 * term/efi/console.c (grub_console_init): Do not call
41832 grub_term_set_current_output() or grub_term_set_current_input().
41833 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41834 * term/i386/pc/console.c (grub_console_init): Likewise.
41835 (grub_console_fini): Do not call grub_term_set_current_input()
41836 (but leave grub_term_set_current_output() to restore text mode).
41838 2008-11-10 Robert Millan <rmh@aybabtu.com>
41840 * util/grub.d/00_header.in: Add backward compatibility check for
41841 versions of terminal.mod that don't understand `terminal_input' or
41844 2008-11-09 Robert Millan <rmh@aybabtu.com>
41846 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41847 `terminal_input' / `terminal_output', not `terminal'.
41849 2008-11-08 Robert Millan <rmh@aybabtu.com>
41851 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41852 (DISTCLEANFILES): Add `build_env.mk'.
41854 2008-11-08 Robert Millan <rmh@aybabtu.com>
41856 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41857 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41858 members. Update all users.
41859 * util/console.c (grub_ncurses_term): Split in ...
41860 (grub_ncurses_term_input): ... this, and ...
41861 (grub_ncurses_term_output): ... this. Update all users.
41862 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41864 2008-11-08 Robert Millan <rmh@aybabtu.com>
41866 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41867 (PKGDATA): Add $(pkgdata_SRCDIR).
41868 (pkglib_BUILDDIR): New variable.
41869 (pkgdata_SRCDIR): New variable.
41870 (build_env.mk): New target.
41871 (include_DATA): New variable.
41872 (install-local): Install $(include_DATA) files in $(includedir).
41874 2008-11-07 Pavel Roskin <proski@gnu.org>
41876 * gendistlist.sh: Use C locale for sorting to ensure consistent
41877 output on all systems.
41879 * util/grub.d/00_header.in: Remove incorrect space before
41882 2008-11-07 Robert Millan <rmh@aybabtu.com>
41884 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41886 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41887 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41888 (based on find_multi_boot1_header).
41889 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41890 using find_multi_boot2_header(), and abort if neither Multiboot or
41891 Multiboot headers were found.
41893 2008-11-07 Robert Millan <rmh@aybabtu.com>
41895 Modularize at_keyboard.mod:
41897 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41898 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41899 (at_keyboard_mod_LDFLAGS): New variables.
41901 Actual terminal split:
41903 * include/grub/term.h (struct grub_term): Split in ...
41904 (struct grub_term_input): ... this, and ...
41905 (struct grub_term_output): ... this. Update all users.
41906 (grub_term_set_current): Split in ...
41907 (grub_term_set_current_input): ... this, and ...
41908 (grub_term_set_current_output): ... this.
41909 (grub_term_get_current): Split in ...
41910 (grub_term_get_current_input): ... this, and ...
41911 (grub_term_get_current_output): ... this.
41912 (grub_term_register): Split in ...
41913 (grub_term_register_input): ... this, and ...
41914 (grub_term_register_output): ... this.
41915 (grub_term_unregister): Split in ...
41916 (grub_term_unregister_input): ... this, and ...
41917 (grub_term_unregister_output): ... this.
41918 (grub_term_iterate): Split in ...
41919 (grub_term_iterate_input): ... this, and ...
41920 (grub_term_iterate_output): ... this.
41922 * kern/term.c (grub_term_list): Split in ...
41923 (grub_term_list_input): ... this, and ...
41924 (grub_term_list_output): ... this. Update all users.
41925 (grub_cur_term): Split in ...
41926 (grub_cur_term_input): ... this, and ...
41927 (grub_cur_term_output): ... this. Update all users.
41928 (grub_term_set_current): Split in ...
41929 (grub_term_set_current_input): ... this, and ...
41930 (grub_term_set_current_output): ... this.
41931 (grub_term_get_current): Split in ...
41932 (grub_term_get_current_input): ... this, and ...
41933 (grub_term_get_current_output): ... this.
41934 (grub_term_register): Split in ...
41935 (grub_term_register_input): ... this, and ...
41936 (grub_term_register_output): ... this.
41937 (grub_term_unregister): Split in ...
41938 (grub_term_unregister_input): ... this, and ...
41939 (grub_term_unregister_output): ... this.
41940 (grub_term_iterate): Split in ...
41941 (grub_term_iterate_input): ... this, and ...
41942 (grub_term_iterate_output): ... this.
41944 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41945 a check for input and one for output (and only attempt to get keys
41946 from user when input works).
41948 * util/grub-probe.c (grub_term_get_current): Split in ...
41949 (grub_term_get_current_input): ... this, and ...
41950 (grub_term_get_current_output): ... this.
41951 * util/grub-fstest.c: Likewise.
41952 * util/i386/pc/grub-setup.c: Likewise.
41953 * util/grub-editenv.c: Likewise.
41955 Portability adjustments:
41957 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41958 `term/i386/pc/at_keyboard.c'.
41959 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41960 grub_keyboard_controller_init() (now handled by terminal .init).
41961 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41962 grub_at_keyboard_init().
41963 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41964 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41965 at_keyboard.mod via input terminal interface).
41966 * include/grub/i386/coreboot/console.h: Convert into a stub for
41967 `<grub/i386/pc/console.h>'.
41969 Migrate full terminals to new API:
41971 * term/efi/console.c (grub_console_term): Split into ...
41972 (grub_console_term_input): ... this, and ...
41973 (grub_console_term_output): ... this. Update all users.
41974 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41975 (grub_ofconsole_init): Split into ...
41976 (grub_ofconsole_init_input): ... this, and ...
41977 (grub_ofconsole_init_output): ... this.
41978 (grub_ofconsole_term): Split into ...
41979 (grub_ofconsole_term_input): ... this, and ...
41980 (grub_ofconsole_term_output): ... this. Update all users.
41981 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41982 (grub_serial_term_input): ... this, and ...
41983 (grub_serial_term_output): ... this. Update all users.
41984 * term/i386/pc/console.c (grub_console_term): Split into ...
41985 (grub_console_term_input): ... this, and ...
41986 (grub_console_term_output): ... this. Update all users.
41987 (grub_console_term_input): Only enable it on PC/BIOS platform.
41988 (grub_console_init): Remove grub_keyboard_controller_init() call.
41990 Migrate input terminals to new API:
41992 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41993 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41994 i386-specific anyway).
41995 (grub_console_checkkey): Rename to ...
41996 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41998 (grub_keyboard_controller_orig): New variable.
41999 (grub_console_getkey): Rename to ...
42000 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42002 (grub_keyboard_controller_init): Static-ize. Save original
42003 controller value so that it can be restored ...
42004 (grub_keyboard_controller_fini): ... here (new function).
42005 (grub_at_keyboard_term): New structure.
42006 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42009 Migrate output terminals to new API:
42011 * term/i386/pc/vga.c (grub_vga_term): Change type to
42012 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42013 members. Update all users.
42014 * term/gfxterm.c (grub_video_term): Change type to
42015 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42016 members. Update all users.
42017 * include/grub/i386/pc/console.h (grub_console_checkkey)
42018 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42021 Migrate `terminal' command and userland tools to new API:
42023 * commands/terminal.c (grub_cmd_terminal): Split into ...
42024 (grub_cmd_terminal_input): ... this, and ...
42025 (grub_cmd_terminal_output): ... this.
42026 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42027 `terminal_input' and `terminal_output'.
42028 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42029 `terminal_input' / `terminal_output' API.
42030 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42031 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42032 provided ${GRUB_TERMINAL}, convert it).
42034 2008-11-04 Robert Millan <rmh@aybabtu.com>
42036 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42038 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42040 2008-11-03 Bean <bean123ch@gmail.com>
42042 * kern/elf.c (grub_elf32_load): Revert to previous code.
42043 (grub_elf64_load): Likewise.
42045 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42047 2008-11-01 Robert Millan <rmh@aybabtu.com>
42049 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42050 (TARGET_CPPFLAGS): Likewise.
42051 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42053 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42055 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42057 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42059 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42060 addition of objects until the code is not going to be able to fail.
42062 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42064 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42065 (add a missing NULL check, and correct them by moving the pointer
42066 operations after the actual check).
42068 2008-10-29 Robert Millan <rmh@aybabtu.com>
42070 * util/i386/pc/grub-install.in: Handle empty string as output from
42071 make_system_path_relative_to_its_root().
42073 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42075 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42076 circular metadata worst case scenario. If the metadata is circular
42077 then copy the wrap in place.
42078 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42079 project lib/format_text/layout.h
42080 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42082 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42084 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42086 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42088 * util/update-grub_lib.in: Mention filename in warning message.
42090 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42092 * NEWS: Update for rename of update-grub to grub-mkconfig.
42094 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42096 * util/update-grub_lib.in: Copy to ...
42097 * util/grub-mkconfig_lib.in: ... this. Update all users.
42098 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42099 * util/update-grub.in: Rename to ...
42100 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42101 option. Add `--output' option to allow users to specify the generated
42102 configuration file. Default to stdout.
42103 (update_grub_dir): Rename to ...
42104 (grub_mkconfig_dir): ... this.
42105 (grub_cfg): Default to an empty string.
42106 * conf/common.rmk (update-grub): Rename to ...
42107 (grub-mkconfig): ... this.
42108 (update-grub_lib): Copy to ...
42109 (grub-mkconfig_lib): ... this.
42110 (update-grub_SCRIPTS): Copy to ...
42111 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42112 (update-grub_DATA): Rename to ...
42113 (grub-mkconfig_DATA): ... this.
42115 2008-09-28 Robert Millan <rmh@aybabtu.com>
42117 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42118 to `modified'. Add the real `created' field.
42119 (grub_iso9660_uuid): Use `modified' rather than `created' for
42120 constructing the UUID.
42122 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42124 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42125 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42127 2008-09-28 Bean <bean123ch@gmail.com>
42129 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42130 Thanks to Christian Franke for finding this bug.
42132 2008-09-25 Robert Millan <rmh@aybabtu.com>
42134 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42135 instances of grub_util_get_disk_name() (see previous commit).
42137 2008-09-25 Robert Millan <rmh@aybabtu.com>
42139 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42140 `util/i386/get_disk_name.c'.
42141 * conf/i386-efi.rmk: Likewise.
42142 * conf/x86_64-efi.rmk: Likewise.
42143 * conf/i386-coreboot.rmk: Likewise.
42144 * conf/i386-ieee1275.rmk: Likewise.
42145 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42146 `util/ieee1275/get_disk_name.c'.
42147 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42148 * util/ieee1275/get_disk_name.c: Remove file.
42149 * util/i386/get_disk_name.c: Remove file.
42150 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42151 "hd%d" for device.map entries, rather than using
42152 grub_util_get_disk_name().
42154 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42156 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42158 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42160 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42162 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42164 (GRUB_TERM_PPAGE): Changed to 0x4900.
42166 2008-09-24 Robert Millan <rmh@aybabtu.com>
42168 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42169 macros (they were i386-pc specific).
42170 * include/grub/sparc64/ieee1275/console.h: Likewise.
42171 * include/grub/efi/console.h: Likewise.
42173 2008-09-22 Bean <bean123ch@gmail.com>
42175 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42176 resident and in attribute list.
42178 * include/grub/ntfs.h (BMP_LEN): Removed.
42180 2008-09-22 Bean <bean123ch@gmail.com>
42182 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42183 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42185 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42186 error occurs, as grub_disk_open will call grub_disk_close, which will
42187 call p->close (scsi).
42189 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42191 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42192 (AC_PREREQ): Bumped to 2.59.
42193 (AC_TRY_COMPILE): Replace obsolete macro with ...
42194 (AC_COMPILE_IFELSE): ... this.
42195 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42196 (AC_LINK_IFELSE): ... this.
42198 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42200 * autogen.sh: Add a call to `gendistlist.sh'.
42202 2008-09-19 Christian Franke <franke@computer.org>
42204 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42205 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42206 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42207 Export __enable_execute_stack() to modules.
42208 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42211 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42213 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42216 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42218 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42219 #include <grub/util/hostdisk.h>.
42221 2008-09-08 Robert Millan <rmh@aybabtu.com>
42223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42224 segments when their filesz is zero (grub_file_read() interprets
42225 zero-size as "read until EOF", which results in memory corruption).
42226 Use `lowest_segment' rather than 0 for calculating the current
42227 segment load address.
42229 2008-09-08 Robert Millan <rmh@aybabtu.com>
42231 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42232 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42233 clobbered useful information.
42235 2008-09-08 Robert Millan <rmh@aybabtu.com>
42237 * include/grub/util/biosdisk.h: Move to ...
42238 * include/grub/util/hostdisk.h: ... here. Update all users.
42239 * util/biosdisk.c: Move to ...
42240 * util/hostdisk.c: ... here. Update all users.
42242 2008-09-07 Robert Millan <rmh@aybabtu.com>
42244 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42246 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42247 and length can be stored directly in the `mbi->mmap_addr' and
42248 `mbi->mmap_length' struct fields.
42250 2008-09-07 Robert Millan <rmh@aybabtu.com>
42252 * conf/i386.rmk: New file. Provides declaration for building
42254 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42255 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42257 Include `conf/i386.mk'.
42258 * conf/i386-efi.rmk: Likewise.
42259 * conf/x86_64-efi.rmk: Likewise.
42260 * conf/i386-coreboot.rmk: Likewise.
42261 * conf/i386-ieee1275.rmk: Likewise.
42263 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42265 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42266 Adds optimization support for BGR based modes.
42268 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42269 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42270 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42272 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42273 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42274 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42276 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42277 (grub_video_i386_vbeblit_index_index): Likewise.
42278 (grub_video_i386_vbeblit_replace_directN): Added.
42279 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42280 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42281 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42282 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42283 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42284 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42285 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42286 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42287 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42288 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42289 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42290 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42291 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42293 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42294 (grub_video_i386_vbefill_R8G8B8): Likewise.
42295 (grub_video_i386_vbefill_index): Likewise.
42296 (grub_video_i386_vbefill_direct32): Added.
42297 (grub_video_i386_vbefill_direct24): Likewise.
42298 (grub_video_i386_vbefill_direct16): Likewise.
42299 (grub_video_i386_vbefill_direct8): Likewise.
42301 * include/grub/video.h (grub_video_blit_format): Removed
42302 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42303 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42304 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42305 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42306 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42308 * video/video.c (grub_video_get_blit_format): Updated to use new
42309 blit formats. Added handling for 16 bit color modes.
42311 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42313 (common_blitter): Updated to use new blitters.
42315 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42317 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42318 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42319 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42320 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42321 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42322 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42323 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42324 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42325 (grub_video_i386_vbeblit_index_index): Likewise.
42326 (grub_video_i386_vbeblit_replace_directN): Added.
42327 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42328 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42329 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42330 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42331 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42332 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42333 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42334 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42335 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42336 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42337 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42338 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42339 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42341 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42342 (grub_video_i386_vbefill_R8G8B8): Likewise.
42343 (grub_video_i386_vbefill_index): Likewise.
42344 (grub_video_i386_vbefill_direct32): Added.
42345 (grub_video_i386_vbefill_direct24): Likewise.
42346 (grub_video_i386_vbefill_direct16): Likewise.
42347 (grub_video_i386_vbefill_direct8): Likewise.
42349 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42352 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42355 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42358 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42361 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42363 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42366 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42368 * fs/iso9660.c (grub_iso9660_date): New structure.
42369 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42370 (grub_iso9660_uuid): New function.
42372 2008-09-05 Bean <bean123ch@gmail.com>
42374 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42376 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42377 insensitive bit for names in Win32 and Win32 & DOS namespace.
42379 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42381 * include/grub/types.h (LONG_MAX): Likewise.
42383 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42385 * util/getroot.c: Include <config.h>.
42386 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42387 add support for /dev/md/N devices and handle LVM double dash escaping.
42389 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42391 * config.guess: Update to latest version from config git.
42392 * config.sub: Likewise.
42394 2008-09-03 Robert Millan <rmh@aybabtu.com>
42396 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42397 `disk->total_sectors'.
42399 2008-09-01 Colin D Bennett <colin@gibibit.com>
42401 * include/grub/normal.h: Fixed incorrect comment for
42402 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42404 2008-09-01 Colin D Bennett <colin@gibibit.com>
42406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42407 values with defines.
42409 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42410 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42411 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42412 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42413 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42414 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42415 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42416 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42417 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42418 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42419 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42420 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42421 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42422 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42423 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42424 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42425 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42426 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42427 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42429 2008-08-31 Robert Millan <rmh@aybabtu.com>
42431 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42433 (grub_multiboot): Fix a few warnings.
42435 2008-08-31 Robert Millan <rmh@aybabtu.com>
42437 * loader/i386/pc/multiboot.c: Update comment not to say that
42438 boot_device support is unimplemented.
42440 2008-08-31 Robert Millan <rmh@aybabtu.com>
42442 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42443 or memory map support are unimplemented.
42445 2008-08-31 Colin D Bennett <colin@gibibit.com>
42447 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42449 2008-08-31 Colin D Bennett <colin@gibibit.com>
42451 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42452 total video memory in 'vbeinfo' output; show color format details for
42455 2008-08-30 Pavel Roskin <proski@gnu.org>
42457 * util/genmoddep.c: Remove for real this time.
42458 * DISTLIST: Remove util/genmoddep.c.
42460 2008-08-30 Robert Millan <rmh@aybabtu.com>
42462 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42463 as required by Multiboot spec (it was already 4-byte aligned, but
42466 2008-08-29 Pavel Roskin <proski@gnu.org>
42468 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42469 * kern/powerpc/ieee1275/startup.S: ... this.
42470 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42471 * DISTLIST: Likewise.
42473 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42474 grub/cpu/kernel.h. Add start label for consistency with other
42475 platforms. Add grub_prefix immediately after start. Add jump
42476 to the code after grub_prefix.
42477 * include/grub/powerpc/kernel.h: Provide valid values for
42478 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42480 2008-08-29 Bean <bean123ch@gmail.com>
42482 * configure.ac: Change host_os to cygwin for mingw.
42483 (asprintf): New check for function.
42485 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42486 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42488 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42489 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42490 sync, sleep and grub_util_get_disk_size for mingw.
42492 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42493 to get size in mingw.
42494 (open_device): Use flag O_BINARY if it's defined.
42495 (find_root_device): Add dummy code for mingw.
42497 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42498 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42499 (get_scsi_disk_name): Return 0 for mingw.
42501 * util/hostfs.c: #include <grub/util/misc.h>.
42502 (grub_hostfs_open): Use "rb" flag to open file, use
42503 grub_util_get_disk_size to get disk size for mingw.
42505 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42506 (asprintf): New function if HAVE_ASPRINTF is not set.
42507 (sync): New function for mingw.
42509 (grub_util_get_disk_size): Likewise.
42511 2008-08-28 Pavel Roskin <proski@gnu.org>
42513 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42516 2008-08-28 Robert Millan <rmh@aybabtu.com>
42518 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42520 2008-08-28 Robert Millan <rmh@aybabtu.com>
42522 Change find_grub_drive() syntax so it doesn't prevent it from
42523 detecting NULL names as errors.
42525 * util/biosdisk.c (find_grub_drive): Move free slot search code
42527 (find_free_slot): ... to here.
42528 (read_device_map): Use find_free_slot() to search for free slots.
42530 2008-08-27 Marco Gerards <marco@gnu.org>
42532 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42533 (scsi_mod_SOURCES): New variable.
42534 (scsi_mod_CFLAGS): Likewise
42535 (scsi_mod_LDFLAGS): Likewise.
42537 * disk/scsi.c: New file.
42539 * include/grub/scsi.h: Likewise.
42541 * include/grub/scsicmd.h: Likewise.
42543 * disk/ata.c: Include <grub/scsi.h>.
42544 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42546 (grub_ata_iterate): Skip ATAPI devices.
42547 (grub_ata_open): Only handle ATAPI devices.
42548 (struct grub_atapi_read): Removed.
42549 (grub_atapi_readsector): Likewise.
42550 (grub_ata_read): No longer handle ATAPI devices.
42551 (grub_ata_write): Likewise.
42552 (grub_atapi_iterate): New function.
42553 (grub_atapi_read): Likewise.
42554 (grub_atapi_write): Likewise.
42555 (grub_atapi_open): Likewise.
42556 (grub_atapi_close): Likewise.
42557 (grub_atapi_dev): New variable.
42558 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42559 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42561 * include/grub/disk.h (enum grub_disk_dev_id): Add
42562 `GRUB_DISK_DEVICE_SCSI_ID'.
42564 2008-08-26 Robert Millan <rmh@aybabtu.com>
42566 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42567 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42570 2008-08-23 Bean <bean123ch@gmail.com>
42572 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42573 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42574 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42575 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42577 (raid5rec_mod_SOURCES): New macro.
42578 (raid5rec_mod_CFLAGS): Likewise.
42579 (raid5rec_mod_LDFLAGS): Likewise.
42580 (raid6rec_mod_SOURCES): Likewise.
42581 (raid6rec_mod_CFLAGS): Likewise.
42582 (raid6rec_mod_LDFLAGS): Likewise.
42583 (mdraid_mod_SOURCES): Likewise.
42584 (mdraid_mod_CFLAGS): Likewise.
42585 (mdraid_mod_LDFLAGS): Likewise.
42586 (dm_nv_mod_SOURCES): Likewise.
42587 (dm_nv_mod_CFLAGS): Likewise.
42588 (dm_nv_mod_LDFLAGS): Likewise.
42590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42591 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42592 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42595 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42605 * disk/raid5_recover.c: New file.
42607 * disk/raid6_recover.c: Likewise.
42609 * disk/mdraid_linux.c: Likewise.
42611 * disk/dmraid_nvidia.c: Likewise.
42613 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42616 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42617 calculate the size of raid device.
42618 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42619 different layout of raid5.
42620 (grub_raid_scan_device): Remove code specific to mdraid.
42621 (grub_raid_list): New variable.
42622 (free_array): New function.
42623 (grub_raid_register): Likewise.
42624 (grub_raid_unregister): Likewise.
42625 (grub_raid_rescan): Likewise.
42626 (GRUB_MOD_INIT): Don't iterate device here.
42627 (GRUB_MOD_FINI): Use free_array to release resource.
42629 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42630 (grub_raid5_recover_func_t): New function variable type.
42631 (grub_raid6_recover_func_t): Likewise.
42632 (grub_raid5_recover_func): New variable.
42633 (grub_raid6_recover_func): Likewise.
42634 (grub_raid_register): New function.
42635 (grub_raid_unregister): Likewise.
42636 (grub_raid_rescan): Likewise.
42637 (grub_raid_block_xor): Likewise.
42639 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42640 (CMD_CRC): New macro.
42642 (read_file): Handle device as well as file.
42643 (cmd_crc): New function.
42644 (fstest): Handle multiple disks.
42645 (options): Remove part, raw and long, add root and diskcount.
42646 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42647 (main): Find the first non option entry and ignore subsequent options,
42648 add handling for the new options, support multiple disks.
42650 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42652 2008-08-23 Bean <bean123ch@gmail.com>
42654 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42656 * genfslist.sh: Ignore kernel.mod.
42658 * genpartmaplist.sh: Likewise.
42660 2008-08-23 Robert Millan <rmh@aybabtu.com>
42662 * util/getroot.c (find_root_device): Skip anything that starts with
42663 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42665 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42667 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42668 * util/grub.d/00_header.in: Allow the administrator to change default
42669 gfxmode via ${GRUB_GFXMODE}.
42671 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42673 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42675 2008-08-21 Robert Millan <rmh@aybabtu.com>
42677 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42679 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42680 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42682 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42684 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42685 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42687 2008-08-19 Robert Millan <rmh@aybabtu.com>
42689 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42690 (struct grub_virtual_screen): Remove `cursor_color'.
42691 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42693 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42695 2008-08-18 Robert Millan <rmh@aybabtu.com>
42697 Unify (identical) linux_normal.c files.
42698 * loader/i386/efi/linux_normal.c: Move from here ...
42699 * loader/linux_normal.c: ... to here. Update all users.
42700 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42701 * loader/i386/ieee1275/linux_normal.c: Likewise.
42703 2008-08-18 Robert Millan <rmh@aybabtu.com>
42705 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42706 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42707 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42708 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42709 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42711 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42712 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42713 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42714 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42715 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42716 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42717 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42718 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42719 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42720 portably using grub_getxy().
42721 Replace `-EFI' with `-bzImage' in boot message.
42723 2008-08-17 Robert Millan <rmh@aybabtu.com>
42725 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42727 2008-08-17 Robert Millan <rmh@aybabtu.com>
42729 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42731 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42732 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42733 (grub_machine_mmap_iterate): New function declaration.
42734 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42736 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42739 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42740 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42741 Move e820 parsing from here ...
42742 * kern/i386/pc/mmap.c: New file.
42743 (grub_machine_mmap_iterate): ... to here.
42745 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42746 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42747 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42748 (grub_available_iterate): Redeclare to return `void', and redeclare
42749 its hook to use grub_uint64_t as addr and size parameters, and rename
42751 (grub_machine_mmap_iterate): ... this. Update all users.
42753 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42754 to make it more readable. Rename to ...
42755 (grub_machine_mmap_iterate): ... this.
42757 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42758 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42759 (grub_multiboot): Allocate an extra region after the payload, and fill
42760 it with a Multiboot memory map. Adjust a.out loader to calculate size
42761 with the extra space.
42762 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42763 with the extra space.
42765 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42767 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42769 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42771 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42772 mdate-sh to the list `find' searches for.
42773 * DISTLIST: Regenerated.
42775 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42777 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42778 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42779 genmoddep.awk, gensymlist.sh.in.
42780 (DISTDIRS): Add bus, docs, hook, lib.
42781 * DISTLIST: Regenerated.
42782 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42784 2008-08-16 Robert Millan <rmh@aybabtu.com>
42786 * disk/raid.c (grub_raid_init): Handle/report errors set by
42787 grub_device_iterate().
42788 * disk/lvm.c (grub_lvm_init): Likewise.
42790 2008-08-15 Bean <bean123ch@gmail.com>
42792 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42794 (datetime_mod_SOURCES): New macro.
42795 (datetime_mod_CFLAGS): Likewise.
42796 (datetime_mod_LDFLAGS): Likewise.
42797 (date_mod_SOURCES): Likewise.
42798 (date_mod_CFLAGS): Likewise.
42799 (date_mod_LDFLAGS): Likewise.
42800 (datehook_mod_SOURCES): Likewise.
42801 (datehook_mod_CFLAGS): Likewise.
42802 (datehook_mod_LDFLAGS): Likewise.
42804 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42806 (datetime_mod_SOURCES): New macro.
42807 (datetime_mod_CFLAGS): Likewise.
42808 (datetime_mod_LDFLAGS): Likewise.
42809 (date_mod_SOURCES): Likewise.
42810 (date_mod_CFLAGS): Likewise.
42811 (date_mod_LDFLAGS): Likewise.
42812 (datehook_mod_SOURCES): Likewise.
42813 (datehook_mod_CFLAGS): Likewise.
42814 (datehook_mod_LDFLAGS): Likewise.
42816 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42818 (datetime_mod_SOURCES): New macro.
42819 (datetime_mod_CFLAGS): Likewise.
42820 (datetime_mod_LDFLAGS): Likewise.
42821 (date_mod_SOURCES): Likewise.
42822 (date_mod_CFLAGS): Likewise.
42823 (date_mod_LDFLAGS): Likewise.
42824 (datehook_mod_SOURCES): Likewise.
42825 (datehook_mod_CFLAGS): Likewise.
42826 (datehook_mod_LDFLAGS): Likewise.
42828 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42830 (datetime_mod_SOURCES): New macro.
42831 (datetime_mod_CFLAGS): Likewise.
42832 (datetime_mod_LDFLAGS): Likewise.
42833 (date_mod_SOURCES): Likewise.
42834 (date_mod_CFLAGS): Likewise.
42835 (date_mod_LDFLAGS): Likewise.
42836 (datehook_mod_SOURCES): Likewise.
42837 (datehook_mod_CFLAGS): Likewise.
42838 (datehook_mod_LDFLAGS): Likewise.
42840 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42842 (datetime_mod_SOURCES): New macro.
42843 (datetime_mod_CFLAGS): Likewise.
42844 (datetime_mod_LDFLAGS): Likewise.
42845 (date_mod_SOURCES): Likewise.
42846 (date_mod_CFLAGS): Likewise.
42847 (date_mod_LDFLAGS): Likewise.
42848 (datehook_mod_SOURCES): Likewise.
42849 (datehook_mod_CFLAGS): Likewise.
42850 (datehook_mod_LDFLAGS): Likewise.
42852 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42854 * commands/date.c: New file.
42856 * hook/datehook.c: Likewise.
42858 * include/grub/lib/datetime.h: Likewise.
42860 * include/grub/i386/cmos.h: Likewise.
42862 * lib/datetime.c: Likewise.
42864 * lib/i386/datetime.c: Likewise.
42866 * lib/efi/datetime.c: Likewise.
42868 2008-08-14 Robert Millan <rmh@aybabtu.com>
42870 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42871 (grub_mkelfimage_SOURCES): New variable.
42872 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42874 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42875 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42876 * conf/powerpc-ieee1275.rmk: Likewise.
42877 * conf/i386-ieee1275.rmk: Likewise.
42879 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42880 * kern/i386/coreboot/init.c: Likewise.
42882 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42883 with `<grub/cpu/kernel.h>'.
42884 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42886 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42887 * kern/i386/coreboot/startup.S: Likewise.
42889 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42890 (GRUB_MOD_GAP): Remove.
42891 * include/grub/powerpc/kernel.h: New file.
42892 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42893 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42894 * include/grub/i386/kernel.h: New file.
42895 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42896 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42897 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42899 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42901 Use --directory when invoking grub_mkimage.
42903 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42904 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42905 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42906 and GRUB_KERNEL_CPU_PREFIX.
42908 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42910 * include/grub/err.h (grub_err_printf): New function prototype.
42911 * util/misc.c (grub_err_printf): New function.
42912 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42914 * kern/err.c (grub_print_error): Use grub_err_printf.
42916 2008-08-13 Robert Millan <rmh@aybabtu.com>
42918 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42920 2008-08-13 Robert Millan <rmh@aybabtu.com>
42922 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42925 2008-08-12 Robert Millan <rmh@aybabtu.com>
42927 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42928 of the relocation code from here ...
42929 (grub_multiboot): ... to here.
42930 (forward_relocator, backward_relocator): Move from here ...
42931 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42932 (grub_multiboot_backward_relocator): ... to here.
42933 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42934 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42935 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42936 (grub_multiboot_forward_relocator_end)
42937 (grub_multiboot_backward_relocator)
42938 (grub_multiboot_backward_relocator_end): New variables.
42940 2008-08-12 Bean <bean123ch@gmail.com>
42942 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42944 2008-08-11 Robert Millan <rmh@aybabtu.com>
42946 * kern/i386/linuxbios/startup.S: Move from here ...
42947 * kern/i386/coreboot/startup.S: ... to here.
42949 * kern/i386/linuxbios/init.c: Move from here ...
42950 * kern/i386/coreboot/init.c: ... to here.
42952 * kern/i386/linuxbios/table.c: Move from here ...
42953 * kern/i386/coreboot/mmap.c: ... to here.
42955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42957 2008-08-11 Robert Millan <rmh@aybabtu.com>
42959 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42960 errors. Leave it to the upper layer to handle them.
42962 2008-08-09 Christian Franke <franke@computer.org>
42964 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42965 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42966 Install `grub.d/10_windows' only on Cygwin.
42967 * configure.ac: Add subst of `target_os'.
42968 Check `target_os' also before setting TARGET_OBJ2ELF.
42969 Add `--enable-grub-pe2elf'.
42971 2008-08-08 Robert Millan <rmh@aybabtu.com>
42973 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42974 (grub_last_time): Change type to grub_uint64_t.
42975 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42976 (grub_disk_close): Likewise.
42978 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42979 (run_menu): Migrate code from to using grub_get_time_ms().
42981 * util/misc.c (grub_get_time_ms): New function.
42983 2008-08-08 Marco Gerards <marco@gnu.org>
42985 * disk/ata.c (grub_ata_regget): Change return type to
42987 (grub_ata_regget2): Likewise.
42988 (grub_ata_wait_status): New function.
42989 (grub_ata_wait_busy): Removed function, updated all users to use
42990 `grub_ata_wait_status'.
42991 (grub_ata_wait_drq): Likewise.
42992 (grub_ata_cmd): New function.
42993 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42995 (grub_ata_pio_write): Add error handling.
42996 (grub_atapi_identify): Likewise.
42997 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42999 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43000 handling. Actually use the detected registers. Reorder the
43001 detection logic such that it is easier to read.
43002 (grub_ata_pciinit): Do not assign the same ID to each controller.
43003 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43005 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43009 2008-08-08 Marco Gerards <marco@gnu.org>
43013 2008-08-07 Bean <bean123ch@gmail.com>
43015 * include/grub/x86_64/pci.h: New file.
43017 2008-08-07 Christian Franke <franke@computer.org>
43019 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43020 (TIMER2_GATE): Likewise.
43021 (grub_pit_wait): Add enable/disable of the timer2 gate
43022 bit of port 0x61. This fixes a possible infinite loop.
43024 2008-08-07 Bean <bean123ch@gmail.com>
43026 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43027 kern/i386/tsc.c and kern/i386/pit.c.
43029 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43032 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43035 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43037 2008-08-07 Bean <bean123ch@gmail.com>
43039 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43043 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43044 multiple inclusion. Add #include <grub/types.h>.
43046 2008-08-06 Christian Franke <franke@computer.org>
43048 * conf/common.rmk: Build and install `10_windows'.
43049 * util/grub.d/10_windows.in: New script.
43051 2008-08-06 Pavel Roskin <proski@gnu.org>
43053 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43055 2008-08-06 Robert Millan <rmh@aybabtu.com>
43057 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43058 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43060 2008-08-06 Bean <bean123ch@gmail.com>
43062 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43063 (grub_pxefs_fs_int): Remove dummy definition.
43064 (grub_pxefs_open): Use data->block_size to store the current block
43066 (grub_pxefs_read): Use block size stored in data->block_size. As the
43067 value of grub_pxe_blksize can be changed after the file is opened.
43069 2008-08-06 Bean <bean123ch@gmail.com>
43071 * fs/i386/pc/pxe.c (curr_file): new variable.
43072 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43073 require the dummy internal file system anymore.
43074 (grub_pxefs_read): Removed.
43075 (grub_pxefs_close): Likewise.
43076 (grub_pxefs_fs_int): Likewise.
43077 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43078 connection when we switch file.
43079 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43081 2008-08-06 Robert Millan <rmh@aybabtu.com>
43083 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43085 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43086 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43088 * kern/i386/halt.c: New file.
43089 * kern/i386/reboot.c: Likewise.
43090 * include/grub/i386/reboot.h: Likewise.
43091 * include/grub/i386/halt.h: Likewise.
43093 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43094 Include `<grub/cpu/halt.h>'.
43095 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43096 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43098 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43099 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43100 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43101 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43102 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43103 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43105 * include/grub/i386/at_keyboard.h: ... to here.
43107 2008-08-05 Robert Millan <rmh@aybabtu.com>
43109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43110 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43111 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43112 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43113 `kern/generic/millisleep.c'.
43115 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43116 instead of grub_get_rtc().
43117 (grub_tsc_init): Initialize `tsc_boot_time'.
43119 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43120 (grub_machine_init): Use grub_tsc_init() rather than
43121 installing an RTC-based handler via grub_install_get_time_ms().
43123 * kern/i386/pit.c: New file.
43124 * include/grub/i386/pit.h: Likewise.
43126 2008-08-05 Bean <bean123ch@gmail.com>
43128 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43130 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43131 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43132 (pxe_mod_SOURCES): New macro.
43133 (pxe_mod_CFLAGS): Likewise.
43134 (pxe_mod_LDFLAGS): Likewise.
43135 (pxecmd_mod_SOURCES): Likewise.
43136 (pxecmd_mod_CFLAGS): Likewise.
43137 (pxecmd_mod_LDFLAGS): Likewise.
43139 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43140 (grub_pxe_call): Likewise.
43142 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43144 * commands/i386/pc/pxecmd.c: New file.
43146 * fs/i386/pc/pxe.c: Likewise.
43148 * include/grub/i386/pc/pxe.h: Likewise.
43150 2008-08-05 Bean <bean123ch@gmail.com>
43152 * util/console.c (grub_console_cur_color): New variable.
43153 (grub_console_standard_color): Likewise.
43154 (grub_console_normal_color): Likewise.
43155 (grub_console_highlight_color): Likewise.
43156 (color_map): Likewise.
43157 (use_color): Likewise.
43158 (NUM_COLORS): New macro.
43159 (grub_ncurses_setcolorstate): Handle color properly.
43160 (grub_ncurses_setcolor): Don't change color here, just remember the
43161 settings, color will be set in grub_ncurses_setcolorstate.
43162 (grub_ncurses_getcolor): New function.
43163 (grub_ncurses_init): Initialize color pairs.
43164 (grub_ncurses_term): New member grub_ncurses_getcolor.
43166 2008-08-05 Colin D Bennett <colin@gibibit.com>
43168 High resolution timer support. Implemented for x86 CPUs using TSC.
43169 Extracted generic grub_millisleep() so it's linked in only as needed.
43170 This requires a Pentium compatible CPU; if the RDTSC instruction is
43171 not supported, then it falls back on the generic grub_get_time_ms()
43172 implementation that uses the machine's RTC.
43174 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43175 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43176 `kern/generic/millisleep.c'.
43178 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43179 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43181 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43182 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43186 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43187 `kern/generic/millisleep.c'.
43189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43193 * kern/generic/rtc_get_time_ms.c: New file.
43195 * kern/generic/millisleep.c: New file.
43197 * kern/misc.c: Don't include
43198 <kern/time.h> anymore.
43199 (grub_millisleep_generic): Removed.
43201 * commands/sleep.c (grub_interruptible_millisleep): Uses
43202 grub_get_time_ms() instead of grub_get_rtc().
43204 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43206 (grub_cpu_is_cpuid_supported): New inline function.
43207 (grub_cpu_is_tsc_supported): New inline function.
43208 (grub_tsc_init): New function prototype.
43209 (grub_tsc_get_time_ms): New function prototype.
43211 * kern/i386/tsc.c (grub_get_time_ms): New file.
43213 * include/grub/time.h: Include <grub/types.h.
43214 (grub_millisleep_generic): Removed.
43215 (grub_get_time_ms): New prototype.
43216 (grub_install_get_time_ms): New prototype.
43217 (grub_rtc_get_time_ms): New prototype.
43219 * kern/time.c (grub_get_time_ms): New function.
43220 (grub_install_get_time_ms): New function.
43222 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43223 <grub/time.h> anymore.
43224 (grub_millisleep): Removed.
43225 (grub_machine_init): Call grub_tsc_init.
43227 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43228 get_time_ms() implementation.
43230 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43231 (ieee1275_get_time_ms): New function.
43232 (grub_machine_init): Install get_time_ms() implementation.
43234 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43235 (grub_machine_init): Call grub_tsc_init().
43236 (grub_millisleep): Removed.
43238 * kern/ieee1275/init.c (grub_millisleep): Removed.
43239 (grub_machine_init): Install ieee1275_get_time_ms()
43241 (ieee1275_get_time_ms): New function.
43242 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43245 2008-08-05 Marco Gerards <marco@gnu.org>
43247 * disk/ata.c: Include <grub/pci.h>.
43248 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43249 (grub_ata_initialize): Rewritten.
43250 (grub_ata_device_initialize): New function.
43252 2008-08-04 Pavel Roskin <proski@gnu.org>
43254 * kern/main.c: Include grub/mm.h.
43256 2008-08-04 Robert Millan <rmh@aybabtu.com>
43258 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43259 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43260 corruption problem).
43262 2008-08-04 Robert Millan <rmh@aybabtu.com>
43264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43265 warnings introduced in my last commit.
43267 2008-08-03 Robert Millan <rmh@aybabtu.com>
43269 Make PCI available on all i386 architectures.
43271 * include/grub/i386/pc/pci.h: Move from here ...
43272 * include/grub/i386/pci.h: ... to here.
43274 * include/grub/i386/pc/pci.h: Remove.
43275 * include/grub/i386/efi/pci.h: Remove.
43276 * include/grub/x86_64/efi/pci.h: Remove.
43278 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43279 `<grub/cpu/pci.h>'.
43281 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43282 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43283 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43285 * conf/i386-ieee1275.rmk: Likewise.
43287 2008-08-03 Robert Millan <rmh@aybabtu.com>
43289 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43290 (grub_console_setcursor): Make it possible to set cursor off.
43292 2008-08-03 Robert Millan <rmh@aybabtu.com>
43294 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43295 of modules instead of assuming which platform provides what.
43296 * util/update-grub.in: Likewise.
43298 2008-08-03 Robert Millan <rmh@aybabtu.com>
43300 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43301 instead of `grub_install_dos_part' to determine whether a drive needs
43302 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43303 because it can be overridden when loading GRUB via Multiboot).
43305 2008-08-02 Robert Millan <rmh@aybabtu.com>
43307 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43309 2008-08-02 Robert Millan <rmh@aybabtu.com>
43311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43312 of informational grub_dprintf() calls.
43314 2008-08-02 Robert Millan <rmh@aybabtu.com>
43316 * disk/memdisk.c (memdisk_size): Don't initialize.
43317 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43319 * include/grub/i386/pc/kernel.h
43320 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43321 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43322 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43323 (grub_arch_memdisk_size): Remove.
43325 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43326 field (was only used to transfer a constant). Add `type' field to
43327 support multiple module types.
43328 (grub_module_iterate): New function.
43330 * kern/device.c (grub_device_open): Do not hide error messages
43331 when grub_disk_open() fails. Use grub_print_error() instead.
43333 * kern/i386/pc/init.c (grub_arch_modules_addr)
43334 (grub_arch_memdisk_size): Remove functions.
43335 (grub_arch_modules_addr): Return the module address in high memory
43336 (now that it isn't copied anymore).
43338 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43339 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43340 decompression routine (grub_total_module_size already includes that
43341 now). Don't copy modules back to low memory.
43343 * kern/main.c: Include `<grub/mm.h>'.
43344 (grub_load_modules): Split out (and use) ...
43345 (grub_module_iterate): ... this function, which iterates through
43346 module objects and runs a hook.
43347 Comment out grub_mm_init_region() call, as it would cause non-ELF
43348 modules to be overwritten.
43350 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43351 the memdisk image in its own region, make it part of the module list.
43352 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43353 (main): Parse --memdisk|-m option, and pass user-provided path as
43354 parameter to generate_image().
43355 (add_segments): Pass `memdisk_path' down to load_modules().
43356 (load_modules): Embed memdisk image in module section when requested.
43357 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43358 `header.type' instead of `header.offset'.
43360 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43361 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43362 (memdisk_mod_LDFLAGS): New variables.
43363 * conf/i386-coreboot.rmk: Likewise.
43364 * conf/i386-ieee1275.rmk: Likewise.
43366 2008-08-02 Robert Millan <rmh@aybabtu.com>
43368 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43369 (backward_relocator): New variables. Used to allocate and relocate
43370 the payload, respectively.
43371 (grub_multiboot_load_elf32): Load into heap instead of requested
43372 address, install the appropriate relocator code in each bound of
43373 the payload, and set the entry point such that
43374 grub_multiboot_real_boot() will jump to one of them.
43376 * kern/i386/loader.S (grub_multiboot_payload_size)
43377 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43378 (grub_multiboot_payload_entry_offset): New variables.
43379 (grub_multiboot_real_boot): Set cpu context to what the relocator
43380 expects, and jump to the relocator instead of the payload.
43382 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43383 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43384 (grub_multiboot_payload_entry_offset): Export.
43386 2008-08-01 Bean <bean123ch@gmail.com>
43388 * normal/menu_entry.c (editor_getline): Don't return the original
43389 string as result, as it will be released by lexer once it has done
43392 2008-08-01 Robert Millan <rmh@aybabtu.com>
43394 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43395 within menuentries, not before them.
43396 util/grub.d/10_hurd.in: Likewise.
43398 2008-08-01 Bean <bean123ch@gmail.com>
43400 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43401 (bufio_mod_SOURCES): New macro.
43402 (bufio_mod_CFLAGS): Likewise.
43403 (bufio_mod_LDFLAGS): Likewise.
43405 * include/grub/bufio.h: New file.
43407 * io/bufio.c: Likewise.
43409 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43410 (grub_video_reader_png): Use grub_buffile_open to open file.
43412 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43413 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43415 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43416 (grub_video_reader_tga): Use grub_buffile_open to open file.
43418 * font/manager.c: Include <grub/bufio.h>.
43419 (add_font): Use grub_buffile_open to open file.
43421 2008-07-31 Robert Millan <rmh@aybabtu.com>
43423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43424 ELF segments, use a macro for arbitrarily accessing any of them instead
43425 of preparing a pointer that allows access to one at a time.
43426 (grub_multiboot_load_elf64): Likewise.
43428 2008-07-31 Bean <bean123ch@gmail.com>
43430 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43431 GRUB_KERNEL_MACHINE_DATA_END.
43433 2008-07-30 Robert Millan <rmh@aybabtu.com>
43435 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43436 Increase from 0x50 to 0x60.
43437 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43438 use UUIDs to identify the root drive for them. If that's not
43440 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43441 check, for cross-disk installs.
43443 2008-07-30 Robert Millan <rmh@aybabtu.com>
43445 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43446 is non-empty, use it to set the `prefix' environment variable instead
43447 of the usual approach.
43448 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43449 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43450 environment variable instead of dummy make_install_device().
43452 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43453 (start): Insert a data section, with `grub_prefix' variable.
43454 * kern/i386/linuxbios/startup.S: Likewise.
43456 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43457 New variable reference.
43458 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43459 New macro. Defines offset of `grub_prefix' within startup.S (relative
43461 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43462 section within startup.S (relative to `start').
43463 * include/grub/i386/coreboot/kernel.h: Likewise.
43465 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43466 Overwrite grub_prefix with its contents, at the beginning of the
43468 (main): Understand -p|--prefix.
43470 2008-07-30 Robert Millan <rmh@aybabtu.com>
43472 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43474 2008-07-30 Robert Millan <rmh@aybabtu.com>
43476 * term/i386/pc/vga_text.c (grub_console_cls): Use
43477 grub_console_gotoxy() to go back to beginning of the screen.
43478 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43480 2008-07-29 Christian Franke <franke@computer.org>
43482 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43483 Add conversion of emulated mount points on Cygwin.
43485 2008-07-29 Christian Franke <franke@computer.org>
43487 * util/update-grub.in: Add a check for admin
43489 Remove old `grub.cfg.new' before creation.
43490 Add `-f' to `mv' to handle the different filesystem
43491 semantics of Windows.
43493 2008-07-29 Bean <bean123ch@gmail.com>
43495 * normal/main.c (get_line): Fix buffer overflow bug.
43497 2008-07-28 Robert Millan <rmh@aybabtu.com>
43499 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43500 (struct grub_apple_header): New struct. Describes the layout of
43501 the partmap header.
43502 (apple_partition_map_iterate): Check the header magic as well as the
43503 partition magic (which was already being checked).
43505 2008-07-28 Pavel Roskin <proski@gnu.org>
43507 * genmk.rb: Add a warning to the beginning of the output that
43508 it's a generated file and should not be edited.
43510 2008-07-28 Robert Millan <rmh@aybabtu.com>
43512 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43513 with the same number are found, just use issue a warning with
43514 grub_dprintf(), as this error has been reported to be non-fatal.
43516 2008-07-27 Robert Millan <rmh@aybabtu.com>
43518 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43521 2008-07-27 Bean <bean123ch@gmail.com>
43523 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43524 (grub_fat_find_dir): Ignore case when comparing filename.
43526 2008-07-27 Bean <bean123ch@gmail.com>
43528 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43529 smallino, as it's more descriptive, and i8count can be confused with
43530 the other field count.
43531 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43534 2008-07-27 Bean <bean123ch@gmail.com>
43536 * commands/crc.c: New file.
43538 * lib/crc.c: Likewise.
43540 * include/grub/lib/crc.h: Likewise.
43542 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43544 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43545 (hexdump): Move this function to ...
43547 * lib/hexdump.c: ... here.
43549 * include/grub/hexdump.h: Renamed to ...
43551 * include/grub/lib/hexdump.h: ... this.
43553 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43555 * util/grub-editenv.c: Likewise.
43557 * include/envblk.h: Renamed to ...
43559 * include/lib/envblk.h: ... this.
43561 * util/envblk.c: Renamed to ...
43563 * lib/envblk.c: ... this.
43565 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43567 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43568 (pkglib_MODULES): Add crc.mod.
43569 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43570 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43571 (crc_mod_SOURCES): New macro.
43572 (crc_mod_CFLAGS): Likewise.
43573 (crc_mod_LDFLAGS): Likewise.
43575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43579 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43583 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43585 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43587 * commands/help.c: Include <grub/term.h>.
43588 (TERM_WIDTH): Removed. Updated all users.
43590 2008-07-27 Pavel Roskin <proski@gnu.org>
43592 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43593 spurious warnings about a comment within a comment.
43595 2008-07-25 Robert Millan <rmh@aybabtu.com>
43597 * util/getroot.c (find_root_device): Skip devices that match
43598 /dev/dm-[0-9]. This lets the real device be found for any type of
43599 abstraction (LVM, EVMS, RAID..).
43600 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43601 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43602 device is found first, find_root_device() will now skip it.
43604 2008-07-24 Pavel Roskin <proski@gnu.org>
43606 * include/grub/types.h: Use __builtin_bswap32() and
43607 __builtin_bswap64() with gcc 4.3 and newer.
43609 2008-07-24 Christian Franke <franke@computer.org>
43611 * util/i386/pc/grub-install.in: If `--debug' is specified,
43612 pass `--verbose' to grub-setup.
43613 Abort script if make_system_path_relative_to_its_root() fails.
43615 2008-07-24 Bean <bean123ch@gmail.com>
43617 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43618 variable `target_platform' should be `platform'.
43620 2008-07-24 Bean <bean123ch@gmail.com>
43622 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43623 (grub_png_init_fixed_block): New function.
43624 (grub_png_decode_image_data): Handle fixed huffman code compression.
43626 2008-07-24 Bean <bean123ch@gmail.com>
43628 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43629 (grub_pe2elf_SOURCES): New macro.
43630 (CLEANFILES): Add grub-pe2elf.
43632 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43633 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43634 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43635 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43636 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43637 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43638 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43639 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43640 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43641 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43642 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43643 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43644 (GRUB_PE32_DT_FUNCTION): Likewise.
43645 (GRUB_PE32_REL_I386_DIR32): Likewise.
43646 (GRUB_PE32_REL_I386_REL32): Likewise.
43647 (grub_pe32_symbol): New structure.
43648 (grub_pe32_reloc): Likewise.
43650 * util/grub-pe2elf.c: New file.
43652 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43653 start symbol in non pc platform.
43655 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43657 The following patches are from Christian Franke.
43659 * include/grub/dl.h: Remove .previous, gas supports this only
43662 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43663 Remove .type, gas supports this only for ELF format.
43665 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43666 nullbytes in symbol table. This fixes an infinite loop if table is
43669 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43670 TARGET_IMG_LDFLAGS and EXEEXT.
43672 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43673 TARGET_IMG_LDFLAGS_AC.
43674 (grub_CHECK_STACK_ARG_PROBE): New function.
43676 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43678 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43680 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43681 to set TARGET_IMG_LD* accordingly.
43682 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43683 Add call to grub_CHECK_STACK_ARG_PROBE.
43684 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43686 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43688 * genmk.rb: Add EXEEXT to CLEANFILES.
43690 2008-07-23 Robert Millan <rmh@aybabtu.com>
43692 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43693 define the codes for arrows and lines used for the menu).
43694 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43697 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43698 fonts, because the latter are too slow.
43700 2008-07-21 Bean <bean123ch@gmail.com>
43702 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43703 a20. Run keyboard test last, as it will cause macbook to halt.
43705 2008-07-18 Pavel Roskin <proski@gnu.org>
43707 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43708 load foreign architecture modules correctly anyway. Keep
43709 support for loading host architecture modules, whether we
43710 compile them or not.
43712 2008-07-17 Pavel Roskin <proski@gnu.org>
43714 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43715 change target_cpu. The compiler default can mismatch target_cpu
43718 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43719 * kern/efi/efi.c: Likewise.
43721 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43722 target compiler is functional.
43723 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43726 * configure.ac: Default to efi platform for x86_64-apple. Allow
43727 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43728 adjustments from the rest, only do them if target is not
43729 explicitly given. Merge other adjustments with the final sanity
43730 check. Remove an extraneous check for supported CPU. Be
43731 specific which CPU and which platform is not supported.
43733 * configure.ac: Default to pc platform for x86_64.
43735 2008-07-17 Robert Millan <rmh@aybabtu.com>
43737 Partial LinuxBIOS -> Coreboot rename.
43739 * conf/i386-linuxbios.rmk: Renamed to ...
43740 * conf/i386-coreboot.rmk: ... this.
43741 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43742 * configure.ac: Accept "coreboot" as input platform (but maintain
43743 compatibility with "linuxbios").
43744 * include/grub/i386/linuxbios: Renamed to ...
43745 * include/grub/i386/coreboot: ... this.
43747 2008-07-17 Bean <bean123ch@gmail.com>
43749 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43750 (appleldr_mod_SOURCE): New variable.
43751 (appleldr_mod_CFLAGS): Likewise.
43752 (appleldr_mod_LDFLAGS): Likewise.
43753 (pci_mod_SOURCES): Likewise.
43754 (pci_mod_CFLAGS): Likewise.
43755 (pci_mod_LDFLAGS): Likewise.
43756 (lspci_mod_SOURCES): Likewise.
43757 (lspci_mod_CFLAGS): Likewise.
43758 (lspci_mod_LDFLAGS): Likewise.
43760 * conf/x86_64-efi.rmk: New file.
43762 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43764 (grub_efidisk_write): Likewise.
43766 * include/efi/api.h (efi_call_0): New macro.
43767 (efi_call_1): Likewise.
43768 (efi_call_2): Likewise.
43769 (efi_call_3): Likewise.
43770 (efi_call_4): Likewise.
43771 (efi_call_5): Likewise.
43772 (efi_call_6): Likewise.
43774 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43775 grub_rescue_cmd_chainloader.
43777 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43778 (grub_pe32_optional_header): Change some fields based on i386 or
43780 (GRUB_PE32_PE32_MAGIC): Likewise.
43782 * include/grub/efi/uga_draw.h: New file.
43784 * include/grub/elf.h (STN_ABS): New constant.
43785 (R_X86_64_NONE): Relocation constant for x86_64.
43786 (R_X86_64_64): Likewise.
43787 (R_X86_64_PC32): Likewise.
43788 (R_X86_64_GOT32): Likewise.
43789 (R_X86_64_PLT32): Likewise.
43790 (R_X86_64_COPY): Likewise.
43791 (R_X86_64_GLOB_DAT): Likewise.
43792 (R_X86_64_JUMP_SLOT): Likewise.
43793 (R_X86_64_RELATIVE): Likewise.
43794 (R_X86_64_GOTPCREL): Likewise.
43795 (R_X86_64_32): Likewise.
43796 (R_X86_64_32S): Likewise.
43797 (R_X86_64_16): Likewise.
43798 (R_X86_64_PC16): Likewise.
43799 (R_X86_64_8): Likewise.
43800 (R_X86_64_PC8): Likewise.
43802 * include/grub/i386/efi/pci.h: New file.
43804 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43805 Change it value based on platform.
43806 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43807 (GRUB_E820_RAM): Likewise.
43808 (GRUB_E820_RESERVED): Likewise.
43809 (GRUB_E820_ACPI): Likewise.
43810 (GRUB_E820_NVS): Likewise.
43811 (GRUB_E820_EXEC_CODE): Likewise.
43812 (GRUB_E820_MAX_ENTRY): Likewise.
43813 (grub_e820_mmap): New structure.
43814 (linux_kernel_header): Change the efi field according to different
43815 kernel version, also field from linux_kernel_header.
43817 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43819 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43820 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43821 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43822 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43823 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43824 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43825 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43826 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43827 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43828 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43830 * include/grub/x86_64/efi/kernel.h: New file.
43832 * include/grub/x86_64/efi/loader.h: Likewise.
43834 * include/grub/x86_64/efi/machine.h: Likewise.
43836 * include/grub/x86_64/efi/pci.h: Likewise.
43838 * include/grub/x86_64/efi/time.h: Likewise.
43840 * include/grub/x86_64/linux.h: Likewise.
43842 * include/grub/x86_64/setjmp.h: Likewise.
43844 * include/grub/x86_64/time.h: Likewise.
43846 * include/grub/x86_64/types.h: Likewise.
43848 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43849 GRUB_TARGET_SIZEOF_VOID_P.
43851 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43852 (grub_efi_locate_handle): Likewise.
43853 (grub_efi_open_protocol): Likewise.
43854 (grub_efi_set_text_mode): Likewise.
43855 (grub_efi_stall): Likewise.
43856 (grub_exit): Likewise.
43857 (grub_reboot): Likewise.
43858 (grub_halt): Likewise.
43859 (grub_efi_exit_boot_services): Likewise.
43860 (grub_get_rtc): Likewise.
43862 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43863 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43864 (grub_efi_allocate_pages): Wrap efi calls.
43865 (grub_efi_free_pages): Wrap efi calls.
43866 (grub_efi_get_memory_map): Wrap efi calls.
43868 * kern/x86_64/dl.c: New file.
43870 * kern/x86_64/efi/callwrap.S: Likewise.
43872 * kern/x86_64/efi/startup.S: Likewise.
43874 * loader/efi/appleloader.c: Likewise.
43876 * loader/efi/chainloader.c (cmdline): New variable.
43877 (grub_chainloader_unload): Wrap efi calls.
43878 (grub_chainloader_boot): Likewise.
43879 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43882 * loader/efi/chainloader_normal.c (chainloader_command):
43883 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43886 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43888 (grub_e820_add_region): New function.
43889 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43891 (grub_find_video_card): New function.
43892 (grub_linux_setup_video): New function.
43893 (grub_rescue_cmd_linux): Probe for video information.
43895 * normal/x86_64/setjmp.S: New file.
43897 * term/efi/console.c (map_char): New function.
43898 (grub_console_putchar): Map unicode char.
43899 (grub_console_checkkey): Wrap efi calls.
43900 (grub_console_getkey): Likewise.
43901 (grub_console_getwh): Likewise.
43902 (grub_console_gotoxy): Likewise.
43903 (grub_console_cls): Likewise.
43904 (grub_console_setcolorstate): Likewise.
43905 (grub_console_setcursor): Likewise.
43907 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43909 2008-07-16 Pavel Roskin <proski@gnu.org>
43911 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43914 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43915 pointer, not an integer. This fixes a warning and prevents
43916 precision loss on 64-bit systems.
43917 (relocate_addresses): Remove unneeded cast.
43919 2008-07-15 Pavel Roskin <proski@gnu.org>
43921 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43923 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43925 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43926 Fix comparison between signed and unsigned.
43928 * include/grub/i386/ieee1275/console.h: Declare
43929 grub_console_init() and grub_console_fini().
43931 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43932 It's empty and unused.
43934 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43935 beginning to avoid warnings with some compilers.
43937 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43938 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43940 2008-07-14 Pavel Roskin <proski@gnu.org>
43942 * kern/env.c (grub_register_variable_hook): Don't copy empty
43943 string, it leaks memory. Pass "" to grub_env_set(), it should
43944 handle constant strings.
43946 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43947 * commands/cmp.c (grub_cmd_cmp): Likewise.
43948 * kern/dl.c (grub_dl_flush_cache): Likewise.
43949 (grub_dl_load_core): Likewise.
43950 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43951 (grub_elf64_load_phdrs): Likewise.
43953 2008-07-13 Pavel Roskin <proski@gnu.org>
43955 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43956 between signed and unsigned.
43957 (LzmaEnc_Finish): Fix warning about an unused parameter.
43959 2008-07-13 Bean <bean123ch@gmail.com>
43961 * Makefile.in (enable_lzo): New rule.
43963 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43965 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43967 * boot/i386/pc/lnxboot.S: #include <config.h>.
43969 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43970 its value according to the compression algorithm used, lzo or lzma.
43972 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43973 compression algorithm according to configure macro.
43975 * kern/i386/pc/startup.S (codestart): Likewise.
43977 * kern/i386/pc/lzma_decode.S: New file.
43979 * include/grub/lib/LzFind.h: Likewise.
43981 * include/grub/lib/LzHash.h: Likewise.
43983 * include/grub/lib/LzmaDec.h: Likewise.
43985 * include/grub/lib/LzmaEnc.h: Likewise.
43987 * include/grub/lib/LzmaTypes.h: Likewise.
43989 * lib/LzFind.c: Likewise.
43991 * lib/LzmaDec.c: Likewise.
43993 * lib/LzmaEnc.c: Likewise.
43995 2008-07-13 Bean <bean123ch@gmail.com>
43997 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43998 (grub_ext4_extent_header): New structure.
43999 (grub_ext4_extent): Likewise.
44000 (grub_ext4_extent_idx): Likewise.
44001 (grub_ext4_find_leaf): New function.
44002 (grub_ext2_read_block): Handle extents.
44004 2008-07-12 Robert Millan <rmh@aybabtu.com>
44006 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44008 2008-07-11 Robert Millan <rmh@aybabtu.com>
44010 * util/grub.d/40_custom.in: New file. Example on how to add custom
44011 entries to /etc/grub.d.
44012 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44013 40_custom (implicitly, by merging all the grub.d rules).
44015 2008-07-11 Pavel Roskin <proski@gnu.org>
44017 * commands/read.c (grub_getline): Fix invalid memory access.
44018 Don't add newline to the variable value.
44020 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44021 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44022 (serial_hw_get_port): Check validity of the port number.
44023 (grub_cmd_serial): Check return value of serial_hw_get_port().
44025 2008-07-07 Pavel Roskin <proski@gnu.org>
44027 * boot/i386/pc/diskboot.S (notification_string): Replace
44028 "Loading kernel" with just "loading". This is shorter, less
44029 confusing and saves a few bytes for possible future changes.
44031 2008-07-05 Pavel Roskin <proski@gnu.org>
44033 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44034 size for ATAPI devices, they are undefined. Output sector
44035 number in decimal form.
44037 * disk/ata.c: Use named constants for status bits.
44039 2008-07-04 Pavel Roskin <proski@gnu.org>
44041 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44042 grub_addr_t before casting it to the void pointer to fix a
44043 warning. Non-addressable regions are discarded earlier.
44044 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44045 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44046 (check_signature): Don't shadow table_header.
44047 (grub_linuxbios_table_iterate): Cast numeric constants to
44048 grub_linuxbios_table_header_t.
44049 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44052 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44055 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44056 pointer, which can cause warnings. Support 64-bit addresses.
44058 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44059 of sizeof(long). This fixes PowerPC image generation on x86_64.
44061 2008-07-04 Robert Millan <rmh@aybabtu.com>
44063 This fixes a performance issue when pc & gpt partmap iterators
44064 didn't abort iteration even after our hook found what it was
44065 looking for (often causing expensive probes of non-existent drives).
44067 Some callers relied on previous buggy behaviour, since they would
44068 raise an error when their own hooks caused early abortion of its
44071 * kern/device.c (grub_device_open): Improve error message.
44072 * disk/lvm.c (grub_lvm_open): Likewise.
44073 * disk/raid.c (grub_raid_open): Likewise.
44075 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44076 when hook requests it, independently of grub_errno.
44077 (pc_partition_map_probe): Do not fail when find_func() caused
44078 early abortion of pc_partition_map_iterate().
44080 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44081 when hook requests it, independently of grub_errno.
44082 (gpt_partition_map_probe): Do not fail when find_func() caused
44083 early abortion of gpt_partition_map_iterate().
44085 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44086 when hook requests it, independently of grub_errno. Do not fail when
44087 part_map_iterate_hook() caused early abortion of p->iterate().
44089 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44090 when grub_partition_iterate() returned with non-zero.
44092 2008-07-03 Pavel Roskin <proski@gnu.org>
44094 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44095 like we do in grub_ata_pio_read().
44096 (grub_ata_readwrite): Always write individual sectors. Fix the
44097 sector count for the remainder.
44098 (grub_ata_write): Enable writing to ATA devices. Correctly
44099 report error for ATAPI devices.
44101 2008-07-02 Pavel Roskin <proski@gnu.org>
44103 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44106 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44107 for every read sector, we already increment it for the whole
44108 batch. This fixes reading more than 256 sectors at once.
44110 * util/grub-editenv.c (cmd_info): Cast argument to long
44111 explicitly. ptrdiff_t reduces to int on i386.
44113 * util/grub-editenv.c (main): Be specific which parameter is
44116 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44117 (memdisk): Make memdisk_orig_addr a pointer.
44119 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44120 for file offsets, use grub_off_t instead. Fix printf format
44123 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44124 there. Real unexpected warnings should not drown in the noise
44125 about known problems.
44127 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44128 grub_disk_addr_t for memory addresses.
44130 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44131 explicitly to fix a warning.
44133 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44135 * Makefile.in (MODULE_LDFLAGS): New variable.
44136 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44137 the linker accepts --build-id=none.
44138 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44140 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44142 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44143 those in Linux XFS code. Provide a way to access 64-bit parent
44145 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44146 the end of struct grub_xfs_dir_header.
44148 2008-07-02 Bean <bean123ch@gmail.com>
44150 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44151 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44152 and GRUB_IEEE1275_FLAG_NO_ANSI.
44154 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44155 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44156 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44158 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44159 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44161 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44162 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44164 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44165 esc sequence on non ANSI terminal.
44166 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44168 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44171 2008-07-02 Bean <bean123ch@gmail.com>
44173 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44174 (grub_editenv_SOURCES): New variable.
44175 (pkglib_MODULES): Add loadenv.mod.
44176 (loadenv_mod_SOURCES): New variable.
44177 (loadenv_mod_CFLAGS): Likewise.
44178 (loadenv_mod_LDFLAGS): Likewise.
44180 * include/grub/envblk.h: New file.
44182 * util/envblk.c: New file.
44184 * util/grub-editenv.c: New file.
44186 * commands/loadenv.c: New file.
44188 2008-07-01 Pavel Roskin <proski@gnu.org>
44190 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44191 not unsigned char. This fixes warnings and is consistent with
44194 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44196 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44198 * term/tparm.c (analyze): Always set *popcount.
44200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44201 cast to fix a warning.
44203 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44204 cast to suppress a warning.
44206 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44207 grub_fshelp_read_file() expects.
44209 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44210 write uuid as a 32-bit value in CPU byte order, so declare and
44213 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44214 long if the format specifier expects it.
44215 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44216 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44217 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44218 long to fix a warning.
44219 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44220 grub_dprintf() arguments to fix warnings.
44222 2008-06-30 Pavel Roskin <proski@gnu.org>
44224 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44225 install_bsd_part immediately before core.img is embedded or
44226 modified on disk. This fixes core.img verification if core.img
44227 cannot be embedded.
44229 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44230 core_path to calculate the blocklist.
44231 Patch from Javier Martín <lordhabbit@gmail.com>
44233 2008-06-29 Robert Millan <rmh@aybabtu.com>
44235 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44236 block to disk block.
44237 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44238 Patch from Niels Böhm <bitbucket@arcor.de>
44240 2008-06-29 Robert Millan <rmh@aybabtu.com>
44242 * util/update-grub_lib.in (font_path): Search for fonts in
44243 /boot/grub first, which is more likely to be readable (we aren't
44244 deciding where fonts live, just looking for them).
44246 2008-06-26 Pavel Roskin <proski@gnu.org>
44248 * util/biosdisk.c (read_device_map): Don't leave dead map
44249 entries for devices failing stat() check.
44251 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44252 core_path_dev for the core.img path on the target device.
44254 2008-06-26 Robert Millan <rmh@aybabtu.com>
44256 * disk/fs_uuid.c: New file.
44257 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44258 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44259 (fs_uuid_mod_LDFLAGS): New variables.
44260 * include/grub/disk.h (grub_disk_dev_id): Add
44261 `GRUB_DISK_DEVICE_UUID_ID'.
44262 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44263 implement iterate().
44265 2008-06-26 Robert Millan <rmh@aybabtu.com>
44267 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44268 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44269 Linux image includes no initrd.
44271 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44273 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44274 call to resolve the core image location that effectively appended the
44277 2008-06-21 Robert Millan <rmh@aybabtu.com>
44279 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44282 * util/grub.d/10_hurd.in: ... to here ...
44283 * util/grub.d/10_linux.in: ... and here.
44285 2008-06-19 Robert Millan <rmh@aybabtu.com>
44287 * kern/main.c (grub_main): Export `prefix' variable immediately
44288 after it has been set by grub_machine_set_prefix().
44290 2008-06-19 Robert Millan <rmh@aybabtu.com>
44292 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44293 search result when not saving to variable, not the other way around.
44294 When saving to variable, abort iteration as soon as a match is found.
44296 2008-06-19 Robert Millan <rmh@aybabtu.com>
44298 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44299 check for partition that provides /boot/grub. Its logic is flawed,
44300 as it prevents prepare_grub_to_access_device() from being called
44303 2008-06-19 Robert Millan <rmh@aybabtu.com>
44305 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44306 "insmod" command directly when abstraction modules are needed,
44307 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44308 since it had already been processed).
44310 2008-06-19 Pavel Roskin <proski@gnu.org>
44312 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44313 changed. This is needed in case GRUB_LIBDIR changes.
44314 * conf/i386-ieee1275.rmk: Likewise.
44315 * conf/i386-linuxbios.rmk: Likewise.
44316 * conf/i386-pc.rmk: Likewise.
44317 * conf/powerpc-ieee1275.rmk: Likewise.
44319 2008-06-18 Pavel Roskin <proski@gnu.org>
44321 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44322 kernel_elf_symlist.c to symlist.c for consistency with other
44323 architectures. Update all users.
44324 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44326 2008-06-18 Robert Millan <rmh@aybabtu.com>
44328 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44331 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44332 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44333 a RAID device, run setup() for all members independently on whether
44334 LVM abstraction is being used.
44335 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44336 If grub-mkimage has set `*install_dos_part == -2', don't override this
44338 Perform *install_dos_part adjustments independently on whether
44339 we're embedding or not.
44340 Clarify error message when image is too big for embedding.
44341 Remove duplicate *install_dos_part stanza.
44343 2008-06-17 Robert Millan <rmh@aybabtu.com>
44345 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44346 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44348 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44349 values in grub_ofconsole_normal_color and
44350 grub_ofconsole_highlight_color (they're not directly related to
44351 background and foreground).
44352 (grub_ofconsole_setcolorstate): Extract background and foreground
44353 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44355 2008-06-17 Robert Millan <rmh@aybabtu.com>
44357 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44358 /boot/grub for the check in last commit, not /boot (they could be
44359 different partitions).
44361 2008-06-16 Robert Millan <rmh@aybabtu.com>
44363 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44364 asked to setup access for the same partition that provides /boot,
44365 don't bother using UUIDs since our root already has the value we
44368 2008-06-16 Robert Millan <rmh@aybabtu.com>
44370 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44372 Patch from Sven Mueller <sven@debian.org>.
44374 2008-06-16 Robert Millan <rmh@aybabtu.com>
44376 * util/update-grub.in: Check for $EUID instead of $UID.
44377 Reported by Vincent Zweije.
44379 2008-06-16 Bean <bean123ch@gmail.com>
44381 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44382 (grub_ext2_read_block): Likewise.
44383 (grub_ext2_read_inode): Likewise.
44384 (grub_ext2_mount): Likewise.
44385 (grub_ext2_close): Likewise.
44386 (grub_ext3_get_journal): Removed.
44388 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44389 (grub_reiserfs_read_symlink): Likewise.
44390 (grub_reiserfs_mount): Likewise.
44391 (grub_reiserfs_open): Likewise.
44392 (grub_reiserfs_read): Likewise.
44393 (grub_reiserfs_close): Likewise.
44394 (grub_reiserfs_get_journal): Removed.
44396 * fs/fshelp.c (grub_fshelp_read): Removed.
44397 (grub_fshelp_map_block): Likewise.
44399 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44400 (grub_fshelp_journal): Likewise.
44401 (grub_fshelp_read): Likewise.
44402 (grub_fshelp_map_block): Likewise.
44404 2008-06-16 Pavel Roskin <proski@gnu.org>
44406 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44407 floating point anymore.
44408 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44410 2008-06-15 Pavel Roskin <proski@gnu.org>
44412 * commands/ls.c (grub_ls_list_files): Use integer calculations
44413 for human readable format, avoid floating point use.
44414 * kern/misc.c (grub_ftoa): Remove.
44415 (grub_vsprintf): Remove floating point support.
44417 2008-06-15 Robert Millan <rmh@aybabtu.com>
44419 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44421 Reported by Max Vozeler.
44423 2008-06-15 Robert Millan <rmh@aybabtu.com>
44425 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44426 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44428 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44429 the beginning of the prefix.
44431 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44432 It is assumed that if we have a memdisk, grub-mkimage has set
44433 grub_prefix to include the "(memdisk)" drive in it.
44435 2008-06-15 Robert Millan <rmh@aybabtu.com>
44437 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44438 Initialize keyboard controller after registering the terminal, so that
44439 grub_printf() can be called from grub_keyboard_controller_init().
44441 2008-06-15 Robert Millan <rmh@aybabtu.com>
44443 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44444 extent-btree which is written as big endian on disk.
44445 Reported by Alain Greppin <al@chilibi.org>.
44447 2008-06-14 Robert Millan <rmh@aybabtu.com>
44449 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44450 * util/i386/pc/grub-install.in (modules): Likewise.
44452 2008-06-13 Pavel Roskin <proski@gnu.org>
44454 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44456 2008-06-13 Bean <bean123ch@gmail.com>
44458 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44460 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44462 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44463 to indicate sparse block.
44465 2008-06-12 Pavel Roskin <proski@gnu.org>
44467 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44468 number, grub_fshelp_read() does it for us.
44470 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44471 linear disk read with journal translation.
44472 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44473 * include/grub/fshelp.h: Declare grub_fshelp_read().
44475 2008-06-09 Pavel Roskin <proski@gnu.org>
44477 * fs/minix.c (grub_minix_mount): Handle error reading
44480 2008-06-08 Robert Millan <rmh@aybabtu.com>
44482 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44483 don't append the RAID prefix afterwards.
44484 Reported by Clint Adams.
44486 2008-06-08 Robert Millan <rmh@aybabtu.com>
44488 Based on description from Pavel:
44489 * kern/disk.c (grub_disk_check_range): Rename to ...
44490 (grub_disk_adjust_range): ... this. Add a comment explaining the
44491 tasks performed by this function.
44493 2008-06-08 Robert Millan <rmh@aybabtu.com>
44495 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44496 `num_serial' (for consistency with other variables).
44497 (struct grub_ntfs_data): Add `uuid' member.
44498 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44499 (grub_ntfs_uuid): New function.
44500 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44502 2008-06-07 Pavel Roskin <proski@gnu.org>
44504 * util/biosdisk.c (open_device): Revert last change to the
44505 function, it broke installation. The sector needs to be
44506 different dependent on which device is opened.
44508 2008-06-06 Robert Millan <rmh@aybabtu.com>
44510 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44511 rest of GRUB, and breakage doesn't happen if its value were modified.
44513 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44514 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44515 a constant (same value).
44516 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44517 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44519 2008-06-06 Robert Millan <rmh@aybabtu.com>
44521 * util/biosdisk.c (open_device): Do not modify sector offset when
44522 accessing a partition. kern/disk.c already handles this for us.
44524 2008-06-06 Robert Millan <rmh@aybabtu.com>
44526 * util/grub-emu.c (grub_machine_init): Move code in this function from
44528 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44529 segfault in case grub_printf() is called).
44531 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44532 grub_probe. Update all users not to explicitly add it again.
44533 (grub_device): New variable; contains corresponding device for grubdir.
44534 (fs_module, partmap_module, devabstraction_module): Pass
44535 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44538 2008-06-05 Robert Millan <rmh@aybabtu.com>
44540 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44541 is found, print it (same layout as with labels).
44543 2008-06-04 Robert Millan <rmh@aybabtu.com>
44545 * util/biosdisk.c (get_drive): Rename to ...
44546 (find_grub_drive): ... this. Update all users.
44548 (get_os_disk): Rename to ...
44549 (convert_system_partition_to_system_disk): ... this. Update all users.
44551 (find_drive): Rename to ...
44552 (find_system_device): ... this. Update all users.
44554 2008-06-04 Robert Millan <rmh@aybabtu.com>
44556 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44557 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44558 (make_device_map): Likewise.
44560 2008-06-01 Robert Millan <rmh@aybabtu.com>
44562 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44563 before dereferencing it.
44565 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44566 union with fat12/fat16-specific ones. Add some new fields, including
44567 `num_serial' for both versions.
44568 (struct grub_fat_data): Add `uuid' member.
44569 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44570 names. Initialize `data->uuid' using `num_serial'.
44571 (grub_fat_uuid): New function.
44572 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44574 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44575 (grub_reiserfs_uuid): New function.
44576 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44579 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44580 (grub_xfs_uuid): New function.
44581 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44583 2008-06-01 Robert Millan <rmh@aybabtu.com>
44585 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44586 code that is backward compatible with pre-uuid search command.
44588 2008-05-31 Robert Millan <rmh@aybabtu.com>
44590 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44591 floppies after everything else, to ensure floppy drive isn't accessed
44592 unnecessarily (patch from Bean).
44594 2008-05-31 Robert Millan <rmh@aybabtu.com>
44596 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44597 not print device names when we were asked to set a variable.
44599 2008-05-31 Robert Millan <rmh@aybabtu.com>
44601 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44602 using "cursor-on" and "cursor-off" commands (understood at least by
44603 the Open Firmware flavour on OLPC).
44605 2008-05-31 Michael Gorven <michael@gorven.za.net>
44607 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44608 on and off sequences.
44610 2008-05-31 Robert Millan <rmh@aybabtu.com>
44612 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44613 * util/update-grub.in: Likewise.
44615 2008-05-30 Pavel Roskin <proski@gnu.org>
44617 * util/biosdisk.c (linux_find_partition): Simplify logic and
44618 make the code more universal. Keep special processing for
44619 devfs, but use a simple rule for all other devices. If the
44620 device ends with a number, append 'p' and the partition number.
44621 Otherwise, append only the partition number.
44623 2008-05-30 Robert Millan <rmh@aybabtu.com>
44625 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44626 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44627 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44628 the `root' parameter to Linux.
44630 2008-05-30 Robert Millan <rmh@aybabtu.com>
44632 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44633 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44634 --fs_uuid with --fs-uuid.
44635 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44636 all filesystems support them).
44638 2008-05-30 Robert Millan <rmh@aybabtu.com>
44640 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44641 grub_printf() flags, since we're printing in units of 2 bytes.
44643 2008-05-30 Robert Millan <rmh@aybabtu.com>
44645 * util/grub.d/00_header.in: Remove obsolete comment referencing
44646 convert_system_path_to_grub_path().
44647 * util/update-grub.in: Likewise.
44648 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44649 (convert_system_path_to_grub_path): Add a warning message explaining
44650 that this function is deprecated. Rely on is_path_readable_by_grub()
44651 for the readability checks.
44652 (font_path): Use is_path_readable_by_grub() for the readability
44653 check rather than convert_system_path_to_grub_path().
44655 2008-05-30 Robert Millan <rmh@aybabtu.com>
44657 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44658 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44659 converting it first.
44660 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44661 grub.cfg for access to font file, and afterwards call it again to set
44664 2008-05-30 Robert Millan <rmh@aybabtu.com>
44666 * commands/search.c (options): Add --fs_uuid option.
44667 (search_fs_uuid): New function.
44668 (grub_cmd_search): Fix --set argument passing.
44669 Use search_fs_uuid() when requested via --fs_uuid.
44670 (grub_search_init): Update help message.
44671 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44672 and redeclare it as an array of 16-bit words.
44673 (grub_ext2_uuid): New function.
44674 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44675 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44676 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44677 (GRUB_DEVICE_BOOT_UUID): New variables.
44678 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44679 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44681 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44682 just assume `root' variable has the right value.
44683 * util/grub.d/10_linux.in: Likewise.
44684 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44686 (main): Recognise `-t fs_uuid' argument.
44688 2008-05-30 Robert Millan <rmh@aybabtu.com>
44690 * util/biosdisk.c (map): Redefine structure to hold information
44691 about GRUB drive name.
44692 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44694 (call_hook): Remove.
44695 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44696 member. Assume drive has partitions.
44697 (grub_util_biosdisk_open): Access device names via `.device' struct
44699 (open_device): Likewise.
44700 (find_drive): Likewise.
44701 (read_device_map): Adjust map[] usage to match the new struct
44702 definition. Don't check for duplicates (still possible, but not cheap
44704 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44705 (make_device_name): Remove assumption of BIOS-like drive names.
44707 2008-05-30 Pavel Roskin <proski@gnu.org>
44709 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44710 compiling execute.c doesn't need grub_script.tab.h anymore.
44711 (normal/command.c_DEPENDENCIES): Likewise.
44712 (normal/function.c_DEPENDENCIES): Likewise.
44713 * conf/i386-ieee1275.rmk: Likewise.
44714 * conf/i386-linuxbios.rmk: Likewise.
44715 * conf/i386-pc.rmk: Likewise.
44716 * conf/powerpc-ieee1275.rmk: Likewise.
44717 * conf/sparc64-ieee1275.rmk: Likewise.
44719 2008-05-29 Pavel Roskin <proski@gnu.org>
44721 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44722 when scanning metadata for volume group name.
44724 * include/grub/script.h: Don't include grub_script.tab.h. It's
44725 a generated file, which may only be included from the files with
44726 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44727 use union YYSTYPE, as the later allows forward declaration.
44728 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44730 2008-05-29 Robert Millan <rmh@aybabtu.com>
44732 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44733 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44734 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44735 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44738 2008-05-29 Robert Millan <rmh@aybabtu.com>
44740 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44741 control key combinations.
44743 2008-05-29 Robert Millan <rmh@aybabtu.com>
44745 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44746 * util/ieee1275/grub-install.in: ... to here.
44747 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44748 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44749 (grub_install_SOURCES): Likewise.
44751 2008-05-29 Robert Millan <rmh@aybabtu.com>
44753 * fs/affs.c: Update copyright year.
44754 * fs/ext2.c: Likewise.
44755 * fs/fshelp.c: Likewise.
44756 * fs/hfsplus.c: Likewise.
44757 * fs/ntfs.c: Likewise.
44758 * fs/xfs.c: Likewise.
44759 * include/grub/fshelp.h: Likewise.
44760 * util/grub-mkdevicemap.c: Likewise.
44762 2008-05-28 Robert Millan <rmh@aybabtu.com>
44764 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44765 might need to be fatfs to support some firmware implementations
44768 2008-05-28 Robert Millan <rmh@aybabtu.com>
44770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44772 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44773 (make_device_map): Likewise.
44775 2008-05-20 Bean <bean123ch@gmail.com>
44777 * fs/fshelp.c (grub_fshelp_map_block): New function.
44778 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44779 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44781 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44782 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44783 (grub_fshelp_journal): New structure.
44784 (grub_fshelp_map_block): New function prototype.
44785 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44786 (grub_fshelp_map_block): Likewise.
44788 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44789 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44790 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44791 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44792 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44793 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44794 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44795 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44796 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44797 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44798 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44799 (grub_ext2_sblock): New members for journal support.
44800 (grub_ext3_journal_header): New structure.
44801 (grub_ext3_journal_revoke_header): Likewise.
44802 (grub_ext3_journal_block_tag): Likewise.
44803 (grub_ext3_journal_sblock): Likewise.
44804 (grub_fshelp_node): New members logfile and journal.
44805 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44806 grub_fshelp_map_block to get real block number.
44807 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44809 (grub_ext2_read_inode): Likewise.
44810 (grub_ext3_get_journal): New function.
44811 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44812 (grub_ext2_close): Release memory used by journal.
44814 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44815 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44816 (grub_reiserfs_transaction_header): Renamed to
44817 grub_reiserfs_description_block, replace field data with real_blocks.
44818 (grub_reiserfs_commit_block): New structure.
44819 (grub_reiserfs_data): New member journal.
44820 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44822 (grub_reiserfs_read_symlink): Likewise.
44823 (grub_reiserfs_iterate_dir): Likewise.
44824 (grub_reiserfs_open): Likewise.
44825 (grub_reiserfs_read): Likewise.
44826 (grub_reiserfs_get_journal): New function.
44827 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44828 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44829 using grub_reiserfs_get_journal.
44830 (grub_reiserfs_close): Release memory used by journal.
44832 * fs/affs.c (grub_affs_read_block): Change block type to
44833 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44835 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44837 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44839 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44841 * fs/udf.c (grub_udf_read_block): Change block type to
44842 grub_disk_addr_t. Use type cast to avoid warning.
44844 * fs/xfs.c (grub_xfs_read_block): Likewise.
44846 2008-05-16 Christian Franke <franke@computer.org>
44848 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44849 to ensure that break with ESC will always work.
44850 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44851 Remove ESC from keyboard queue.
44853 2008-05-16 Christian Franke <franke@computer.org>
44855 * util/biosdisk.c: [__CYGWIN__] Add includes.
44856 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44857 (get_os_disk): Move variable declarations to OS specific
44858 parts to avoid warning.
44859 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44860 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44861 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44863 * util/getroot.c: [__CYGWIN__] Add includes.
44864 (strip_extra_slashes): Fix "/" case.
44865 [__CYGWIN__] (get_win32_path): New function.
44866 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44867 [__CYGWIN__] (find_root_device): Disable.
44868 [__CYGWIN__] (get_bootsec_serial): New function.
44869 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44870 [__linux__] (grub_guess_root_device): Add early returns to simplify
44872 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44873 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44874 check for Linux only.
44876 2008-05-15 Bean <bean123ch@gmail.com>
44878 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44879 keyboard hang problem in apple's intel mac.
44881 2008-05-09 Robert Millan <rmh@aybabtu.com>
44883 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44885 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44886 (make_device_map): Likewise.
44887 Reported by Aurelien Jarno <aurel32@debian.org>
44889 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44891 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44892 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44893 (make_device_map): Output entries for xvd type disks.
44895 2008-05-07 Robert Millan <rmh@aybabtu.com>
44897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44899 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44900 (make_device_map): Likewise.
44901 Reported by Roland Dreier <rdreier@cisco.com>
44903 2008-05-07 Robert Millan <rmh@aybabtu.com>
44905 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44906 grub_strstr() call. Correct a few mistakes in failure path handling.
44908 2008-05-06 Robert Millan <rmh@aybabtu.com>
44910 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44911 Do not print a trailing slash (therefore, the root directory is an
44913 (convert_system_path_to_grub_path): Do not remove trailing slash
44914 from make_system_path_relative_to_its_root() output.
44916 * util/i386/pc/grub-install.in: Add trailing slash to output from
44917 make_system_path_relative_to_its_root().
44919 2008-05-06 Robert Millan <rmh@aybabtu.com>
44921 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44922 ensures that output lines aren't intermangled with those sent to
44923 stderr (via grub_util_info()).
44924 * util/grub-probe.c (grub_refresh): Likewise.
44925 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44927 2008-05-05 Christian Franke <franke@computer.org>
44929 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44930 Add Cygwin device names.
44931 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44932 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44933 (check_device): Return error instead of success on empty name.
44934 (make_device_map): Move label inside linux specific code to
44935 prevent compiler warning.
44937 2008-04-30 Robert Millan <rmh@aybabtu.com>
44939 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44940 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44942 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44944 2008-04-29 Robert Millan <rmh@aybabtu.com>
44946 * docs/grub.cfg: New file (example GRUB configuration).
44948 2008-04-26 Robert Millan <rmh@aybabtu.com>
44950 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44951 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44952 and `disk/ieee1275/nand.c'.
44954 2008-04-25 Bean <bean123ch@gmail.com>
44956 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44959 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44960 change the buffer size to 4096 for cdrom device.
44962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44964 (_linux_mod_SOURCES): New variable.
44965 (_linux_mod_CFLAGS): Likewise.
44966 (_linux_mod_LDFLAGS): Likewise.
44967 (linux_mod_SOURCES): Likewise.
44968 (linux_mod_CFLAGS): Likewise.
44969 (linux_mod_LDFLAGS): Likewise.
44970 (nand_mod_SOURCES): Likewise.
44971 (nand_mod_CFLAGS): Likewise.
44972 (nand_mod_LDFLAGS): Likewise.
44974 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44975 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44976 type property. (nand device in olpc don't have this property)
44978 * include/grub/disk.h (grub_disk_dev_id): New macro
44979 GRUB_DISK_DEVICE_NAND_ID.
44981 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44982 function prototype.
44983 (grub_rescue_cmd_initrd): Likewise.
44985 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44986 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44987 ofw_cif_handler and ofw_idt, adjust padding number.
44989 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44990 GRUB_MACHINE_IEEE1275 is defined.
44992 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44993 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44995 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44996 on nested function heap_init.
44997 (grub_upper_mem): New variable for i386-ieee1275.
44998 (grub_get_extended_memory): New function for i386-ieee1275.
44999 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45001 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45002 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45005 * loader/i386/ieee1275/linux.c: New file.
45007 * loader/i386/ieee1275/linux_normal.c: New file.
45009 * disk/ieee1275/nand.c: New file.
45011 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45013 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45015 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45017 2008-04-18 Robert Millan <rmh@aybabtu.com>
45019 Restructures early code path on ieee1275 to unify grub_main() as
45020 the first C function that is executed in every platform.
45022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45023 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45025 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45026 * kern/ieee1275/cmain.c (cmain): Rename to ...
45027 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45028 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45031 2008-04-18 Robert Millan <rmh@aybabtu.com>
45033 * util/update-grub.in: Fix syntax error when setting
45034 `GRUB_PRELOAD_MODULES'.
45035 Reported by Stephane Chazelas <stephane@artesyncp.com>
45037 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45039 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45040 section into account, newer toolchains generate unique build ids
45041 * configure.ac: remove the test for --build-id=none acceptance,
45042 we want build ids to be preserved
45043 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45044 far from other sections don't cause the raw binary images grow
45047 2008-04-15 Robert Millan <rmh@aybabtu.com>
45049 * disk/lvm.c: Update copyright year.
45050 * kern/misc.c: Likewise.
45052 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45054 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45055 there is no memory left for physical volume name.
45057 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45059 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45060 volume name mapping to support bigger than 9 character names properly.
45062 2008-04-13 Robert Millan <rmh@aybabtu.com>
45064 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45065 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45067 2008-04-13 Christian Franke <franke@computer.org>
45069 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45070 to create a floppy emulation boot CD when non emulation mode
45072 Enable Joliet CD filesystem extension.
45074 2008-04-13 Robert Millan <rmh@aybabtu.com>
45076 * kern/misc.c (grub_strncat): Fix off-by-one error.
45077 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45079 * kern/env.c (grub_env_context_close): Clear current context, not
45081 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45083 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45085 2008-04-13 Robert Millan <rmh@aybabtu.com>
45087 Improve robustness when handling LVM.
45089 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45090 (and leave `*p' unmodified).
45091 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45093 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45094 iterating through it.
45095 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45097 (grub_lvm_scan_device): Check the return value (and fail gracefully
45098 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45099 Don't assume `vg->pvs != NULL' when iterating through it.
45101 2008-04-13 Robert Millan <rmh@aybabtu.com>
45103 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45104 * genmk.rb (partmap): New variable.
45105 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45106 (#{partmap}): New target rule.
45107 * genpartmaplist.sh: New file.
45108 * Makefile.in (pkglib_DATA): Add partmap.lst.
45109 (partmap.lst): New target rule.
45110 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45111 modules (including all partition maps), instead of preloading them.
45113 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45115 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45116 `linux-boot-prober' (if installed) to detect other operating
45117 systems which are installed on the computer and add them to
45119 * conf/common.rmk: Build and install 30_os-prober.
45121 2008-04-12 Robert Millan <rmh@aybabtu.com>
45123 * kern/powerpc/ieee1275/init.c: Move from here ...
45124 * kern/ieee1275/init.c: ... to here. Update all users.
45126 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45127 * kern/ieee1275/cmain.c: ... to here. Update all users.
45129 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45130 * kern/ieee1275/openfw.c: ... to here. Update all users.
45132 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45133 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45135 2008-04-10 Pavel Roskin <proski@gnu.org>
45137 * configure.ac: Always use "_cv_" in cache variables for
45138 compatibility with Autoconf 2.62.
45140 2008-04-07 Robert Millan <rmh@aybabtu.com>
45142 Revert grub/machine/init.h addition by Pavel (since it breaks on
45143 i386-ieee1275 and others):
45144 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45145 * util/powerpc/ieee1275/misc.c: Likewise.
45147 2008-04-07 Robert Millan <rmh@aybabtu.com>
45149 * util/grub-probe.c (probe): Improve error message.
45151 2008-04-07 Robert Millan <rmh@aybabtu.com>
45153 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45154 (this prevents the presence of a bogus entry from ruining the whole
45157 2008-04-06 Pavel Roskin <proski@gnu.org>
45159 * util/biosdisk.c: Include grub/util/biosdisk.h.
45160 * util/grub-fstest.c (execute_command): Make static.
45161 * util/grub-mkdevicemap.c (check_device): Likewise.
45162 * util/i386/pc/misc.c: Include grub/machine/init.h.
45163 * util/powerpc/ieee1275/misc.c: Likewise.
45164 * util/lvm.c: Include grub/util/lvm.h.
45165 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45167 * util/raid.c: Include grub/util/raid.h.
45168 (grub_util_getdiskname): Make static.
45170 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45171 grub_hostfs_fini(), as they are called from grub_init_all() and
45172 grub_fini_all() respectively. This fixes an infinite loop in
45173 grub-fstest due to double registration of hostfs.
45174 Reported by Christian Franke <Christian.Franke@t-online.de>
45176 2008-04-05 Pavel Roskin <proski@gnu.org>
45178 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45179 all 8 functions. Otherwise, probe function 0 only.
45181 2008-04-04 Pavel Roskin <proski@gnu.org>
45183 * commands/lspci.c (grub_lspci_iter): Print the bus number
45186 * commands/lspci.c (grub_pci_classes): Fix typos.
45187 (grub_lspci_iter): Don't print func twice. Print vendor ID
45188 before device ID, as it's normally done.
45190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45191 Fix signedness warnings.
45192 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45194 * util/ieee1275/get_disk_name.c: Include config.h so that
45195 _GNU_SOURCE is defined and getline() is declared. Mark an
45196 unused argument as such. Fix a signedness warning.
45198 2008-04-02 Pavel Roskin <proski@gnu.org>
45200 * genkernsyms.sh.in: Use more robust assignments for CC and
45201 srcdir. Quote srcdir.
45202 * gensymlist.sh.in: Likewise. Assert at the compile time that
45203 the symbol table is not empty.
45205 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45206 * fs/cpio.c (grub_cpio_read): Likewise.
45208 2008-04-01 Pavel Roskin <proski@gnu.org>
45210 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45211 * disk/host.c (grub_host_open): Likewise.
45212 * disk/loopback.c (grub_loopback_open): Likewise.
45213 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45214 disk->id as in disk/host.c, not a multi-character constant.
45216 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45217 later is obsolete, potentially dangerous and sets a bad example.
45218 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45219 * util/misc.c (grub_util_get_image_size): Likewise.
45221 * disk/loopback.c (options): Improve help for "--partitions".
45223 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45224 options to align them with the short options, e.g. "echo -e".
45226 2008-03-31 Bean <bean123ch@gmail.com>
45228 * video/reader/png.c (grub_png_data): New member is_16bit and
45230 (grub_png_decode_image_header): Detect 16 bit png image.
45231 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45232 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45233 (grub_video_reader_png): Release memory occupied by image_data.
45235 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45237 (grub_nfs_mount): Skip the test for sector per cluster.
45239 * include/grub/ntfs.h (MAX_SPC): Removed.
45241 2008-03-31 Bean <bean123ch@gmail.com>
45243 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45244 (grub_probe_SOURCES): Add fs/afs.c.
45245 (grub_fstest_SOURCES): Likewise.
45246 (afs_mod_SOURCES): New variable.
45247 (afs_mod_CFLAGS): Likewise.
45248 (afs_mod_LDFLAGS): Likewise.
45250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45251 (grub_emu_SOURCES): Likewise.
45253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45261 * fs/afs.c: New file.
45263 2008-03-30 Pavel Roskin <proski@gnu.org>
45265 * disk/host.c: Include grub/misc.h to fix a warning.
45266 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45267 warnings about implicit declarations.
45269 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45271 * include/grub/i386/loader.h: Change declaration of
45272 grub_linux_boot() to match what grub_loader_set() expects.
45273 * util/getroot.c (grub_guess_root_device): Return const char* to
45275 * util/grub-probe.c (probe): Fix a warning about uninitialized
45276 abstraction_name variable.
45277 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45278 second argument as unused to fix a warning.
45280 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45281 missing grub_error() call.
45283 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45284 2.60 and newer uses it to define datadir.
45286 * commands/sleep.c: Fix warning about implicit declaration.
45287 * disk/memdisk.c: Likewise.
45288 * loader/aout.c: Likewise.
45289 * loader/i386/bsd_normal.c: Likewise.
45290 * util/grub-probe.c: Likewise.
45292 * commands/i386/cpuid.c (has_longmode): Make static.
45293 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45294 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45296 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45297 GDT. This is more robust, as %ds can change.
45298 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45299 calling real_to_prot().
45300 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45302 2008-03-28 Pavel Roskin <proski@gnu.org>
45304 * kern/i386/pc/startup.S: Assert that uncompressed functions
45305 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45306 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45307 code, as they push parts of the code (error handlers) beyond
45308 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45309 code as correctness and size.
45311 2008-03-28 Pavel Roskin <proski@gnu.org>
45313 * kern/i386/pc/startup.S
45314 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45315 data block address to the real mode, keep offset minimal. This
45316 works around a bug in AWARD BIOS on old Athlon systems, which
45317 makes CD detection hang.
45319 2008-03-26 Pavel Roskin <proski@gnu.org>
45321 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45323 * include/grub/normal.h: Add grub_parse_color_name_pair()
45326 2008-03-24 Bean <bean123ch@gmail.com>
45328 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45329 (cd_count): Removed.
45330 (cd_drive): New variable.
45331 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45332 (grub_biosdisk_call_hook): Likewise.
45333 (grub_biosdisk_iterate): Change cdrom detection method.
45334 (grub_biosdisk_open): Replace cd_start with cd_drive.
45335 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45336 detect cdrom device.
45338 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45340 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45341 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45342 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45343 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45344 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45345 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45346 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45347 (grub_biosdisk_cdrp): New structure.
45348 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45352 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45355 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45358 2008-03-20 Robert Millan <rmh@aybabtu.com>
45360 Remove 2 TiB limit in ata.mod.
45361 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45362 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45363 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45364 grub_uint64_t instead of grub_uint32_t.
45366 2008-03-05 Bean <bean123ch@gmail.com>
45368 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45369 (grub_multiboot): Set boot device.
45371 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45373 2008-03-02 Bean <bean123ch@gmail.com>
45375 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45378 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45380 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45383 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45386 * docs/fdl.texi: New file.
45388 * docs/mdate-sh: New file. Copied from gnulib.
45389 * docs/texinfo.tex: Likewise.
45391 * config.guess: Updated from gnulib.
45392 * install-sh: Likewise.
45394 2008-02-28 Robert Millan <rmh@aybabtu.com>
45396 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45397 (aout_mod_SOURCES): New variable.
45398 (aout_mod_CFLAGS): Likewise.
45399 (aout_mod_LDFLAGS): Likewise.
45401 * conf/i386-ieee1275.rmk: Likewise.
45403 2008-02-28 Robert Millan <rmh@aybabtu.com>
45405 * util/update-grub.in: Reorganise terminal validity check. Accept
45406 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45407 Based on suggestion by Franklin PIAT.
45409 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45411 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45413 * util/getroot.c (grub_util_check_block_device): New function that
45414 returns the given argument if it is a block device and returns NULL else.
45415 * util/grub-probe.c (argument_is_device): New variable.
45416 (probe): Promote device_name from a variable to an argument. Receive
45417 device_name from grub_util_check_block_device() if path is NULL and from
45418 grub_guess_root_device() else. Do not free() device_name anymore.
45419 (options): Introduce new parameter '-d, --device'.
45420 (main): Add description of the new parameter to the help screen.
45421 Rename path variable to argument. Set argument_is_device if the '-d'
45422 option is given. Pass argument to probe() depending on
45423 argument_is_device.
45425 2008-02-24 Bean <bean123ch@gmail.com>
45427 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45428 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45429 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45430 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45431 (GRUB_ISO9660_VOLDESC_END): Likewise.
45432 (grub_iso9660_primary_voldesc): New member escape.
45433 (grub_iso9660_data): New member joliet.
45434 (grub_iso9660_convert_string): New function.
45435 (grub_iso9660_mount): Detect joliet extension.
45436 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45437 (grub_iso9660_iso9660_label): Likewise.
45439 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45440 (grub_setup_SOURCES): Add fs/udf.c.
45441 (grub_fstest_SOURCES): Likewise.
45442 (udf_mod_SOURCES): New variable.
45443 (udf_mod_CFLAGS): Likewise.
45444 (udf_mod_LDFLAGS): Likewise.
45446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45447 (grub_emu_SOURCES): Likewise.
45449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45453 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45457 * fs/udf.c: New file.
45459 2008-02-24 Robert Millan <rmh@aybabtu.com>
45461 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45462 (normal/lexer.c_DEPENDENCIES): New variables.
45463 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45464 (normal/lexer.c_DEPENDENCIES): Likewise.
45465 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45466 (normal/lexer.c_DEPENDENCIES): Likewise.
45467 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45468 (normal/lexer.c_DEPENDENCIES): Likewise.
45469 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45470 (normal/lexer.c_DEPENDENCIES): Likewise.
45471 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45472 (normal/lexer.c_DEPENDENCIES): Likewise.
45474 2008-02-23 Robert Millan <rmh@aybabtu.com>
45476 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45477 since they were intended to be in hex. This didn't break previously
45478 because of a bug in gpt_partition_map_iterate() (see below).
45480 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45481 when checking the validity of GPT header.
45482 Remove `partno', since it always provides the same information as `i'.
45484 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45486 * include/grub/efi/time.h: Fix a wrong comment.
45488 2008-02-19 Pavel Roskin <proski@gnu.org>
45490 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45493 2008-02-19 Bean <bean123ch@gmail.com>
45495 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45496 (aout_mod_SOURCES): New variable.
45497 (aout_mod_CFLAGS): Likewise.
45498 (aout_mod_LDFLAGS): Likewise.
45499 (_bsd_mod_SOURCES): New variable.
45500 (_bsd_mod_CFLAGS): Likewise.
45501 (_bsd_mod_LDFLAGS): Likewise.
45502 (bsd_mod_SOURCES): New variable.
45503 (bsd_mod_CFLAGS): Likewise.
45504 (bsd_mod_LDFLAGS): Likewise.
45506 * include/grub/aout.h: New file.
45508 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45510 * include/grub/i386/bsd.h: New file.
45512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45515 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45516 function is called, so that it's possible to change it inside the hook.
45517 (grub_elf64_load): Likewise.
45518 (grub_elf_file): Don't close the file if elf header is not found.
45519 (grub_elf_close): Close the file if grub_elf_file fails (The new
45520 grub_elf_file won't close it).
45521 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45522 (grub_elf64_size): Likewise.
45524 * kern/i386/loader.S (grub_unix_real_boot): New function.
45526 * loader/aout.c: New file.
45528 * loader/i386/bsd.c: New file.
45530 * loader/i386/bsd_normal.c: New file.
45532 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45534 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45535 can test other formats.
45537 2008-02-19 Robert Millan <rmh@aybabtu.com>
45539 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45540 (grub_gpt_partition_type_empty): Redefine with macro from
45541 `<grub/gpt_partition.h>'.
45542 (gpt_partition_map_iterate): Adjust partition type comparison.
45544 Export `entry' as partmap-specific `part.data' struct.
45545 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45547 * include/grub/gpt_partition.h (grub_gpt_header)
45548 (grub_gpt_partentry): ... to here (new file).
45550 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45552 (grub_gpt_partition_type_bios_boot): New const variable, defined
45553 with macro from `<grub/gpt_partition.h>'.
45555 (setup): Replace `first_start' with `embed_region', which keeps
45556 track of the embed region (and is partmap-agnostic).
45558 Replace find_first_partition_start() with find_usable_region(),
45559 which finds a usable region for embedding using partmap-specific
45560 knowledge (supports PC/MSDOS and GPT).
45562 Fix all assumptions that the embed region start at sector 1, using
45563 `embed_region.start' from now on. Similarly, use `embed_region.end'
45564 rather than `first_start' to calculate available size.
45566 In grub_util_info() message, replace "into after the MBR" with an
45567 indication of the specific sector our embed region starts at.
45569 2008-02-19 Robert Millan <rmh@aybabtu.com>
45571 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45572 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45573 `commands/reboot.c'.
45574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45575 (halt_mod_SOURCES): Likewise.
45576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45577 (halt_mod_SOURCES): Likewise.
45579 2008-02-17 Christian Franke <franke@computer.org>
45581 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45583 2008-02-17 Robert Millan <rmh@aybabtu.com>
45585 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45586 set `first_start' to 0 for non-PC/MSDOS partition maps.
45588 2008-02-16 Robert Millan <rmh@aybabtu.com>
45590 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45591 do not assume partition map is PC/MSDOS before performing checks that
45592 are specific to that layout.
45594 2008-02-13 Robert Millan <rmh@aybabtu.com>
45596 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45597 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45598 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45600 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45602 * configure.ac: Only a cosmetic change on the handling of
45603 -fno-stack-protector.
45605 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45607 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45608 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45610 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45611 (halt_mod_SOURCES): New variable.
45612 (halt_mod_CFLAGS): Likewise.
45613 (halt_mod_LDFLAGS): Likewise.
45614 (reboot_mod_SOURCES): Likewise.
45615 (reboot_mod_CFLAGS): Likewise.
45616 (reboot_mod_LDFLAGS): Likewise.
45618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45619 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45621 (halt_mod_SOURCES): Likewise.
45622 (reboot_mod_SOURCES): Likewise.
45624 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45625 commands/i386/pc/reboot.c by commands/reboot.c.
45626 (reboot_mod_SOURCES): Likewise.
45628 * commands/i386/pc/reboot.c: merge this file ...
45630 * commands/ieee1275/reboot.c: ... and this file ...
45632 * commands/reboot.c: ... to this file.
45633 Add some precompiler directive to include the correct header for
45636 * commands/ieee1275/halt.c: move this file ...
45638 * commands/halt.c: ... to here.
45639 Add some precompiler directive to include the correct header for
45642 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45643 (grub_halt): Likewise.
45645 * kern/efi/efi.c (grub_reboot): New function.
45646 (grub_halt): Likewise.
45648 2008-02-12 Robert Millan <rmh@aybabtu.com>
45650 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45651 /dev (like it is done for /dev/mapper). This doesn't provide support
45652 for EVMS, but at least it is now easy to identify the problem when it
45655 2008-02-11 Robert Millan <rmh@aybabtu.com>
45657 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45658 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45659 comparing it with -1, not 0.
45661 2008-02-10 Robert Millan <rmh@aybabtu.com>
45663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45666 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45669 `disk/lvm.c' to the end of the list.
45670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45673 2008-02-10 Robert Millan <rmh@aybabtu.com>
45675 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45676 grub_print_error() instead. This will let user know why we're entering
45678 Based on suggestions from Sam Morris.
45680 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45682 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45683 on remaining N args, instead of "--" arg N times.
45685 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45687 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45688 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45689 pattern for unknown glyphs.
45691 2008-02-09 Robert Millan <rmh@aybabtu.com>
45693 * configure.ac: Probe for `help2man'.
45694 * Makefile.in (builddir): New variable.
45695 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45696 or otherwise add a few flags/options to it.
45697 (install-local): For every executable utility or script that is
45698 installed, invoke $(HELP2MAN) to install a manpage based on --help
45701 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45702 that it doesn't prevent --help from working in build tree.
45704 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45705 with `bug-grub@gnu.org'.
45706 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45707 * util/update-grub.in (usage): New function.
45708 Implement proper argument check, with support for --help and --version
45709 (as well as existing -y).
45711 2008-02-09 Christian Franke <franke@computer.org>
45713 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45714 avoid overwriting previous output.
45715 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45717 2008-02-09 Robert Millan <rmh@aybabtu.com>
45719 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45722 2008-02-09 Robert Millan <rmh@aybabtu.com>
45724 * commands/sleep.c: New file.
45725 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45726 (sleep_mod_SOURCES): New variable.
45727 (sleep_mod_CFLAGS): Likewise.
45728 (sleep_mod_LDFLAGS): Likewise.
45730 2008-02-09 Robert Millan <rmh@aybabtu.com>
45732 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45733 situations in which we can deduce the RAID size and the superblock
45736 2008-02-09 Robert Millan <rmh@aybabtu.com>
45738 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45739 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45740 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45742 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45743 and return a grub_diskmemberlist_t composed of physical array members.
45744 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45746 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45748 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45749 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45750 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45752 * util/grub-probe.c (probe): Move partmap probing code from here ...
45753 (probe_partmap): ... to here.
45754 (probe): Use probe_partmap() once for the disk we're probing, and
45755 additionally, when such disk contains a memberlist() struct member,
45756 once for each disk that is contained in the structure returned by
45759 2008-02-09 Robert Millan <rmh@aybabtu.com>
45761 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45762 environment variable to 'all' in order to obtain debug output from
45764 * util/i386/pc/grub-setup.c (main): Likewise.
45766 2008-02-08 Robert Millan <rmh@aybabtu.com>
45768 * disk/raid.c (grub_raid_scan_device): Check for
45769 `array->device[sb.this_disk.number]' rather than for
45770 `array->device[sb.this_disk.number]->name', since the latter is not
45771 guaranteed to be accessible.
45773 2008-02-08 Robert Millan <rmh@aybabtu.com>
45775 * disk/raid.c: Update copyright.
45776 * fs/cpio.c: Likewise.
45777 * include/grub/raid.h: Likewise.
45778 * loader/i386/pc/multiboot.c: Likewise.
45779 * util/hostfs.c: Likewise.
45781 2008-02-08 Robert Millan <rmh@aybabtu.com>
45783 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45784 to a grub_disk_t array.
45785 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45787 (grub_raid_scan_device): Replace `device[x].name' accesses with
45788 `device[x]->name'. Simplify initialization of `array->device[x]'.
45790 2008-02-08 Robert Millan <rmh@aybabtu.com>
45792 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45793 grub_dprintf() calls.
45794 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45797 2008-02-07 Christian Franke <franke@computer.org>
45799 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45800 instead of fseek and ftell to support large files.
45801 (grub_hostfs_read): Likewise.
45803 2008-02-07 Robert Millan <rmh@aybabtu.com>
45805 Patch from Jeroen Dekkers.
45806 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45807 failure, since successfully reading all array members might not be
45810 2008-02-06 Robert Millan <rmh@aybabtu.com>
45812 * util/grub-probe.c (probe): Simplify partmap probing (with the
45813 assumption that the first word up to the underscore equals to
45816 2008-02-06 Christian Franke <franke@computer.org>
45818 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45819 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45820 last block of a cpio or tar stream.
45821 Check for "TRAILER!!!" instead of any empty data
45822 block to detect last block of a cpio stream.
45823 (grub_cpio_dir): Fix constness of variable np.
45824 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45825 cpio or tar trailer is detected. This fixes a crash
45826 on open of a non existing file.
45828 2008-02-05 Bean <bean123ch@gmail.com>
45830 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45832 (grub_multiboot_load_elf64): Likewise.
45833 (grub_multiboot): Initialize mbi structure.
45835 * util/grub-fstest.c: Don't include unused header file script.h.
45837 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45839 (grub_fstest_SOURCES): Likewise.
45841 2008-02-05 Robert Millan <rmh@aybabtu.com>
45843 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45844 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45845 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45846 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45848 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45849 (translation_table): Replace hardcoded values with macros
45850 provided by `<grub/term.h>'.
45852 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45853 (keyboard_map): Correct/add a few values, with macros provided
45854 by `<grub/term.h>'.
45855 (keyboard_map_shift): Zero values that don't differ from their
45856 `keyboard_map' equivalents.
45857 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45858 Discard the second scan code that is always sent by Caps lock.
45859 Only use `keyboard_map_shift' when it provides a non-zero value,
45860 otherwise fallback to `keyboard_map'.
45862 2008-02-04 Bean <bean123ch@gmail.com>
45864 * Makefile.in (enable_grub_fstest): New variable.
45866 * conf/common.rmk (grub_fstest_init.lst): New rule.
45867 (grub_fstest_init.h): Likewise.
45868 (grub_fstest_init.c): Likewise.
45869 (util/grub-fstest.c_DEPENDENCIES): New variable.
45870 (grub_fstest_SOURCES): Likewise.
45872 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45874 * util/grub-fstest.c: New file.
45876 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45878 Make grub-setup handle a separate root device.
45880 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45881 so that the root device can be compared with the destination
45883 When embedding the core image, if the root and destination devices
45884 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45886 When not embedding, set ROOT_DRIVE to 0xFF.
45888 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45890 Add support for having a grub directory in a different drive. This
45891 is still only the data handling part.
45893 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45894 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45895 (grub_root_drive): New variable.
45897 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45898 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45899 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45902 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45906 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45908 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45909 is bogus, because PXE booting does not specify any drive
45912 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45913 am not sure if this is really correct.
45915 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45916 is always identical to the boot drive when booting from a CD.
45918 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45920 (root_drive): New variable.
45921 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45922 (setup_sectors): Push %dx right after popping it, because %dh will
45924 (copy_buffer): Restore %dx.
45926 2008-02-03 Robert Millan <rmh@aybabtu.com>
45928 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45929 use `cdboot.img' for cdrom images.
45931 2008-02-03 Robert Millan <rmh@aybabtu.com>
45933 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45934 only setup gfxterm when `font' command has succeeded.
45936 2008-02-03 Robert Millan <rmh@aybabtu.com>
45938 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45939 (grub_rescue_cmd_multiboot_loader)
45940 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45942 2008-02-03 Pavel Roskin <proski@gnu.org>
45944 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45945 %edx and %esi from stack only after grub_gate_a20() is called.
45946 grub_gate_a20() clobbers %edx.
45948 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45950 * configure.ac (AC_INIT): Bumped to 1.96.
45952 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45953 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45954 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45955 video/readers/png.c.
45957 2008-02-03 Bean <bean123ch@gmail.com>
45959 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45960 (cdboot_img_SOURCES): New variable.
45961 (cdboot_img_ASFLAGS): New variable.
45962 (cdboot_img_LDFLAGS): New variable.
45964 * boot/i386/pc/cdboot.S: New file.
45966 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45967 (cd_count): Likewise.
45968 (grub_biosdisk_get_drive): Add support for cd device.
45969 (grub_biosdisk_call_hook): Likewise.
45970 (grub_biosdisk_iterate): Likewise.
45971 (grub_biosdisk_open): Likewise.
45972 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45973 (grub_biosdisk_rw): Support reading from cd device.
45974 (GRUB_MOD_INIT): Iterate cd devices.
45976 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45977 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45978 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45980 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45982 2008-02-02 Robert Millan <rmh@aybabtu.com>
45984 * commands/read.c: New file.
45985 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45986 (read_mod_SOURCES): New variable.
45987 (read_mod_CFLAGS): Likewise.
45988 (read_mod_LDFLAGS): Likewise.
45990 2008-02-02 Robert Millan <rmh@aybabtu.com>
45992 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45993 determining whether menu has to be displayed.
45995 2008-02-02 Marco Gerards <marco@gnu.org>
45997 * bus/pci.c: New file.
45999 * include/grub/pci.h: Likewise.
46001 * include/grub/i386/pc/pci.h: Likewise.
46003 * commands/lspci.c: Likewise.
46005 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46007 (pci_mod_SOURCES): New variable.
46008 (pci_mod_CFLAGS): Likewise.
46009 (pci_mod_LDFLAGS): Likewise.
46010 (lspci_mod_SOURCES): Likewise.
46011 (lspci_mod_CFLAGS): Likewise.
46012 (lspci_mod_LDFLAGS): Likewise.
46014 2008-02-02 Bean <bean123ch@gmail.com>
46016 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46017 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46019 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46020 (grub_xfs_btree_node): New structure.
46021 (grub_xfs_btree_root): New structure.
46022 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46023 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46024 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46025 (GRUB_XFS_EXTENT_SIZE): Likewise.
46026 (grub_xfs_read_block): Support btree format type.
46027 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46028 Use directory block as basic unit.
46030 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46032 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46033 __attribute__ ((__regparm__ (1))).
46035 2008-02-01 Robert Millan <rmh@aybabtu.com>
46037 Correct a mistake in previous commit.
46039 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46041 (normal/command.c_DEPENDENCIES): New variable.
46043 2008-02-01 Robert Millan <rmh@aybabtu.com>
46045 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46047 (normal/command.c_DEPENDENCIES): New variable.
46048 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46049 * conf/i386-ieee1275.rmk: Likewise.
46050 * conf/i386-linuxbios.rmk: Likewise.
46051 * conf/i386-pc.rmk: Likewise.
46052 * conf/sparc64-ieee1275.rmk: Likewise.
46053 * conf/powerpc-ieee1275.rmk: Likewise.
46054 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46056 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46058 2008-02-01 Robert Millan <rmh@aybabtu.com>
46060 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46061 call at beginning of function.
46063 2008-01-31 Pavel Roskin <proski@gnu.org>
46065 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46066 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46067 (grub_mkrescue_SOURCES): Likewise.
46068 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46070 2008-01-30 Robert Millan <rmh@aybabtu.com>
46072 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46073 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46074 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46075 (grub_probe_SOURCES): ... to here.
46077 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46078 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46079 * conf/i386-ieee1275.rmk: Likewise.
46080 * conf/i386-linuxbios.rmk: Likewise.
46081 * conf/powerpc-ieee1275.rmk: Likewise.
46083 2008-01-30 Tristan Gingold <gingold@free.fr>
46085 * kern/rescue.c: Silently accept empty lines.
46087 2008-01-29 Bean <bean123ch@gmail.com>
46089 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46090 (real_code_2): Code cleanup and change comment style.
46091 (move_memory): Avoid using 32-bit address mode.
46093 2008-01-29 Bean <bean123ch@gmail.com>
46095 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46096 (png_mod_SOURCES): New variable.
46097 (png_mod_CFLAGS): Likewise.
46098 (png_mod_LDFLAGS): Likewise.
46100 * video/readers/png.c: New file.
46102 2008-01-28 Robert Millan <rmh@aybabtu.com>
46104 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46105 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46106 `ifndef GRUB_MOD_GAP' hack.
46107 * util/elf/grub-mkimage.c (add_segments): Likewise.
46109 2008-01-27 Robert Millan <rmh@aybabtu.com>
46111 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46112 `GRUB_MOD_GAP' for platforms in which it's not defined.
46113 * util/elf/grub-mkimage.c (add_segments): Likewise.
46115 2008-01-27 Robert Millan <rmh@aybabtu.com>
46117 Get grub-emu to build again (including parallel builds).
46119 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46121 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46122 (normal/execute.c_DEPENDENCIES): ... this, ...
46123 (grub-emu_DEPENDENCIES): ... and this.
46125 * conf/i386-efi.rmk: Likewise.
46126 * conf/i386-linuxbios.rmk: Likewise.
46127 * conf/i386-ieee1275.rmk: Likewise.
46128 * conf/powerpc-ieee1275.rmk: Likewise.
46129 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46131 2008-01-27 Robert Millan <rmh@aybabtu.com>
46133 * NEWS: Add a few items.
46135 2008-01-27 Robert Millan <rmh@aybabtu.com>
46137 Fix parallel builds with grub-emu. Based on earlier commit for
46138 grub-probe and grub-setup.
46140 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46141 (util/grub-emu.c_DEPENDENCIES): ... this.
46142 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46143 (util/grub-emu.c_DEPENDENCIES): ... this.
46144 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46145 (util/grub-emu.c_DEPENDENCIES): ... this.
46146 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46147 (util/grub-emu.c_DEPENDENCIES): ... this.
46148 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46149 (util/grub-emu.c_DEPENDENCIES): ... this.
46151 2008-01-27 Pavel Roskin <proski@gnu.org>
46153 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46154 to create a gap between _end and the modules added to the image
46155 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46156 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46157 * util/elf/grub-mkimage.c (add_segments): Likewise.
46159 2008-01-26 Pavel Roskin <proski@gnu.org>
46161 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46162 just return an error.
46164 2008-01-26 Bean <bean123ch@gmail.com>
46166 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46167 (grub_reiserfs_get_item): Save offset of the next item.
46168 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46170 2008-01-25 Robert Millan <rmh@aybabtu.com>
46172 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46173 make all filesystem sources appear together (possibly fixing omissions
46175 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46176 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46180 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46182 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46183 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46184 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46185 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46187 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46188 (probe): Add a sanity check to make sure of our ability to read
46189 requested files when probing for filesystem type.
46191 * genmk.rb: Update copyright year (2007).
46193 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46194 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46195 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46196 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46197 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46198 : Remove function prototypes.
46200 2008-01-25 Robert Millan <rmh@aybabtu.com>
46202 Revert my previous commits (based on wrong assumption of how grub_errno
46205 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46206 * kern/file.c (grub_file_open): Likewise.
46208 2008-01-24 Pavel Roskin <proski@gnu.org>
46210 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46211 that hang if GRUB tries to setup colors.
46212 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46213 colors for firmwares that don't support it.
46214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46215 Recognize Open Hack'Ware, set flags to work around its
46218 2008-01-24 Robert Millan <rmh@aybabtu.com>
46220 * kern/file.c (grub_file_open): Do not account previous failures of
46221 unrelated functions when grub_errno is checked for.
46222 Reported by Oleg Strikov.
46224 2008-01-24 Bean <bean123ch@gmail.com>
46226 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46227 (grub_ufs_sblock): New member volume name.
46228 (grub_ufs_find_file): Fix string copy bug.
46229 (grub_ufs_label): Implement this function properly.
46231 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46232 (grub_hfs_iterate_records): Use the correct file number for extents
46233 and catalog file. Fix problem in next index calculation.
46234 (grub_hfs_find_node): Replace recursive function call with loop.
46235 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46237 2008-01-23 Robert Millan <rmh@aybabtu.com>
46239 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46240 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46241 (grub_multiboot2_real_boot): New function prototype.
46243 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46244 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46246 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46247 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46249 2008-01-23 Robert Millan <rmh@aybabtu.com>
46251 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46252 #ifdef'ed out grub_printf().
46254 2008-01-23 Robert Millan <rmh@aybabtu.com>
46256 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46257 grub_dprintf calls, since they make "debug=all" mode unusable.
46258 (grub_console_checkkey): Likewise.
46260 2008-01-23 Robert Millan <rmh@aybabtu.com>
46262 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46263 `term/i386/pc/at_keyboard.c'.
46264 (pkglib_MODULES): Add `serial.mod'.
46265 (serial_mod_SOURCES): New variable.
46266 (serial_mod_CFLAGS): Likewise.
46267 (serial_mod_LDFLAGS): Likewise.
46269 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46270 `<grub/powerpc/ieee1275/console.h>'.
46271 (grub_keyboard_controller_init): New function prototype.
46272 (grub_console_checkkey): Likewise.
46273 (grub_console_getkey): Likewise.
46275 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46278 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46279 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46281 2008-01-23 Robert Millan <rmh@aybabtu.com>
46283 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46284 present, "(memdisk)/boot/grub" becomes the default prefix.
46286 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46287 a memdisk tarball with all the modules. Add --overlay=DIR option that
46288 allows users to overlay additional files into the image.
46290 2008-01-23 Robert Millan <rmh@aybabtu.com>
46292 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46293 and `machine/memory.h'.
46294 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46295 (_multiboot_mod_SOURCES): New variable.
46296 (_multiboot_mod_CFLAGS): Likewise.
46297 (_multiboot_mod_LDFLAGS): Likewise.
46298 (multiboot_mod_SOURCES): Likewise.
46299 (multiboot_mod_CFLAGS): Likewise.
46300 (multiboot_mod_LDFLAGS): Likewise.
46302 * include/grub/i386/ieee1275/loader.h: New file.
46304 * include/grub/i386/ieee1275/machine.h: Likewise.
46306 * include/grub/i386/ieee1275/memory.h: Likewise.
46308 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46309 variable declaration.
46310 (grub_os_area_size): Likewise.
46312 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46313 (grub_lower_mem, grub_upper_mem): New variables.
46314 (grub_stop_floppy): New function (just to make
46315 grub_multiboot2_real_boot() happy).
46317 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46318 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46319 (grub_stop): New function.
46320 Include `"../realmode.S"' and `"../loader.S"'.
46322 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46323 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46325 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46326 rely on grub_multiboot2_real_boot() for final boot.
46328 2008-01-22 Robert Millan <rmh@aybabtu.com>
46330 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46331 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46332 device that doesn't look like an SD card.
46333 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46334 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46335 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46336 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46339 2008-01-22 Robert Millan <rmh@aybabtu.com>
46341 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46342 avoid claiming over our own code.
46344 2008-01-22 Bean <bean123ch@gmail.com>
46346 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46347 (jpeg_mod_SOURCES): New variable.
46348 (jpeg_mod_CFLAGS): Likewise.
46349 (jpeg_mod_LDFLAGS): Likewise.
46351 * video/readers/jpeg.c : New file.
46353 2008-01-22 Bean <bean123ch@gmail.com>
46355 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46356 there are no more items.
46358 2008-01-21 Robert Millan <rmh@aybabtu.com>
46360 * kern/mm.c (grub_mm_init_region): Improve debug message.
46362 2008-01-21 Robert Millan <rmh@aybabtu.com>
46364 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46365 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46367 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46369 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46370 Indicates start of upper memory.
46371 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46372 (generate_image): Abort when image size is big enough to corrupt
46375 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46376 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46377 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46378 instead of hardcoding 0xA0000.
46379 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46380 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46381 instead of hardcoding 0xA0000.
46383 2008-01-21 Robert Millan <rmh@aybabtu.com>
46385 * disk/memdisk.c (memdisk_size): New variable.
46386 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46388 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46389 image to dynamic memory.
46390 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46391 `memdisk_size'. Free memdisk block.
46393 2008-01-21 Robert Millan <rmh@aybabtu.com>
46395 Fix detection of very small filesystems (like tar).
46397 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46398 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46399 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46400 a problem with this disk).
46402 2008-01-21 Robert Millan <rmh@aybabtu.com>
46404 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46405 on grub_biosdisk_rw_standard() error.
46407 2008-01-21 Robert Millan <rmh@aybabtu.com>
46409 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46411 * kern/elf.c: Likewise.
46412 * kern/ieee1275/ieee1275.c: Likewise.
46413 * kern/powerpc/ieee1275/openfw.c: Likewise.
46414 * term/ieee1275/ofconsole.c: Likewise.
46416 2008-01-21 Robert Millan <rmh@aybabtu.com>
46418 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46420 * include/grub/kernel.h (grub_arch_memdisk_addr)
46421 (grub_arch_memdisk_size): Moved from here ...
46423 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46424 (grub_arch_memdisk_size): ... to here.
46426 2008-01-21 Robert Millan <rmh@aybabtu.com>
46428 Mostly based on bugfix from Bean.
46430 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46431 attribute with hook() parameter.
46432 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46434 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46435 attribute with hook() parameter.
46436 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46439 2008-01-21 Robert Millan <rmh@aybabtu.com>
46441 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46442 (pkglib_MODULES): Add `memdisk.mod'.
46443 (memdisk_mod_SOURCES): New variable.
46444 (memdisk_mod_CFLAGS): Likewise.
46445 (memdisk_mod_LDFLAGS): Likewise.
46447 * disk/memdisk.c: New file.
46449 * include/grub/disk.h (grub_disk_dev_id): Add
46450 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46452 * include/grub/i386/pc/kernel.h
46453 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46454 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46455 (grub_kernel_image_size): New variable declaration.
46456 (grub_total_module_size): Likewise.
46457 (grub_memdisk_image_size): Likewise.
46459 * include/grub/i386/pc/memory.h
46460 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46462 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46463 (grub_arch_memdisk_addr): New variable declaration.
46464 (grub_arch_memdisk_size): Likewise.
46466 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46467 (grub_arch_memdisk_size): Likewise.
46469 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46470 (codestart): Replace hardcoded `0x100000' with
46471 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46473 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46474 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46475 not NULL, append the contents of the file it refers to, at the end of
46476 the compressed kernel image. Initialize `grub_memdisk_image_size'
46477 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46478 (options): Add "memdisk"|'m' option.
46479 (main): Parse --memdisk|-m option, and pass user-provided path as
46480 parameter to generate_image().
46482 2008-01-20 Robert Millan <rmh@aybabtu.com>
46484 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46485 grub_dprintf() calls from here ...
46486 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46488 2008-01-20 Robert Millan <rmh@aybabtu.com>
46490 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46494 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46495 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46496 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46497 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46499 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46500 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46502 2008-01-19 Robert Millan <rmh@aybabtu.com>
46504 Get rid of confusing function (superseded by
46505 `grub_ieee1275_get_integer_property')
46506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46508 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46510 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46511 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46512 in native endianness from grub_ieee1275_get_integer_property().
46514 2008-01-19 Robert Millan <rmh@aybabtu.com>
46516 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46517 command after "shut-down", since implementations differ on which
46518 the command for halt is.
46520 2008-01-19 Robert Millan <rmh@aybabtu.com>
46522 * include/grub/i386/linuxbios/console.h: Add header protection.
46523 (grub_keyboard_controller_init): New function prototype.
46524 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46525 (KEYBOARD_COMMAND_READ): Likewise.
46526 (KEYBOARD_COMMAND_WRITE): Likewise.
46527 (KEYBOARD_SCANCODE_SET1): Likewise.
46528 (grub_keyboard_controller_write): New function.
46529 (grub_keyboard_controller_read): Likewise.
46530 (grub_keyboard_controller_init): Likewise.
46532 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46533 (grub_console_init): On coreboot/LinuxBIOS, call
46534 grub_keyboard_controller_init().
46536 2008-01-19 Robert Millan <rmh@aybabtu.com>
46538 PowerPC changes provided by Pavel Roskin.
46540 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46541 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46542 don't rely on cmain() doing it.
46543 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46544 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46546 2008-01-16 Robert Millan <rmh@aybabtu.com>
46548 * include/grub/i386/linuxbios/memory.h
46549 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46550 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46551 receive `table_header' as argument. Instead, probe for it in the
46552 known memory ranges where it can be present.
46553 (grub_available_iterate): Do not pass a fixed `table_header' address
46554 to grub_linuxbios_table_iterate().
46556 2008-01-15 Robert Millan <rmh@aybabtu.com>
46558 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46559 * conf/i386-ieee1275.rmk: New file.
46560 * include/grub/i386/ieee1275/console.h: Likewise.
46561 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46562 * include/grub/i386/ieee1275/kernel.h: Likewise.
46563 * include/grub/i386/ieee1275/time.h: Likewise.
46564 * kern/i386/ieee1275/init.c: Likewise.
46565 * kern/i386/ieee1275/startup.S: Likewise.
46567 2008-01-15 Robert Millan <rmh@aybabtu.com>
46569 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46570 when pointers are 32-bit (but still do set it to one when they are
46573 2008-01-15 Robert Millan <rmh@aybabtu.com>
46575 * include/grub/ieee1275/ieee1275.h
46576 (grub_ieee1275_get_integer_property): New function prototype.
46578 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46579 (grub_ieee1275_get_integer_property): New function. Wraps around
46580 grub_ieee1275_get_property() to handle endianness.
46582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46583 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46585 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46586 (grub_map): Likewise.
46587 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46589 2008-01-15 Bean <bean123ch@gmail.com>
46591 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46592 (grub_script_execute_cmdline): Reset grub_errno.
46594 * normal/main.c (read_config_file): Reset grub_errno.
46596 * normal/parse.y (script_init): New.
46597 (script): Move function and menuentry here.
46599 (command): Add delimiter at the end of command.
46600 (commands): Adjust to match the new command.
46601 (commandblock): Remove grub_script_lexer_record_start.
46602 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46603 (if): Use the new commands.
46605 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46607 2008-01-15 Robert Millan <rmh@aybabtu.com>
46609 * normal/menu.c (run_menu): Move timeout message from here ...
46610 (print_timeout): ... to here.
46611 (run_menu): Use print_timeout() once during initial draw to print
46612 the whole message, and again in every clock tick to update only
46613 the number of seconds.
46615 2008-01-15 Robert Millan <rmh@aybabtu.com>
46617 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46618 actual size of `available' from grub_ieee1275_get_property(), and
46619 restrict parsing to that bound.
46621 2008-01-15 Christian Franke <franke@computer.org>
46623 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46624 (argp_program_version): Remove variable.
46625 (argp_program_bug_address): Likewise.
46626 (options): Convert from struct argp_option to struct option.
46627 (struct arguments): Remove.
46628 (parse_opt): Remove.
46629 (usage): New function.
46630 (main): Replace struct args members by simple variables.
46631 Replace argp_parse() by getopt_long().
46632 Add switch to evaluate options.
46633 Add missing "(...)" around root_dev in prefix string.
46635 2008-01-14 Robert Millan <rmh@aybabtu.com>
46637 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46638 for grub_ieee1275_exit(), in order to improve portability.
46640 2008-01-14 Robert Millan <rmh@aybabtu.com>
46642 * util/grub.d/10_linux.in (prefix): Define.
46643 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46645 2008-01-13 Pavel Roskin <proski@gnu.org>
46647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46648 grub_errno if no errors have been detected.
46650 2008-01-12 Robert Millan <rmh@aybabtu.com>
46652 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46653 (grub_util_get_dev_abstraction): New function prototype.
46655 * util/getroot.c: Include `<grub/util/getroot.h>'
46656 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46657 (grub_util_get_dev_abstraction): ... here (new function).
46659 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46660 `PRINT_ABSTRACTION'.
46661 (probe): Probe for abstraction type when requested.
46662 (main): Understand `--target=abstraction'.
46664 * util/i386/efi/grub-install.in: Add abstraction module to core
46665 image when it is found to be necessary.
46666 * util/i386/pc/grub-install.in: Likewise.
46667 * util/powerpc/ieee1275/grub-install.in: Likewise.
46669 * util/update-grub_lib.in (font_path): Return system path without
46670 converting to GRUB path.
46671 * util/update-grub.in: Convert system path returned by font_path()
46672 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46673 abstraction module is needed for loading fonts (if any). Export
46674 that as `GRUB_PRELOAD_MODULES'.
46675 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46678 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46680 Remove some unused code from reiserfs.
46682 * fs/reiserfs.c (struct grub_reiserfs_key)
46683 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46684 (struct grub_reiserfs_node_body): Removed.
46685 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46687 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46689 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46691 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46693 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46695 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46697 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46698 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46699 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46701 2008-01-10 Robert Millan <rmh@aybabtu.com>
46703 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46704 Determines if a file is garbage left by packaging systems, etc.
46705 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46706 for processing /etc/grub.d scripts.
46707 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46708 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46709 as a condition for processing Linux images.
46711 2008-01-10 Pavel Roskin <proski@gnu.org>
46713 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46714 to compile reiserfs.c on PowerPC.
46716 2008-01-10 Robert Millan <rmh@aybabtu.com>
46718 * kern/device.c (grub_device_iterate): Do not abort device iteration
46719 when one of the devices cannot be opened.
46720 * kern/disk.c (grub_disk_open): Do not account previous failures of
46721 unrelated functions when grub_errno is checked for.
46723 2008-01-08 Robert Millan <rmh@aybabtu.com>
46725 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46726 `! grub_linux_is_bzimage', change order of address comparison to make
46727 it more intuitive, and improve "too big zImage" error message.
46729 2008-01-08 Robert Millan <rmh@aybabtu.com>
46731 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46732 `$(update-grub_DATA)'.
46733 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46736 2008-01-07 Robert Millan <rmh@aybabtu.com>
46738 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46739 which instruction is modified by grub-setup during installation
46740 (since it wasn't obvious by only looking at this file).
46742 2008-01-07 Robert Millan <rmh@aybabtu.com>
46744 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46745 listing actual TODO items.
46747 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46749 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46751 (grub_reiserfs_get_key_offset): Likewise.
46752 (grub_reiserfs_set_key_offset): Likewise.
46753 (grub_reiserfs_set_key_type): Likewise.
46754 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46756 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46757 better to remove the bitfield version completely.
46759 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46761 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46762 allocated from the heap, due to the fshelp implementation.
46763 (grub_reiserfs_dir): Free NODE, due to the same reason.
46765 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46767 Mostly from Vincent Pelletier:
46769 * fs/reiserfs.c: New file.
46771 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46772 (reiserfs_mod_SOURCES): New variable.
46773 (reiserfs_mod_CFLAGS): Likewise.
46774 (reiserfs_mod_LDFLAGS): Likewise.
46776 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46777 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46778 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46781 2008-01-06 Robert Millan <rmh@aybabtu.com>
46783 * normal/color.c: Remove `<grub/env.h>'.
46785 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46787 * include/grub/normal.h: Include <grub/env.h>.
46789 2008-01-05 Robert Millan <rmh@aybabtu.com>
46791 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46792 usage example with `(hd0,1)'.
46793 Reported by Samuel Thibault.
46795 2008-01-05 Robert Millan <rmh@aybabtu.com>
46797 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46798 (grub_linux_boot_zimage): Rename to ...
46799 (grub_linux_boot): ... this.
46800 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46801 (grub_linux_boot_zimage): Conditionalize zImage copy.
46803 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46804 (grub_linux_boot_bzimage): Remove prototype.
46805 (grub_linux_boot_zimage): Rename to ...
46806 (grub_linux_boot): ... this.
46808 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46809 (grub_linux_boot): Remove function.
46811 2008-01-05 Robert Millan <rmh@aybabtu.com>
46813 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46814 (grub_env_write_color_highlight): Likewise.
46815 (grub_wait_after_message): Likewise.
46817 * normal/color.c: New file.
46819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46820 (normal_mod_DEPENDENCIES): Likewise.
46822 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46823 (normal_mod_DEPENDENCIES): Likewise.
46825 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46826 (normal_mod_DEPENDENCIES): Likewise.
46828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46829 (normal_mod_DEPENDENCIES): Likewise.
46831 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46832 for waiting after a message is printed.
46833 * normal/main.c (read_config_file): Likewise.
46834 (grub_normal_init): Register grub_env_write_color_normal() and
46835 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46836 `color_highlight' variables as global.
46838 * normal/menu.c (grub_wait_after_message): New function.
46839 (grub_color_menu_normal): New variable. Replaces ...
46840 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46841 (grub_color_menu_highlight): New variable. Replaces ...
46842 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46843 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46844 `GRUB_TERM_COLOR_STANDARD'.
46845 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46846 `normal_code' and `highlight_code' to `old_color_normal' and
46847 `old_color_highlight', respectively.
46848 (grub_menu_init_page): Update colors when drawing the menu, based on
46849 `menu_color_normal' and `menu_color_highlight' variables.
46850 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46851 a message is printed.
46853 2008-01-05 Robert Millan <rmh@aybabtu.com>
46855 * kern/env.c (grub_env_context_open): Propagate hooks for global
46856 variables to new context.
46858 * kern/main.c (grub_set_root_dev): Export `root' variable.
46860 2008-01-05 Robert Millan <rmh@aybabtu.com>
46862 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46863 discs unconditionally, since udev and others have options to provide
46866 2008-01-05 Robert Millan <rmh@aybabtu.com>
46868 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46870 2008-01-04 Christian Franke <franke@computer.org>
46872 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46875 2008-01-03 Pavel Roskin <proski@gnu.org>
46877 * kern/i386/linuxbios/init.c: Put "void" to all function
46878 declarations with no arguments.
46879 * kern/powerpc/ieee1275/init.c: Likewise.
46880 * term/i386/pc/at_keyboard.c: Likewise.
46881 * term/i386/pc/vga_text.c: Likewise.
46882 * util/grub-mkdevicemap.c: Likewise.
46884 2008-01-02 Robert Millan <rmh@aybabtu.com>
46886 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46887 message when loaded image is out of bounds.
46888 (grub_multiboot_load_elf64): Likewise.
46890 2008-01-02 Pavel Roskin <proski@gnu.org>
46892 * util/grub.d/10_linux.in: Try version without ".old" when
46893 looking for initrd. It's better to use initrd from the newer
46894 kernel of the same version than no initrd at all.
46896 2008-01-01 Robert Millan <rmh@aybabtu.com>
46898 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46900 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46902 * include/grub/video.h: Added grub_video_unmap_color and
46903 grub_video_get_active_render_target.
46904 (grub_video_adapter): Added unmap_color and get_active_render_target.
46906 * video/video.c: Added grub_video_unmap_color and
46907 grub_video_get_active_render_target.
46908 (grub_video_get_info): Changed method to accept NULL pointer as an
46909 argument to allow detection of active video adapter.
46911 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46912 grub_video_vbe_unmap_color_int.
46913 Added grub_video_vbe_unmap_color and
46914 grub_video_vbe_get_active_render_target.
46915 (grub_video_vbe_adapter): Added unmap_color and
46916 get_active_render_target.
46918 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46919 with grub_video_vbe_unmap_color_int.
46921 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46922 (DEFAULT_NORMAL_COLOR): Likewise.
46923 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46924 (DEFAULT_FG_COLOR): Removed.
46925 (DEFAULT_BG_COLOR): Likewise.
46926 (DEFAULT_CURSOR_COLOR): Changed value.
46927 (grub_virtual_screen): Added standard_color_setting,
46928 normal_color_setting, highlight_color_setting and term_color.
46929 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46930 (bitmap_width): Added.
46931 (bitmap_height): Likewise.
46932 (bitmap): Likewise.
46933 (set_term_color): Likewise.
46934 (grub_virtual_screen_setup): Changed to use new terminal coloring
46936 (grub_gfxterm_init): Added init for bitmap.
46937 (grub_gfxterm_fini): Added destroy for bitmap.
46938 (redraw_screen_rect): Updated to use background bitmap and new
46940 (scroll_up): Added optimization for case when there is no bitmap.
46941 (grub_gfxterm_cls): Fixed to use correct background color.
46942 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46944 (grub_virtual_screen_setcolor): Likewise.
46945 (grub_virtual_screen_getcolor): Added.
46946 (grub_gfxterm_background_image_cmd): Likewise.
46947 (grub_video_term): Added setcolor and getcolor.
46948 (MOD_INIT): Added registration of background_image command.
46949 (MOD_TERM): Added unregistration for background_image command.
46951 2007-12-30 Pavel Roskin <proski@gnu.org>
46953 * loader/multiboot_loader.c: Fix multiboot command
46954 unregistration. Fix all typos in the word "multiboot".
46956 2007-12-29 Pavel Roskin <proski@gnu.org>
46958 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46959 support for initrd names used in Fedora.
46961 2007-12-26 Bean <bean123ch@gmail.com>
46963 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46964 (cpio_mod_SOURCES): New variable.
46965 (cpio_mod_CFLAGS): Likewise.
46966 (cpio_mod_LDFLAGS): Likewise.
46968 * fs/cpio.c: New file.
46970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46978 2007-12-25 Robert Millan <rmh@aybabtu.com>
46980 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46981 (grub_getcolor): New function.
46983 * kern/term.c (grub_getcolor): New function.
46984 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46985 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46986 (print_entry): Set normal and highlight colors to
46987 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46988 respectively, before printing and restore them to old
46990 (grub_menu_init_page): Likewise. Fill an additional colored space
46991 that would otherwise be left blank.
46993 * term/efi/console.c (grub_console_getcolor): New function.
46994 (struct grub_console_term.getcolor): New variable.
46995 * term/i386/pc/console.c (grub_console_getcolor): New function.
46996 (struct grub_console_term.getcolor): New variable.
46997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46998 (struct grub_console_term.getcolor): New variable.
47000 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47001 (struct grub_console_term.setcolor): Remove variable.
47002 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47003 (struct grub_console_term.setcolor): Remove variable.
47004 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47005 (struct grub_console_term.setcolor): Remove variable.
47006 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47007 (struct grub_console_term.setcolor): Remove variable.
47009 2007-12-25 Robert Millan <rmh@aybabtu.com>
47011 * configure.ac: Search for possible unifont.hex locations, and
47012 define UNIFONT_HEX if found.
47014 * Makefile.in (UNIFONT_HEX): Define variable.
47015 (DATA): Rename to ...
47016 (PKGLIB): ... this. Update all users.
47017 (PKGDATA): New variable.
47018 (pkgdata_IMAGES): Rename to ...
47019 (pkglib_IMAGES): ... this. Update all users.
47020 (pkgdata_MODULES): Rename to ...
47021 (pkglib_MODULES): ... this. Update all users.
47022 (pkgdata_PROGRAMS): Rename to ...
47023 (pkglib_PROGRAMS): ... this. Update all users.
47024 (pkgdata_DATA): Rename to ...
47025 (pkglib_DATA): ... this. Update all users.
47026 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47027 (unicode.pff, ascii.pff): New rules.
47028 (all-local): Add `$(PKGDATA)' dependency.
47029 (install-local): Process `$(PKGDATA)'.
47031 * util/update-grub_lib.in (font_path): Search for *.pff files in
47032 a few more locations, including `${pkgdata}'.
47034 2007-12-23 Robert Millan <rmh@aybabtu.com>
47036 Patch from Bean <bean123ch@gmail.com>:
47037 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47040 2007-12-21 Bean <bean123ch@gmail.com>
47042 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47043 (ntfscomp_mod_SOURCES): New variable.
47044 (ntfscomp_mod_CFLAGS): Likewise.
47045 (ntfscomp_mod_LDFLAGS): Likewise.
47047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47048 (grub_probe_SOURCES): Likewise.
47049 (grub_emu_SOURCES): Likewise.
47051 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47052 (grub_emu_SOURCES): Likewise.
47054 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47055 (grub_emu_SOURCES): Likewise.
47057 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47058 (grub_emu_SOURCES): Likewise.
47060 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47061 (read_run_list): Renamed to grub_ntfs_read_run_list.
47062 (decomp_nextvcn): Moved to ntfscomp.c.
47063 (decomp_getch): Likewise.
47064 (decomp_get16): Likewise.
47065 (decomp_block): Likewise.
47066 (read_block): Likewise.
47067 (read_data): Partially moved to ntfscomp.c.
47068 (fixup): Change unsigned to grub_uint16_t.
47069 (read_mft): Change unsigned long to grub_uint32_t.
47070 (read_attr): Likewise.
47071 (read_data): Likewise.
47072 (read_run_data): Likewise.
47073 (read_run_list): Likewise.
47074 (read_mft): Likewise.
47076 * fs/ntfscomp.c: New file.
47078 * include/grub/ntfs.h: New file.
47080 2007-12-16 Robert Millan <rmh@aybabtu.com>
47082 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47083 IDE disk check, since Linux is known to support 20 IDE disks.
47084 Reported by Colin Watson.
47086 2007-12-15 Bean <bean123ch@gmail.com>
47088 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47089 (lnxboot_img_SOURCES): New variable.
47090 (lnxboot_img_ASFLAGS): Likewise.
47091 (lnxboot_img_LDFLAGS): Likewise.
47093 * boot/i386/pc/lnxboot.S: New file.
47095 2007-11-24 Pavel Roskin <proski@gnu.org>
47097 * configure.ac: Test if '--build-id=none' is supported by the
47098 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47099 objcopy to generate incorrect binary files (binutils
47100 2.17.50.0.18-1 as shipped by Fedora 8).
47101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47102 linking, so that build ID doesn't break the test.
47104 2007-11-24 Pavel Roskin <proski@gnu.org>
47106 * include/grub/i386/time.h: use "void" in the argument list
47107 of grub_cpu_idle().
47108 * include/grub/powerpc/time.h: Likewise.
47109 * include/grub/sparc64/time.h: Likewise.
47111 2007-11-18 Christian Franke <franke@computer.org>
47113 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47114 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47115 This fixes the problem that function keys did not work in grub-emu.
47117 2007-11-18 Christian Franke <franke@computer.org>
47119 * disk/host.c (grub_host_open): Remove attribute unused from
47120 name parameter. Add check for "host". This fixes the problem
47121 that grub-emu does not find partitions.
47123 2007-11-18 Christian Franke <franke@computer.org>
47125 * util/hostfs.c (is_dir): New function.
47126 (grub_hostfs_dir): Handle missing dirent.d_type case.
47127 (grub_hostfs_read): Add missing fseek().
47128 (grub_hostfs_label): Clear label pointer. This fixes a crash
47129 of grub-emu on "ls (host)".
47131 2007-11-18 Christian Franke <franke@computer.org>
47133 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47134 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47135 to 64 bit boundary by default.
47137 2007-11-18 Bean <bean123ch@gmail.com>
47139 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47140 (hexdump_mod_SOURCES): New variable.
47141 (hexdump_mod_CFLAGS): Likewise.
47142 (hexdump_mod_LDFLAGS): Likewise.
47144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47146 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47152 * include/grub/hexdump.h: New file.
47154 * commands/hexdump.c: New file.
47156 2007-11-10 Robert Millan <rmh@aybabtu.com>
47158 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47159 in grub_outb() calls.
47160 (beep_on): Likewise.
47162 2007-11-10 Christian Franke <franke@computer.org>
47164 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47165 (grub_menu_run): Likewise.
47167 2007-11-10 Robert Millan <rmh@aybabtu.com>
47169 * include/grub/i386/efi/machine.h: New file.
47170 * include/grub/i386/linuxbios/machine.h: Likewise.
47171 * include/grub/i386/pc/machine.h: Likewise.
47172 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47173 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47175 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47176 (serial_hw_io_addr): New variable.
47177 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47178 instead of `(unsigned short *) 0x400'.
47180 2007-11-10 Bean <bean123ch@gmail.com>
47182 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47184 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47186 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47187 (vga_mod_SOURCES): Added.
47188 (vga_mod_CFLAGS): Likewise.
47189 (vga_mod_LDFLAGS): Likewise.
47191 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47193 (set_map_mask): Likewise.
47194 (set_read_map): Likewise.
47195 (set_read_address): Likewise.
47196 (vga_font): Removed variable.
47197 (get_vga_glyph): Removed function.
47198 (invalidate_char): Likewise.
47199 (write_char): Changed to use grub_font_get_glyph() for font
47201 (grub_vga_putchar): Likewise.
47202 (grub_vga_getcharwidth): Likewise.
47204 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47206 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47208 (pxeboot_img_LDFLAGS): Likewise.
47209 (diskboot_img_LDFLAGS): Likewise.
47210 (kernel_img_LDFLAGS): Likewise.
47212 2007-11-06 Robert Millan <rmh@aybabtu.com>
47214 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47215 in grub_outb() calls.
47216 (serial_hw_init): Likewise.
47218 2007-11-05 Robert Millan <rmh@aybabtu.com>
47220 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47221 spaces. Skip non-regular files.
47223 2007-11-05 Robert Millan <rmh@aybabtu.com>
47225 * kern/disk.c (grub_disk_firmware_fini)
47226 (grub_disk_firmware_is_tainted): New variables.
47228 * include/grub/disk.h (grub_disk_firmware_fini)
47229 (grub_disk_firmware_is_tainted): Likewise.
47231 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47232 (grub_disk_biosdisk_fini): ... to here.
47233 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47234 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47235 is set. Register grub_disk_biosdisk_fini() in
47236 `grub_disk_firmware_fini'.
47238 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47239 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47240 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47241 to finish existing firmware disk interface.
47243 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47244 (ata_mod_SOURCES): New variable.
47245 (ata_mod_CFLAGS): Likewise.
47246 (ata_mod_LDFLAGS): Likewise.
47248 2007-11-05 Robert Millan <rmh@aybabtu.com>
47250 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47251 (grub_ata_wait): Reimplement using grub_millisleep().
47253 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47254 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47256 2007-11-03 Marco Gerards <marco@gnu.org>
47258 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47259 (CRTC_ADDR_PORT): New macro.
47260 (CRTC_DATA_PORT): Likewise.
47261 (CRTC_CURSOR): Likewise.
47262 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47263 (CRTC_CURSOR_ADDR_LOW): Likewise.
47264 (update_cursor): New function.
47265 (grub_console_real_putchar): Call `update_cursor'.
47266 (grub_console_gotoxy): Likewise.
47267 (grub_console_cls): Set the default color when clearing the
47269 (grub_console_setcursor): Implemented.
47271 2007-11-03 Marco Gerards <marco@gnu.org>
47273 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47275 (grub_ata_pio_write): Likewise.
47277 (grub_atapi_identify): Wait after issuing an ATA command.
47278 (grub_atapi_packet): Likewise.
47279 (grub_ata_identify): Likewise.
47280 (grub_ata_readwrite): Likewise.
47282 2007-11-03 Marco Gerards <marco@gnu.org>
47284 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47285 (grub_ata_pio_write): Likewise.
47286 (grub_ata_readwrite): Use `grub_error', instead of
47287 returning `grub_errno'.
47289 2007-11-03 Marco Gerards <marco@gnu.org>
47291 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47292 grub_ata_pio_write once for every single sector, instead of for
47295 2007-10-31 Robert Millan <rmh@aybabtu.com>
47297 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47299 * conf/i386-linuxbios.rmk: New file.
47301 * kern/i386/pc/hardware.c: Likewise.
47302 * term/i386/pc/at_keyboard.c: Likewise.
47303 * term/i386/pc/vga_text.c: Likewise.
47305 * include/grub/i386/linuxbios/boot.h: Likewise.
47306 * include/grub/i386/linuxbios/console.h: Likewise.
47307 * include/grub/i386/linuxbios/init.h: Likewise.
47308 * include/grub/i386/linuxbios/kernel.h: Likewise.
47309 * include/grub/i386/linuxbios/loader.h: Likewise.
47310 * include/grub/i386/linuxbios/memory.h: Likewise.
47311 * include/grub/i386/linuxbios/serial.h: Likewise.
47312 * include/grub/i386/linuxbios/time.h: Likewise.
47314 * kern/i386/linuxbios/init.c: Likewise.
47315 * kern/i386/linuxbios/startup.S: Likewise.
47316 * kern/i386/linuxbios/table.c: Likewise.
47318 2007-10-31 Marco Gerards <marco@gnu.org>
47320 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47321 (ata_mod_SOURCES): New variable.
47322 (ata_mod_CFLAGS): Likewise.
47323 (ata_mod_LDFLAGS): Likewise.
47325 * disk/ata.c: New file.
47327 * include/grub/disk.h (grub_disk_dev_id): Add
47328 `GRUB_DISK_DEV_ATA_ID'.
47330 2007-10-31 Robert Millan <rmh@aybabtu.com>
47332 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47333 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47335 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47336 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47338 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47341 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47343 2007-10-27 Robert Millan <rmh@aybabtu.com>
47345 * include/grub/types.h (ULONG_MAX): Define macro.
47347 2007-10-22 Robert Millan <rmh@aybabtu.com>
47349 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47351 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47353 2007-10-22 Robert Millan <rmh@aybabtu.com>
47355 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47356 (pkgdata_MODULES): Add `biosdisk.mod'.
47357 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47360 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47361 (grub_biosdisk_init): Replace with ...
47362 (GRUB_MOD_INIT(biosdisk)): ... this.
47363 (grub_biosdisk_fini): Replace with ...
47364 (GRUB_MOD_FINI(biosdisk)): ... this.
47366 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47367 (grub_machine_init): Remove call to grub_biosdisk_init().
47368 (grub_machine_fini): Remove call to grub_machine_fini().
47370 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47372 2007-10-22 Robert Millan <rmh@aybabtu.com>
47374 * include/grub/time.h: New file.
47375 * include/grub/i386/time.h: Likewise.
47376 * include/grub/powerpc/time.h: Likewise.
47377 * include/grub/sparc64/time.h: Likewise.
47379 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47381 (KERNEL_MACHINE_TIME_HEADER): ... this.
47382 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47384 (KERNEL_MACHINE_TIME_HEADER): ... this.
47385 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47387 (KERNEL_MACHINE_TIME_HEADER): ... this.
47389 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47390 (grub_millisleep): New function.
47391 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47392 (grub_millisleep): New function.
47393 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47394 Remove `grub/machine/time.h' include.
47395 (grub_millisleep): New function.
47396 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47397 Remove `grub/machine/time.h' include.
47398 (grub_millisleep): New function.
47400 * include/grub/misc.h (grub_div_roundup): New function.
47402 * kern/misc.c: Include `<grub/time.h>'.
47403 (grub_millisleep_generic): New function.
47405 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47409 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47410 `machine/time.h'. Add `time.h'.
47411 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47413 2007-10-21 Robert Millan <rmh@aybabtu.com>
47415 * include/grub/misc.h (grub_max): New function.
47417 2007-10-21 Robert Millan <rmh@aybabtu.com>
47419 * util/misc.c (grub_util_info): Call fflush() before returning.
47421 2007-10-20 Robert Millan <rmh@aybabtu.com>
47423 * genmk.rb (Image): Copy `extra_flags' from here ...
47424 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47426 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47427 to `argc' and `args' arguments.
47429 2007-10-17 Robert Millan <rmh@aybabtu.com>
47431 * kern/i386/loader.S: New file.
47433 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47434 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47435 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47436 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47437 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47438 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47439 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47440 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47441 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47442 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47443 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47444 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47445 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47446 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47448 * kern/i386/realmode.S: New file.
47450 * kern/i386/pc/startup.S (protstack): Moved from here ...
47451 * kern/i386/realmode.S (protstack)... to here.
47452 * kern/i386/pc/startup.S (gdt): Moved from here ...
47453 * kern/i386/realmode.S (gdt)... to here.
47454 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47455 * kern/i386/realmode.S (prot_to_real)... to here.
47457 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47458 `kern/i386/realmode.S'.
47460 2007-10-17 Robert Millan <rmh@aybabtu.com>
47462 * include/grub/i386/loader.h: New file.
47464 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47465 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47466 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47467 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47468 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47469 * include/grub/i386/loader.h (grub_linux_prot_size)
47470 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47471 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47472 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47473 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47475 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47477 2007-10-15 Robert Millan <rmh@aybabtu.com>
47479 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47480 filesystem when dev->disk is unset.
47481 Do probe for filesystem even when dev->disk->has_partitions is set.
47482 In case a filesystem is found, always report it.
47483 In case it isn't, if dev->disk->has_partitions is set, report that
47484 a partition table was found instead of reporting that no filesystem
47485 could be identified.
47487 2007-10-12 Robert Millan <rmh@aybabtu.com>
47489 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47490 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47492 * include/grub/types.h (grub_host_to_target16): New macro.
47493 (grub_host_to_target32): Likewise.
47494 (grub_host_to_target64): Likewise.
47495 (grub_target_to_host16): Likewise.
47496 (grub_target_to_host32): Likewise.
47497 (grub_target_to_host64): Likewise.
47499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47500 Renamed from to ...
47501 (GRUB_MOD_ALIGN): ...this. Update all users.
47503 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47504 grub_host_to_target32.
47505 Replace grub_be_to_cpu32 with grub_target_to_host32.
47506 (load_modules): Likewise.
47507 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47508 Replace grub_be_to_cpu32 with grub_target_to_host32.
47509 Replace grub_cpu_to_be16 with grub_host_to_target16.
47510 Replace grub_cpu_to_be32 grub_host_to_target32.
47512 2007-10-12 Robert Millan <rmh@aybabtu.com>
47514 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47515 * util/elf/grub-mkimage.c: ... here.
47517 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47518 `util/powerpc/ieee1275/grub-mkimage.c'.
47520 2007-10-07 Robert Millan <rmh@aybabtu.com>
47522 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47523 and make it easier to figure out.
47524 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47525 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47526 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47527 leave us with less than HEAP_MIN_SIZE total heap.
47528 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47530 2007-10-03 Robert Millan <rmh@aybabtu.com>
47532 * include/grub/i386/io.h: New file.
47533 * commands/i386/pc/play.c (inb): Removed.
47535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47537 * term/i386/pc/serial.c (inb): Removed.
47539 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47541 * term/i386/pc/vga.c (inb): Removed.
47543 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47546 2007-10-02 Robert Millan <rmh@aybabtu.com>
47548 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47550 Reported by Marcin Kurek.
47552 2007-09-07 Robert Millan <rmh@aybabtu.com>
47554 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47555 SmartFirmware version updates (as released by Sven Luther), and avoid
47556 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47557 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47560 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47562 From Hitoshi Ozeki:
47563 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47564 when merging two regions.
47566 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47568 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47569 * normal/completion.c (grub_normal_do_completion): Likewise.
47570 Reported by Hitoshi Ozeki.
47572 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47574 Do not use devices at boot in chainloading.
47576 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47577 (boot_part_addr): Likewise.
47578 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47579 with BOOT_DRIVE and BOOT_PART_ADDR.
47580 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47581 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47583 2007-08-29 Robert Millan <rmh@aybabtu.com>
47585 Patch from Simon Peter <dn.tlp@gmx.net>:
47586 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47587 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47588 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47589 util/i386/pc/grub-setup.c_DEPENDENCIES.
47590 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47591 util/grub-probe.c_DEPENDENCIES.
47592 * conf/powerpc-ieee1275.rmk: Likewise.
47594 2007-08-28 Robert Millan <rmh@aybabtu.com>
47596 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47597 to tell grub-mkdevicemap how to name devices.
47598 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47601 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47602 util/i386/get_disk_name.c.
47603 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47604 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47605 util/ieee1275/get_disk_name.c.
47607 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47609 * DISTLIST: Add util/i386/get_disk_name.c and
47610 util/ieee1275/get_disk_name.c.
47612 * util/grub-mkdevicemap.c: Replace device naming logic with
47613 grub_util_get_disk_name() calls.
47615 2007-08-20 Robert Millan <rmh@aybabtu.com>
47617 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47618 (so that it works for both plural and singular quantities).
47620 2007-08-05 Robert Millan <rmh@aybabtu.com>
47622 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47623 so that [xz] isn't taken into account when determining order.
47625 2007-08-02 Marco Gerards <marco@gnu.org>
47627 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47628 `include/multiboot2.h', `include/grub/elfload.h',
47629 `include/multiboot.h', `include/grub/multiboot.h',
47630 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47631 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47632 `kern/elf.c', `loader/multiboot_loader.c',
47633 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47634 `loader/i386/pc/multiboot2.c',
47635 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47636 `util/i386/pc/grub-mkrescue.in'. Remove
47637 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47638 `include/grub/i386/pc/util/biosdisk.h' and
47639 `include/grub/powerpc/ieee1275/multiboot.h'.
47641 2007-08-02 Bean <bean123ch@gmail.com>
47643 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47644 (ntfs_mod_SOURCES): New variable.
47645 (ntfs_mod_CFLAGS): Likewise.
47646 (ntfs_mod_LDFLAGS): Likewise.
47648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47649 (grub_probe_SOURCES): Likewise.
47650 (grub_emu_SOURCES): Likewise.
47652 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47653 (grub_emu_SOURCES): Likewise.
47655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47656 (grub_emu_SOURCES): Likewise.
47658 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47660 * fs/ntfs.c: New file.
47662 2007-08-02 Bean <bean123ch@gmail.com>
47664 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47666 * file.h (grub_file): Likewise.
47668 * fshelp.h (grub_fshelp_read_file): Likewise.
47670 * util/i386/pc/grub-setup.c (setup): Likewise.
47671 (save_first_sector): Likewise.
47672 (save_blocklists): Likewise.
47674 * fs/affs.c (grub_affs_read_file): Likewise.
47676 * fs/ext2.c (grub_ext2_read_file): Likewise.
47678 * fs/fat.c (grub_fat_read_data): Likewise.
47680 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47682 * fs/hfs.c (grub_hfs_read_file): Likewise.
47684 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47686 * fs/jfs.c (grub_jfs_read_file): Likewise.
47688 * fs/minix.c (grub_minix_read_file): Likewise.
47690 * fs/sfs.c (grub_sfs_read_file): Likewise.
47692 * fs/ufs.c (grub_ufs_read_file): Likewise.
47694 * fs/xfs.c (grub_xfs_read_file): Likewise.
47696 * command/blocklist.c (read_blocklist): Likewise.
47697 (print_blocklist): Likewise.
47699 2007-08-02 Marco Gerards <marco@gnu.org>
47701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47704 * disk/host.c: New file.
47706 * util/hostfs.c: Likewise.
47708 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47709 return `GRUB_ERR_BAD_FS'.
47710 * fs/sfs.c (grub_sfs_mount): Likewise.
47711 * fs/xfs.c (grub_xfs_mount): Likewise.
47713 * include/grub/disk.h (enum grub_disk_dev_id): Add
47714 `GRUB_DISK_DEVICE_HOST_ID'.
47716 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47718 2007-07-24 Jerone Young <jerone@gmail.com>
47720 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47721 modules for compilation.
47722 * conf/powerpc-ieee1275.rmk: Likewise.
47724 * include/multiboot.h: Move multiboot definitions to one file. Rename
47725 many definitions to not get grub specific.
47726 * include/multiboot2.h: Create header with multiboot 2 definitions.
47727 * include/grub/multiboot.h: Header for grub specific function
47728 prototypes and definitions.
47729 * include/grub/multiboot2.h: Likewise.
47730 * include/grub/multiboot_loader.h: Likewise.
47731 * include/grub/i386/pc/multiboot.h: Removed.
47732 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47734 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47735 and 2 to allow for one multiboot and module commands.
47736 * loader/multiboot2.c: Add multiboot2 functionality.
47737 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47738 and definition names.
47739 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47741 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47742 ieee1275 specific multiboot2 code.
47744 * kern/i386/pc/startup.S: Change headers and definition names for
47745 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47747 2007-07-22 Robert Millan <rmh@aybabtu.com>
47749 * geninitheader.sh: Process file specified in first parameter rather
47750 than hardcoding grub_modules_init.lst.
47751 * geninit.sh: Likewise. Also, construct header name dynamically rather
47752 than hardcoding grub_modules_init.h.
47754 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47755 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47756 grub_probe_init.[ch] and grub_setup_init.[ch].
47758 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47759 grub_modules_init.h with grub_emu_init.h.
47760 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47761 grub_probe_init.[ch] files.
47762 * conf/i386-efi.rmk: Likewise.
47763 * conf/i386-pc.rmk: Likewise.
47764 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47765 grub_setup_init.[ch] files.
47767 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47768 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47769 to initialize modules rather than a list of hardcoded functions.
47770 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47771 grub_init_all() to initialize modules rather than a list of hardcoded
47774 2007-07-22 Robert Millan <rmh@aybabtu.com>
47776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47777 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47779 2007-07-22 Robert Millan <rmh@aybabtu.com>
47781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47782 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47784 flag when running on SmartFirmware.
47785 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47786 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47789 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47790 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47791 rather than decreasing it.
47793 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47794 there's not enough space to do it, fail in the same way as when it
47795 can't be done because there are no partitions.
47797 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47798 when nvsetenv failed.
47800 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47802 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47803 because this rule is automatically generated.
47804 (grub-mkrescue): Removed for the same reason as above.
47806 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47808 Migrate to GNU General Public License Version 3.
47810 * COPYING: Replaced with the plain text version of GPLv3.
47812 * config.guess: Updated from gnulib.
47813 * config.sub: Likewise.
47815 * geninit.sh: Output a GPLv3 copyright notice.
47816 * geninitheader.sh: Likewise.
47817 * genmodsrc.sh: Likewise.
47818 * gensymlist.sh.in: Likewise.
47820 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47821 * boot/i386/pc/diskboot.S: Likewise.
47822 * boot/i386/pc/pxeboot.S: Likewise.
47823 * commands/blocklist.c: Likewise.
47824 * commands/boot.c: Likewise.
47825 * commands/cat.c: Likewise.
47826 * commands/cmp.c: Likewise.
47827 * commands/configfile.c: Likewise.
47828 * commands/echo.c: Likewise.
47829 * commands/help.c: Likewise.
47830 * commands/ls.c: Likewise.
47831 * commands/search.c: Likewise.
47832 * commands/terminal.c: Likewise.
47833 * commands/test.c: Likewise.
47834 * commands/videotest.c: Likewise.
47835 * commands/i386/cpuid.c: Likewise.
47836 * commands/i386/pc/halt.c: Likewise.
47837 * commands/i386/pc/play.c: Likewise.
47838 * commands/i386/pc/reboot.c: Likewise.
47839 * commands/i386/pc/vbeinfo.c: Likewise.
47840 * commands/i386/pc/vbetest.c: Likewise.
47841 * commands/ieee1275/halt.c: Likewise.
47842 * commands/ieee1275/reboot.c: Likewise.
47843 * commands/ieee1275/suspend.c: Likewise.
47844 * disk/loopback.c: Likewise.
47845 * disk/lvm.c: Likewise.
47846 * disk/raid.c: Likewise.
47847 * disk/efi/efidisk.c: Likewise.
47848 * disk/i386/pc/biosdisk.c: Likewise.
47849 * disk/ieee1275/ofdisk.c: Likewise.
47850 * font/manager.c: Likewise.
47851 * fs/affs.c: Likewise.
47852 * fs/ext2.c: Likewise.
47853 * fs/fat.c: Likewise.
47854 * fs/fshelp.c: Likewise.
47855 * fs/hfs.c: Likewise.
47856 * fs/hfsplus.c: Likewise.
47857 * fs/iso9660.c: Likewise.
47858 * fs/jfs.c: Likewise.
47859 * fs/minix.c: Likewise.
47860 * fs/sfs.c: Likewise.
47861 * fs/ufs.c: Likewise.
47862 * fs/xfs.c: Likewise.
47863 * hello/hello.c: Likewise.
47864 * include/grub/acorn_filecore.h: Likewise.
47865 * include/grub/arg.h: Likewise.
47866 * include/grub/bitmap.h: Likewise.
47867 * include/grub/boot.h: Likewise.
47868 * include/grub/cache.h: Likewise.
47869 * include/grub/device.h: Likewise.
47870 * include/grub/disk.h: Likewise.
47871 * include/grub/dl.h: Likewise.
47872 * include/grub/elfload.h: Likewise.
47873 * include/grub/env.h: Likewise.
47874 * include/grub/err.h: Likewise.
47875 * include/grub/file.h: Likewise.
47876 * include/grub/font.h: Likewise.
47877 * include/grub/fs.h: Likewise.
47878 * include/grub/fshelp.h: Likewise.
47879 * include/grub/gzio.h: Likewise.
47880 * include/grub/hfs.h: Likewise.
47881 * include/grub/kernel.h: Likewise.
47882 * include/grub/loader.h: Likewise.
47883 * include/grub/lvm.h: Likewise.
47884 * include/grub/misc.h: Likewise.
47885 * include/grub/mm.h: Likewise.
47886 * include/grub/net.h: Likewise.
47887 * include/grub/normal.h: Likewise.
47888 * include/grub/parser.h: Likewise.
47889 * include/grub/partition.h: Likewise.
47890 * include/grub/pc_partition.h: Likewise.
47891 * include/grub/raid.h: Likewise.
47892 * include/grub/rescue.h: Likewise.
47893 * include/grub/script.h: Likewise.
47894 * include/grub/setjmp.h: Likewise.
47895 * include/grub/symbol.h: Likewise.
47896 * include/grub/term.h: Likewise.
47897 * include/grub/terminfo.h: Likewise.
47898 * include/grub/tparm.h: Likewise.
47899 * include/grub/types.h: Likewise.
47900 * include/grub/video.h: Likewise.
47901 * include/grub/efi/api.h: Likewise.
47902 * include/grub/efi/chainloader.h: Likewise.
47903 * include/grub/efi/console.h: Likewise.
47904 * include/grub/efi/console_control.h: Likewise.
47905 * include/grub/efi/disk.h: Likewise.
47906 * include/grub/efi/efi.h: Likewise.
47907 * include/grub/efi/pe32.h: Likewise.
47908 * include/grub/efi/time.h: Likewise.
47909 * include/grub/i386/linux.h: Likewise.
47910 * include/grub/i386/setjmp.h: Likewise.
47911 * include/grub/i386/types.h: Likewise.
47912 * include/grub/i386/efi/kernel.h: Likewise.
47913 * include/grub/i386/efi/loader.h: Likewise.
47914 * include/grub/i386/efi/time.h: Likewise.
47915 * include/grub/i386/pc/biosdisk.h: Likewise.
47916 * include/grub/i386/pc/boot.h: Likewise.
47917 * include/grub/i386/pc/chainloader.h: Likewise.
47918 * include/grub/i386/pc/console.h: Likewise.
47919 * include/grub/i386/pc/init.h: Likewise.
47920 * include/grub/i386/pc/kernel.h: Likewise.
47921 * include/grub/i386/pc/loader.h: Likewise.
47922 * include/grub/i386/pc/memory.h: Likewise.
47923 * include/grub/i386/pc/multiboot.h: Likewise.
47924 * include/grub/i386/pc/serial.h: Likewise.
47925 * include/grub/i386/pc/time.h: Likewise.
47926 * include/grub/i386/pc/vbe.h: Likewise.
47927 * include/grub/i386/pc/vbeblit.h: Likewise.
47928 * include/grub/i386/pc/vbefill.h: Likewise.
47929 * include/grub/i386/pc/vbeutil.h: Likewise.
47930 * include/grub/i386/pc/vga.h: Likewise.
47931 * include/grub/ieee1275/ieee1275.h: Likewise.
47932 * include/grub/ieee1275/ofdisk.h: Likewise.
47933 * include/grub/powerpc/libgcc.h: Likewise.
47934 * include/grub/powerpc/setjmp.h: Likewise.
47935 * include/grub/powerpc/types.h: Likewise.
47936 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47937 * include/grub/powerpc/ieee1275/console.h: Likewise.
47938 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47939 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47940 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47941 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47942 * include/grub/powerpc/ieee1275/time.h: Likewise.
47943 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47944 * include/grub/sparc64/libgcc.h: Likewise.
47945 * include/grub/sparc64/setjmp.h: Likewise.
47946 * include/grub/sparc64/types.h: Likewise.
47947 * include/grub/sparc64/ieee1275/console.h: Likewise.
47948 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47949 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47950 * include/grub/sparc64/ieee1275/time.h: Likewise.
47951 * include/grub/util/biosdisk.h: Likewise.
47952 * include/grub/util/getroot.h: Likewise.
47953 * include/grub/util/lvm.h: Likewise.
47954 * include/grub/util/misc.h: Likewise.
47955 * include/grub/util/raid.h: Likewise.
47956 * include/grub/util/resolve.h: Likewise.
47957 * io/gzio.c: Likewise.
47958 * kern/device.c: Likewise.
47959 * kern/disk.c: Likewise.
47960 * kern/dl.c: Likewise.
47961 * kern/elf.c: Likewise.
47962 * kern/env.c: Likewise.
47963 * kern/err.c: Likewise.
47964 * kern/file.c: Likewise.
47965 * kern/fs.c: Likewise.
47966 * kern/loader.c: Likewise.
47967 * kern/main.c: Likewise.
47968 * kern/misc.c: Likewise.
47969 * kern/mm.c: Likewise.
47970 * kern/parser.c: Likewise.
47971 * kern/partition.c: Likewise.
47972 * kern/rescue.c: Likewise.
47973 * kern/term.c: Likewise.
47974 * kern/efi/efi.c: Likewise.
47975 * kern/efi/init.c: Likewise.
47976 * kern/efi/mm.c: Likewise.
47977 * kern/i386/dl.c: Likewise.
47978 * kern/i386/efi/init.c: Likewise.
47979 * kern/i386/efi/startup.S: Likewise.
47980 * kern/i386/pc/init.c: Likewise.
47981 * kern/i386/pc/lzo1x.S: Likewise.
47982 * kern/i386/pc/startup.S: Likewise.
47983 * kern/ieee1275/ieee1275.c: Likewise.
47984 * kern/powerpc/cache.S: Likewise.
47985 * kern/powerpc/dl.c: Likewise.
47986 * kern/powerpc/ieee1275/cmain.c: Likewise.
47987 * kern/powerpc/ieee1275/crt0.S: Likewise.
47988 * kern/powerpc/ieee1275/init.c: Likewise.
47989 * kern/powerpc/ieee1275/openfw.c: Likewise.
47990 * kern/sparc64/cache.S: Likewise.
47991 * kern/sparc64/dl.c: Likewise.
47992 * kern/sparc64/ieee1275/init.c: Likewise.
47993 * kern/sparc64/ieee1275/openfw.c: Likewise.
47994 * loader/efi/chainloader.c: Likewise.
47995 * loader/efi/chainloader_normal.c: Likewise.
47996 * loader/i386/efi/linux.c: Likewise.
47997 * loader/i386/efi/linux_normal.c: Likewise.
47998 * loader/i386/pc/chainloader.c: Likewise.
47999 * loader/i386/pc/chainloader_normal.c: Likewise.
48000 * loader/i386/pc/linux.c: Likewise.
48001 * loader/i386/pc/linux_normal.c: Likewise.
48002 * loader/i386/pc/multiboot.c: Likewise.
48003 * loader/i386/pc/multiboot_normal.c: Likewise.
48004 * loader/powerpc/ieee1275/linux.c: Likewise.
48005 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48006 * normal/arg.c: Likewise.
48007 * normal/cmdline.c: Likewise.
48008 * normal/command.c: Likewise.
48009 * normal/completion.c: Likewise.
48010 * normal/execute.c: Likewise.
48011 * normal/function.c: Likewise.
48012 * normal/lexer.c: Likewise.
48013 * normal/main.c: Likewise.
48014 * normal/menu.c: Likewise.
48015 * normal/menu_entry.c: Likewise.
48016 * normal/misc.c: Likewise.
48017 * normal/parser.y: Likewise.
48018 * normal/script.c: Likewise.
48019 * normal/i386/setjmp.S: Likewise.
48020 * normal/powerpc/setjmp.S: Likewise.
48021 * normal/sparc64/setjmp.S: Likewise.
48022 * partmap/acorn.c: Likewise.
48023 * partmap/amiga.c: Likewise.
48024 * partmap/apple.c: Likewise.
48025 * partmap/gpt.c: Likewise.
48026 * partmap/pc.c: Likewise.
48027 * partmap/sun.c: Likewise.
48028 * term/gfxterm.c: Likewise.
48029 * term/terminfo.c: Likewise.
48030 * term/efi/console.c: Likewise.
48031 * term/i386/pc/console.c: Likewise.
48032 * term/i386/pc/serial.c: Likewise.
48033 * term/i386/pc/vesafb.c: Likewise.
48034 * term/i386/pc/vga.c: Likewise.
48035 * term/ieee1275/ofconsole.c: Likewise.
48036 * util/biosdisk.c: Likewise.
48037 * util/console.c: Likewise.
48038 * util/genmoddep.c: Likewise.
48039 * util/getroot.c: Likewise.
48040 * util/grub-emu.c: Likewise.
48041 * util/grub-mkdevicemap.c: Likewise.
48042 * util/grub-probe.c: Likewise.
48043 * util/lvm.c: Likewise.
48044 * util/misc.c: Likewise.
48045 * util/raid.c: Likewise.
48046 * util/resolve.c: Likewise.
48047 * util/update-grub.in: Likewise.
48048 * util/update-grub_lib.in: Likewise.
48049 * util/grub.d/00_header.in: Likewise.
48050 * util/grub.d/10_hurd.in: Likewise.
48051 * util/grub.d/10_linux.in: Likewise.
48052 * util/i386/efi/grub-install.in: Likewise.
48053 * util/i386/efi/grub-mkimage.c: Likewise.
48054 * util/i386/pc/grub-install.in: Likewise.
48055 * util/i386/pc/grub-mkimage.c: Likewise.
48056 * util/i386/pc/grub-mkrescue.in: Likewise.
48057 * util/i386/pc/grub-setup.c: Likewise.
48058 * util/i386/pc/misc.c: Likewise.
48059 * util/powerpc/ieee1275/grub-install.in: Likewise.
48060 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48061 * util/powerpc/ieee1275/misc.c: Likewise.
48062 * video/bitmap.c: Likewise.
48063 * video/video.c: Likewise.
48064 * video/i386/pc/vbe.c: Likewise.
48065 * video/i386/pc/vbeblit.c: Likewise.
48066 * video/i386/pc/vbefill.c: Likewise.
48067 * video/i386/pc/vbeutil.c: Likewise.
48068 * video/readers/tga.c: Likewise.
48070 2007-07-02 Robert Millan <rmh@aybabtu.com>
48072 * conf/i386-efi.rmk: Replace obsolete reference to
48073 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48074 with util/getroot.c.
48075 * conf/powerpc-ieee1275.rmk: Likewise.
48076 * conf/sparc64-ieee1275.rmk: Likewise.
48078 * util/grub-emu.c (main): Fix unchecked pointer handling.
48080 2007-07-02 Robert Millan <rmh@aybabtu.com>
48082 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48083 invocation to fail, in order to support partition-less media.
48085 * util/i386/pc/grub-install.in: Likewise.
48087 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48088 which fs or partmap modules are needed (akin to its sister scripts).
48090 Also use grub-probe to get rid of unportable /proc/mounts check.
48092 Print the same informational message that the other scripts do, before
48095 2007-06-23 Robert Millan <rmh@aybabtu.com>
48097 * util/update-grub_lib.in (font_path): New function. Determine whether
48098 a font file can be found and, if so, echo the GRUB path to it.
48100 * util/update-grub.in: Handle multiple terminals depending on user
48101 input, platform availability and font file presence. Propagate
48102 variables of our findings to /etc/grub.d/ children.
48104 * util/grub.d/00_header.in: Handle multiple terminals, based on
48105 environment setup by update-grub.
48107 2007-06-23 Robert Millan <rmh@aybabtu.com>
48109 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48111 2007-06-21 Robert Millan <rmh@aybabtu.com>
48113 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48114 indicate end of data section in kernel image.
48115 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48116 GRUB_KERNEL_MACHINE_DATA_END.
48118 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48120 * kern/i386/efi/startup.S: Likewise.
48122 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48123 during image generation. Implement --prefix option to override this
48125 * util/i386/efi/grub-mkimage.c: Likewise.
48127 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48128 code to make path relative to its root into a separate function.
48130 * util/i386/pc/grub-install.in: Use newly provided
48131 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48132 pass the result to grub-install --prefix.
48134 2007-06-13 Robert Millan <rmh@aybabtu.com>
48136 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48137 DEFAULT_DEVICE_MAP.
48138 * util/grub-emu.c: Use above definitions from misc.h instead of
48140 * util/grub-mkdevicemap.c: Likewise.
48141 * util/i386/pc/grub-setup.c: Likewise.
48142 * util/grub-probe.c: Likewise.
48143 (probe): Abort with grub_util_error() when either
48144 grub_guess_root_device or grub_util_get_grub_dev fails.
48146 2007-06-12 Robert Millan <rmh@aybabtu.com>
48148 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48149 "pager" assignment.
48150 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48152 * util/grub-probe.c (probe): Likewise for "drive_name".
48154 2007-06-11 Robert Millan <rmh@aybabtu.com>
48156 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48157 not just the cdrom one.
48159 2007-06-11 Robert Millan <rmh@aybabtu.com>
48161 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48162 Add --pkglibdir=DIR option to override pkglibdir.
48163 Mention --image-type=TYPE in help output.
48164 Fix --grub-mkimage (it was a no-op).
48165 Abort gracefully when no parameter is given.
48167 2007-06-11 Robert Millan <rmh@aybabtu.com>
48169 * util/i386/pc/grub-mkrescue.in: New file.
48170 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48171 * Makefile.in: Handle bin_SCRIPTS.
48173 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48175 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48176 list of video modes.
48178 2007-06-06 Robert Millan <rmh@aybabtu.com>
48180 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48181 file doesn't exist, or if it is in a filesystem grub can't read.
48183 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48184 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48185 header comment to fit in 80 columns when the variables are resolved.
48187 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48188 could be identified by update-grub. Remove redundant check for
48189 unifont.pff existence (since convert_system_path_to_grub_path now
48192 2007-06-04 Robert Millan <rmh@aybabtu.com>
48194 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48196 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48198 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48200 2007-06-04 Robert Millan <rmh@aybabtu.com>
48202 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48204 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48205 grub_apple_partition_map_fini.
48208 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48209 to access >2 TiB disks).
48211 Print disk->total_sectors with %llu instead of %lu, since this
48212 variable is always 64-bit (prevents wrong disk size from being displayed
48213 on either >2 TiB disk or big-endian CPU).
48215 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48216 into a generic case that supports all (sane) partition maps.
48218 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48221 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48222 and grub_apple_partition_map_fini() after that.
48224 2007-06-01 Robert Millan <rmh@aybabtu.com>
48226 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48228 * util/grub.d/00_header.in: Only enable gfxterm when
48229 convert_system_path_to_grub_path() succeeds.
48231 2007-05-20 Robert Millan <rmh@aybabtu.com>
48233 * util/update-grub_lib.in: New file.
48234 * DISTLIST: Add update-grub_lib.in.
48235 * conf/common.rmk: Generate update-grub_lib and install it in
48237 * Makefile.in: Add install routine for $(lib_DATA).
48239 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48240 function provided by update-grub_lib to support arbitrary paths of
48242 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48243 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48245 2007-05-19 Robert Millan <rmh@aybabtu.com>
48247 * commands/i386/cpuid.c: New module.
48248 * DISTLIST: Add it.
48249 * conf/i386-efi.rmk: Enable cpuid.mod.
48250 * conf/i386-pc.rmk: Likewise.
48252 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48254 * kern/disk.c (grub_disk_read): Check return value of
48257 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48259 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48261 * disk/raid.c (grub_raid_open): Likewise.
48263 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48265 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48266 stack instead of on the heap.
48268 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48269 before doing a read on it.
48271 * configure.ac: Only use -fno-stack-protector for the target
48274 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48276 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48277 __attribute_ ((unused)) to mode_type argument.
48279 * util/getroot.c (grub_guess_root_device): Fix #endif.
48281 * kern/misc.c (memcmp): Fix prototype.
48283 * include/grub/partition.h [GRUB_UTIL]
48284 (grub_gpt_partition_map_init): Add prototype.
48285 (grub_gpt_partition_map_fini): Likewise.
48287 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48288 at the right place.
48290 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48291 (grub_fat_read_data): Likewise.
48292 (grub_fat_find_dir): Likewise.
48294 * font/manager.c (find_glyph): Make table a const.
48295 (grub_font_get_glyph): Remove bitmap from if statement.
48297 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48299 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48300 code, first search for device in /dev/mapper, then in /dev.
48301 (grub_util_get_grub_dev): New function.
48302 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48304 * util/grub-probe.c (probe): Remove check for RAID, call
48305 grub_util_get_grub_dev() instead of
48306 grub_util_biosdisk_get_grub_dev().
48307 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48308 grub_util_biosdisk_get_grub_dev().
48309 * util/i386/pc/grub-setup.c (main): Likewise.
48311 2007-05-16 Robert Millan <rmh@aybabtu.com>
48313 * DISTLIST: Update for the latest changes.
48314 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48315 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48316 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48317 grub/util/biosdisk.h.
48318 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48319 grub/util/biosdisk.h.
48321 2007-05-16 Robert Millan <rmh@aybabtu.com>
48323 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48325 2007-05-16 Robert Millan <rmh@aybabtu.com>
48327 * util/i386/efi/grub-install.in: New.
48328 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48329 newly added grub-install.
48330 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48332 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48333 grub/util/biosdisk.h.
48334 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48335 grub/util/biosdisk.h.
48337 2007-05-16 Robert Millan <rmh@aybabtu.com>
48339 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48340 * include/grub/util/biosdisk.h: ... here.
48341 * util/i386/pc/biosdisk.c: Moved to ...
48342 * util/biosdisk.c: ... here.
48343 * util/i386/pc/getroot.c: Moved to ...
48344 * util/getroot.c: ... here.
48345 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48346 * util/grub-mkdevicemap.c: ... here.
48347 * util/i386/pc/grub-probe.c: Moved to ...
48348 * util/grub-probe.c: ... here.
48350 2007-05-15 Robert Millan <rmh@aybabtu.com>
48352 * util/update-grub.in: Remove duplicated line in grub.cfg header
48355 2007-05-13 Robert Millan <rmh@aybabtu.com>
48357 * util/update-grub.in: Fix a few assumptions about the devices holding
48358 /, /boot and /boot/grub being the same.
48359 * util/grub.d/00_header.in: Likewise.
48360 * util/grub.d/10_hurd.in: Likewise.
48361 * util/grub.d/10_linux.in: Likewise.
48363 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48364 patterns. Use that to define the `.old' suffix as older than `'.
48366 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48368 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48369 the grub.cfg header message.
48371 2007-05-11 Robert Millan <rmh@aybabtu.com>
48373 * util/update-grub.in: Create device.map if it doesn't already exist,
48374 before attempting to run grub-probe.
48375 Check for grub-probe and grub-mkdevicemap with the same code
48376 grub-install is using.
48379 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48381 * Makefile.in: Add the datarootdir autoconf variable.
48383 2007-05-09 Robert Millan <rmh@aybabtu.com>
48385 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48386 fail gracefully if dev->disk->partition == NULL.
48388 2007-05-07 Robert Millan <rmh@aybabtu.com>
48390 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48391 determine partition map module.
48392 * util/i386/pc/grub-install.in: Use this feature to decide which
48393 partition module to load, instead of hardcoding pc and gpt.
48395 2007-05-07 Robert Millan <rmh@aybabtu.com>
48397 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48398 source directory differs from build directory.
48400 2007-05-05 Robert Millan <rmh@aybabtu.com>
48402 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48405 2007-05-05 Robert Millan <rmh@aybabtu.com>
48407 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48409 2007-05-05 Robert Millan <rmh@aybabtu.com>
48411 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48412 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48414 2007-05-05 Robert Millan <rmh@aybabtu.com>
48416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48417 (grub_probe_SOURCES): Likewise.
48418 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48419 GPT and initialize dos_part and bsd_part accordingly.
48420 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48422 (main): Activate gpt module for use during partition identification,
48423 and deactivate it afterwards.
48424 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48425 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48426 partition identification, and deactivate it afterwards.
48428 2007-05-05 Robert Millan <rmh@aybabtu.com>
48430 * term/i386/pc/console.c (grub_console_fini): Call
48431 grub_term_set_current() before grub_term_unregister().
48433 2007-05-04 Robert Millan <rmh@aybabtu.com>
48435 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48436 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48437 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48438 and update-grub_DATA.
48439 * conf/common.rmk: Build and install update-grub components.
48440 * conf/common.mk: Regenerate.
48441 * util/update-grub.in: New. Core of update-grub.
48442 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48443 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48444 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48445 * util/grub.d/README: New. Document grub.d directory layout.
48447 2007-05-01 Robert Millan <rmh@aybabtu.com>
48449 * util/grub-emu.c: Move initialization functions
48450 grub_util_biosdisk_init() and grub_init_all() before
48451 grub_util_biosdisk_get_grub_dev(), which relies on them.
48453 2007-04-19 Robert Millan <rmh@aybabtu.com>
48455 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48458 2007-04-18 Jerone Young <jerone@gmail.com>
48460 * kernel/elf.c: Add missing parenthesis for conditional statement
48463 2007-04-10 Jerone Young <jerone@gmail.com>
48465 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48466 continue on and look for device node with real device name.
48468 2007-04-10 Jerone Young <jerone@gmail.com>
48470 * configure.ac: Add argument for autoconf to use transformation
48472 * Makefile.in: Add autoconf package transformation code.
48473 * util/i386/pc/grub-install.in: Likewise.
48474 * util/powerpc/ieee1275/grub-install.in: Likewise.
48476 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48478 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48479 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48480 (EXT2_REVISION): Likewise.
48481 (EXT2_INODE_SIZE): Likewise.
48482 (struct grub_ext2_block_group): Added a missing member
48484 (grub_ext2_read_inode): Divide by the inode size in a superblock
48485 instead of 128 to obtain INODES_PER_BLOCK.
48486 Use the macro EXT2_INODE_SIZE instead of directly using
48487 SBLOCK->INODE_SIZE.
48489 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48491 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48492 superblock instead of the structure size to compute an
48493 offset. This fixes the problem that GRUB could not read a
48494 filesystem when inode size is different from 128-byte.
48496 2007-03-05 Marco Gerards <marco@gnu.org>
48498 * normal/main.c (read_config_file): When "menu" is not set, create
48499 an initial context.
48501 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48503 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48504 (HEAP_LIMIT): New macro.
48505 (grub_claim_heap): Claim memory up to `heaplimit'.
48507 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48509 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48510 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48511 (_start): Likewise.
48512 (grub_arch_modules_addr): Return address after `_end'.
48513 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48514 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48515 (add_segments): Calculate `_end' from phdr size and location.
48516 (ALIGN_UP): Moved to ...
48517 * include/grub/misc.h: here.
48518 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48520 (GRUB_IEEE1275_MODULE_BASE): Removed.
48522 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48527 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48529 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48531 (grub_elf64_load_hook_t): Likewise.
48532 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48535 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48537 * kern/mm.c: Update copyright.
48538 (grub_mm_debug): Correct syntax error.
48539 (grub_mm_dump_free): New function.
48540 (grub_debug_free): Call `grub_free'.
48541 * include/grub/mm.h: Update copyright.
48542 (grub_mm_dump_free): Add declaration.
48544 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48546 * include/grub/ieee1275/ieee1275.h: Update copyright.
48547 * kern/powerpc/ieee1275/init.c: Likewise.
48548 * kern/powerpc/ieee1275/openfw.c: Likewise.
48550 * loader/powerpc/ieee1275/linux.c: Likewise.
48551 * include/grub/elfload.h: Likewise.
48552 * kern/elf.c: Likewise.
48553 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48555 (grub_elf64_load): Likewise.
48556 (grub_elf32_load_segment): Move to a nested function.
48557 (grub_elf64_load_segment): Likewise.
48559 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48561 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48563 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48564 (grub_heap_len): Likewise.
48565 (HEAP_SIZE): New macro.
48566 (grub_claim_heap): New function.
48567 (grub_machine_init): Don't claim heap directly. Call
48569 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48570 (grub_available_iterate): New function.
48572 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48574 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48575 * configure.ac: Use it for testing the HOST and TARGET compilers.
48577 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48579 * Makefile.in (enable_grub_emu): New variable.
48580 * configure.ac (--enable-grub-emu): New option.
48581 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48582 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48583 * conf/i386-pc.rmk: Likewise.
48584 * conf/powerpc-ieee1275.rmk: Likewise.
48585 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48587 2006-12-12 Marco Gerards <marco@gnu.org>
48589 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48591 * kern/env.c (grub_env_unset): Don't free the member `value' when
48592 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48595 * normal/main.c (current_menu): Removed.
48596 (free_menu): Unset the `menu' environment variable.
48597 (grub_normal_menu_addentry): Make use of the environment variable
48598 `menu', instead of using the global `current_menu'. Allocate
48599 memory for the sourcecode of this entry.
48600 (read_config_file): New argument `nested', changed all callers.
48601 Only in the case of a new context, initialize a new menu. Set the
48602 `menu' environment variable.
48603 (grub_normal_execute): Don't set and unset the environment
48604 variable `menu' here anymore. Only free the menu when leaving the
48607 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48610 2006-12-11 Marco Gerards <marco@gnu.org>
48612 * normal/menu_entry.c (run): Fix off by one bug so the last line
48613 is executed. Move the loader check to outside the loop.
48615 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48617 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48619 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48621 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48622 the number of sectors. Reported by Andrey Shuvikov
48623 <mr_hyro@yahoo.com>.
48625 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48627 * kern/disk.c (grub_disk_read): When there is a read error, always
48628 try to read only the necessary data.
48630 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48632 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48634 [GRUB_UTIL] (grub_raid_fini): Likewise.
48635 [GRUB_UTIL] (grub_lvm_init): Likewise.
48636 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48637 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48638 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48639 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48640 and grub_raid_fini().
48642 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48644 * include/grub/types.h (__unused): Rename to UNUSED.
48645 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48646 (grub_elf64_size): Likewise.
48648 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48650 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48651 grub_error_push and grub_error_pop in the error-handling path.
48652 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48655 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48657 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48660 (kernel_elf_SOURCES): Likewise.
48661 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48662 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48663 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48664 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48665 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48666 (elf_mod_SOURCES): New variable.
48667 (elf_mod_CFLAGS): Likewise.
48668 (elf_mod_LDFLAGS): Likewise.
48669 * include/grub/types.h (__unused): New macro.
48670 * include/grub/elfload.h: New file.
48671 * kern/elf.c: Likewise.
48672 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48673 (ELF32_LOADMASK): New macro.
48674 (ELF64_LOADMASK): Likewise.
48675 (vmlinux): Removed.
48676 (grub_linux_load32): New function.
48677 (grub_linux_load64): Likewise.
48678 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48679 Use grub_elf_t instead of grub_file_t.
48681 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48683 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48684 `catch_result' to struct set_color_args.
48686 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48688 * normal/menu.c: Include grub/script.h.
48689 * normal/menu_entry.c: Likewise.
48690 * include/grub/normal.h: Do not include grub/script.h.
48692 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48694 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48696 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48698 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48700 (grub_disk_close): Print debug messages when closing a disk.
48701 (grub_disk_read): Print debug messages when disk read fails.
48702 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48704 * kern/partition.c: Include misc.h.
48705 (grub_partition_iterate): Print debug messages when detecting
48708 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48710 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48712 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48714 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48716 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48717 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48719 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48721 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48722 instead of sizeof(lv). Patch by Michael Guntsche.
48724 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48726 * disk/lvm.c: Rename VGS to VG_LIST.
48727 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48728 (grub_lvm_open): Likewise.
48729 Thanks to Michael Guntsche for finding this bug.
48731 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48733 * configure.ac (AC_INIT): Bumped to 1.95.
48735 2006-10-14 Robert Millan <rmh@aybabtu.com>
48737 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48738 with "/dev/.static/dev/md".
48740 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48742 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48743 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48744 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48745 DRIVE_NAME are always freed.
48747 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48748 DOS_PART, as a DOS partition is counted from one instead of zero
48749 now. Reported by Robert Millan.
48751 2006-10-14 Robert Millan <rmh@aybabtu.com>
48753 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48754 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48755 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48756 string returned by grub_guess_root_device.
48757 * util/i386/pc/grub-setup.c: Likewise.
48758 * util/i386/pc/grub-probefs.c: Likewise.
48760 * util/i386/pc/grub-probefs.c: Rename to ...
48761 * util/i386/pc/grub-probe.c: ... this.
48762 * DISTLIST: Remove grub-probefs, add grub-probe.
48763 * conf/i386-efi.rmk: Likewise.
48764 * conf/i386-pc.rmk: Likewise.
48765 * util/i386/pc/grub-install.in: Likewise.
48767 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48768 choose which information we want to print.
48770 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48772 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48773 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48774 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48775 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48776 video/readers/tga.c and video/i386/pc/vbeutil.c.
48778 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48780 Added support for RAID and LVM.
48782 * disk/lvm.c: New file.
48783 * disk/raid.c: Likewise.
48784 * include/grub/lvm.h: Likewise.
48785 * include/grub/raid.h: Likewise.
48786 * include/grub/util/lvm.h: Likewise.
48787 * include/grub/util/raid.h: Likewise.
48788 * util/lvm.c: Likewise.
48789 * util/raid.c: Likewise.
48791 * include/grub/disk.h (grub_disk_dev_id): Add
48792 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48793 (grub_disk_get_size): New prototype.
48794 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48795 returns a partition.
48796 (grub_disk_get_size): New function.
48798 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48799 verbatim if grub_install_dos_part is -2.
48801 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48804 * util/i386/pc/grub-setup.c (setup): New argument
48805 MUST_EMBED. Force embedding of GRUB when the argument is
48806 true. Close FILE before returning.
48807 (main): Add support for RAID and LVM.
48809 * conf/common.rmk: Add RAID and LVM modules.
48810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48812 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48814 * kern/misc.c (grub_strstr): New function.
48815 * include/grub/misc.h (grub_strstr): New prototype.
48817 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48819 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48821 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48823 * kern/misc.c (grub_strtoull): Guess the base only if not
48826 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48828 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48831 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48836 Remove `flags' argument. All callers changed.
48837 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48838 (IEEE1275_IHANDLE_INVALID): New variable.
48839 (IEEE1275_CELL_INVALID): New variable.
48840 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48841 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48842 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48843 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48844 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48845 codes from Open Firmware. All callers updated.
48846 (grub_ieee1275_next_property): Directly return Open Firmware return
48848 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48849 Standardize error checking from `grub_ieee1275_get_property'.
48850 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48851 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48853 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48855 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48856 `instance_to_package_args' to `instance_to_path_args'.
48858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48859 `grub_ieee1275_chosen'.
48861 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48862 `grub_ieee1275_interpret'.
48864 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48866 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48868 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48870 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48871 (__cmpdi): Likewise.
48873 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48874 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48877 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48879 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48880 to type `grub_ssize_t'.
48881 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48883 2006-09-22 Marco Gerards <marco@gnu.org>
48885 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48888 2006-09-22 Marco Gerards <marco@gnu.org>
48890 * commands/echo.c: New file.
48892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48894 * conf/common.rmk (echo_mod_SOURCES): New variable.
48895 (echo_mod_CFLAGS): Likewise.
48896 (echo_mod_LDFLAGS): Likewise.
48898 2006-09-22 Marco Gerards <marco@gnu.org>
48900 * normal/main.c (get_line): Malloc memory instead of using
48901 preallocated memory. Removed the arguments `cmdline' and
48902 `max_len'. Updated all callers.
48904 2006-09-22 Marco Gerards <marco@gnu.org>
48906 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48907 (normal_mod_DEPENDENCIES): Likewise.
48909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48910 (normal_mod_DEPENDENCIES): Likewise.
48912 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48914 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48916 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48918 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48919 (normal_mod_DEPENDENCIES): Likewise.
48920 * conf/i386-pc.mk: Regenerate.
48921 * conf/i386-efi.mk: Likewise
48922 * conf/common.mk: Likewise.
48923 * conf/powerpc-ieee1275.mk: Likewise.
48924 * conf/sparc64-ieee1275.mk: Likewise.
48926 2006-09-22 Robert Millan <rmh@aybabtu.com>
48928 Sync with i386 version.
48929 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48930 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48932 2006-09-21 Robert Millan <rmh@aybabtu.com>
48934 Import from GRUB Legacy (lib/device.c):
48935 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48936 (init_device_map) [__linux__]: Add support for I2O devices.
48938 2006-09-14 Marco Gerards <marco@gnu.org>
48940 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48943 2006-09-14 Robert Millan <rmh@aybabtu.com>
48945 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48948 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48950 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48951 before adding it to device.map.
48953 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48955 * genmk.rb: Let GCC generate dependencies the first time it
48956 compiles a file; using the -MD option.
48957 * conf/common.mk: Regenerate.
48958 * conf/i386-pc.mk: Likewise.
48959 * conf/i386-efi.mk: Likewise.
48960 * conf/powerpc-ieee1275.mk: Likewise.
48961 * conf/sparc64-ieee1275.mk: Likewise.
48963 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48965 Move the prototypes of grub_setjmp and grub_longjmp to
48966 cpu/setjmp.h, so that each architecture may specify different
48969 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48970 (grub_longjmp): Likewise.
48971 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48972 (grub_longjmp): Likewise.
48973 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48974 (grub_longjmp): Likewise.
48976 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48977 [!GRUB_UTIL] (grub_longjmp): Removed.
48979 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48981 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48982 "color!" method does not return any value.
48984 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48986 * include/grub/bitmap.h: New file.
48988 * include/grub/i386/pc/vbeutil.h: Likewise.
48990 * video/bitmap.c: Likewise.
48992 * video/readers/tga.c: Likewise.
48994 * video/i386/pc/vbeutil.c: Likewise.
48996 * commands/videotest.c: Code cleanup and updated to reflect to new
48999 * term/gfxterm.c: Likewise.
49001 * video/video.c: Likewise.
49003 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49004 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49005 (bitmap_mod_SOURCES): New entry.
49006 (bitmap_mod_CFLAGS): Likewise.
49007 (bitmap_mod_LDFLAGS): Likewise.
49008 (tga_mod_SOURCES): Likewise.
49009 (tga_mod_CFLAGS): Likewise.
49010 (tga_mod_LDFLAGS): Likewise.
49012 * include/grub/video.h (grub_video_blit_operators): New enum type.
49013 (grub_video_render_target): Changed as forward declaration and moved
49014 actual definition to be video driver specific.
49015 (grub_video_adapter.blit_bitmap): Added blitting operator.
49016 (grub_video_adapter.blit_render_target): Likewise.
49017 (grub_video_blit_bitmap): Likewise.
49018 (grub_video_blit_render_target): Likewise.
49020 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49021 driver specific render target definition.
49022 (grub_video_vbe_map_rgba): Added driver internal helper.
49023 (grub_video_vbe_unmap_color): Updated to use
49024 grub_video_i386_vbeblit_info.
49025 (grub_video_vbe_get_video_ptr): Likewise.
49027 * include/grub/i386/pc/vbeblit.h
49028 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49029 grub_video_i386_vbeblit_info.
49030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49031 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49032 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49033 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49034 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49035 (grub_video_i386_vbeblit_index_index): Likewise.
49036 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49038 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49039 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49041 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49044 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49045 include/grub/i386/pc/vbeblit.h.
49047 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49048 Updated to use grub_video_i386_vbeblit_info.
49049 (grub_video_i386_vbefill_R8G8B8): Likewise.
49050 (grub_video_i386_vbefill_index): Likewise.
49051 (grub_video_i386_vbefill): Added generic filler.
49053 * video/i386/pc/vbefill.c: Updated to reflect changes on
49054 include/grub/i386/pc/vbefill.h.
49056 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49057 grub_video_i386_vbeblit_info.
49058 (grub_video_vbe_unmap_color): Likewise.
49059 (grub_video_vbe_blit_glyph): Likewise.
49060 (grub_video_vbe_scroll): Likewise.
49061 (grub_video_vbe_draw_pixel): Removed function.
49062 (grub_video_vbe_get_pixel): Likewise.
49063 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49064 updated code to use it.
49065 (common_blitter): Added common blitter for render target and bitmap.
49066 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49067 (grub_video_vbe_blit_render_target): Likewise.
49069 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49071 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49072 is in text mode if there is no console control protocol instance
49075 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49077 * include/grub/video.h: Code cleanup.
49079 * include/grub/i386/pc/vbe.h: Likewise.
49081 * video/i386/pc/vbe.c: Likewise.
49083 * video/i386/pc/vbeblit.c: Likewise.
49085 * video/i386/pc/vbefill.c: Likewise.
49087 * video/video.c: Likewise. Also added more comments.
49089 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49091 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49092 (struct grub_biosdisk_dap): Likewise.
49094 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49095 linkage settings for all functions.
49097 2006-07-12 Marco Gerards <marco@gnu.org>
49099 * configure.ac (--enable-mm-debug): Fix typo.
49101 * genkernsyms.sh.in: Use proper quoting for `CC'.
49103 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49105 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49106 (normal_mod_ASFLAGS): Remove "-m32".
49108 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49110 * util/misc.c: Include config.h.
49111 [!HAVE_MEMALIGN]: Do not include malloc.h.
49112 (grub_memalign): Use posix_memalign, if present. Then, use
49113 memalign, if present. Otherwise, emit an error.
49115 * util/grub-emu.c: Do not include malloc.h.
49117 * include/grub/util/misc.h: Include unistd.h. This is required for
49118 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49119 D. Eades III <hde@foobar-qux.org>.
49121 * configure.ac (AC_GNU_SOURCE): Added.
49122 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49125 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49128 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49130 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49132 * include/grub/types.h (grub_host_addr_t): Rename to
49133 grub_target_addr_t.
49134 (grub_host_off_t): Rename to grub_target_off_t.
49135 (grub_host_size_t): Rename to grub_target_size_t.
49136 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49137 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49139 * include/grub/kernel.h (struct grub_module_header): Change type
49140 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49141 (grub_module_info): Likewise.
49143 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49145 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49146 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49147 Velazquez <jesus.velazquez@gmail.com>.
49149 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49151 Count partitions from 1 instead of 0 in the string representation
49152 of partitions. Still use 0-based internally.
49154 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49155 (sun_partition_map_iterate): Use grub_partition_t instead of
49156 struct grub_partition *. Cast DESC->START_CYLINDER to
49157 grub_uint64_t after converting the endian.
49158 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49159 (sun_partition_map_get_name): Add 1 to P->INDEX.
49161 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49163 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49165 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49166 zero instead of one.
49167 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49168 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49170 * partmap/apple.c (apple_partition_map_iterate): Change the type
49171 of POS to unsigned.
49172 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49173 (apple_partition_map_get_name): Add 1 into P->INDEX.
49175 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49176 of POS to unsigned.
49177 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49178 calculate the offset of a partition.
49179 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49180 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49182 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49183 SECTOR to grub_disk_addr_t.
49184 (acorn_partition_map_iterate): Likewise.
49185 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49186 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49188 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49190 * kern/i386/pc/init.c (make_install_device): Add 1 into
49191 GRUB_INSTALL_DOS_PART.
49193 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49196 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49198 Clean up the code to support 64-bit addressing in disks and
49199 files. This change is not enough for filesystems yet.
49201 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49202 type of "start" to grub_uint64_t.
49203 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49204 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49205 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49208 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49209 to grub_disk_addr_t.
49211 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49216 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49219 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49221 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49223 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49225 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49226 to grub_off_t, to detect an error from grub_file_seek.
49227 (grub_multiboot_load_elf32): Likewise.
49229 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49230 maximum unsigned long value when an overflow is detected.
49231 (grub_strtoull): New function.
49232 (grub_divmod64): Likewise.
49233 (grub_lltoa): use grub_divmod64.
49235 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49237 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49238 the pointer to next character. Use grub_strtoull instead of
49240 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49241 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49244 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49245 return value is signed.
49246 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49247 test if OFFSET is less than zero, as OFFSET is unsigned now.
49249 * kern/disk.c (struct grub_disk_cache): Change the type of
49250 "sector" to grub_disk_addr_t.
49251 (grub_disk_cache_get_index): Change the type of SECTOR to
49252 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49253 unsigned after shifting.
49254 (grub_disk_cache_invalidate): Change the type of SECTOR to
49256 (grub_disk_cache_unlock): Likewise.
49257 (grub_disk_cache_store): Likewise.
49258 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49259 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49260 grub_disk_addr_t and grub_uint64_t, respectively.
49261 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49262 body, as the value of OFFSET is tweaked by
49263 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49264 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49266 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49267 body, as the value of OFFSET is tweaked by
49268 grub_disk_check_range. Change the types of LEN and N to
49271 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49272 and "saved_offset" to grub_off_t.
49273 (test_header): Cast BUF to char *.
49274 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49276 (grub_gzio_read): Change the types of OFFSET and SIZE to
49277 grub_off_t and grub_size_t, respectively.
49279 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49281 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49282 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49283 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49284 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49285 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49287 * include/grub/types.h (grub_off_t): Unconditionally set to
49289 (grub_disk_addr_t): Changed to grub_uint64_t.
49291 * include/grub/partition.h (struct grub_partition): Change the
49292 types of "start", "len" and "offset" to grub_disk_addr_t,
49293 grub_uint64_t and grub_disk_addr_t, respectively.
49294 (grub_partition_get_start): Return grub_disk_addr_t.
49295 (grub_partition_get_len): Return grub_uint64_t.
49297 * include/grub/misc.h (grub_strtoull): New prototype.
49298 (grub_divmod64): Likewise.
49300 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49301 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49302 grub_off_t, respectively.
49303 All callers and references changed.
49305 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49306 grub_size_t in "read".
49307 All callers and references changed.
49309 * include/grub/file.h (struct grub_file): Change the types of
49310 "offset" and "size" to grub_off_t and grub_off_t,
49311 respectively. Change the type of SECTOR to grub_disk_addr_t in
49313 (grub_file_read): Change the type of LEN to grub_size_t.
49314 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49316 (grub_file_size): Return grub_off_t.
49317 (grub_file_tell): Likewise.
49318 All callers and references changed.
49320 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49321 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49323 (struct grub_disk): Change the type of "total_sectors" to
49324 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49326 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49327 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49328 (grub_disk_write): Likewise.
49329 All callers and references changed.
49331 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49332 char * for grub_strncmp to silence gcc.
49333 (grub_iso9660_mount): Likewise.
49334 (grub_iso9660_mount): Likewise.
49335 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49337 (grub_iso9660_iterate_dir): Likewise.
49338 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49340 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49341 LEN to grub_disk_addr_t and grub_size_t, respectively.
49343 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49345 * fs/jfs.c (grub_jfs_read_file): Likewise.
49347 * fs/minix.c (grub_jfs_read_file): Likewise.
49349 * fs/sfs.c (grub_jfs_read_file): Likewise.
49351 * fs/ufs.c (grub_jfs_read_file): Likewise.
49353 * fs/xfs.c (grub_jfs_read_file): Likewise.
49355 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49356 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49359 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49360 BLKNR to -1 instead of returning GRUB_ERRNO.
49361 (grub_ext2_read_file): Change the types of SECTOR and
49362 LEN to grub_disk_addr_t and grub_size_t, respectively.
49364 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49365 LEN to grub_disk_addr_t and grub_size_t, respectively.
49367 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49370 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49371 string. Do not cast SECTOR explicitly.
49373 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49374 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49375 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49376 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49377 over 2TB and LBA mode is not supported, raise an error.
49378 (get_safe_sectors): New function.
49379 (grub_biosdisk_read): Use get_safe_sectors.
49380 (grub_biosdisk_write): Likewise.
49382 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49383 (grub_efidisk_write): Likewise.
49385 * disk/loopback.c (delete_loopback): Cosmetic changes.
49386 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49388 (grub_loopback_open): Likewise.
49389 (grub_loopback_read): Likewise. Also, change the type of POS to
49390 grub_off_t, and fix the usage of grub_memset.
49392 * commands/i386/pc/play.c: Include grub/machine/time.h.
49394 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49397 * commands/configfile.c: Include grub/env.h.
49399 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49400 GRUB_ERRNO directly instead. Change the type of POS to
49401 grub_off_t. Follow the coding standard.
49403 * commands/blocklist.c: Include grub/partition.h.
49404 (grub_cmd_blocklist): Return an error if the underlying device is
49405 not a disk. Take the starting sector of a partition into account,
49406 if a partition is used.
49408 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49410 (lba_mode): Support 64-bit addresses.
49411 (chs_mode): Likewise.
49412 (copy_buffer): Adapted to the new offsets of a length field and a
49414 (blocklist_default_start): Allocate 64-bit space.
49416 * boot/i386/pc/boot.S (force_lba): Removed.
49417 (boot_drive): Moved to under KERNEL_SECTOR.
49418 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49420 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49422 (lba_mode): Refactored to support a 64-bit address. More size
49424 (setup_sectors): Likewise.
49426 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49428 * DISTLIST: Added include/grub/i386/linux.h. Removed
49429 include/grub/i386/pc/linux.h
49431 * configure.ac (AC_INIT): Bumped to 1.94.
49433 * config.guess: Updated from gnulib.
49434 * config.sub: Likewise.
49435 * install-sh: Likewise.
49436 * mkinstalldirs: Likewise.
49438 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49440 * conf/common.rmk (grub_modules_init.lst): Depended on
49441 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49444 * genmk.rb (PModule::rule): Reverted the previous change.
49446 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49448 * conf/common.rmk (grub_modules_init.lst): Depends on
49449 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49450 that the target does not exist before producing.
49451 (grub_modules_init.h): Remove the target before generating.
49452 (grub_emu_init.c): Likewise.
49454 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49456 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49458 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49459 for the target-specific tests. Make sure that we also have the
49460 up-to-date target variables for those tests.
49462 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49464 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49465 (PModule::rule): Likewise.
49467 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49469 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49470 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49471 target-specific flags should be prefixed.
49472 (PModule::rule): Likewise.
49474 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49476 * configure.ac (CMP): Check if cmp is available explicitly.
49478 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49480 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49481 (target_cpu): New variable.
49482 (pkglibdir): Use target_cpu instead of host_cpu.
49484 * util/i386/pc/grub-install.in (host_cpu): Removed.
49485 (target_cpu): New variable.
49486 (pkglibdir): Use target_cpu instead of host_cpu.
49488 * util/genmoddep.c: Removed.
49490 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49491 instead of GRUB_HOST_SIZEOF_VOID_P.
49492 * kern/dl.c: Likewise.
49494 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49496 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49497 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49498 (GRUB_TARGET_SIZEOF_LONG): ... this.
49499 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49500 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49501 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49505 (GRUB_TARGET_SIZEOF_LONG): ... this.
49506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49508 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49512 (GRUB_TARGET_SIZEOF_LONG): ... this.
49513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49516 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49517 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49518 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49519 instead of GRUB_HOST_SIZEOF_LONG.
49520 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49521 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49522 GRUB_CPU_WORDS_BIGENDIAN.
49523 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49524 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49527 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49528 (genmoddep_SOURCES): Likewise.
49529 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49530 (genmoddep_SOURCES): Likewise.
49531 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49532 (genmoddep_SOURCES): Likewise.
49533 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49535 (genmoddep_SOURCES): Likewise.
49537 * genmoddep.awk: New file.
49539 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49540 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49541 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49542 (PModule::rule): Likewise.
49543 (Program::rule): Likewise.
49544 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49545 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49548 * configure.ac: Rewritten intensively to use host and target
49549 instead of build and host, respectively.
49551 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49552 (host_cpu): Removed.
49553 (target_cpu): New variable.
49554 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49555 (BUILD_CC): Removed.
49556 (BUILD_CFLAGS): Likewise.
49557 (BUILD_CPPFLAGS): Likewise.
49558 (TARGET_CC): New variable.
49559 (TARGET_CFLAGS): Likewise.
49560 (TARGET_CPPFLAGS): Likewise.
49561 (TARGET_LDFLAGS): Likewise.
49563 (include): Use target_cpu instead of host_cpu.
49564 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49566 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49568 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49570 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49571 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49572 field 'false' to 'exec_on_false'.
49573 (grub_script_create_cmdif): Renamed argument names to reflect above
49576 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49578 * normal/script.c (grub_script_create_cmdif): Likewise.
49580 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49582 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49584 (grub_hfsplus_btree_recptr): Likewise.
49585 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49586 FILEBLOCK both to pass a block number and store next block
49588 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49589 overflow file correctly. Specify errors appropriately, because
49590 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49591 grub_hfsplus_btree_recptr to get the pointer to a found key.
49592 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49597 (_linux_mod_SOURCES): New variable.
49598 (_linux_mod_CFLAGS): Likewise.
49599 (_linux_mod_LDFLAGS): Likewise.
49600 (linux_mod_SOURCES): Likewise.
49601 (linux_mod_CFLAGS): Likewise.
49602 (linux_mod_LDFLAGS): Likewise.
49604 * DISTLIST: Added loader/i386/efi/linux.c,
49605 loader/i386/efi/linux_normal.c and
49606 include/grub/i386/efi/loader.h.
49608 * loader/i386/efi/linux.c: New file.
49609 * loader/i386/efi/linux_normal.c: Likewise.
49610 * include/grub/i386/efi/loader.h: Likewise.
49612 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49614 * commands/blocklist.c: New file.
49616 * DISTLIST: Added commands/blocklist.c.
49618 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49619 color for the background, and a darker color for the foreground.
49620 (grub_console_checkkey): Return READ_KEY.
49621 (grub_console_cls): Set the background to
49622 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49624 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49626 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49627 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49629 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49632 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49633 BG. The spec is wrong again.
49635 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49637 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49639 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49640 commands/blocklist.c.
49641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49643 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49644 (blocklist_mod_SOURCES): New variable.
49645 (blocklist_mod_CFLAGS): Likewise.
49646 (blocklist_mod_LDFLAGS): Likewise.
49648 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49650 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49652 (lba_mode): Use %eax more intensively to reduce the code size.
49654 2006-05-20 Marco Gerards <marco@gnu.org>
49656 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49658 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49660 (script): Accept leading newlines.
49661 (newlines): New rule to describe 0 or more newlines.
49662 (commands): Accept `command' with trailing newline. Fixed the
49663 order in which arguments were passed to `grub_script_add_cmd'.
49664 Accept commands separated by newlines.
49665 (function): Changed to accept newlines.
49666 (menuentry) Rewritten.
49668 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49669 front of the list, instead of to the end.
49671 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49673 * util/i386/pc/grub-install.in (bindir): New variable.
49674 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49675 Shaver <lbgwjl@gmail.com>.
49677 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49679 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49680 grub/machine/linux.h
49681 * loader/i386/pc/linux.c: Likewise.
49683 * include/grub/i386/pc/linux.h: Moved to ...
49684 * include/grub/i386/linux.h: ... here.
49686 * include/grub/i386/linux.h (struct linux_kernel_params): New
49689 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49691 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49693 (grub_video_vbe_blit_glyph): Likewise.
49694 (grub_video_vbe_blit_bitmap): Likewise.
49695 (grub_video_vbe_blit_render_target): Likewise.
49697 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49699 * configure.ac (--with-platform): Properly quote the square
49702 2006-05-08 Marco Gerards <marco@gnu.org>
49704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49706 (kernel_elf_HEADERS): ...to this. Updated all users.
49707 (grubof_symlist.c): Renamed from this...
49708 (kernel_elf_symlist.c): ...to this. Updated all users.
49709 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49710 (grubof_SOURCES): Renamed from this...
49711 (kernel_elf_SOURCES): ...to this.
49712 (grubof_HEADERS): Renamed from this...
49713 (kernel_elf_HEADERS): ...to this.
49714 (grubof_CFLAGS): Renamed from this...
49715 (kernel_elf_CFLAGS): ...to this.
49716 (grubof_ASFLAGS): Renamed from this...
49717 (kernel_elf_ASFLAGS): ...to this.
49718 (grubof_LDFLAGS): Renamed from this...
49719 (kernel_elf_LDFLAGS): ...to this.
49721 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49723 (kernel_elf_HEADERS): ...to this. Updated all users.
49724 (grubof_symlist.c): Renamed from this...
49725 (kernel_elf_symlist.c): ...to this. Updated all users.
49726 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49727 (grubof_SOURCES): Renamed from this...
49728 (kernel_elf_SOURCES): ...to this.
49729 (grubof_HEADERS): Renamed from this...
49730 (kernel_elf_HEADERS): ...to this.
49731 (grubof_CFLAGS): Renamed from this...
49732 (kernel_elf_CFLAGS): ...to this.
49733 (grubof_ASFLAGS): Renamed from this...
49734 (kernel_elf_ASFLAGS): ...to this.
49735 (grubof_LDFLAGS): Renamed from this...
49736 (kernel_elf_LDFLAGS): ...to this.
49738 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49739 `kernel.elf' instead of `grubof'.
49741 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49743 Add --with-platform to configure. Use pkglibdir instead of
49744 pkgdatadir. This is reported by Roger Leigh.
49746 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49747 (host_vendor): Likewise.
49748 (host_os): Likewise.
49749 (pkgdatadir): Likewise.
49750 (platform): New variable.
49751 (pkglibdir): Likewise.
49752 Use PKGLIBDIR instead of PKGDATADIR.
49754 * util/i386/pc/grub-install.in (datadir): Removed.
49755 (host_vendor): Likewise.
49756 (host_os): Likewise.
49757 (pkgdatadir): Likewise.
49758 (platform): New variable.
49759 (pkglibdir): Likewise.
49760 Use PKGLIBDIR instead of PKGDATADIR.
49762 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49763 instead of GRUB_DATADIR.
49765 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49770 * configure.ac (--with-platform): New option.
49771 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49773 * Makefile.in: Include a makefile based on PLATFORM instead of
49775 (pkgdatadir): Not appended by the machine type.
49776 (pkglibdir): Appended by the machine type.
49777 (host_vendor): Removed.
49778 (platform): New variable.
49779 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49780 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49781 (uninstall): Likewise.
49783 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49785 Use the environment context in the menu. Remove the commands
49786 "default" and "timeout", and use variables instead.
49788 * normal/menu.c: Include grub/env.h.
49789 (print_entry): Cast TITLE to silence gcc.
49790 (get_timeout): New function.
49791 (set_timeout): Likewise.
49792 (get_entry_number): Likewise.
49793 (run_menu): Use a default entry, a fallback entry and a timeout
49794 in the environment variables "default", "fallback" and
49795 "timeout". Also, tweak the default entry if it is not within the
49796 current menu entries.
49797 (grub_menu_run): Use a fallback entry in the environment variable
49800 * normal/main.c (read_config_file): Do not initialize
49801 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49803 (grub_normal_execute): Use a data slot to store the menu.
49805 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49806 fallback_entry and timeout.
49807 (struct grub_menu_list): Removed.
49808 (grub_menu_list_t): Likewise.
49809 (struct grub_context): Likewise.
49810 (grub_context_t): Likewise.
49811 (grub_context_get): Likewise.
49812 (grub_context_get_current_menu): Likewise.
49813 (grub_context_push_menu): Likewise.
49814 (grub_context_pop_menu): Likewise.
49815 (grub_default_init): Likewise.
49816 (grub_default_fini): Likewise.
49817 (grub_timeout_init): Likewise.
49818 (grub_timeout_fini): Likewise.
49820 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49822 (normal_mod_SOURCES): Removed normal/context.c.
49824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49825 commands/default.c, commands/timeout.c and normal/context.c.
49826 (normal_mod_SOURCES): Removed normal/context.c.
49828 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49829 commands/timeout.c and normal/context.c.
49830 (normal_mod_SOURCES): Removed normal/context.c.
49832 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49833 commands/default.c, commands/timeout.c and normal/context.c.
49834 (normal_mod_SOURCES): Removed normal/context.c.
49836 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49838 (default_mod_SOURCES): Removed.
49839 (default_mod_CFLAGS): Likewise.
49840 (default_mod_LDFLAGS): Likewise.
49841 (timeout_mod_SOURCES): Removed.
49842 (timeout_mod_CFLAGS): Likewise.
49843 (timeout_mod_LDFLAGS): Likewise.
49845 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49848 * commands/default.c: Removed.
49849 * commands/timeout.c: Likewise.
49850 * normal/context.c: Likewise.
49852 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49854 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49856 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49858 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49859 "next" to "prev" for readability.
49860 (struct grub_env_sorted_var): New struct.
49861 (grub_env_context): Renamed to ...
49862 (initial_context): ... this.
49863 (grub_env_var_context): Renamed to ...
49864 (current_context): ... this.
49865 (grub_env_find): Look only at CURRENT_CONTEXT.
49866 (grub_env_context_open): Rewritten to copy exported variables from
49868 (grub_env_context_close): Rewritten according to the new
49869 scheme. Also, add an assertion to prevent the initial context from
49871 (grub_env_insert): Removed the code for the sorted list.
49872 (grub_env_remove): Likewise.
49873 (grub_env_export): Simply mark the variable with
49874 GRUB_ENV_VAR_GLOBAL.
49875 (grub_env_set): A cosmetic change for naming consistency.
49876 (grub_env_get): Likewise.
49877 (grub_env_unset): Likewise.
49878 (grub_env_iterate): Rewritten to sort variables within this
49880 (grub_register_variable_hook): Fixed for naming consistency. Call
49881 grub_env_find again, only if NAME is not found at the first time.
49882 (mangle_data_slot_name): New function.
49883 (grub_env_set_data_slot): Likewise.
49884 (grub_env_get_data_slot): Likewise.
49885 (grub_env_unset_data_slot): Likewise.
49887 * include/grub/env.h (grub_env_var_type): New enum.
49888 (GRUB_ENV_VAR_LOCAL): New constant.
49889 (GRUB_ENV_VAR_GLOBAL): Likewise.
49890 (GRUB_ENV_VAR_DATA): Likewise.
49891 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49893 (grub_env_set): Replace VAR with NAME for consistency.
49894 (grub_register_variable_hook): Likewise.
49895 (grub_env_export): Specify the name of the argument.
49896 (grub_env_set_data_slot): New prototype.
49897 (grub_env_get_data_slot): Likewise.
49898 (grub_env_unset_data_slot): Likewise.
49900 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49902 Extend the loader so that GRUB can accept a loader which comes
49903 back to GRUB when a loaded image exits. Also, this change adds
49904 support for a chainloader on EFI.
49906 * term/efi/console.c: Include grub/misc.h.
49907 (grub_console_checkkey): Display a scan code on the top for
49908 debugging. This will be removed once the EFI port gets stable.
49909 Correct the scan code mapping.
49911 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49912 allocate memory from larger regions, in order to reduce the number
49913 of allocated regions. Otherwise, the MacOSX loader panics.
49914 (filter_memory_map): Avoid less than 1MB for compatibility with
49916 (add_memory_regions): Allocate from the tail of a region, if
49917 possible, to avoid allocating a region near to 1MB, for the MacOSX
49920 * kern/efi/init.c (grub_efi_set_prefix): Specify
49921 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49923 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49924 argument IMAGE_HANDLE and specify it to get a loaded image.
49925 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49926 grub_efi_get_loaded_image.
49927 (grub_efi_get_filename): Divide the length by the size of
49929 (grub_efi_get_device_path): New function.
49930 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49931 the length by the size of grub_efi_char16_t for a file path device
49934 * kern/loader.c (grub_loader_noreturn): New variable.
49935 (grub_loader_set): Accept a new argument NORETURN. Set
49936 GRUB_LOADER_NORETURN to NORETURN.
49937 All callers changed.
49938 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49941 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49943 (grub_efi_get_loaded_image): Take an argument to specify an image
49946 * include/grub/loader.h (grub_loader_set): Added one more argument
49949 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49950 instead of grub_efi_open_protocol.
49951 (grub_efidisk_get_device_name): Likewise.
49952 (grub_efidisk_close): Print a newline.
49953 (grub_efidisk_get_device_handle): Fixed to use
49954 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49955 GRUB_EFI_DEVICE_PATH_TYPE.
49957 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49958 * kern/efi/efi.c (device_path_guid): ... here.
49960 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49962 (kernel_mod_HEADERS): Added efi/disk.h.
49963 (_chain_mod_SOURCES): New variable.
49964 (_chain_mod_CFLAGS): Likewise.
49965 (_chain_mod_LDFLAGS): Likewise.
49966 (chain_mod_SOURCES): Likewise.
49967 (chain_mod_CFLAGS): Likewise.
49968 (chain_mod_LDFLAGS): Likewise.
49970 * DISTLIST: Added include/grub/efi/chainloader.h,
49971 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49973 * include/grub/efi/chainloader.h: New file.
49974 * loader/efi/chainloader.c: Likewise.
49975 * loader/efi/chainloader_normal.c: Likewise.
49977 2006-04-30 Marco Gerards <marco@gnu.org>
49979 * commands/configfile.c (grub_cmd_source): New function.
49980 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49981 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49983 2006-04-30 Marco Gerards <marco@gnu.org>
49985 * normal/execute.c (grub_script_execute_cmd): Change the return
49986 type to `grub_err_t'. Correctly return the error.
49987 (grub_script_execute_cmdline): In case a command line is not a
49988 command or a function, try to interpret it as an assignment.
49990 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49992 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49993 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49994 skip a node whose name is obviously invalid as UTF-16,
49995 i.e. contains a NUL character. Stop the iteration when the last
49996 directory entry is found. Instead of using the return value of
49997 grub_hfsplus_btree_iterate_node, store the value in RET and use
49998 it, because the iterator can be stopped by the last directory
50001 2006-04-30 Marco Gerards <marco@gnu.org>
50003 * include/grub/env.h (grub_env_export): New prototype. Reported
50004 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50006 2006-04-30 Marco Gerards <marco@gnu.org>
50008 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50009 size of the extents in a catalog file record.
50011 2006-04-29 Marco Gerards <marco@gnu.org>
50013 * commands/configfile.c (grub_cmd_configfile): Execute the
50014 configfile within its own context.
50016 * include/grub/env.h (grub_env_context_open): New prototype.
50017 (grub_env_context_close): Likewise.
50019 * kern/env.c (grub_env): Removed.
50020 (grub_env_sorted): Likewise.
50021 (grub_env_context): New variable.
50022 (grub_env_var_context): Likewise.
50023 (grub_env_find): Search both the active context and the global
50025 (grub_env_context_open): New function.
50026 (grub_env_context_close): Likewise.
50027 (grub_env_insert): Likewise.
50028 (grub_env_remove): Likewise.
50029 (grub_env_export): Likewise.
50030 (grub_env_set): Changed to use helper functions to avoid code
50032 (grub_env_iterate): Rewritten so both the current context and the
50033 global context are being used.
50035 * normal/command.c (export_command): New function.
50036 (grub_command_init): Register the `export' function.
50038 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50040 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50041 explicitly to suppress gcc's warnings.
50042 * fs/fat.c (grub_fat_find_dir): Likewise.
50043 (grub_fat_label): Likewise.
50044 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50045 (grub_xfs_mount): Likewise.
50046 (grub_xfs_label): Likewise.
50047 * fs/affs.c (grub_affs_mount): Likewise.
50048 (grub_affs_label): Likewise.
50049 (grub_affs_iterate_dir): Likewise.
50050 * fs/sfs.c (grub_sfs_mount): Likewise.
50051 (grub_sfs_iterate_dir): Likewise.
50052 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50053 * fs/hfs.c (grub_hfs_mount): Likewise.
50054 (grub_hfs_cmp_catkeys): Likewise.
50055 (grub_hfs_find_dir): Likewise.
50056 (grub_hfs_dir): Likewise.
50057 (grub_hfs_label): Likewise.
50058 * fs/jfs.c (grub_jfs_mount): Likewise.
50059 (grub_jfs_opendir): Likewise.
50060 (grub_jfs_getent): Likewise.
50061 (grub_jfs_lookup_symlink): Likewise.
50062 (grub_jfs_label): Likewise.
50063 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50064 (grub_hfsplus_iterate_dir): Likewise.
50065 (grub_hfsplus_btree_iterate_node): Made static.
50067 * util/grub-emu.c (prefix): New variable.
50068 (grub_machine_set_prefix): New function.
50069 (main): Do not set the environment variable "prefix" here. Only
50070 set PREFIX, which is used later by grub_machine_set_prefix.
50072 * include/grub/video.h: Do not include grub/symbol.h.
50073 (grub_video_register): Not exported. This symbol is not defined in
50075 (grub_video_unregister): Likewise.
50076 (grub_video_iterate): Likewise.
50077 (grub_video_setup): Likewise.
50078 (grub_video_restore): Likewise.
50079 (grub_video_get_info): Likewise.
50080 (grub_video_get_blit_format): Likewise.
50081 (grub_video_set_palette): Likewise.
50082 (grub_video_get_palette): Likewise.
50083 (grub_video_set_viewport): Likewise.
50084 (grub_video_get_viewport): Likewise.
50085 (grub_video_map_color): Likewise.
50086 (grub_video_map_rgb): Likewise.
50087 (grub_video_map_rgba): Likewise.
50088 (grub_video_fill_rect): Likewise.
50089 (grub_video_blit_glyph): Likewise.
50090 (grub_video_blit_bitmap): Likewise.
50091 (grub_video_blit_render_target): Likewise.
50092 (grub_video_scroll): Likewise.
50093 (grub_video_swap_buffers): Likewise.
50094 (grub_video_create_render_target): Likewise.
50095 (grub_video_delete_render_target): Likewise.
50096 (grub_video_set_active_render_target): Likewise.
50098 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50100 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50102 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50103 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50104 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50105 instead of $(srcdir)/genkernsyms.sh.
50107 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50108 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50109 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50110 instead of $(srcdir)/genkernsyms.sh.
50112 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50113 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50114 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50115 instead of $(srcdir)/genkernsyms.sh.
50117 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50118 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50119 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50120 instead of $(srcdir)/genkernsyms.sh.
50122 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50125 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50127 (gensymlist.sh): New target.
50128 (genkernsyms.sh): Likewise.
50130 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50131 genkernsyms.sh.in and gensymlist.sh.in.
50133 * genkernsyms.sh: Removed.
50134 * gensymlist.sh: Likewise.
50136 * genkernsyms.sh.in: New file.
50137 * gensymlist.sh.in: Likewise.
50139 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50141 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50142 clobber "prefix", since we may have already set it manually.
50144 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50146 * kern/misc.c (abort): New alias for grub_abort.
50148 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50150 A new machine-specific function "grub_machine_set_prefix" is
50151 defined. This is called after loading modules, so that a prefix
50152 initialization can use modules. Also, this change adds an
50153 intensive debugging feature for the memory manager via the
50154 configure option "--enable-mm-debug".
50156 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50159 * kern/sparc64/ieee1275/init.c (abort): Removed.
50160 (grub_stop): Likewise.
50161 (grub_exit): New function.
50162 (grub_set_prefix): Renamed to ...
50163 (grub_machine_set_prefix): ... this.
50164 (grub_machine_init): Do not call grub_set_prefix.
50166 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50167 (grub_machine_set_prefix): ... this.
50168 (grub_machine_init): Do not call grub_set_prefix.
50170 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50171 (grub_machine_init): Do not set the prefix here.
50173 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50175 * kern/efi/init.c: Include grub/mm.h.
50176 (grub_efi_set_prefix): New function.
50178 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50179 (grub_efi_get_filename): New function.
50180 (grub_print_device_path): Renamed to ...
50181 (grub_efi_print_device_path): ... this.
50183 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50184 [MM_DEBUG] (grub_realloc): Likewise.
50185 [MM_DEBUG] (grub_free): Likewise.
50186 [MM_DEBUG] (grub_memalign): Likewise.
50187 [MM_DEBUG] (grub_mm_debug): New variable.
50188 [MM_DEBUG] (grub_debug_malloc): New function.
50189 [MM_DEBUG] (grub_debug_free): New function.
50190 [MM_DEBUG] (grub_debug_realloc): New function.
50191 [MM_DEBUG] (grub_debug_memalign): New function.
50193 * kern/misc.c (grub_abort): Print a newline to distinguish
50196 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50197 grub_set_root_dev after loading modules. This is necessary when
50198 setting a prefix depends on modules.
50200 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50201 (grub_efi_print_device_path): ... this.
50202 (grub_efi_get_filename): New prototype.
50203 (grub_efi_set_prefix): Likewise.
50205 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50207 (grub_efidisk_get_device_handle): New prototype.
50208 (grub_efidisk_get_device_name): Likewise.
50210 * include/grub/mm.h: Include config.h.
50211 (MM_DEBUG): Removed.
50212 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50213 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50214 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50215 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50216 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50217 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50218 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50219 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50220 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50222 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50224 * disk/efi/efidisk.c: Include grub/partition.h.
50225 (iterate_child_devices): New function.
50226 (add_device): First, compare only last device path nodes, so that
50227 devices are sorted by the types.
50228 (grub_efidisk_get_device_handle): New function.
50229 (grub_efidisk_get_device_name): Likewise.
50231 * configure.ac (--enable-mm-debug): New option to enable the
50232 memory manager debugging feature. This makes the binary much
50233 bigger, so is disabled by default.
50235 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50237 Use grub_abort instead of grub_stop, and grub_exit must be
50238 define in each architecture now. Also, this change adds support
50241 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50242 (grub_getkey): New function.
50243 (grub_term_get_current): Likewise.
50245 * util/i386/pc/grub-setup.c: Include grub/term.h.
50246 (grub_getkey): New function.
50247 (grub_term_get_current): Likewise.
50249 * util/misc.c (grub_stop): Renamed to ...
50250 (grub_exit): ... this.
50252 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50253 (grub_exit): ... this.
50254 (grub_machine_init): Use grub_abort instead of abort.
50255 (grub_stop): Removed.
50257 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50260 * kern/i386/pc/startup.S (grub_exit): New function.
50261 (cold_reboot): New label.
50263 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50264 (grub_efi_init): Call grub_efidisk_init.
50265 (grub_efi_fini): Call grub_efidisk_fini.
50267 * kern/efi/efi.c: Include grub/mm.h.
50268 (grub_efi_console_control_guid): Renamed to ...
50269 (console_control_guid): ... this.
50270 (grub_efi_loaded_image_guid): Renamed to ...
50271 (loaded_image_guid): ... this.
50272 (grub_efi_locate_handle): New function.
50273 (grub_efi_open_protocol): Likewise.
50274 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50275 GRUB_EFI_CONSOLE_CONTROL_GUID.
50276 (grub_efi_exit): Removed.
50277 (grub_stop): Likewise.
50278 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50279 (grub_exit): New function.
50280 (grub_print_device_path): Likewise.
50282 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50283 (grub_enter_rescue_mode): Register "exit".
50285 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50286 (grub_abort): New function.
50288 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50290 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50292 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50294 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50295 (grub_print_device_path): New prototype.
50296 (grub_efi_locate_handle): Likewise.
50297 (grub_efi_open_protocol): Likewise.
50299 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50300 * disk/efi/efidisk.c: Likewise.
50302 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50304 * include/grub/efi/console_control.h
50305 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50307 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50308 last 8 bytes as an array.
50309 (GRUB_EFI_DISK_IO_GUID): New macro.
50310 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50311 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50312 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50314 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50315 (struct grub_efi_device_path): Rename the member "sub_type" to
50317 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50318 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50319 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50320 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50321 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50322 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50323 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50324 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50325 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50326 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50327 (struct grub_efi_pci_device_path): New structure.
50328 (grub_efi_pci_device_path_t): New type.
50329 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50330 (struct grub_efi_pccard_device_path): New structure.
50331 (grub_efi_pccard_device_path_t): New type.
50332 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50333 (struct grub_efi_memory_mapped_device_path): New structure.
50334 (grub_efi_memory_mapped_device_path_t): New type.
50335 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50336 (struct grub_efi_vendor_device_path): New structure.
50337 (grub_efi_vendor_device_path_t): New type.
50338 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50339 (struct grub_efi_controller_device_path): New structure.
50340 (grub_efi_controller_device_path_t): New type.
50341 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50342 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50343 (struct grub_efi_acpi_device_path): New structure.
50344 (grub_efi_acpi_device_path_t): New type.
50345 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50346 (struct grub_efi_expanded_acpi_device_path): New structure.
50347 (grub_efi_expanded_acpi_device_path_t): New type.
50348 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50349 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50350 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50351 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50352 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50353 (struct grub_efi_atapi_device_path): New structure.
50354 (grub_efi_atapi_device_path_t): New type.
50355 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50356 (struct grub_efi_fibre_channel_device_path): New structure.
50357 (grub_efi_fibre_channel_device_path_t): New type.
50358 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50359 (struct grub_efi_1394_device_path): New structure.
50360 (grub_efi_1394_device_path_t): New type.
50361 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50362 (struct grub_efi_usb_device_path): New structure.
50363 (grub_efi_usb_device_path_t): New type.
50364 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50365 (struct grub_efi_usb_class_device_path): New structure.
50366 (grub_efi_usb_class_device_path_t): New type.
50367 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50368 (struct grub_efi_i2o_device_path): New structure.
50369 (grub_efi_i2o_device_path_t): New type.
50370 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50371 (struct grub_efi_mac_address_device_path): New structure.
50372 (grub_efi_mac_address_device_path_t): New type.
50373 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50374 (struct grub_efi_ipv4_device_path): New structure.
50375 (grub_efi_ipv4_device_path_t): New type.
50376 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50377 (struct grub_efi_ipv6_device_path): New structure.
50378 (grub_efi_ipv6_device_path_t): New type.
50379 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_infiniband_device_path): New structure.
50381 (grub_efi_infiniband_device_path_t): New type.
50382 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50383 (struct grub_efi_uart_device_path): New structure.
50384 (grub_efi_uart_device_path_t): New type.
50385 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50386 (struct grub_efi_vendor_messaging_device_path): New structure.
50387 (grub_efi_vendor_messaging_device_path_t): New type.
50388 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50389 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50390 (struct grub_efi_hard_drive_device_path): New structure.
50391 (grub_efi_hard_drive_device_path_t): New type.
50392 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50393 (struct grub_efi_cdrom_device_path): New structure.
50394 (grub_efi_cdrom_device_path_t): New type.
50395 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50396 (struct grub_efi_vendor_media_device_path): New structure.
50397 (grub_efi_vendor_media_device_path_t): New type.
50398 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50399 (struct grub_efi_file_path_device_path): New structure.
50400 (grub_efi_file_path_device_path_t): New type.
50401 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50402 (struct grub_efi_protocol_device_path): New structure.
50403 (grub_efi_protocol_device_path_t): New type.
50404 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50405 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50406 (struct grub_efi_bios_device_path): New structure.
50407 (grub_efi_bios_device_path_t): New type.
50408 (struct grub_efi_disk_io): New structure.
50409 (grub_efi_disk_io_t): New type.
50410 (struct grub_efi_block_io_media): New structure.
50411 (grub_efi_block_io_media_t): New type.
50412 (struct grub_efi_block_io): New structure.
50413 (grub_efi_block_io_t): New type.
50415 * include/grub/misc.h (grub_stop): Removed.
50416 (grub_exit): New prototype.
50417 (grub_abort): Likewise.
50419 * include/grub/disk.h (enum grub_disk_dev_id): Added
50420 GRUB_DISK_DEVICE_EFIDISK_ID.
50422 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50423 disk/efi/efidisk.c.
50424 (kernel_syms.lst): Remove the target if an error occurs.
50426 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50428 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50429 as it was simply too buggy.
50431 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50433 * kern/misc.c (grub_lltoa): New function.
50434 (grub_vsprintf): Added support for the long long suffix,
50437 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50439 * Makefile.in (LDFLAGS): Add variable.
50440 (LD): Remove variable.
50441 * configure.ac: Add -m32 to LDFLAGS.
50442 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50443 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50444 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50445 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50446 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50448 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50449 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50450 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50452 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50454 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50455 length for unknown glyph.
50457 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50459 Add support for pre-loaded modules into the EFI port.
50461 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50462 completely. Accept one more argument DIR. The caller has changed.
50464 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50466 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50467 (grub_efi_loaded_image_guid): New variable.
50468 (grub_efi_get_loaded_image): New function.
50469 (grub_arch_modules_addr): Likewise.
50471 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50474 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50475 (struct grub_efi_loaded_image): New structure.
50476 (grub_efi_loaded_image_t): New type.
50478 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50480 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50481 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50482 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50484 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50486 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50488 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50490 * DISTLIST: Added include/grub/efi/console.h,
50491 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50492 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50494 * include/grub/efi/console.h: New file.
50495 * include/grub/efi/time.h: Likewise.
50496 * include/grub/i386/efi/kernel.h: Likewise.
50497 * kern/efi/init.c: Likewise.
50498 * kern/efi/mm.c: Likewise.
50499 * term/efi/console.c: Likewise.
50501 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50502 (grub_stop): Removed.
50503 (grub_get_rtc): Likewise.
50504 (grub_machine_init): Simply call grub_efi_init.
50505 (grub_machine_fini): Call grub_efi_fini.
50507 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50508 (grub_efi_output_string): Removed.
50509 (grub_efi_stall): New function.
50510 (grub_stop): Likewise.
50511 (grub_get_rtc): Likewise.
50513 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50514 (grub_efi_stall): New prototype.
50515 (grub_efi_allocate_pages): Likewise.
50516 (grub_efi_free_pages): Likewise.
50517 (grub_efi_get_memory_map): Likewise.
50518 (grub_efi_mm_init): Likewise.
50519 (grub_efi_mm_fini): Likewise.
50520 (grub_efi_init): Likewise.
50521 (grub_efi_fini): Likewise.
50523 * include/grub/i386/efi/time.h: Do not include
50524 grub/symbol.h. Include grub/efi/time.h.
50525 (GRUB_TICKS_PER_SECOND): Removed.
50526 (grub_get_rtc): Likewise.
50528 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50529 Added padding. The EFI spec is buggy.
50530 (GRUB_EFI_BLACK): New macro.
50531 (GRUB_EFI_BLUE): Likewise.
50532 (GRUB_EFI_GREEN): Likewise.
50533 (GRUB_EFI_CYAN): Likewise.
50534 (GRUB_EFI_RED): Likewise.
50535 (GRUB_EFI_MAGENTA): Likewise.
50536 (GRUB_EFI_BROWN): Likewise.
50537 (GRUB_EFI_LIGHTGRAY): Likewise.
50538 (GRUB_EFI_BRIGHT): Likewise.
50539 (GRUB_EFI_DARKGRAY): Likewise.
50540 (GRUB_EFI_LIGHTBLUE): Likewise.
50541 (GRUB_EFI_LIGHTGREEN): Likewise.
50542 (GRUB_EFI_LIGHTCYAN): Likewise.
50543 (GRUB_EFI_LIGHTRED): Likewise.
50544 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50545 (GRUB_EFI_YELLOW): Likewise.
50546 (GRUB_EFI_WHITE): Likewise.
50547 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50548 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50549 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50550 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50551 (GRUB_EFI_BACKGROUND_RED): Likewise.
50552 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50553 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50554 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50555 (GRUB_EFI_TEXT_ATTR): Likewise.
50557 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50558 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50559 (kernel_mod_HEADERS): Added efi/time.h.
50561 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50563 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50564 include/grub/efi/api.h, include/grub/efi/console_control.h,
50565 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50566 include/grub/i386/efi/time.h, kern/efi/efi.c,
50567 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50568 and util/i386/efi/grub-mkimage.c.
50570 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50572 * genmk.rb (PModule#rule): Do not export symbols if
50573 #{prefix}_EXPORTS is set to "no".
50575 * conf/i386-efi.mk: New file.
50576 * conf/i386-efi.rmk: Likewise.
50577 * include/grub/efi/api.h: Likewise.
50578 * include/grub/efi/console_control.h: Likewise.
50579 * include/grub/efi/efi.h: Likewise.
50580 * include/grub/efi/pe32.h: Likewise.
50581 * include/grub/i386/efi/time.h: Likewise.
50582 * kern/efi/efi.c: Likewise.
50583 * kern/i386/efi/init.c: Likewise.
50584 * kern/i386/efi/startup.S: Likewise.
50585 * util/i386/efi/grub-mkimage.c: Likewise.
50587 2006-04-17 Marco Gerards <marco@gnu.org>
50589 * include/grub/script.h: Include <grub/parser.h> and
50590 "grub_script.tab.h".
50591 (struct grub_lexer_param): New struct.
50592 (struct grub_parser_param): Likewise.
50593 (grub_script_create_arglist): Pass the state in an argument.
50594 (grub_script_add_arglist): Likewise.
50595 (grub_script_create_cmdline): Likewise.
50596 (grub_script_create_cmdblock): Likewise.
50597 (grub_script_create_cmdif): Likewise.
50598 (grub_script_create_cmdmenu): Likewise.
50599 (grub_script_add_cmd): Likewise.
50600 (grub_script_arg_add): Likewise.
50601 (grub_script_lexer_ref): Likewise.
50602 (grub_script_lexer_deref): Likewise.
50603 (grub_script_lexer_record_start): Likewise.
50604 (grub_script_lexer_record_stop): Likewise.
50605 (grub_script_mem_record): Likewise.
50606 (grub_script_mem_record_stop): Likewise.
50607 (grub_script_malloc): Likewise.
50608 (grub_script_yylex): Likewise.
50609 (grub_script_yyparse): Likewise.
50610 (grub_script_yyerror): Likewise.
50611 (grub_script_yylex): Likewise.
50612 (grub_script_lexer_init): Return the state.
50614 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50615 (grub_script_lexer_done): Likewise.
50616 (grub_script_lexer_getline): Likewise.
50617 (grub_script_lexer_refs): Likewise.
50618 (script): Likewise.
50619 (newscript): Likewise.
50620 (record): Likewise.
50621 (recording): Likewise.
50622 (recordpos): Likewise.
50623 (recordlen): Likewise.
50624 (grub_script_lexer_init): Return the state instead of setting
50626 (grub_script_lexer_ref): Use the newly added argument for state
50627 instead of globals.
50628 (grub_script_lexer_deref): Likewise.
50629 (grub_script_lexer_record_start): Likewise.
50630 (grub_script_lexer_record_stop): Likewise.
50631 (recordchar): Likewise.
50632 (nextchar): Likewise.
50633 (grub_script_yylex2): Likewise.
50634 (grub_script_yylex): Likewise.
50635 (grub_script_yyerror): Likewise.
50637 * normal/parser.y (func_mem): Removed variable.
50638 (menu_entry): Likewise.
50640 (%lex-param): New parser option.
50641 (%parse-param): Likewise.
50642 (script): Always return the AST.
50643 (argument): Pass the state around.
50644 (arguments): Likewise.
50645 (grubcmd): Likewise.
50646 (commands): Likewise.
50647 (function): Likewise.
50648 (menuentry): Likewise.
50649 (if_statement): Likewise.
50652 * normal/script.c (grub_script_memused): Removed variable.
50653 (grub_script_parsed): Likewise.
50654 (grub_script_malloc): Added a state argument. Use that instead of
50656 (grub_script_mem_record): Likewise.
50657 (grub_script_mem_record_stop): Likewise.
50658 (grub_script_arg_add): Likewise.
50659 (grub_script_add_arglist): Likewise.
50660 (grub_script_create_cmdline): Likewise.
50661 (grub_script_create_cmdif): Likewise.
50662 (grub_script_create_cmdmenu): Likewise.
50663 (grub_script_add_cmd): Likewise.
50664 (grub_script_parse): Setup the state before calling the parser.
50666 2006-04-16 Marco Gerards <marco@gnu.org>
50668 * normal/command.c (grub_command_init): Remove the title command.
50670 * normal/lexer.c (grub_script_yylex): Renamed from this...
50671 (grub_script_yylex2): ... to this.
50672 (grub_script_yylex): New function. Temporary
50673 introduced to filter some tokens.
50674 (grub_script_yyerror): Print a newline.
50676 * normal/main.c (read_config_file): Output information about the
50677 lines that contain errors. Wait for a key after all lines have
50678 been processed. Don't return an empty menu.
50680 * normal/parser.y (func_mem): Don't initialize.
50681 (menu_entry): Likewise.
50682 (err): New variable.
50683 (script): Don't return anything when an error was encountered.
50684 (ws, returns): Removed rules.
50685 (argument): Disabled concatenated variable support.
50686 (arguments): Remove explicit separators.
50687 (grubcmd): Likewise.
50688 (function): Likewise.
50689 (menuentry): Likewise.
50691 (commands): Likewise. Add error handling.
50693 * normal/script.c (grub_script_create_cmdline): If
50694 `grub_script_parsed' is 0, assume the parser encountered an error.
50696 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50698 * configure.ac: Add support for EFI. Fix the typo
50699 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50701 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50703 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50704 foreign multibyte characters should be shown correctly.
50706 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50708 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50710 (read_config_file): Made it to close file before returning.
50712 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50714 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50715 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50716 video/i386/pc/vbefill.c.
50718 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50719 video/i386/pc/vbefill.c.
50721 * include/grub/video.h (grub_video_blit_format): New enum.
50722 (grub_video_mode_info): Added new member blit_format.
50723 (grub_video_get_blit_format): New function prototype.
50725 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50726 function prototype.
50727 (grub_video_vbe_map_rgb): Likewise.
50728 (grub_video_vbe_unmap_color): Likewise.
50730 * include/grub/i386/pc/vbeblit.h: New file.
50732 * include/grub/i386/pc/vbefill.h: New file.
50734 * video/video.c (grub_video_get_blit_format): New function.
50735 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50736 (grub_video_vbe_map_rgb): Likewise.
50737 (grub_video_vbe_unmap_color): Likewise.
50739 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50741 (grub_video_vbe_blit_render_target): Changed to use more optimized
50743 (grub_video_vbe_setup): Added detection for optimized settings.
50744 (grub_video_vbe_create_render_target): Likewise.
50746 * video/i386/pc/vbeblit.c: New file.
50748 * video/i386/pc/vbefill.c: New file.
50750 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50752 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50755 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50756 parsing to support both hex and dec ranges. If filename was missing
50757 show usage information.
50759 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50761 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50762 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50764 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50765 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50766 (video_mod_SOURCES): Added.
50767 (video_mod_CFLAGS): Likewise.
50768 (video_mod_LDFLAGS): Likewise.
50769 (gfxterm_mod_SOURCES): Likewise.
50770 (gfxterm_mod_CFLAGS): Likewise.
50771 (gfxterm_mod_LDFLAGS): Likewise.
50772 (videotest_mod_SOURCES): Likewise.
50773 (videotest_mod_CFLAGS): Likewise.
50774 (videotest_mod_LDFLAGS): Likewise.
50775 (vesafb_mod_SOURCES): Removed.
50776 (vesafb_mod_CFLAGS): Likewise.
50777 (vesafb_mod_LDFLAGS): Likewise.
50778 (vga_mod_SOURCES): Likewise.
50779 (vga_mod_CFLAGS): Likewise.
50780 (vga_mod_LDFLAGS): Likewise.
50782 * commands/videotest.c: New file.
50784 * font/manager.c (fill_with_default_glyph): Modified to use
50786 (grub_font_get_glyph): Likewise.
50787 (fontmanager): Renamed from this...
50788 (font_manager): ... to this.
50790 * include/grub/font.h (grub_font_glyph): Added new structure.
50791 (grub_font_get_glyph): Modified to use grub_font_glyph.
50793 * include/grub/misc.h (grub_abs): Added as inline function.
50795 * include/grub/video.h: New file.
50797 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50798 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50799 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50800 (grub_vbe_get_controller_info): Renamed from this...
50801 (grub_vbe_bios_get_controller_info): ... to this.
50802 (grub_vbe_get_mode_info): Renamed from this...
50803 (grub_vbe_bios_get_mode_info): ... to this.
50804 (grub_vbe_set_mode): Renamed from this...
50805 (grub_vbe_bios_set_mode): ... to this.
50806 (grub_vbe_get_mode): Renamed from this...
50807 (grub_vbe_bios_get_mode): ... to this.
50808 (grub_vbe_set_memory_window): Renamed from this...
50809 (grub_vbe_bios_set_memory_window): ... to this.
50810 (grub_vbe_get_memory_window): Renamed from this...
50811 (grub_vbe_bios_get_memory_window): ... to this.
50812 (grub_vbe_set_scanline_length): Renamed from this...
50813 (grub_vbe_set_scanline_length): ... to this.
50814 (grub_vbe_get_scanline_length): Renamed from this...
50815 (grub_vbe_bios_get_scanline_length): ... to this.
50816 (grub_vbe_set_display_start): Renamed from this...
50817 (grub_vbe_bios_set_display_start): ... to this.
50818 (grub_vbe_get_display_start): Renamed from this...
50819 (grub_vbe_bios_get_display_start): ... to this.
50820 (grub_vbe_set_palette_data): Renamed from this...
50821 (grub_vbe_bios_set_palette_data): ... to this.
50822 (grub_vbe_set_pixel_rgb): Removed.
50823 (grub_vbe_set_pixel_index): Likewise.
50825 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50827 (grub_vbe_bios_get_controller_info): ... to this.
50828 (grub_vbe_get_mode_info): Renamed from this...
50829 (grub_vbe_bios_get_mode_info): ... to this.
50830 (grub_vbe_set_mode): Renamed from this...
50831 (grub_vbe_bios_set_mode): ... to this.
50832 (grub_vbe_get_mode): Renamed from this...
50833 (grub_vbe_bios_get_mode): ... to this.
50834 (grub_vbe_set_memory_window): Renamed from this...
50835 (grub_vbe_bios_set_memory_window): ... to this.
50836 (grub_vbe_get_memory_window): Renamed from this...
50837 (grub_vbe_bios_get_memory_window): ... to this.
50838 (grub_vbe_set_scanline_length): Renamed from this...
50839 (grub_vbe_set_scanline_length): ... to this.
50840 (grub_vbe_get_scanline_length): Renamed from this...
50841 (grub_vbe_bios_get_scanline_length): ... to this.
50842 (grub_vbe_set_display_start): Renamed from this...
50843 (grub_vbe_bios_set_display_start): ... to this.
50844 (grub_vbe_get_display_start): Renamed from this...
50845 (grub_vbe_bios_get_display_start): ... to this.
50846 (grub_vbe_set_palette_data): Renamed from this...
50847 (grub_vbe_bios_set_palette_data): ... to this.
50848 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50849 getting corrupted after calling it. Added more pushes and pops.
50850 (grub_vbe_bios_set_mode): Likewise.
50851 (grub_vbe_bios_get_mode): Likewise.
50852 (grub_vbe_bios_get_memory_window): Likewise.
50853 (grub_vbe_bios_set_scanline_length): Likewise.
50854 (grub_vbe_bios_get_scanline_length): Likewise.
50855 (grub_vbe_bios_get_display_start): Likewise.
50856 (grub_vbe_bios_set_palette_data): Likewise.
50858 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50859 (cl_insert): Likewise.
50860 (cl_delete): Likewise.
50862 * term/gfxterm.c: New file.
50864 * term/i386/pc/vesafb.c: Removed file.
50866 * video/video.c: New file.
50868 * video/i386/pc/vbe.c (real2pm): Added new function.
50869 (grub_video_vbe_draw_pixel): Likewise.
50870 (grub_video_vbe_get_video_ptr): Likewise.
50871 (grub_video_vbe_get_pixel): Likewise
50872 (grub_video_vbe_init): Likewise.
50873 (grub_video_vbe_fini): Likewise.
50874 (grub_video_vbe_setup): Likewise.
50875 (grub_video_vbe_get_info): Likewise.
50876 (grub_video_vbe_set_palette): Likewise.
50877 (grub_video_vbe_get_palette): Likewise.
50878 (grub_video_vbe_set_viewport): Likewise.
50879 (grub_video_vbe_get_viewport): Likewise.
50880 (grub_video_vbe_map_color): Likewise.
50881 (grub_video_vbe_map_rgb): Likewise.
50882 (grub_video_vbe_map_rgba): Likewise.
50883 (grub_video_vbe_unmap_color): Likewise.
50884 (grub_video_vbe_fill_rect): Likewise.
50885 (grub_video_vbe_blit_glyph): Likewise.
50886 (grub_video_vbe_blit_bitmap): Likewise.
50887 (grub_video_vbe_blit_render_target): Likewise.
50888 (grub_video_vbe_scroll): Likewise.
50889 (grub_video_vbe_swap_buffers): Likewise.
50890 (grub_video_vbe_create_render_target): Likewise.
50891 (grub_video_vbe_delete_render_target): Likewise.
50892 (grub_video_vbe_set_active_render_target): Likewise.
50893 (grub_vbe_set_pixel_rgb): Remove function.
50894 (grub_vbe_set_pixel_index): Likewise.
50895 (index_color_mode): Remove static variable.
50896 (active_mode): Likewise.
50897 (framebuffer): Likewise.
50898 (bytes_per_scan_line): Likewise.
50899 (grub_video_vbe_adapter): Added new static variable.
50900 (framebuffer): Likewise.
50901 (render_target): Likewise.
50902 (initial_mode): Likewise.
50903 (mode_in_use): Likewise.
50904 (mode_list): Likewise.
50906 2006-03-10 Marco Gerards <marco@gnu.org>
50908 * configure.ac (AC_INIT): Bumped to 1.93.
50910 * DISTLIST: Added `include/grub/hfs.h'.
50912 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50914 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50915 18H, which might help the BIOS falling back to next boot media.
50917 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50919 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50920 Poe Chen <poe.poechen@gmail.com>.
50922 2006-01-17 Marco Gerards <marco@gnu.org>
50924 * include/grub/normal.h: Include <grub/script.h>.
50925 (grub_command_list): Removed struct.
50926 (grub_command_list_t): Removed type.
50927 (grub_menu_entry): Remove members `num' and `command_list'. Add
50928 members `commands' and `sourcecode'.
50929 * include/grub/script.h: Add inclusion guards.
50930 (grub_script_cmd_menuentry): New struct.
50931 (grub_script_execute_menuentry): New prototype.
50932 (grub_script_lexer_record_start): Likewise.
50933 (grub_script_lexer_record_stop): Likewise.
50934 * normal/execute.c (grub_script_execute_menuentry): New function.
50935 * normal/lexer.c (record, recording, recordpos, recordlen): New
50937 (grub_script_lexer_record_start): New function.
50938 (grub_script_lexer_record_stop): Likewise.
50939 (recordchar): Likewise.
50940 (nextchar): Likewise.
50941 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50942 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50943 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50944 (current_menu): New variable.
50945 (free_menu): Mainly rewritten.
50946 (grub_normal_menu_addentry): New function.
50947 (read_config_file): Rewritten.
50948 * normal/menu.c (run_menu_entry): Mainly rewritten.
50949 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50951 (run): Mainly rewritten.
50952 * normal/parser.y (menu_entry): New variable.
50953 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50954 (menuentry): New rule.
50955 (command): Add `menuentry'.
50956 (if_statement): Allow additional returns before `fi'.
50957 * normal/script.c (grub_script_create_cmdmenu): New function.
50959 2006-01-03 Marco Gerards <marco@gnu.org>
50961 * INSTALL: GNU Bison is required.
50962 * configure.ac: Rewritten the test to detect Bison.
50963 * Makefile.in (YACC): New variable. Reported by Xun Sun
50964 <xun.sun.cn@gmail.com>.
50966 2006-01-03 Marco Gerards <marco@gnu.org>
50968 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50969 the HFS+ filesystem to filesystem blocks.
50970 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50971 GCC warning is silenced.
50973 2006-01-03 Marco Gerards <marco@gnu.org>
50975 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50976 read from disk from big endian to host byte order.
50978 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50980 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50982 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50983 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50984 embedded HFS+ filesystem.
50985 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50986 (grub_hfs_sblock): Move from here...
50987 * include/grub/hfs.h: To here... New file.
50988 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50990 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50992 (grub_hfsplus_volheader): Change type of member `magic' to
50994 (grub_hfsplus_data): Add new member `embedded_offset'.
50995 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50997 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50998 Calculate the offset.
51000 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51004 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51006 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51008 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51009 ENV->NAME is NULL after allocating ENV->VALUE.
51011 2005-12-25 Marco Gerards <marco@gnu.org>
51013 * kern/env.c (grub_env_set): Rewritten the error handling code.
51015 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51017 * geninit.sh: Made more robust, and more portable.
51019 2005-12-25 Marco Gerards <marco@gnu.org>
51021 Add support for Apple HFS+ filesystems.
51023 * fs/hfsplus.c: New file.
51025 * DISTLIST: Added `fs/hfsplus.c'.
51027 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51028 (hfsplus_mod_SOURCES): New variable.
51029 (hfsplus_mod_CFLAGS): Likewise.
51030 (hfsplus_mod_LDFLAGS): Likewise.
51031 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51032 (grub_setup_SOURCES): Likewise.
51033 (grub_mkdevicemap_SOURCES): Likewise.
51034 (grub_emu_SOURCES): Likewise.
51035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51037 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51039 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51041 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51043 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51044 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51045 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51046 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51047 normal/lexer.c, normal/parser.y, normal/script.c, and
51049 Removed kern/sparc64/cache.c.
51051 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51052 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51055 * configure.ac (AC_INIT): Bumped to 1.92.
51057 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51059 * kern/err.c (grub_error_push): Added new function to support error
51061 (grub_error_pop): Likewise.
51062 (grub_error_stack_items): New local variable to support error stacks.
51063 (grub_error_stack_pos): Likewise.
51064 (grub_error_stack_assert): Likewise.
51065 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51067 (grub_print_error): Added support to print errors from error stack.
51069 * include/grub/err.h (grub_error_push): Added function prototype.
51070 (grub_error_pop): Likewise.
51072 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51074 * configure.ac: Accept `powerpc64' as host_cpu.
51075 (amd64): Rename to `biarch32'.
51077 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51078 non-cacheline-aligned addresses.
51080 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51081 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51082 if `size' is non-zero.
51084 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51086 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51087 and `cd' to make sure the filename is not prefixed with a
51089 (pkgdata_MODULES): Add `gpt.mod'.
51090 (gpt_mod_SOURCES): New variable.
51091 (gpt_mod_CFLAGS): Likewise.
51092 (gpt_mod_LDFLAGS): Likewise.
51094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51096 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51099 * partmap/gpt.c: New file.
51101 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51102 GPT partition map is detected.
51104 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51106 * commands/i386/pc/play.c: New file.
51107 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51108 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51111 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51113 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51114 ((unused))' to silence gcc warning.
51116 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51118 * configure.ac: Correct `AC_PROG_YACC' test.
51120 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51122 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51123 check before installing files.
51125 2005-11-22 Mike Small <smallm@panix.com>
51127 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51128 number regex so multidigit numbers are recognized correctly.
51130 2005-11-22 Mike Small <smallm@panix.com>
51132 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51133 debugging message before attempting to claim memory.
51134 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51135 multiple addresses in case of failure.
51137 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51139 * term/tparm.c (get_space): Remove empty `if' statement.
51141 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51143 * kern/parser.c (check_varstate): Rename `state' to 's'.
51145 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51147 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51148 variable definitions to the beginning of each function. Sort stack
51150 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51151 `buf' argument to `char *'.
51153 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51155 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51156 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51157 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51158 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51159 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51160 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51161 configfile.mod, search.mod, gzio.mod and test.mod.
51162 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51163 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51164 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51165 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51166 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51167 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51168 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51169 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51170 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51171 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51172 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51173 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51174 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51175 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51176 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51177 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51178 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51179 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51180 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51181 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51182 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51183 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51184 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51186 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51188 (pkgdata_MODULES): Add test.mod.
51190 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51192 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51193 appending to variables with "+=".
51194 (PModule): Use full pathname to generate *.lst filenames.
51196 * Makefile.in: Fixed list rules moved from genmk.rb.
51197 (.DELETE_ON_ERROR): New special target.
51198 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51200 * conf/i386-pc.rmk: Include conf/common.mk.
51201 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51202 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51203 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51204 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51205 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51206 configfile.mod, search.mod, gzio.mod and test.mod.
51207 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51208 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51209 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51210 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51211 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51212 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51213 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51214 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51215 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51216 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51217 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51218 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51219 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51220 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51221 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51222 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51223 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51224 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51225 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51226 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51227 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51228 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51229 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51231 * conf/common.rmk: ... to here. New file.
51233 * conf/common.mk: New file.
51235 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51237 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51238 (grub_script.tab.c): ... here.
51240 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51241 (grub_script.tab.c): ... here.
51243 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51244 (grub_script.tab.c): ... here.
51246 * normal/command.c (grub_command_find): Fixed a memory leak of
51247 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51249 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51251 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51252 "@" which marks the start of a comment on ARM.
51253 (VARIABLE): Likewise.
51255 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51257 Add support for Linux/ADFS partition tables.
51259 * partmap/acorn.c: New file.
51261 * include/grub/acorn_filecore.h: Likewise.
51263 * DISTLIST: Added `partmap/acorn.c' and
51264 `include/grub/acorn_filecore.h'.
51266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51268 (pkgdata_MODULES): Add `acorn.mod'.
51269 (acorn_mod_SOURCES): New variable.
51270 (acorn_mod_CFLAGS): Likewise.
51272 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51274 (pkgdata_MODULES): Add `acorn.mod'.
51275 (acorn_mod_SOURCES): New variable.
51276 (acorn_mod_CFLAGS): Likewise.
51278 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51279 (pkgdata_MODULES): Add `acorn.mod'.
51280 (acorn_mod_SOURCES): New variable.
51281 (acorn_mod_CFLAGS): Likewise.
51282 (acorn_mod_LDFLAGS): Likewise.
51284 * include/types.h (grub_disk_addr_t): New typedef.
51286 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51288 * geninit.sh: New file.
51290 * geninitheader.sh: Likewise.
51292 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51293 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51294 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51295 * commands/configfile.c (grub_configfile_init)
51296 (grub_configfile_fini): Likewise.
51297 * commands/default.c (grub_default_init, grub_default_fini):
51299 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51300 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51301 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51302 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51304 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51305 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51307 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51308 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51310 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51312 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51314 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51315 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51316 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51317 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51318 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51319 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51320 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51321 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51322 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51323 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51324 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51325 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51326 * partmap/amiga.c (grub_amiga_partition_map_init)
51327 (grub_amiga_partition_map_fini): Likewise.
51328 * partmap/apple.c (grub_apple_partition_map_init)
51329 (grub_apple_partition_map_fini): Likewise.
51330 * partmap/pc.c (grub_pc_partition_map_init)
51331 (grub_pc_partition_map_fini): Likewise.
51332 * partmap/sun.c (grub_sun_partition_map_init,
51333 grub_sun_partition_map_fini): Likewise.
51334 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51337 * util/grub-emu.c: Include <grub_modules_init.h>.
51338 (main): Don't initialize and de-initialize any modules directly,
51339 use `grub_init_all' and `grub_fini_all' instead.
51341 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51342 `grub_vesafb_mod_init'.
51343 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51345 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51346 `grub_vga_mod_init'. Updated all users.
51347 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51349 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51350 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51353 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51354 Generate a function to initialize the module in utilities.
51355 Updated all callers.
51356 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51357 initialize the module in utilities. Updated all callers.
51359 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51361 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51362 escape sequence and a literal ^L to clear the screen.
51364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51365 when returning from Open Firmware.
51367 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51369 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51370 (grub_ofconsole_height): Likewise.
51371 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51372 manually insert a '\n'.
51373 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51374 `grub_ofconsole_height'. Return early if these are already set.
51376 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51378 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51379 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51380 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51381 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51382 and `normal/script.c'.
51383 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51384 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51385 (test_mod_SOURCES): New variable.
51386 (test_mod_CFLAGS): Likewise.
51387 (test_mod_LDFLAGS): Likewise.
51388 (pkgdata_MODULES): Add `test.mod'.
51389 (grub_script.tab.c): New rule.
51390 (grub_script.tab.h): Likewise.
51392 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51395 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51396 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51399 (test_mod_SOURCES): New variable.
51400 (test_mod_CFLAGS): Likewise.
51401 (pkgdata_MODULES): Add `test.mod'.
51402 (grub_script.tab.c): New rule.
51403 (grub_script.tab.h): Likewise.
51405 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51407 Add initial scripting support.
51409 * commands/test.c: New file.
51410 * include/grub/script.h: Likewise.
51411 * normal/execute.c: Likewise.
51412 * normal/function.c: Likewise.
51413 * normal/lexer.c: Likewise.
51414 * normal/parser.y: Likewise.
51415 * normal/script.c: Likewise.
51417 * configure.ac: Add `AC_PROG_YACC' test.
51419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51420 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51421 `normal/function.c' and `normal/script.c'.
51422 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51423 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51424 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51426 (pkgdata_MODULES): Add `test.mod'.
51427 (grub_script.tab.c): New rule.
51428 (grub_script.tab.h): Likewise.
51430 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51432 * include/grub/normal.h (grub_test_init): New prototype.
51433 (grub_test_fini): Likewise.
51435 * normal/command.c: Include <grub/script.h>.
51436 (grub_command_execute): Rewritten.
51438 * util/grub-emu.c (main): Call `grub_test_init' and
51441 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51443 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51445 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51446 there are no pending characters.
51448 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51450 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51451 `grub_strndup' to drop device arguments. Replace unnecessary
51452 `grub_strndup' with `grub_strdup'.
51454 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51456 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51457 `debug' environment variable has been set.
51459 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51461 * Makefile.in (install-local): Use $(DATA).
51462 (uninstall): Likewise.
51463 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51464 (sbin_UTILITIES): ... to here.
51465 (sbin_SCRIPTS): New variable.
51466 (grub_install_SOURCES): New variable.
51467 * util/powerpc/ieee1275/grub-install.in: New file.
51468 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51470 (add_segments): Call `grub_util_get_path'.
51472 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51474 From Timothy Baldwin:
51475 * commands/ls.c (grub_ls_list_files): Close FILE with
51477 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51479 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51481 * include/grub/parser.h: New file.
51483 * kern/parser.c: Likewise.
51485 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51486 (grub_setup_SOURCES): Likewise.
51487 (grub_probefs_SOURCES): Likewise.
51488 (grub_emu_SOURCES): Likewise.
51489 (kernel_img_HEADERS): Add `parser.h'.
51491 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51492 (grub_emu_SOURCES): Add `kern/parser.c'.
51493 (grubof_SOURCES): Likewise.
51495 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51496 (grubof_SOURCES): Add `kern/parser.c'.
51498 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51500 * kern/misc.c (grub_split_cmdline): Removed function.
51502 * kern/rescue.c: Include <grub/parser.h>.
51503 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51504 of `grub_split_cmdline'.
51506 * normal/command.c: Include <grub/parser.h>.
51507 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51508 of `grub_split_cmdline'.
51510 * normal/completion.c: Include <grub/parser.h>.
51511 (cmdline_state): New variable.
51512 (iterate_dir): End the filename with a quote depending on the
51513 command line state.
51514 (get_state): new function.
51515 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51516 split the arguments and determine the current argument. When the
51517 argument string is not quoted, escape all spaces.
51519 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51521 * normal/sparc64/setjmp.S: New file.
51523 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51525 * include/grub/sparc64/libgcc.h: New file.
51526 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51527 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51528 normal/sparc64/setjmp.c.
51530 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51532 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51533 * kern/sparc64/cache.S: New file.
51534 * kern/sparc64/cache.c: Removed.
51535 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51536 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51538 (COMMON_LDFLAGS): Add -melf64_sparc.
51539 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51540 (grubof_SOURCES): Use cache.S instead of cache.c.
51541 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51542 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51543 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51545 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51546 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51547 (linux_mod_CFLAGS): Commented out.
51548 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51549 out because module isn't built.
51550 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51551 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51552 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51553 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51554 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51555 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51556 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51557 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51558 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51559 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51560 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51561 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51562 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51563 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51565 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51567 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51568 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51569 longer, because HFS should not be used on PC.
51571 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51573 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51574 consistently within the loop.
51576 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51578 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51579 directory can not be read.
51581 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51583 * configure.ac (AC_INIT): Increase the version number to 1.91.
51585 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51586 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51587 term/i386/pc/serial.c.
51589 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51591 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51592 file size must be permitted.
51594 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51595 between %ah and %al.
51597 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51599 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51601 Call the hook with a NUL-terminated filename.
51602 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51605 * kern/term.c (cursor_state): New variable.
51606 (grub_term_set_current): Reset the cursor state on a new
51608 (grub_setcursor): Rewritten to use CURSOR_STATE.
51609 (grub_getcursor): New function.
51611 * include/grub/term.h (grub_getcursor): New prototype.
51613 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51614 integers on ARM. Reported by Timothy Baldwin
51615 <T.E.Baldwin99@members.leeds.ac.uk>.
51617 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51619 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51621 (grub_sfs_dir): Likewise.
51623 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51625 Add support for the SFS filesystem.
51627 * fs/sfs.c: New file.
51629 * DISTLIST: Added `fs/sfs.c'.
51631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51632 (grub_probefs_SOURCES): Likewise.
51633 (grub_emu_SOURCES): Likewise.
51634 (pkgdata_MODULES): Add `sfs.mod'.
51635 (sfs_mod_SOURCES): New variable.
51636 (sfs_mod_CFLAGS): Likewise.
51637 (sfs_mod_LDFLAGS): Likewise.
51639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51640 (pkgdata_MODULES): Add `sfs.mod'.
51641 (sfs_mod_SOURCES): New variable.
51642 (sfs_mod_CFLAGS): Likewise.
51644 * util/grub-emu.c (main): Call `grub_sfs_init' and
51647 * include/grub/fs.h (grub_sfs_init): New prototype.
51648 (grub_sfs_fini): Likewise.
51650 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51652 Add support for the AFFS filesystem.
51654 * fs/affs.c: New file.
51656 * DISTLIST: Added `fs/affs.c'.
51658 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51659 (grub_probefs_SOURCES): Likewise.
51660 (grub_emu_SOURCES): Likewise.
51661 (pkgdata_MODULES): Add `affs.mod'.
51662 (affs_mod_SOURCES): New variable.
51663 (affs_mod_CFLAGS): Likewise.
51664 (affs_mod_LDFLAGS): Likewise.
51666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51667 (pkgdata_MODULES): Add `affs.mod'.
51668 (affs_mod_SOURCES): New variable.
51669 (affs_mod_CFLAGS): Likewise.
51671 * util/grub-emu.c (main): Call `grub_affs_init' and
51674 * include/grub/fs.h (grub_affs_init): New prototype.
51675 (grub_affs_fini): Likewise.
51677 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51679 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51681 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51683 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51686 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51689 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51690 (COMMON_LDFLAGS): New variable.
51691 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51692 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51693 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51694 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51695 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51696 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51697 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51698 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51699 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51700 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51701 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51702 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51703 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51704 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51705 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51707 (normal_mod_ASFLAGS): Add `-m32'.
51709 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51710 (grub_host_size_t, grub_host_ssize_t): New types.
51711 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51712 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51713 `GRUB_HOST_SIZEOF_VOID_P'.
51715 * include/grub/kernel.h (struct grub_module_header): Type of
51716 member offset changed to `grub_host_off_t'. Type of member size
51717 changed to `grub_host_size_t'.
51718 (struct grub_module_info): Type of member offset changed to
51719 `grub_host_off_t'. Type of member size changed to
51720 `grub_host_size_t'.
51722 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51724 Make GRUB's kernel compliant to Multiboot Specification.
51726 * kern/i386/pc/startup.S (multiboot_header): New label.
51727 (multiboot_entry): Likewise.
51728 (multiboot_trampoline): Likewise.
51730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51731 Increased to 0x4A0.
51733 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51734 put parentheses after a question mark.
51735 [!GRUB_UTIL] (my_mod): New variable.
51737 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51739 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51741 Adds support for the XFS filesystem. Btrees are not supported
51744 * fs/xfs.c: New file.
51746 * DISTLIST: Added `fs/xfs.c'.
51748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51749 (grub_probefs_SOURCES): Likewise.
51750 (grub_emu_SOURCES): Likewise.
51751 (pkgdata_MODULES): Add `xfs.mod'.
51752 (xfs_mod_SOURCES): New variable.
51753 (xfs_mod_CFLAGS): Likewise.
51755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51756 (pkgdata_MODULES): Add `xfs.mod'.
51757 (xfs_mod_SOURCES): New variable.
51758 (xfs_mod_CFLAGS): Likewise.
51760 * util/grub-emu.c (main): Call `grub_xfs_init' and
51763 * include/grub/fs.h (grub_xfs_init): New prototype.
51764 (grub_xfs_fini): Likewise.
51767 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51769 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51770 color modes, allow greater than 16 colors to be configured as
51773 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51775 * normal/completion.c (complete_arguments): Add the qualifier
51776 const into OPTIONS.
51778 From Omniflux <omniflux+lists@omniflux.com>:
51779 * include/grub/terminfo.h: New file.
51780 * include/grub/tparm.h: Likewise.
51781 * include/grub/i386/pc/serial.h: Likewise.
51782 * term/terminfo.c: Likewise.
51783 * term/tparm.c: Likewise.
51784 * term/i386/pc/serial.c: Likewise.
51785 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51787 (terminfo_mod_SOURCES): New variable.
51788 (terminfo_mod_CFLAGS): Likewise.
51789 (serial_mod_SOURCES): Likewise.
51790 (serial_mod_CFLAGS): Likewise.
51792 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51794 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51795 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51796 and kern/powerpc/ieee1275/cmain.c, respectively.
51798 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51799 * kern/powerpc/ieee1275/crt0.S: ... here.
51801 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51802 * kern/powerpc/ieee1275/cmain.c: ... here.
51804 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51805 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51806 instead of boot/powerpc/ieee1275/crt0.S and
51807 boot/powerpc/ieee1275/cmain.c, respectively.
51809 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51810 sectors. It was not used anyway.
51812 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51814 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51815 `unused parameter' warning.
51817 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51819 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51821 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51824 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51826 * include/grub/normal.h (enum grub_completion_type): Added
51827 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51829 * normal/cmdline.c (print_completion): Handle
51830 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51831 * normal/menu_entry.c (store_completion): Likewise.
51833 * normal/completion.c (complete_arguments): New function.
51834 (grub_normal_do_completion): Call `complete_arguments' when the
51835 current words start with a dash.
51837 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51839 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51840 `gzio.mod' instead of `io.mod').
51842 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51844 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51845 (DISTDIRS): Added io and video.
51846 Rewrite the search routine to make an output consistently.
51848 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51849 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51850 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51851 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51852 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51853 util/powerpc/ieee1275/misc.c.
51855 * include/grub/gzio.h: New file.
51856 * io/gzio.c: Likewise.
51858 * kern/file.c (grub_file_close): Call grub_device_close only if
51859 FILE->DEVICE is not NULL.
51861 * include/grub/mm.h [!NULL] (NULL): New macro.
51863 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51866 (pkgdata_MODULES): Added gzio.mod.
51867 (gzio_mod_SOURCES): New variable.
51868 (gzio_mod_CFLAGS): Likewise.
51870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51871 (pkgdata_MODULES): Added gzio.mod.
51872 (gzio_mod_SOURCES): New variable.
51873 (gzio_mod_CFLAGS): Likewise.
51875 * commands/cat.c: Include grub/gzio.h.
51876 (grub_cmd_cat): Use grub_gzfile_open instead of
51879 * commands/cmp.c: Include grub/gzio.h.
51880 (grub_cmd_cmp): Use grub_gzfile_open instead of
51883 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51884 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51886 (grub_rescue_cmd_module): Likewise.
51888 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51890 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51891 kern/sparc64/ieee1275/init.c because it contains _start.
51892 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51894 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51896 * configure.ac: Add support for sparc64 host with ieee1275
51898 * configure: Generated from configure.ac.
51899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51901 (grub_ofdisk_read): Likewise.
51902 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51903 pointers as (void *) to remove a warning.
51904 (grub_ofdisk_close): Likewise.
51905 (grub_ofdisk_read): Likewise.
51906 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51907 returns, so make it return void to remove a warning.
51908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51909 Corresponding prototype change.
51910 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51911 values, and cast the pointers as (void *) to remove a warning.
51912 (grub_mm_dump): Likewise.
51913 * conf/sparc64-ieee1275.mk: New file.
51914 * conf/sparc64-ieee1275.rmk: Likewise.
51915 * include/grub/sparc64/setjmp.h: Likewise.
51916 * include/grub/sparc64/types.h: Likewise.
51917 * include/grub/sparc64/ieee1275/console.h: Likewise.
51918 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51919 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51920 * include/grub/sparc64/ieee1275/time.h: Likewise.
51921 * kern/sparc64/cache.c: Likewise.
51922 * kern/sparc64/dl.c: Likewise.
51923 * kern/sparc64/ieee1275/init.c: Likewise.
51924 * kern/sparc64/ieee1275/openfw.c: Likewise.
51926 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51928 * util/console.c (grub_ncurses_putchar): If C is greater than
51929 0x7f, set C to a question mark.
51930 (grub_ncurses_getcharwidth): New function.
51931 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51934 * normal/menu.c (print_entry): Made aware of Unicode. First,
51935 convert TITLE to UCS-4, and predict the cursor position by
51938 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51940 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51942 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51944 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51945 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51948 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51949 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51950 grub_strcpy and grub_strlen. Take it into account that a space
51951 character is inserted as a delimiter.
51953 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51955 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51956 invalid magic in the error.
51958 * commands/search.c: New file.
51960 * util/grub-emu.c (main): Call grub_search_init and
51963 * kern/rescue.c (grub_rescue_print_disks): Removed.
51964 (grub_rescue_print_devices): New function.
51965 (grub_rescue_cmd_ls): Use grub_device_iterate with
51966 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51967 grub_rescue_print_disks.
51969 * kern/partition.c (grub_partition_iterate): Return the result of
51970 PARTMAP->ITERATE instead of GRUB_ERRNO.
51972 * kern/device.c: Include grub/partition.h.
51973 (grub_device_iterate): New function.
51975 * include/grub/partition.h (grub_partition_iterate): Return int
51976 instead of grub_err_t.
51978 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51980 [GRUB_UTIL] (grub_search_fini): Likewise.
51982 * include/grub/device.h (grub_device_iterate): New prototype.
51984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51986 (pkgdata_MODULES): Added search.mod.
51987 (search_mod_SOURCES): New variable.
51988 (search_mod_CFLAGS): Likewise.
51990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51991 (pkgdata_MODULES): Added search.mod.
51992 (search_mod_SOURCES): New variable.
51993 (search_mod_CFLAGS): Likewise.
51995 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51996 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51997 All callers changed.
51999 * DISTLIST: Added commands/search.c.
52001 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52003 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52005 (grub_getcharwidth): New function.
52007 * kern/misc.c (grub_utf8_to_ucs4): New function.
52009 * include/grub/term.h (struct grub_term): Added a new member
52011 (grub_getcharwidth): New prototype.
52013 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52015 * term/i386/pc/console.c (map_char): New function. Segregated from
52016 grub_console_putchar.
52017 (grub_console_putchar): Use map_char.
52018 (grub_console_getcharwidth): New function.
52019 (grub_console_term): Specified grub_console_getcharwidth as
52022 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52023 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52025 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52027 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52028 on grub_strtoul completely.
52029 (write_char): Declare local variables in the beginning of the
52031 (grub_vesafb_getcharwidth): New function.
52032 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52035 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52037 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52038 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52039 commands/i386/pc/vbetest.c.
52041 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52042 call grub_vbe_get_controller_info again, because the returned
52043 information is volatile.
52044 (grub_vbe_set_video_mode): Mostly rewritten.
52045 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52046 grub_vbe_status_t correctly.
52047 (grub_vbe_get_video_mode_info): Likewise.
52048 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52049 several if statements.
52051 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52052 * commands/i386/pc/vbeinfo.c: ... this.
52054 * commands/i386/pc/vbe_test.c: Renamed to ...
52055 * commands/i386/pc/vbetest.c: ... this.
52057 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52059 (grub_cmd_vbeinfo): ... this. Save video modes before
52060 iterating. Skip a video mode, if it is not available, not enough
52061 information is given or it is monochrome. Show the memory
52062 model. Leave the interpretation of MODEVAR to grub_strtoul
52064 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52065 (GRUB_MOD_FINI): Likewise.
52067 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52068 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52069 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52070 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52071 grub_strtoul completely.
52072 (real2pm): Removed.
52073 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52074 (GRUB_MOD_FINI): Likewise.
52076 * normal/misc.c: Include grub/mm.h.
52078 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52079 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52080 (vbe_list_modes_mod_SOURCES): Removed.
52081 (vbe_list_modes_mod_CFLAGS): Likewise.
52082 (vbe_test_mod_SOURCES): Likewise.
52083 (vbe_test_mod_CFLAGS): Likewise.
52084 (vbeinfo_mod_SOURCES): New variable.
52085 (vbeinfo_mod_CFLAGS): Likewise.
52086 (vbetest_mod_SOURCES): Likewise.
52087 (vbetest_mod_CFLAGS): Likewise.
52089 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52091 * normal/misc.c: New file.
52093 * DISTLIST: Added normal/misc.c.
52095 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52096 DISK to HOOK. Call HOOK with DISK.
52097 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52098 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52099 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52101 * normal/menu_entry.c (struct screen): Added a new member
52102 "completion_shown".
52103 (completion_buffer): New global variable.
52104 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52105 (store_completion): New function.
52106 (complete): Likewise.
52107 (clear_completions): Likewise.
52108 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52109 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52110 a tab, call complete.
52112 * normal/completion.c (disk_dev): Removed.
52113 (print_simple_completion): Likewise.
52114 (print_partition_completion): Likewise.
52115 (print_func): New global variable.
52116 (add_completion): Do not take the arguments WHAT or PRINT any
52117 longer. Added a new argument TYPE. Instead of printing directly,
52118 call PRINT_FUNC if not NULL.
52119 All callers changed.
52120 (complete_device): Use a local variable DEV instead of
52121 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52122 (grub_normal_do_completion): Take a new argument HOOK. Do not
52123 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52124 empty string, return NULL instead.
52125 All callers changed.
52127 * normal/cmdline.c (print_completion): New function.
52129 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52131 All callers changed.
52133 * kern/disk.c (grub_print_partinfo): Removed.
52135 * include/grub/partition.h (struct grub_partition_map): Add a new
52136 argument DISK into HOOK of ITERATE.
52137 (grub_partition_iterate): Add a new argument DISK to HOOK.
52139 * include/grub/normal.h (enum grub_completion_type): New enum.
52140 (grub_completion_type_t): New type.
52141 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52142 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52143 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52144 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52145 (grub_normal_do_completion): Added a new argument HOOK.
52146 (grub_normal_print_device_info): New prototype.
52148 * include/grub/disk.h (grub_print_partinfo): Removed.
52150 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52151 (normal_mod_SOURCES): Likewise.
52152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52153 (normal_mod_SOURCES): Likewise.
52155 * commands/ls.c (grub_ls_list_disks): Use
52156 grub_normal_print_device_info instead of grub_print_partinfo. Free
52158 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52159 duplicating the code.
52161 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52163 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52164 follow GCS more precisely.
52165 * commands/i386/pc/vbe_test.c: Likewise.
52166 * include/grub/i386/pc/vbe.h: Likewise.
52167 * term/i386/pc/vesafb.c: Likewise.
52168 * video/i386/pc/vbe.c: Likewise.
52170 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52172 * DISTLIST: Added term/i386/pc/vesafb.c
52173 DISTLIST: Added video/i386/pc/vbe.c
52174 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52175 DISTLIST: Added commands/i386/pc/vbe_test.c.
52176 * commands/i386/pc/vbe_list_modes.c: New file.
52177 * commands/i386/pc/vbe_test.c: Likewise.
52178 * term/i386/pc/vesafb.c: Likewise.
52179 * video/i386/pc/vbe.c: Likewise.
52180 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52181 (grub_vbe_probe) Added prototype.
52182 (grub_vbe_set_video_mode) Likewise.
52183 (grub_vbe_get_video_mode) Likewise.
52184 (grub_vbe_get_video_mode_info) Likewise.
52185 (grub_vbe_set_pixel_rgb) Likewise.
52186 (grub_vbe_set_pixel_index) Likewise.
52187 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52188 (pkgdata_MODULES): Added vesafb.mod.
52189 (pkgdata_MODULES): Added vbe_list_modes.mod.
52190 (pkgdata_MODULES): Added vbe_test.mod.
52191 (vbe_mod_SOURCES): Added.
52192 (vbe_mod_CFLAGS): Likewise.
52193 (vesafb_mod_SOURCES): Likewise.
52194 (vesafb_mod_CFLAGS): Likewise.
52195 (vbe_list_modes_mod_SOURCES): Likewise.
52196 (vbe_list_modes_mod_CFLAGS): Likewise.
52197 (vbe_test_mod_SOURCES): Likewise.
52198 (vbe_test_mod_CFLAGS): Likewise.
52200 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52202 * normal/command.c (grub_command_execute): If INTERACTIVE is
52203 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52204 CMDLINE. Disable the pager if INTERACTIVE is true.
52205 All callers are changed.
52207 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52208 before reading a config file.
52209 * normal/main.c (read_config_file): Even if a command is not
52210 found, register it if it is within an entry.
52212 * util/grub-emu.c: Include sys/types.h and unistd.h.
52213 (options): Added --hold.
52214 (struct arguments): Added a new member "hold".
52215 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52217 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52218 cleared by a debugger, if it is not zero.
52220 * include/grub/normal.h (grub_command_execute): Add an argument
52223 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52225 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52227 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52229 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52230 program with another one, because the old one didn't detect a bug
52231 in gcc-3.4. Always use regparm 2, because the new test is still
52232 not enough for gcc-4.0. Someone must investigate a simple test
52233 case which detects a bug in gcc-4.0.
52235 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52237 * DISTLIST: Added normal/completion.c.
52239 * normal/completion.c: New file.
52241 * term/i386/pc/console.c (grub_console_getwh): New function.
52242 (grub_console_term): Assign grub_console_getwh to getwh.
52244 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52245 function is defined in normal/completion.c as
52246 grub_normal_do_completion.
52247 (grub_cmdline_get): Use grub_normal_do_completion instead of
52250 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52251 returns non-zero, otherwise return 0.
52252 (grub_partition_iterate): First, probe the partition map. Then,
52253 call ITERATE only for this partition map.
52255 * kern/misc.c (grub_strncmp): Rewritten.
52257 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52258 returns non-zero. Otherwise return 0.
52260 * include/grub/partition.h (grub_partition_map_iterate): Return
52261 int instead of void.
52263 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52265 * include/grub/misc.h (grub_strncmp): Change the type of N to
52268 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52271 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52272 unsigned explicitly before comparing it with I.
52274 * kern/main.c (grub_env_write_root): Add the attribute unused into
52277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52278 normal/completion.c.
52279 (normal_mod_SOURCES): Likewise.
52280 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52281 (normal_mod_SOURCES): Likewise.
52283 * normal/command.c (grub_iterate_commands): If ITERATE returns
52284 non-zero, return one immediately.
52286 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52288 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52289 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52291 (grub_vbe_get_controller_info): New function.
52292 (grub_vbe_get_mode_info): Likewise.
52293 (grub_vbe_set_mode): Likewise.
52294 (grub_vbe_get_mode): Likewise.
52295 (grub_vbe_set_memory_window): Likewise.
52296 (grub_vbe_get_memory_window): Likewise.
52297 (grub_vbe_set_scanline_length): Likewise.
52298 (grub_vbe_get_scanline_length): Likewise.
52299 (grub_vbe_set_display_start): Likewise.
52300 (grub_vbe_get_display_start): Likewise.
52301 (grub_vbe_set_palette_data): Likewise.
52302 * include/grub/i386/pc/vbe.h: New file.
52304 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52306 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52307 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52308 * DISTLIST: Likewise.
52309 * kern/ieee1275/of.c: Moved to ...
52310 * kern/ieee1275/ieee1275.c: ... here.
52312 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52314 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52315 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52316 Pass 0 as `end' parameter to grub_strtoul().
52318 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52320 * include/grub/powerpc/ieee1275/console.h: Do not include
52321 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52323 (grub_console_cur_color): Remove i386-specific prototype.
52324 (grub_console_real_putchar): Likewise.
52325 (grub_console_checkkey): Likewise.
52326 (grub_console_getkey): Likewise.
52327 (grub_console_getxy): Likewise.
52328 (grub_console_gotoxy): Likewise.
52329 (grub_console_cls): Likewise.
52330 (grub_console_setcursor): Likewise.
52331 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52332 Include <grub/machine/console.h>.
52333 * term/ieee1275/ofconsole.c: Likewise.
52335 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52337 * Makefile.in (LIBLZO): New variable.
52339 * configure.ac: Check for LZO version 2.
52341 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52342 lzo/lzo1x.h instead of lzo1x.h.
52344 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52347 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52348 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52350 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52351 copying the data from PARTITION to P.
52353 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52355 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52356 negative, unload the module.
52358 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52359 map is "pc_partition_map" but not "pc".
52360 (usage): Fix the description. The options are --boot-image and
52361 --core-image but not --boot-file or --core-file.
52362 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52363 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52366 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52367 --core-file. Specify INSTALL_DEVICE as an argument.
52369 * util/console.c: Include config.h.
52370 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52371 [HAVE_NCURSES_H]: Include ncurses.h.
52372 [HAVE_CURSES_H]: Include curses.h.
52373 [!A_NORMAL] (A_NORMAL): Defined as zero.
52374 [!A_STANDOUT] (A_STANDOUT): Likewise.
52376 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52378 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52380 * configure.ac: Check for curses libraries and headers.
52382 * Makefile.in (LIBCURSES): New variable.
52384 * genmk.rb (Script::rule): Set the executable bits.
52386 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52387 name of the PC partition map is "pc_partition_map" but not "pc".
52389 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52391 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52392 (modules): Likewise.
52393 (usage): Added descriptions for --modules and --grub-probefs.
52394 Handle --modules and --grub-probefs. Save the arguments in MODULES
52395 and GRUB_PROBEFS, respectively.
52396 Auto-detect a filesystem module against GRUBDIR. If the result is
52397 empty and modules are not specified explicitly, abort the
52398 installation. Add the result to MODULES.
52400 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52401 disk/powerpc/ieee1275/ofdisk.c,
52402 include/grub/powerpc/ieee1275/init.h and
52403 term/powerpc/ieee1275/ofconsole.c.
52404 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52405 term/ieee1275/ofconsole.c.
52407 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52409 * COPYING: Upgraded to the latest version. Only the address of the
52410 FSF office has changed.
52412 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52414 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52415 kern/ieee1275.c with kern/ieee1275/of.c.
52417 * kern/ieee1275.c: Moved to ...
52418 * kern/ieee1275/of.c: ... here.
52420 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52422 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52425 * config.guess: Updated to the latest version from gnulib.
52426 * config.sub: Likewise.
52427 * install.sh: Likewise.
52428 * mkinstalldirs: Likewise.
52430 * include/grub/console.h: Removed. This file is arch-specific. Do
52431 not put this in include/grub.
52433 * include/grub/i386/pc/console.h: Resurrected.
52435 * util/console.c: Include grub/machine/console.h instead of
52437 * util/grub-emu.c: Likewise.
52439 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52441 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52444 From Vincent Pelletier <subdino2004@yahoo.fr>
52445 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52446 Redefined to use grub_getwh.
52447 (grub_term): New member named getwh.
52448 (grub_getwh): New prototype.
52449 * kern/term.c (grub_getwh): New function.
52450 * term/i386/pc/console.c (grub_console_getwh): New function.
52451 (grub_console_term): New member `getwh'.
52452 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52453 (grub_vga_term): New member `getwh'.
52454 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52456 (grub_ofconsole_getw): New function.
52457 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52458 (grub_ofconsole_term): New field named getwh and new initial
52461 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52463 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52464 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52465 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52466 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52467 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52468 of <grub/machine/ieee1275.h>.
52469 * commands/ieee1275/reboot.c: Likewise.
52470 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52471 * kern/ieee1275.c: ... to here. All users updated. Change all
52472 parameter structs to use new type `grub_ieee1275_cell_t'.
52473 * term/powerpc/ieee1275/ofconsole.c: Move ...
52474 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52475 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52476 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52477 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52479 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52480 Remove unused prototypes. All users updated.
52481 * include/grub/powerpc/ieee1275/console.h: Removed.
52482 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52483 `grub_ieee1275_cell_t'.
52484 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52485 Cast comparisons with -1 to the correct type.
52486 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52487 type to match `grub_ieee1275_entry_fn'.
52489 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52491 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52493 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52494 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52496 (grub_probefs_SOURCES): New variable.
52498 * util/i386/pc/grub-probefs.c: New file.
52500 * util/i386/pc/grub-setup.c (main): Call
52501 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52502 grub_hfs_init and grub_jfs_init to initialize the system. Call
52503 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52504 grub_pc_partition_map_fini to finish the system.
52506 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52508 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52510 (grub_multiboot_load_elf32): Likewise.
52511 (grub_multiboot_is_elf64): Likewise.
52512 (grub_multiboot_load_elf64): Likewise.
52513 (grub_multiboot_load_elf): Likewise.
52514 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52515 an ELF32 or ELF64 file.
52516 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52518 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52519 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52520 NULL before calling FS->LABEL.
52521 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52522 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52523 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52524 before calling FS->LABEL.
52526 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52528 * util/i386/pc/grub-install.in (datadir): New variable.
52530 (pkgdatadir): New variable.
52531 (pkglibdir): Removed.
52533 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52535 * DISTLIST: Added util/i386/pc/grub-install.in.
52537 * util/i386/pc/grub-install.in: New file.
52539 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52540 (grub_install_SOURCES): Likewise.
52542 * genmk.rb: Added support for scripts.
52543 (Script): New class.
52544 (scripts): New variable.
52546 * Makefile.in (install-local): Install sbin_SCRIPTS by
52548 (uninstall): Remove sbin_SCRIPTS.
52550 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52551 device, try to get a GRUB device by
52552 grub_util_biosdisk_get_grub_dev.
52555 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52556 description for --device-map.
52558 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52560 Change the semantics of variable hooks. They now return strings
52561 instead of error values.
52563 * util/i386/pc/grub-setup.c: Include grub/env.h.
52564 (setup): Use grub_device_set_root instead of grub_env_set.
52566 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52567 grub_env_get instead of grub_device_set_root and
52568 grub_device_get_root, respectively.
52570 * kern/main.c (grub_env_write_root): New function.
52571 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52572 grub_env_set instead of grub_device_set_root.
52574 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52576 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52577 rather than calling ENV->WRITE_HOOK afterwards.
52578 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52579 passing a pointer of a pointer.
52580 (grub_register_variable_hook): Change the types of "read_hook" and
52581 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52583 Allocate the default empty string on the heap, because this string
52584 may be freed later.
52586 * kern/device.c: Include grub/env.h.
52587 (grub_device_set_root): Removed.
52588 (grub_device_get_root): Likewise.
52589 (grub_device_open): Use grub_env_get instead of
52590 grub_device_get_root.
52592 * include/grub/env.h (grub_env_read_hook_t): New type.
52593 (grub_env_write_hook_t): Likewise.
52594 (grub_env_var): Change the types of "read_hook" and "write_hook"
52595 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52596 (grub_register_variable_hook): Likewise.
52598 * include/grub/device.h (grub_device_set_root): Removed.
52599 (grub_device_set_root): Likewise.
52601 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52602 make sure that DIRNAME terminates with '/', so that
52603 grub_fat_find_dir will fail if PATH is not a directory.
52605 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52607 Use the qualifier auto for print_files and print_files_long.
52608 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52610 Put a newline only if there is no error.
52611 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52614 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52616 * kern/partition.c (grub_partition_probe): Initialize PART to
52617 NULL. Otherwise, when no partition map is registered, this returns
52620 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52622 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52623 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52626 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52628 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52629 information on each device, if it does not have partitions. Print
52630 "Device" instead of "Disk", because this function is not specific
52633 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52634 static to ensure that it is put on the memory rather than a
52637 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52639 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52640 (grub_cat_init): Likewise.
52641 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52642 (options): Likewise.
52643 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52644 (grub_configfile_init): Likewise.
52645 * font/manager.c (GRUB_MOD_INIT): Likewise.
52646 * commands/help.c (GRUB_MOD_INIT): Likewise.
52647 (grub_help_init): Likewise.
52648 * normal/command.c (grub_command_init): Likewise.
52649 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52650 * disk/loopback.c (grub_loop_init): Likewise.
52651 (GRUB_MOD_INIT): Likewise.
52652 * commands/ls.c (grub_ls_init): Likewise.
52653 (GRUB_MOD_INIT): Likewise.
52654 (options): Likewise.
52655 * commands/boot.c (grub_boot_init): Likewise.
52656 (GRUB_MOD_INIT): Likewise.
52657 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52658 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52659 (GRUB_MOD_INIT): Likewise.
52660 * commands/cmp.c (grub_cmp_init): Likewise.
52661 (GRUB_MOD_INIT): Likewise.
52663 * normal/arg.c: Use <> instead of "" to include header files.
52664 (SHORT_ARG_HELP): New macro.
52665 (SHORT_ARG_USAGE): Likewise.
52666 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52667 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52669 (find_short): Check if C is 'h' or 'u' explicitly.
52670 (grub_arg_show_help): Use space characters instead of tabs. Treat
52671 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52672 are shown with --help and --usage only if they are not used for
52673 the command itself.
52674 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52677 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52678 const into "longarg". Change the type of "shortarg" to int.
52680 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52682 * boot/i386/pc/boot.S (boot_drive_check): New label.
52684 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52687 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52688 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52690 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52692 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52693 When turning off Gate A20, skip the check and return immediately,
52694 because this is not fatal usually.
52696 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52698 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52699 be 0x7C00 instead of 0x8000.
52701 * boot/i386/pc/pxeboot.S: Rewritten.
52703 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52705 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52708 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52710 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52711 robustness. This routine now supports a BIOS call and System
52712 Control Port A to modify the gate A20.
52714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52715 Increased to 0x440.
52717 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52720 device path and resulting ihandle.
52721 (grub_ofdisk_close): dprintf the ihandle being closed.
52722 (grub_ofdisk_read): dprintf function parameters.
52723 * kern/mm.c (grub_mm_init_region): Likewise.
52724 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52725 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52726 size, and boot arguments.
52727 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52728 before loading into memory.
52729 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52730 before loading into memory.
52732 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52734 * kern/mm.c: Added much documentation.
52735 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52736 8, set to 5 instead of 8.
52738 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52740 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52742 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52743 (grub_mkdevicemap_SOURCES): New variable.
52745 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52746 lib/device.c of GRUB Legacy.
52748 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52750 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52751 instead of PATH is NULL.
52753 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52755 * commands/cmp.c (BUFFER_SIZE): New macro.
52756 (grub_cmd_cmp): Close the right file at the right time. Compare
52757 only data just read. Don't report files of different size as
52758 identical. Dynamically allocate buffers. Move variable
52759 declarations at the beginning of function.
52761 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52766 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52768 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52769 when backspace is pressed at beginning of line.
52771 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52773 * DISTLIST: Added genfslist.sh.
52775 * normal/main.c (fs_module_list): New variable.
52776 (autoload_fs_module): New function.
52777 (read_fs_list): Likewise.
52778 (grub_normal_execute): Call read_fs_list.
52780 * kern/fs.c (grub_fs_autoload_hook): New variable.
52781 (grub_fs_probe): Added support for auto-loading.
52783 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52784 (grub_fs_module_list_t): New type.
52786 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52787 (grub_fs_autoload_hook): New prototype.
52789 * genfslist.sh: New file.
52791 * genmk.rb: Added a rule to generate a filesystem list.
52793 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52795 * configure.ac: Fix the test for cross-compiling.
52797 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52798 define GRUB_UTIL anymore.
52800 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52801 so this function works on other systems than just big endian.
52802 (load_modules): Likewise.
52803 (add_segments): Likewise.
52805 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52807 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52808 contains `l' modifier, get a long from va_arg().
52810 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52812 * kern/mm.c (grub_free): If the next free block which is being
52813 merged is the first free block, set the first block to the block
52815 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52817 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52819 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52820 `grub_ieee1275_chosen'.
52822 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52824 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52825 (grub_ieee1275_chosen): New variable.
52826 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52828 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52829 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52830 Rename first argument to `phandle' for consistency.
52831 (grub_ieee1275_get_property_length): Likewise.
52832 (grub_ieee1275_next_property): Likewise. Change type of first argument
52833 to grub_ieee1275_phandle_t.
52834 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52835 Move export next to declaration.
52836 (grub_ieee1275_chosen): New variable.
52837 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52838 Correct cosmetic typo.
52839 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52840 `grub_ieee1275_chosen'.
52841 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52842 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52843 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52844 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52845 `grub_ieee1275_chosen'.
52847 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52852 /chosen/bootargs as "variable=value" pairs.
52854 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52856 * include/grub/misc.h (grub_dprintf): New macro.
52857 (grub_real_dprintf): New prototype.
52858 (grub_strword): Likewise.
52859 (grub_iswordseparator): Likewise.
52860 * kern/misc.c (grub_real_dprintf): New function.
52861 (grub_strword): Likewise.
52862 (grub_iswordseparator): Likewise.
52864 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52866 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52867 (roundup): Remove macro.
52868 (grub_ieee1275_flags): Make static.
52869 (grub_ieee1275_realmode): Remove.
52870 (grub_ieee1275_test_flag): New function.
52871 (grub_ieee1275_set_flag): Likewise.
52872 (find_options): Rename to `grub_ieee1275_find_options'; update
52873 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52874 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52875 (cmain): New prototype.
52876 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52877 `grub_ieee1275_flags' directly.
52878 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52879 machine/biosdisk.h.
52880 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52881 Don't include grub/machine/init.h.
52882 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52883 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52885 (grub_ieee1275_realmode): Likewise.
52886 (grub_ieee1275_flag): New enum.
52887 (grub_ieee1275_test_flag): New prototype.
52888 (grub_ieee1275_set_flag): New prototype.
52889 * include/grub/powerpc/ieee1275/init.h: Remove file.
52890 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52891 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52892 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52893 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52895 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52896 `grub_ieee1275_test_flag'.
52897 (grub_ieee1275_encode_devname): Likewise.
52899 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52901 * include/grub/powerpc/ieee1275/ieee1275.h
52902 (grub_ieee1275_encode_devname): New prototype.
52903 (grub_ieee1275_get_filename): Likewise.
52904 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52906 (grub_set_prefix): Likewise.
52907 (grub_machine_init): Call grub_set_prefix.
52908 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52909 (grub_parse_type): New enum.
52910 (grub_ieee1275_get_devargs): New function.
52911 (grub_ieee1275_get_devname): Likewise.
52912 (grub_ieee1275_parse_args): Likewise.
52913 (grub_ieee1275_get_filename): Likewise.
52914 (grub_ieee1275_encode_devname): Likewise.
52916 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52918 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52919 `grub_loader_unset'.
52921 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52923 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52924 instead of grub_ieee1275_interpret.
52925 (grub_halt_init): New function.
52926 (grub_halt_fini): Likewise.
52927 (GRUB_MOD_INIT): Correct message grammar.
52928 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52929 instead of grub_ieee1275_interpret.
52930 (grub_reboot_init): New function.
52931 (grub_reboot_fini): Likewise.
52932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52933 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52934 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52935 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52936 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52938 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52942 (grub_halt): Likewise.
52943 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52944 (cmain): Remove __attribute__((unused)).
52945 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52946 (grub_heap_len): Likewise.
52947 (grub_machine_fini): New function.
52948 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52949 (grub_halt): Likewise.
52950 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52952 * util/powerpc/ieee1275/misc.c: New file.
52954 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52956 * DISTLIST: New file.
52957 * gendistlist.sh: Likewise.
52959 * Makefile.in (COMMON_DISTFILES): Removed.
52960 (BOOT_DISTFILES): Likewise.
52961 (CONF_DISTFILES): Likewise.
52962 (DISK_DISTFILES): Likewise.
52963 (FS_DISTFILES): Likewise.
52964 (INCLUDE_DISTFILES): Likewise.
52965 (KERN_DISTFILES): Likewise.
52966 (LOADER_DISTFILES): Likewise.
52967 (TERM_DISTFILES): Likewise.
52968 (UTIL_DISTFILES): Likewise.
52969 (DISTFILES): Likewise.
52970 (uninstall): Uninstall files in $(pkgdata_DATA).
52971 (DISTLIST): New target.
52972 (distdir): Use the contents of the file DISTLIST to get a list of
52975 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52977 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52978 descriptor. This is ported from GRUB Legacy.
52980 * gencmdlist.sh: Added an extra semicolon to make it work with
52981 old sed versions. Reported by Robert Bihlmeyer
52982 <robbe@orcus.priv.at>.
52984 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52986 Automatic loading of commands is supported.
52988 * normal/main.c (read_command_list): New function.
52989 (grub_normal_execute): Call read_command_list.
52991 * normal/command.c (grub_register_command): Return zero or CMD.
52992 Allocate CMD->NAME from the heap.
52993 Initialize CMD->MODULE_NAME to zero.
52994 Find the same name as well. If the same command is found and it is
52995 a dummy command, overwrite members. If it is not a dummy command,
52997 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52998 (grub_command_find): If a dummy command is found, load a module
52999 and retry to find a command only once.
53001 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53002 make sure that each command is loaded.
53004 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53006 (struct grub_command): Remove const from the member `name'.
53007 Add a new member `module_name'.
53008 (grub_register_command): Return grub_command_t.
53010 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53011 sure that each command is loaded.
53013 * genmk.rb (PModule::rule): Specify a module name without the
53014 suffix ".mod" to gencmdlist.sh.
53016 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53018 * gencmdlist.sh: New file.
53020 * genmk.rb (PModule::rule): Generate a rule for a command list.
53022 Generate command.lst from $(COMMANDFILES).
53024 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53025 (DATA): Added $(pkgdata_DATA).
53026 (install-local): Install files in $(pkgdata_DATA).
53028 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53030 * term/i386/pc/vga.c (debug_command): Removed.
53031 (GRUB_MOD_INIT): Do not register the command "debug".
53033 From Hollis Blanchard:
53034 * commands/configfile.c: New file.
53035 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53036 commands/configfile.c.
53037 (pkgdata_MODULES): Added configfile.mod.
53038 (configfile_mod_SOURCES): New variable.
53039 (configfile_mod_CFLAGS): Likewise.
53040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53041 commands/configfile.c.
53042 (pkgdata_MODULES): Added configfile.mod.
53043 (configfile_mod_SOURCES): New variable.
53044 (configfile_mod_CFLAGS): Likewise.
53045 * util/grub-emu.c (main): Call grub_configfile_init and
53046 grub_configfile_fini.
53047 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53049 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53051 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53053 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53056 * commands/help.c (grub_cmd_help): Do not print newlines after
53057 the last command in print_command_help.
53059 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53061 * commands/default.h: New file.
53062 * commands/timeout.h: Likewise.
53063 * normal/context.c: Likewise.
53065 * util/misc.c: Do not include sys/times.h.
53066 Include sys/time.h and grub/machine/time.h.
53067 (grub_get_rtc): Rewritten with gettimeofday.
53069 * util/grub-emu.c (main): Call grub_default_init and
53070 grub_timeout_init before grub_normal_init, and call
53071 grub_timeout_fini and grub_default_fini after grub_main.
53073 * util/console.c (grub_ncurses_checkkey): Return the read
53076 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53079 * normal/main.c (read_config_file): Push MENU. If this fails,
53080 print an error and wait for a user input.
53081 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53082 If a menu is empty or an error occurs, pop MENU.
53083 (grub_normal_execute): Pop and free MENU after grub_menu_run
53086 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53088 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53090 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53092 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53094 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53097 * include/grub/normal.h (struct grub_menu_list): New struct.
53098 (grub_menu_list_t): New type.
53099 (struct grub_context): New struct.
53100 (grub_context_t): New type.
53101 (grub_register_command): Got rid of EXPORT_FUNC.
53102 (grub_unregister_command): Likewise.
53103 (grub_context_get): New prototype.
53104 (grub_context_get_current_menu): Likewise.
53105 (grub_context_push_menu): Likewise.
53106 (grub_context_pop_menu): Likewise.
53107 [GRUB_UTIL] (grub_default_init): Likewise.
53108 [GRUB_UTIL] (grub_default_fini): Likewise.
53109 [GRUB_UTIL] (grub_timeout_init): Likewise.
53110 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53112 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53113 commands/timeout.c and normal/context.c.
53114 (pkgdata_MODULES): Added default.mod and timeout.mod.
53115 (normal_mod_SOURCES): Added normal/context.c.
53116 (default_mod_SOURCES): New variable.
53117 (default_mod_CFLAGS): Likewise.
53118 (timeout_mod_SOURCES): Likewise.
53119 (timeout_mod_CFLAGS): Likewise.
53120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53122 (pkgdata_MODULES): Added default.mod and timeout.mod.
53123 (normal_mod_SOURCES): Added normal/context.c.
53124 (default_mod_SOURCES): New variable.
53125 (default_mod_CFLAGS): Likewise.
53126 (timeout_mod_SOURCES): Likewise.
53127 (timeout_mod_CFLAGS): Likewise.
53129 * Makefile.in (all-local): Added $(MKFILES).
53131 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53134 (grub_emu_SOURCES): Likewise.
53135 (pkgdata_MODULES): Add `sun.mod'.
53136 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53139 (pkgdata_MODULES): Add `sun.mod'.
53140 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53141 * include/grub/partition.h (grub_sun_partition_map_init): New
53143 (grub_sun_partition_map_fini): Likewise.
53144 * partmap/sun.c: New file.
53145 * util/grub-emu.c (main): Initialize and de-initialize the sun
53146 partitionmap support.
53148 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53150 This implements an Emacs-like menu entry editor.
53152 * normal/menu_entry.c: New file.
53154 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53155 characters to ASCII.
53156 (saved_char): New variable.
53157 (grub_ncurses_checkkey): Rewritten completely.
53158 (grub_ncurses_getkey): Likewise.
53159 (grub_ncurses_init): Call raw instead of cbreak.
53161 * normal/menu.c (print_entry): Do not put a space.
53162 (init_page): Renamed to ...
53163 (grub_menu_init_page): ... this. All callers changed.
53164 (edit_menu_entry): Removed.
53165 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53167 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53169 * kern/misc.c (grub_vprintf): Call grub_refresh.
53171 * normal/menu.c (DISP_LEFT): Renamed to ...
53172 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53173 * normal/menu.c (DISP_UP): Renamed to ...
53174 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53175 * normal/menu.c (DISP_RIGHT): Renamed to ...
53176 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53177 * normal/menu.c (DISP_DOWN): Renamed to ...
53178 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53179 * normal/menu.c (DISP_HLINE): Renamed to ...
53180 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53181 * normal/menu.c (DISP_VLINE): Renamed to ...
53182 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53183 * normal/menu.c (DISP_UL): Renamed to ...
53184 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53185 * normal/menu.c (DISP_UR): Renamed to ...
53186 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53187 * normal/menu.c (DISP_LL): Renamed to ...
53188 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53189 * normal/menu.c (DISP_LR): Renamed to ...
53190 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53191 * normal/menu.c (TERM_WIDTH): Renamed to ...
53192 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53193 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53194 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53195 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53196 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53197 * normal/menu.c (TERM_MARGIN): Renamed to ...
53198 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53199 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53200 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53201 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53202 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53203 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53204 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53205 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53206 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53207 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53208 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53209 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53210 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53211 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53212 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53213 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53214 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53215 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53216 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53217 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53218 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53219 All callers changed.
53221 * include/grub/normal.h: New prototype.
53223 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53224 normal/menu_entry.c.
53225 (normal_mod_SOURCES): Likewise.
53226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53227 (normal_mod_SOURCES): Likewise.
53229 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53231 * include/grub/normal.h (grub_halt_init): New prototype.
53232 (grub_halt_fini): Likewise.
53233 (grub_reboot_init): Likewise.
53234 (grub_reboot_fini): Likewise.
53236 * util/grub-emu.c: Include signal.h.
53237 (main_env): New global variable.
53238 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53240 (grub_machine_fini): New function.
53241 (main): Call grub_halt_init and grub_reboot_init before
53242 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53243 Call setjmp with MAIN_ENV to go back afterwards.
53244 Call grub_machine_fini right before return.
53246 * include/grub/util/misc.h: Include setjmp.h.
53247 (main_env): New prototype.
53249 * include/grub/kernel.h (grub_machine_fini): New prototype.
53250 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53251 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53253 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53254 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53255 * term/i386/pc/console.c (grub_console_fini): Likewise.
53257 * util/i386/pc/misc.c: New file.
53259 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53260 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53261 commands/i386/pc/reboot.c.
53263 2005-02-14 Guillem Jover <guillem@hadrons.org>
53265 * include/grub/dl.h (grub_dl_check_header): New prototype.
53266 (grub_arch_dl_check_header): Change return type to grub_err_t,
53267 remove size parameter and export function. Update all callers.
53268 * kern/dl.c (grub_dl_check_header): New function.
53269 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53270 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53271 are inside the core.
53272 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53273 independent ELF header checks.
53274 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53275 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53276 `grub_dl_check_header' instead of explicit checks. Check for the
53278 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53279 `grub_dl_check_header' instead of explicit checks. Remove arch
53280 specific ELF header checks.
53282 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53285 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53287 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53288 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53290 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53292 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53293 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53294 (part_map_iterate): Clear `grub_errno' and return 0 if
53295 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53296 * partmap/amiga.c (amiga_partition_map_iterate): Return
53297 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53298 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53300 2005-02-01 Guillem Jover <guillem@hadrons.org>
53302 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53305 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53307 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53309 (grub_rescue_cmd_linux): New prototype.
53310 (grub_rescue_cmd_initrd): Likewise.
53311 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53313 (grub_linux_release_mem): Release the memory for the initrd.
53314 (grub_load_linux): Renamed from this...
53315 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53316 Changed `entry' not to be static. Loop over memory regions to
53317 find another one when the default fails.
53318 (grub_rescue_cmd_initrd): New function.
53319 (grub_linux_init): Remove function.
53320 (grub_linux_fini): Likewise.
53321 (GRUB_MOD_INIT): Register `initrd'.
53322 (GRUB_MOD_FINI): Unregister `initrd'.
53323 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53325 (grub_linux_normal_fini): Likewise.
53326 (GRUB_MOD_INIT): Register `initrd'.
53327 (GRUB_MOD_FINI): Unregister `initrd'.
53329 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53331 * commands/help.c: New file.
53332 * normal/arg.c (show_help): Renamed to...
53333 (grub_arg_show_help): ... this.
53334 * commands/i386/pc/halt.c: New file.
53335 * commands/i386/pc/reboot.c: Likewise.
53336 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53337 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53338 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53339 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53343 (pkgdata_MODULES): Add `help.mod'.
53344 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53345 * grub/i386/pc/init.h (grub_reboot): New prototype.
53346 (grub_halt): Likewise.
53347 * include/grub/normal.h (grub_arg_show_help): New prototype.
53348 (grub_help_init): Likewise.
53349 (grub_help_fini): Likewise.
53350 * util/grub-emu.c (main): Initialize and deinitialize the help
53353 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53355 * normal/command.c (grub_command_init): Fixed the description of
53356 the `set' and `unset' commands.
53358 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53362 * commands/ieee1275/halt.c: New file.
53363 * commands/ieee1275/reboot.c: Likewise.
53364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53365 `__attribute__ ((unused))'. Some GCS related fixed.
53366 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53367 (grub_suspend_fini): Likewise.
53368 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53370 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53371 (halt_mod_CFLAGS): New variables.
53372 * include/grub/powerpc/ieee1275/ieee1275.h
53373 (grub_ieee1275_interpret): New prototype.
53375 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53377 * include/grub/misc.h (memmove): New prototype.
53378 (memcpy): Likewise.
53380 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53383 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53385 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53387 * kern/misc.c (grub_strndup): Function rewritten.
53389 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53391 * normal/menu.c (TERM_WIDTH): Macro redefined.
53392 (TERM_TOP_BORDER_Y): Likewise.
53393 (draw_border): Replaced while-loop by a for-loop. Make the number
53394 of lines consistent with the number of lines displayed in
53395 print_entries. Added a margin below the rectangle.
53396 (print_entry): Make the entry fit in the rectangle.
53397 (print_entries): Display the scroll arrows next to the right
53400 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53402 * fs/minix.c (grub_minix_find_file): Reserve more space for
53403 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53404 `grub_strncpy' to copy `path' into it.
53406 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53408 Add the loopback device, a device via which files can be accessed
53411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53412 (pkgdata_MODULES): Add loopback.mod.
53413 (loopback_mod_SOURCES): New variable.
53414 (loopback_mod_CFLAGS): Likewise.
53415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53417 (pkgdata_MODULES): Add loopback.mod.
53418 (loopback_mod_SOURCES): New variable.
53419 (loopback_mod_CFLAGS): Likewise.
53420 * disk/loopback.c: new file.
53421 * include/grub/normal.h (grub_loop_init): New prototype.
53422 (grub_loop_fini): New prototype.
53423 * util/grub-emu.c (main): Initialize and de-initialize loopback
53425 * include/grub/disk.h (grub_disk_dev_id): Add
53426 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53428 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53432 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53433 (suspend_mod_SOURCES): New variable.
53434 (suspend_mod_CFLAGS): Likewise.
53435 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53437 * commands/ieee1275/suspend.c: New file.
53439 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53441 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53442 ((unused))' to `__attribute__ ((used))'.
53443 (GRUB_MOD_FINI): Likewise.
53444 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53445 * genmk.rb (PModule): Assign space to common symbols when linking
53448 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53450 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53451 `unsigned' arguments to `grub_size_t'.
53452 (grub_malloc): Likewise.
53453 (grub_realloc): Likewise.
53454 (grub_memalign): Likewise.
53455 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53456 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53457 * util/misc.c (grub_malloc): Likewise.
53458 (grub_realloc): Likewise.
53459 * kern/mm.c (get_header_from_pointer): Change the casts to
53460 `unsigned' into a cast to `grub_size_t'.
53462 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53463 point to `currnode' when `currnode' is changed.
53465 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53466 Schottelius <nico-linux@schottelius.org>.
53468 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53470 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53471 (note_path): Remove variable.
53472 (GRUB_IEEE1275_NOTE_NAME): New macro.
53473 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53474 (grub_ieee1275_note_hdr): New structure.
53475 (grub_ieee1275_note_desc): Likewise.
53476 (grub_ieee1275_note): Likewise.
53477 (load_note): Remove `dir' argument. All callers updated. Remove
53478 `note_img' and `path'. Do not load a file from `note_path'.
53479 Initialize a struct grub_ieee1275_note and write that to `out'.
53480 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53482 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53484 * util/misc.c (grub_util_read_image): Revert last change. It
53485 called `grub_util_read_at', which seeks from the beginning of the
53488 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53490 * TODO: Add note about endianness in grub-mkimage.
53491 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53493 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53494 (grub_mkimage_SOURCES): New target.
53495 * include/grub/kernel.h (grub_start_addr): Remove variable.
53496 (grub_end_addr): Likewise.
53497 (grub_total_module_size): Likewise.
53498 (grub_kernel_image_size): Likewise.
53499 (GRUB_MODULE_MAGIC): New constant.
53500 (grub_module_info): New structure.
53501 (grub_arch_modules_addr): New prototype.
53502 (grub_get_end_addr): Remove prototype.
53503 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53504 * include/grub/powerpc/ieee1275/kernel.h: New file.
53505 * include/grub/util/misc.h (grub_util_get_fp_size): New
53507 (grub_util_read_at): Likewise.
53508 (grub_util_write_image_at): Likewise.
53509 * kern/main.c (grub_get_end_addr): Remove function.
53510 (grub_load_modules): Call grub_arch_modules_addr instead of using
53511 grub_end_addr. Look for a grub_module_info struct in memory. Use
53512 the grub_module_info fields instead of calling grub_get_end_addr
53513 as loop conditions. Move grub_add_unused_region code here.
53514 (grub_add_unused_region): Remove function.
53515 * kern/i386/pc/init.c: Include grub/cache.h.
53516 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53517 one call to add_mem_region.
53518 (grub_arch_modules_addr): New function.
53519 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53520 (grub_total_module_size): Likewise.
53521 Include grub/machine/kernel.h.
53522 (grub_arch_modules_addr): New function.
53523 * util/grub-emu.c (grub_end_addr): Remove variable.
53524 (grub_total_module_size): Likewise.
53525 (grub_arch_modules_addr): New function.
53526 * util/misc.c: Include unistd.h.
53527 (grub_util_get_fp_size): New function.
53528 (grub_util_read_at): Likewise.
53529 (grub_util_write_image_at): Likewise.
53530 (grub_util_read_image): Call grub_util_read_at.
53531 (grub_util_write_image): Call grub_util_write_image_at.
53532 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53533 additional memory in kernel_img for a struct grub_module_info.
53534 Fill in that grub_module_info.
53535 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53537 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53541 * include/grub/powerpc/ieee1275/ieee1275.h
53542 (grub_ieee1275_milliseconds): New prototype.
53543 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53545 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53546 grub_ieee1275_milliseconds.
53548 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53550 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53552 (find_options): New function.
53553 (cmain): Call find_options.
53554 * include/grub/powerpc/ieee1275/ieee1275.h
53555 (grub_ieee1275_realmode): New extern variable.
53556 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53557 grub_map if grub_ieee1275_realmode is false.
53559 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53561 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53562 lines are inserted and make it work like readline. Reported by
53563 Vincent Pelletier <subdino2004@yahoo.fr>.
53565 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53567 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53570 `kern/powerpc/cache.S'.
53572 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53574 * genmk.rb: Handle the `Program' class in the main loop. Written
53575 by Johan Rydberg <jrydberg@gnu.org>.
53576 (Program): New class.
53577 (programs): New variable.
53578 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53579 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53580 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53581 (help_arch): Function removed.
53582 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53583 `powerpc/libgcc.h' and `loader.h'.
53584 (pkgdata_PROGRAMS): New variable.
53585 (sbin_UTILITIES): Variable removed.
53586 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53587 (grubof_SOURCES): Variable re-defined so it only includes the
53588 core functionality.
53589 (grubof_CFLAGS): Remove `-DGRUBOF'.
53590 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53591 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53592 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53593 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53594 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53595 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53596 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53597 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53598 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53599 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53600 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53601 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53602 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53603 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53604 (pc_mod_CFLAGS): New variables.
53605 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53606 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53607 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53608 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53610 * include/grub/i386/pc/init.h (grub_os_area_addr)
53611 (rub_os_area_size): ... to here.
53612 * include/grub/powerpc/ieee1275/ieee1275.h
53613 (grub_ieee1275_entry_fn): Export symbol.
53614 * include/grub/powerpc/ieee1275/init.h: New file.
53615 * include/grub/powerpc/libgcc.h: Likewise.
53616 * include/grub/cache.h: Likewise.
53617 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53618 <hollis@penguinppc.org>.
53619 * kern/dl.c: Include <grub/cache.h>.
53620 (grub_dl_flush_cache): New function.
53621 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53623 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53624 (grub_console_init): Removed prototypes.
53625 (grub_machine_init): Don't initialize the modules anymore.
53626 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53628 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53629 Macro undef removed.
53630 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53631 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53632 relocation `R_PPC_REL32'. Return an error when the relocation is
53634 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53635 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53636 * util/misc.c (grub_arch_sync_caches): Likewise.
53638 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53640 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53641 `symlist.c', add `grubof_symlist.c'.
53642 (symlist.c): Variable removed.
53643 (grubof_HEADERS): Variable added.
53644 (grubof_symlist.c): New target.
53645 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53646 `kernel_img_HEADERS'.
53647 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53648 * kern/powerpc/dl.c: New file.
53649 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53651 (grub_arch_dl_relocate_symbols): Likewise.
53652 (grub_register_exported_symbols): Likewise.
53654 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53656 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53657 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53658 to fail instead. Reported by Vincent Pelletier
53659 <subdino2004@yahoo.fr>.
53661 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53662 it is not allocated. Reported by Vincent Pelletier
53663 <subdino2004@yahoo.fr>.
53665 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53666 output so the output looks better.
53668 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53670 Modulize the partition map support and add support for the amiga
53673 * commands/ls.c: Include <grub/partition.h> instead of
53674 <grub/machine/partition.h>.
53675 * kern/disk.c: Likewise.
53676 * kern/rescue.c: Likewise.
53677 * loader/i386/pc/chainloader.c: Likewise.
53678 * normal/cmdline.c: Likewise.
53679 * kern/powerpc/ieee1275/init.c: Likewise.
53680 (grub_machine_init): Call `grub_pc_partition_map_init',
53681 `grub_amiga_partition_map_init' and
53682 `grub_apple_partition_map_init'.
53683 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53684 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53685 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53686 `partition.h' and `pc_partition.h'.
53687 (grub_setup_SOURCES): Remove
53688 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53689 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53690 (grub_emu_SOURCES): Likewise.
53691 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53692 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53693 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53695 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53696 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53697 (grubof_SOURCES): Likewise.
53698 * disk/i386/pc/partition.c: File removed.
53699 * disk/powerpc/ieee1275/partition.c: Likewise.
53700 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53701 * include/grub/i386/pc/partition.h: Likewise.
53702 * kern/partition.c: New file.
53703 * partmap/amiga.c: Likewise.
53704 * partmap/apple.c: Likewise.
53705 * partmap/pc.c: Likewise.
53706 * include/grub/partition.h: Likewise..
53707 * include/grub/pc_partition.h: Likewise.
53708 * util/grub-emu.c: Include <grub/partition.h> instead of
53709 <grub/machine/partition.h>.
53710 (main): Call `grub_pc_partition_map_init',
53711 `grub_amiga_partition_map_init' and
53712 `grub_apple_partition_map_init' and deinitialize afterwards.
53713 * util/i386/pc/biosdisk.c: Include `#include
53714 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53715 `<grub/machine/partition.h>'.
53716 * util/i386/pc/grub-setup.c: Likewise.
53717 * util/i386/pc/biosdisk.c: Likewise.
53718 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53719 partition information in case of a PC partition.
53720 * util/i386/pc/grub-setup.c: Include `#include
53721 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53722 `<grub/machine/partition.h>'.
53723 (setup): Only access the PC specific partition information in case
53726 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53728 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53729 (grub_longjmp): Likewise.
53730 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53732 * normal/powerpc/setjmp.S: New file.
53733 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53734 `normal/powerpc/setjmp.S'.
53735 (grubof_CFLAGS): Add `-DGRUBOF'.
53736 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53737 [GRUB_UTIL && !GRUBOF].
53739 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53742 property named `name'. Correctly handle the error returned by
53743 `grub_ieee1275_finddevice' if a device can not be opened.
53745 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53747 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53748 `actual' for negativity.
53749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53752 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53754 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53755 (PAGE_OFFSET): New macro.
53756 (CRTC_ADDR_PORT): Likewise.
53757 (CRTC_DATA_PORT): Likewise.
53758 (START_ADDR_HIGH_REGISTER): Likewise.
53759 (START_ADDR_LOW_REGISTER): Likewise.
53760 (GRAPHICS_ADDR_PORT): Likewise.
53761 (GRAPHICS_DATA_PORT): Likewise.
53762 (READ_MAP_REGISTER): Likewise.
53763 (INPUT_STATUS1_REGISTER): Likewise.
53764 (INPUT_STATUS1_VERTR_BIT): Likewise.
53765 (page): New variable.
53766 (wait_vretrace): New function.
53767 (set_read_map): Likewise.
53768 (set_start_address): Likewise.
53769 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53771 (check_vga_mem): Take the page into account.
53772 (write_char): Likewise.
53773 (write_cursor): Likewise.
53774 (scroll_up): Likewise. Copy the page to the page that is not
53775 shown and switch between both pages.
53776 (grub_vga_putchar): Fix off by one error.
53777 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53780 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53782 Add support for iso9660 (including rockridge).
53784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53785 (iso9660_mod_SOURCES): New variable.
53786 (iso9660_mod_CFLAGS): Likewise.
53787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53788 * include/grub/fs.h (grub_iso9660_init): New prototype.
53789 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53790 * fs/iso9660.c: New file.
53792 * include/grub/misc.h (grub_strncat): New prototype.
53793 * kern/misc.c (grub_strncat): New function.
53795 * fs/hfs.c (grub_hfs_mount): Translate the error
53796 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53797 * fs/jfs.c (grub_jfs_mount): Likewise.
53798 * fs/ufs.c (grub_ufs_mount): Likewise.
53800 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53802 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53803 which initialized BAT registers.
53804 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53805 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53807 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53808 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53810 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53811 (grub_mapclaim): Likewise.
53812 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53813 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53816 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53818 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53819 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53820 -ffreestanding and -msoft-float.
53822 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53824 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53825 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53826 set in grub_ieee1275_flags.
53828 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53830 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53833 grub_console_init first.
53834 Change the memory range used for grub_ieee1275_claim and
53835 grub_mm_init_region.
53836 Print an error message if the claim fails.
53837 Include <grub/misc.h>.
53839 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53841 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53842 Call grub_children_iterate for device nodes of type `scsi',
53844 (grub_ofdisk_open): Remove manual device alias resolution.
53845 Fix memory leak when device cannot be opened.
53846 * include/grub/powerpc/ieee1275/ieee1275.h
53847 (grub_children_iterate): New prototype.
53848 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53850 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53851 Return -1 if args.size was -1.
53853 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53855 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53856 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53857 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53858 Open Firmware's memory for it; claim memory from _start to _end.
53859 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53860 (_end): New extern.
53861 (_start): Zero BSS from __bss_start to _end.
53862 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53864 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53866 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53869 -1 if args.base was -1.
53871 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53873 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53874 escape sequence instead of a literal ^L. Also call
53875 grub_ofconsole_gotoxy.
53877 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53880 void * arguments to grub_addr_t. All callers updated. Also make
53881 the `result' argument optional.
53882 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53883 All callers updated.
53885 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53887 * commands/ls.c (grub_ls_list_files): Use the string following the
53888 initial ')', if present, as the filesystem path.
53889 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53891 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53893 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53895 Make the source code of the menu interface more readable.
53897 * normal/menu.c: Include grub/mm.h.
53898 (TERM_WIDTH): New macro.
53899 (TERM_HEIGHT): Likewise.
53900 (TERM_INFO_HEIGHT): Likewise.
53901 (TERM_MARGIN): Likewise.
53902 (TERM_SCROLL_WIDTH): Likewise.
53903 (TERM_TOP_BORDER_Y): Likewise.
53904 (TERM_LEFT_BORDER_X): Likewise.
53905 (TERM_BORDER_WIDTH): Likewise.
53906 (TERM_MESSAGE_HEIGHT): Likewise.
53907 (TERM_BORDER_HEIGHT): Likewise.
53908 (TERM_NUM_ENTRIES): Likewise.
53909 (TERM_FIRST_ENTRY_Y): Likewise.
53910 (TERM_ENTRY_WIDTH): Likewise.
53911 (TERM_CURSOR_X): Likewise.
53912 (draw_border): Use macros instead of magic numbers.
53913 (print_entry): Likewise.
53914 (print_entries): Likewise.
53915 (run_menu): Likewise. Also, handle the key 'e'.
53916 (run_menu_entry): Ignore empty command lines.
53917 (print_message): Added a new argument EDIT. If EDIT is true,
53918 print a different message.
53919 (init_page): Likewise.
53920 (edit_menu_entry): New function. Not implemented yet.
53922 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53924 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53925 can be loaded from normal mode.
53927 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53929 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53930 (multiboot_mod_CFLAGS): New variables.
53931 * loader/i386/pc/linux_normal.c: New file.
53932 * loader/i386/pc/multiboot_normal.c: Likewise.
53934 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53935 attribute `unused'.
53937 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53938 `fdiro' to read the mode information from instead of `diro'.
53940 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53941 looking up a symlink.
53943 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53945 * normal/command.c (grub_command_execute): Don't parse the
53946 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53947 flags of the command.
53949 * normal/menu.c (grub_menu_run): Fix typo.
53951 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53953 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53955 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53956 `y + 1' instead of `y - 1'.
53958 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53960 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53962 From Hollis Blanchard <hollis@penguinppc.org>:
53963 * kern/misc.c (memmove): New alias for grub_memmove.
53964 (memcmp): New alias for grub_memcmp.
53965 (memset): New alias for grub_memset.
53966 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53967 Change "int handle" to "grub_ieee1275_phandle_t handle".
53968 * include/grub/powerpc/ieee1275/ieee1275.h
53969 (grub_ieee1275_get_property): Likewise.
53971 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53973 Added normal mode command `chainloader' as module chain.mod, which
53974 depends on normal.mod and _chain.mod.
53976 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53977 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53978 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53980 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53981 but arguments parsing moved to ...
53982 (grub_chainloader_cmd): ... here. New function.
53983 * include/grub/i386/pc/chainloader.h: New file.
53984 * loader/i386/pc/chainloader_normal.c: Likewise.
53986 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53988 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53989 (grub_mkimage_LDFLAGS): Likewise.
53990 (grub_emu_SOURCES): Likewise.
53991 (kernel_img_HEADERS): Added fshelp.h.
53992 * fs/ext2.c: Include <grub/fshelp.h>.
53993 (FILETYPE_REG): New macro.
53994 (FILETYPE_INO_REG): Likewise.
53995 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53997 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53999 (grub_fshelp_node): New struct.
54000 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54002 (grub_ext2_get_file_block): Removed function.
54003 (grub_ext2_read_block): New function.
54004 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54005 This function was written.
54006 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54007 (grub_ext2_find_file): Removed function.
54008 (grub_ext2_read_symlink): New function.
54009 (grub_ext2_iterate_dir): Likewise.
54010 (grub_ext2_open): Rewritten.
54011 (grub_ext2_dir): Rewritten.
54012 * include/grub/fshelp.h: New file.
54013 * fs/fshelp.c: Likewise.
54015 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54017 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54018 (print_message): Add a missing newline.
54019 (run_menu): Added timeout support.
54020 (run_menu_entry): New local function.
54021 (grub_menu_run): Added support for booting.
54023 * kern/loader.c (grub_loader_is_loaded): New function.
54025 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54026 (grub_get_rtc): Exported.
54028 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54029 (grub_get_rtc): Exported.
54031 * include/grub/normal.h (struct grub_command_list): Remove
54032 constant from the member `command'.
54034 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54036 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54040 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54042 Add support for the JFS filesystem.
54044 * fs/jfs.c: New file.
54045 * include/grub/fs.h (grub_jfs_init): New prototype.
54046 (grub_jfs_fini): New prototype.
54047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54048 (grub_emu_SOURCES): Likewise.
54049 (pkgdata_MODULES): Add jfs.mod.
54050 (jfs_mod_SOURCES): New variable.
54051 (jfs_mod_CFLAGS): Likewise.
54052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54053 (grubof_SOURCES): Likewise.
54054 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54056 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54057 endian to the host endian.
54058 (grub_fat_utf16_to_utf8): Move function from there...
54059 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54060 the endianness of the source string anymore.
54061 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54063 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54065 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54066 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54067 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54068 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54070 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54071 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54072 for `node_found' and `it_dir'.
54073 (grub_hfs_dir): Add prototype for `dir_hook'.
54075 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54076 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54077 and `indir32' to silence a gcc warning.
54079 * include/grub/fs.h (grub_hfs_init): New prototype.
54080 (grub_hfs_fini): Likewise.
54083 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54085 Each disk device has its own id now. This is useful to make use
54086 of multiple disk devices.
54088 * include/grub/disk.h (grub_disk_dev_id): New enum.
54089 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54090 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54092 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54093 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54096 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54098 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54099 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54101 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54102 "id" which is used by the cache manager.
54104 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54107 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54109 * fs/hfs.c: New file.
54110 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54111 (grub_emu_SOURCES): Likewise.
54112 (pkgdata_MODULES): Add hfs.mod.
54113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54114 (grubof_SOURCES): Likewise.
54115 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54117 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54118 * kern/misc.c (grub_strncasecmp): Add function.
54120 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54122 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54125 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54126 (grub_ext2_dir): In case the directory entry type is unknown, read
54129 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54131 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54132 grub_load_linux instead of grub_rescue_cmd_linux as second
54133 argument of grub_rescue_register_command.
54135 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54137 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54141 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54142 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54143 `loader/powerpc/ieee1275/linux.c',
54144 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54145 * include/grub/powerpc/ieee1275/ieee1275.h
54146 (grub_ieee1275_release): New prototype.
54147 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54149 normal, boot, linux and linux_normal.
54150 * loader/powerpc/ieee1275/linux.c: New file.
54151 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54153 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54155 * normal/arg.c (grub_arg_parse): Correct error handling after
54156 reallocating the argumentlist (check if `argl' is not null instead
54157 of checking if `args' is not null).
54158 * kern/mm.c (grub_realloc): Return the same pointer when using the
54159 same region, instead of returning the header address.
54161 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54163 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54164 one block instead of two when looking for the initial partition.
54165 (grub_partition_probe): Initialize the local variable `p' with 0.
54166 Use base 10 for the grub_strtoul call.
54167 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54168 need for one local variable.
54169 (grub_strtoul): Don't add the new value to `num', instead of that
54172 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54174 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54175 (pxeboot_img_SOURCES): New variable.
54176 (pxeboot_img_ASFLAGS): Likewise.
54177 (pxeboot_img_LDFLAGS): Likewise.
54178 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54179 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54180 <lode_leroy@hotmail.com>.
54182 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54184 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54185 there was no input.
54187 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54189 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54190 the history buffer logic.
54192 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54194 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54195 (FILETYPE_INO_SYMLINK): New macros.
54196 (grub_ext2_find_file): Check if the node is a directory using the
54197 inode stat information instead of using the filetype in the
54198 dirent. Exclude the first character of an absolute symlink.
54199 (grub_ext2_dir): Mask out the filetype part of the mode member of
54202 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54204 Add support for UFS version 1 and 2. Add support for the minix
54205 filesystem version 1 and 2, both the variants with 14 and 30 long
54208 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54210 (grub_emu_SOURCES): Likewise.
54211 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54212 (ufs_mod_SOURCES): New variable.
54213 (ufs_mod_CFLAGS): Likewise.
54214 (minix_mod_SOURCES): Likewise.
54215 (minix_mod_CFLAGS): Likewise.
54216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54218 (grubof_SOURCES): Likewise.
54219 * fs/ufs.c: New file.
54220 * fs/minix.c: New file.
54221 * include/grub/fs.h (grub_ufs_init): New prototype.
54222 (grub_ufs_fini): Likewise.
54223 (grub_minix_init): Likewise.
54224 (grub_minix_fini): Likewise.
54225 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54228 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54231 commands/ls.c, commands/terminal.c, commands/boot.c,
54232 commands/cmp.c and commands/cat.c.
54233 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54235 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54238 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54240 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54241 and grub_, respectively. Because the conversion is trivial and
54242 mechanical, I omit the details here. Please refer to the CVS
54243 if you need more information.
54245 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54247 * include/pupa: Renamed to ...
54248 * include/grub: ... this.
54249 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54250 * util/i386/pc/grub-mkimage.c: ... this.
54251 * util/i386/pc/pupa-setup.c: Renamed to ...
54252 * util/i386/pc/grub-setup.c: ... this.
54253 * util/pupa-emu.c: Renamed to ...
54254 * util/grub-emu.c: ... this.
54256 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54258 Add support for the newworld apple macintosh (PPC). This has been
54259 tested on the powerbook 2000 only. It only adds support for
54260 generic ieee1275 functions, console and disk support. This should
54261 be easy to port to other architectures with support for Open
54264 * configure.ac: Accept the powerpc as host_cpu. In the case of
54265 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54266 specific tests are only executed while building for the i386.
54267 Inverse test for crosscompile.
54268 * genmk.rb (Utility): Allow assembler files.
54269 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54270 * conf/powerpc-ieee1275.rmk: New file.
54271 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54272 * disk/powerpc/ieee1275/partition.c: Likewise.
54273 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54274 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54275 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54276 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54277 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54278 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54279 * include/pupa/powerpc/ieee1275/loader.h
54280 * include/pupa/powerpc/setjmp.h: Likewise.
54281 * include/pupa/powerpc/types.h: Likewise.
54282 * kern/powerpc/ieee1275/init.c: Likewise.
54283 * kern/powerpc/ieee1275/openfw.c: Likewise.
54284 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54286 These files were written by Johan Rydberg
54287 (jrydberg@night.trouble.net) and I only modified them slightly.
54289 * boot/powerpc/ieee1275/cmain.c: New file.
54290 * boot/powerpc/ieee1275/crt0.S: Likewise.
54291 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54292 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54294 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54296 * Makefile.in: Update copyright.
54297 * genmodsrc.sh: Likewise.
54298 * gensymlist.sh: Likewise.
54299 * term/i386/pc/vga.c: Indent correctly.
54301 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54302 bugreporting address.
54303 * util/i386/pc/pupa-setup.c (usage): Likewise,
54304 (main): Call pupa_ext2_init and pupa_ext2_fini.
54306 * fs/fat.c (log2): Renamed to ...
54307 (fat_log2): ... this.
54308 All callers changed.
54309 * kern/misc.c (memcpy): Alias to pupa_memmove.
54310 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54312 * util/console.c (pupa_ncurses_fini): Return 0.
54314 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54315 Move fail label here.
54316 [__GNU__]: Don't warn when using stat.
54317 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54318 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54319 long int. Use strtol instead of strtoul.
54321 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54323 * commands/boot.c: New file.
54324 * commands/cat.c: Likewise.
54325 * commands/cmp.c: Likewise.
54326 * commands/ls.c: Likewise.
54327 * commands/terminal.c: Likewise.
54328 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54329 (pupa_register_command): Changed interface to match the new
54331 (pupa_command_execute): Changed (almost rewritten) so it uses
54332 pupa_split_command. Added support for setting variables using the
54334 (rescue_command): Changed to work with the new argument parser.
54335 (terminal_command): Moved from here to commands/terminal.c.
54336 (set_command): New function.
54337 (unset_command): New function.
54338 (insmod_command): New function.
54339 (rmmod_command): New function.
54340 (lsmod_command): New function.
54341 (pupa_command_init): Don't initialize the command terminal
54342 anymore. Initialize the commands set, unset, insmod, rmmod and
54344 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54345 (kernel_img_HEADERS): Add arg.h and env.h.
54346 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54347 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54348 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54350 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54352 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54353 (boot_mod_SOURCES): New variable.
54354 (terminal_mod_SOURCES): Likewise.
54355 (ls_mod_SOURCES): Likewise.
54356 (cmp_mod_SOURCES): Likewise.
54357 (cat_mod_SOURCES): Likewise.
54359 * normal/arg.c: New file.
54360 * kern/env.c: Likewise.
54361 * include/pupa/arg.h: Likewise.
54362 * include/pupa/env.h: Likewise.
54363 * font/manager.c (font_command): Changed to match argument parsing
54365 (PUPA_MOD_INIT): Likewise.
54366 * hello/hello.c (pupa_cmd_hello): Likewise.
54367 (PUPA_MOD_INIT): Likewise.
54368 * include/pupa/disk.h: Include <pupa/device.h>.
54369 (pupa_print_partinfo): New prototype.
54370 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54371 (pupa_dl_get_prefix): Likewise.
54372 * include/pupa/misc.h: Include <pupa/err.h>.
54373 (pupa_isgraph): New prototype.
54374 (pupa_isdigit): Likewise.
54375 (pupa_split_cmdline): Likewise.
54376 * include/pupa/normal.h: Include <pupa/arg.h>.
54377 (pupa_command): Changed the prototype of the member `func' to
54378 match the argument parsing interface. Added member `options'.
54379 (pupa_register_command): Updated to match function.
54380 (pupa_arg_parse): New prototype.
54381 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54382 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54383 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54384 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54385 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54386 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54387 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54388 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54389 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54390 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54391 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54392 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54393 * kern/disk.c: Include <pupa/file.h>.
54394 (pupa_print_partinfo): New function.
54395 * kern/dl.c: Include <pupa/env.h>.
54396 (pupa_dl_dir): Variable removed.
54397 (pupa_dl_load): Use the environment variable `prefix' instead of
54398 the variable pupa_dl_dir.
54399 (pupa_dl_set_prefix): Function removed.
54400 (pupa_dl_get_prefix): Likewise.
54401 * kern/i386/pc/init.c: Include <pupa/env.h>.
54402 (pupa_machine_init): Use the environment variable `prefix' instead of
54403 using pupa_dl_set_prefix to set the prefix.
54404 * kern/main.c: Include <pupa/env.h>.
54405 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54406 using pupa_dl_get_prefix to get the prefix.
54407 * kern/misc.c: Include <pupa/env.h>.
54408 (pupa_isdigit): New function.
54409 (pupa_isgraph): Likewise.
54410 (pupa_ftoa): Likewise.
54411 (pupa_vsprintf): Added support for printing values of the type
54412 `double'. Make it possible to format variable output when using
54413 formatting like `%1.2%f'.
54414 (pupa_split_cmdline): New function.
54415 * kern/rescue.c: Include <pupa/env.h>.
54416 (next_word): Removed function.
54417 (pupa_rescue_cmd_prefix): Likewise.
54418 (pupa_rescue_cmd_set): New function.
54419 (pupa_rescue_cmd_unset): New function.
54420 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54421 split the command line instead of splitting it here. Added
54422 support for setting variables using the syntax `foo=bar'. Don't
54423 initialize the prefix command anymore. Initialized the set and
54425 * normal/cmdline.c: Include <pupa/env.h>.
54426 (pupa_tab_complete): Added prototypes for print_simple_completion,
54427 print_partition_completion, add_completion, iterate_commands,
54428 iterate_dev, iterate_part and iterate_dir. Moved code to print
54429 partition information from here to kern/disk.c.
54430 (pupa_cmdline_run): Don't check if the function exists anymore.
54431 * normal/main.c: Include <pupa/env.h>.
54432 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54433 instead of using pupa_dl_get_prefix to get the prefix.
54434 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54435 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54437 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54438 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54439 ((unused))' to silence a gcc warning.
54440 (pupa_vga_setcolor): Likewise.
54441 (debug_command): Changed to match argument parsing
54443 * util/pupa-emu.c: Include <pupa/env.h>.
54444 (options): Added 0's for unused fields to silence a gcc warning.
54446 (main): Use the environment variable `prefix' instead of using
54447 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54448 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54451 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54452 * util/misc.c: Include <malloc.h>.
54453 (pupa_malloc): Rewritten so errors are correctly reported.
54454 (pupa_realloc): Likewise.
54455 (pupa_memalign): Likewise.
54456 (pupa_mm_init_region): Declare unused variables with
54457 `__attribute__ ((unused))' to silence a gcc warning.
54458 * normal/i386/setjmp.S: Remove tab at the end of the file to
54459 silence a gcc warning.
54460 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54461 variables with `__attribute__ ((unused))' to silence a gcc
54463 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54464 local variable i unsigned to silence a gcc warning.
54466 * kern/term.c: Include <pupa/misc.h>.
54467 (pupa_more_lines): New variable.
54468 (pupa_more): Likewise.
54469 (pupa_putcode): When the pager is active pause at the end of every
54471 (pupa_set_more): New function.
54472 * include/pupa/term.h (pupa_set_more): New prototype.
54475 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54477 Now this project is GRUB 2 rather than PUPA. The location of
54478 the CVS repository was moved to GRUB's.
54480 * configure.ac: Use bug-grub as the reporting address.
54481 Use GRUB instead of PUPA.
54482 Change the version number to 1.90.
54484 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54486 * genkernsyms.sh: Updated copyright information.
54487 * genmk.rb: Likewise.
54488 * genmodsrc.sh: Likewise.
54489 * gensymlist.sh: Likewise.
54490 * boot/i386/pc/boot.S: Likewise.
54491 * boot/i386/pc/diskboot.S: Likewise.
54492 * disk/i386/pc/biosdisk.c: Likewise.
54493 * disk/i386/pc/partition.c: Likewise.
54494 * font/manager.c: Likewise.
54495 * fs/ext2.c: Likewise.
54496 * fs/fat.c: Likewise.
54497 * include/pupa/boot.h: Likewise.
54498 * include/pupa/device.h: Likewise.
54499 * include/pupa/disk.h: Likewise.
54500 * include/pupa/dl.h: Likewise.
54501 * include/pupa/elf.h: Likewise.
54502 * include/pupa/err.h: Likewise.
54503 * include/pupa/file.h: Likewise.
54504 * include/pupa/font.h: Likewise.
54505 * include/pupa/fs.h: Likewise.
54506 * include/pupa/kernel.h: Likewise.
54507 * include/pupa/loader.h: Likewise.
54508 * include/pupa/misc.h: Likewise.
54509 * include/pupa/mm.h: Likewise.
54510 * include/pupa/net.h: Likewise.
54511 * include/pupa/normal.h: Likewise.
54512 * include/pupa/rescue.h: Likewise.
54513 * include/pupa/setjmp.h: Likewise.
54514 * include/pupa/symbol.h: Likewise.
54515 * include/pupa/term.h: Likewise.
54516 * include/pupa/types.h: Likewise.
54517 * include/pupa/i386/setjmp.h: Likewise.
54518 * include/pupa/i386/types.h: Likewise.
54519 * include/pupa/i386/pc/biosdisk.h: Likewise.
54520 * include/pupa/i386/pc/boot.h: Likewise.
54521 * include/pupa/i386/pc/console.h: Likewise.
54522 * include/pupa/i386/pc/init.h: Likewise.
54523 * include/pupa/i386/pc/kernel.h: Likewise.
54524 * include/pupa/i386/pc/linux.h: Likewise.
54525 * include/pupa/i386/pc/loader.h: Likewise.
54526 * include/pupa/i386/pc/memory.h: Likewise.
54527 * include/pupa/i386/pc/multiboot.h: Likewise.
54528 * include/pupa/i386/pc/partition.h: Likewise.
54529 * include/pupa/i386/pc/time.h: Likewise.
54530 * include/pupa/i386/pc/vga.h: Likewise.
54531 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54532 * include/pupa/util/getroot.h: Likewise.
54533 * include/pupa/util/misc.h: Likewise.
54534 * include/pupa/util/resolve.h: Likewise.
54535 * kern/device.c: Likewise.
54536 * kern/disk.c: Likewise.
54537 * kern/dl.c: Likewise.
54538 * kern/err.c: Likewise.
54539 * kern/file.c: Likewise.
54540 * kern/fs.c: Likewise.
54541 * kern/loader.c: Likewise.
54542 * kern/main.c: Likewise.
54543 * kern/misc.c: Likewise.
54544 * kern/mm.c: Likewise.
54545 * kern/rescue.c: Likewise.
54546 * kern/term.c: Likewise.
54547 * kern/i386/dl.c: Likewise.
54548 * kern/i386/pc/init.c: Likewise.
54549 * kern/i386/pc/lzo1x.S: Likewise.
54550 * kern/i386/pc/startup.S: Likewise.
54551 * loader/i386/pc/chainloader.c: Likewise.
54552 * loader/i386/pc/linux.c: Likewise.
54553 * loader/i386/pc/multiboot.c: Likewise.
54554 * normal/cmdline.c: Likewise.
54555 * normal/command.c: Likewise.
54556 * normal/main.c: Likewise.
54557 * normal/menu.c: Likewise.
54558 * normal/i386/setjmp.S: Likewise.
54559 * term/i386/pc/console.c: Likewise.
54560 * term/i386/pc/vga.c: Likewise.
54561 * util/console.c: Likewise.
54562 * util/genmoddep.c: Likewise.
54563 * util/misc.c: Likewise.
54564 * util/pupa-emu.c: Likewise.
54565 * util/resolve.c: Likewise.
54566 * util/unifont2pff.rb: Likewise.
54567 * util/i386/pc/biosdisk.c: Likewise.
54568 * util/i386/pc/getroot.c: Likewise.
54569 * util/i386/pc/pupa-mkimage.c: Likewise.
54570 * util/i386/pc/pupa-setup.c: Likewise.
54572 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54574 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54575 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54576 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54577 reading and reset it after reading.
54578 (pupa_ext2_close): Return PUPA_ERR_NONE.
54580 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54582 (struct linux_kernel_header): Add kernel_version and
54584 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54585 pupa_file_read succeeds.
54586 (pupa_rescue_cmd_initrd): Implement.
54588 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54590 * fs/ext2.c (pupa_ext2_label): New function.
54591 (pupa_ext2_fs): Added label.
54592 * fs/fat.c (pupa_fat_label): New function.
54593 (pupa_fat_fs): Added label.
54594 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54596 * kern/misc.c (pupa_strndup): New function.
54597 * include/pupa/misc.h (pupa_strndup): New prototype.
54599 * include/pupa/normal.h: Include <pupa/err.h>.
54600 (pupa_set_history): New prototype.
54601 (pupa_iterate_commands): New prototype.
54602 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54603 <pupa/disk.h>, <pupa/file.h>.
54604 (hist_size): New variable.
54605 (hist_lines): Likewise.
54606 (hist_end): Likewise.
54607 (hist_used): Likewise.
54608 (pupa_set_history): New function.
54609 (pupa_history_get): Likewise.
54610 (pupa_history_add): Likewise.
54611 (pupa_history_replace): Likewise.
54612 (pupa_tab_complete): Likewise.
54613 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54614 completion shows partitionnames while completing partitions, this
54615 feature was suggested by Jeff Bailey.
54616 * normal/command.c (pupa_iterate_commands): New function.
54617 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54618 (pupa_normal_init): Initialize history buffer.
54619 (PUPA_MOD_INIT): Likewise.
54620 (pupa_normal_fini): Free the history buffer.
54621 (PUPA_MOD_FINI): Likewise.
54623 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54626 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54627 * configure.ac [i386]: Check for regparam bug.
54628 (NESTED_FUNC_ATTR) [! i386]: Defined.
54630 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54632 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54633 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54634 (pupa_emu_SOURCES): New variable.
54635 (pupa_emu_LDFLAGS): Likewise.
54636 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54637 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54638 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54639 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54640 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54641 (pupa_jmp_buf): New typedef.
54642 (pupa_setjmp) [PUPA_UTIL]: New macro.
54643 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54644 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54645 (pupa_refresh): New prototype.
54646 * include/pupa/util/getroot.h: New file.
54647 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54649 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54650 (pupa_rescue_cmd_cat): Likewise.
54651 (pupa_rescue_cmd_ls): Likewise.
54652 (pupa_rescue_cmd_testload): Likewise.
54653 (pupa_rescue_cmd_lsmod): Likewise.
54654 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54655 * normal/menu.c (run_menu): Likewise.
54656 * kern/term.c (pupa_cls): Likewise.
54657 (pupa_refresh): New function.
54658 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54659 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54660 * util/console.c: New file.
54662 * util/i386/pc/getroot.c: New file.
54663 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54664 (pupa_putchar): New function.
54665 (pupa_refresh): Likewise.
54666 (xgetcwd): Function moved to ...
54667 (strip_extra_slashes): Likewise.
54668 (get_prefix): Likewise.
54669 * util/i386/pc/getroot.c: ... here.
54670 (find_root_device): Function moved and renamed to...
54671 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54672 Changed all callers.
54673 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54675 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54676 Changed all callers.
54677 * util/misc.c (pupa_memalign): New function.
54678 (pupa_mm_init_region): Likewise.
54679 (pupa_register_exported_symbols): Likewise.
54680 (pupa_putchar): Function removed.
54681 * util/pupa-emu.c: New file.
54683 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54685 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54686 (_multiboot_mod_SOURCES): New variable.
54687 (_multiboot_mod_CFLAGS): Likewise.
54688 * loader/i386/pc/multiboot.c: New file.
54689 * include/pupa/i386/pc/multiboot.h: Likewise.
54690 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54691 (pupa_multiboot_real_boot): New function.
54692 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54693 (pupa_multiboot_real_boot): New prototype.
54694 (pupa_rescue_cmd_multiboot): Likewise
54695 (pupa_rescue_cmd_module): Likewise.
54697 * kern/loader.c (pupa_loader_set): Continue when
54698 pupa_loader_unload_func() fails.
54699 (pupa_loader_unset): New function.
54700 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54702 * kern/misc.c (pupa_stpcpy): New function.
54703 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54705 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54707 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54708 for available extensions.
54710 * include/pupa/i386/pc/time.h: New file.
54711 * kern/disk.c: Include <pupa/machine/time.h>.
54712 (PUPA_CACHE_TIMEOUT): New macro.
54713 (pupa_last_time): New variable.
54714 (pupa_disk_open): Flush the cache when there was a timeout.
54715 (pupa_disk_close): Reset the timer.
54716 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54718 * util/misc.c: Include <sys/times.h>
54719 (pupa_get_rtc): New function.
54721 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54723 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54725 (pupa_ext2_get_file_block): Use blocks member.
54727 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54728 first block. Return -1 instead of pupa_errno on error.
54730 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54732 * README: In the pupa-mkimage example use _chain instead of chain
54733 and ext2 instead of fat.
54734 * TODO: Replace ext2fs with jfs as an example. Add an item for
54735 adding journal playback for ext2fs.
54736 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54737 (pkgdata_MODULES): Added ext2.mod.
54738 (ext2_mod_SOURCES): New variable.
54739 (ext2_mod_CFLAGS): Likewise.
54740 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54741 * include/pupa/misc.h (pupa_strncpy): New prototype.
54742 (pupa_strcat): Likewise.
54743 (pupa_strncmp): Likewise.
54744 * kern/misc.c (pupa_strcat): Enable function.
54745 (pupa_strncpy): New function.
54746 (pupa_strncmp): Likewise.
54747 * fs/ext2.c: New file.
54749 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54750 when the read failed before retrying.
54751 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54752 (_FILE_OFFSET_BITS): Likewise.
54753 * configure.ac: Added AC_SYS_LARGEFILE.
54755 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54757 * genmk.rb (PModule#rule): Make sure to get only symbol names
54758 from the output of nm.
54759 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54761 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54763 I forgot to check in these changes for a long time. This adds
54764 incomplete support for VGA console, and this is still very
54765 buggy. Also, a lot of consideration is required for I18N,
54766 UNICODE, and VGA font issues. Therefore, assume that this is
54767 such that "better than nothing".
54769 * font/manager.c: New file.
54770 * include/pupa/font.h: Likewise.
54771 * include/pupa/i386/pc/vga.h: Likewise.
54772 * term/i386/pc/vga.c: Likewise.
54773 * util/unifont2pff.rb: Likewise.
54775 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54776 (pkgdata_MODULES): Added vga.mod and font.mod.
54777 (vga_mod_SOURCES): New variables.
54778 (vga_mod_CFLAGS): Likewise.
54779 (font_mod_SOURCES): Likewise.
54780 (font_mod_CFLAGS): Likewise.
54782 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54784 * include/pupa/term.h: Include pupa/err.h.
54785 (struct pupa_term): Added init and fini.
54786 Changed the argument of putchar to pupa_uint32_t.
54788 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54789 (pupa_console_real_putchar): New prototype.
54790 (pupa_console_putchar): Removed.
54791 (pupa_console_checkkey): Exported.
54792 (pupa_console_getkey): Likewise.
54794 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54797 * kern/term.c (pupa_term_set_current): Rewritten.
54798 (pupa_putchar): Likewise.
54799 (pupa_putcode): New function.
54801 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54802 (pupa_console_real_putchar): ... this.
54803 (pupa_vga_set_mode): New function.
54804 (pupa_vga_get_font): Likewise.
54806 * normal/command.c: Include pupa/term.h.
54807 (terminal_command): New function.
54808 (pupa_command_init): Register the command "terminal".
54810 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54811 (DISP_UP): Likewise.
54812 (DISP_RIGHT): Likewise.
54813 (DISP_DOWN): Likewise.
54814 (DISP_HLINE): Likewise.
54815 (DISP_VLINE): Likewise.
54816 (DISP_UL): Likewise.
54817 (DISP_UR): Likewise.
54818 (DISP_LL): Likewise.
54819 (DISP_LR): Likewise.
54821 * term/i386/pc/console.c (pupa_console_putchar): New function.
54823 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54825 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54826 FIX. Reverse the path_list.
54828 * include/pupa/normal.h: Export pupa_register_command and
54829 pupa_unregister_command.
54831 * hello/hello.c (pupa_cmd_hello): New module.
54832 * conf/i386-pc.rmk: Added hello.mod.
54834 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54836 * kern/i386/pc/lzo1x.S: New file.
54838 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54839 (compress_kernel): New variable.
54840 (generate_image): Heavily modified to support compressing a
54841 large part of the core image.
54843 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54845 (pupa_util_load_image): New function.
54847 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54848 (pupa_compressed_size): New variable.
54849 (codestart): Enable Gate A20 here.
54850 Decompress the compressed part of the core image.
54851 Rearrange the code to put functions and variables which are
54852 required for initialization in the non-compressed part.
54855 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54858 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54860 * include/pupa/i386/pc/kernel.h
54861 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54862 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54863 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54864 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54865 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54867 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54869 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54870 (Utility#rule): Likewise.
54872 * configure.ac: Check if LZO is available.
54874 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54876 * include/pupa/normal.h: New file.
54877 * include/pupa/setjmp.h: Likewise.
54878 * include/pupa/i386/setjmp.h: Likewise.
54879 * normal/cmdline.c: Likewise.
54880 * normal/command.c: Likewise.
54881 * normal/main.c: Likewise.
54882 * normal/menu.c: Likewise.
54883 * normal/i386/setjmp.S: Likewise.
54885 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54886 (pupa_rescue_cmd_initrd): Likewise.
54888 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54891 * kern/i386/pc/startup.S (translation_table): New variable.
54892 (translate_keycode): New function.
54893 (pupa_console_getkey): Call translate_keycode.
54895 * kern/rescue.c (attempt_normal_mode): New function.
54896 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54897 it failed, print a message.
54899 * kern/mm.c (pupa_real_malloc): Print more information when a
54900 free magic is broken.
54901 (pupa_free): If the first free header is not free actually, set
54904 * kern/main.c (pupa_load_normal_mode): Just load the module
54906 (pupa_main): Don't print the message
54907 "Entering into rescue mode..." here.
54909 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54911 (pupa_rescue_cmd_initrd): Likewise.
54912 (pupa_rescue_cmd_initrd): Likewise.
54914 * include/pupa/symbol.h (FUNCTION): Specify the type.
54915 (VARIABLE): Likewise.
54917 * include/pupa/err.h (pupa_err_t): Added
54918 PUPA_ERR_UNKNOWN_COMMAND.
54920 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54921 (pupa_dl_get_prefix): Likewise.
54923 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54924 Added _chain.mod and _linux.mod instead of chain.mod and
54926 (chain_mod_SOURCES): Renamed to ...
54927 (_chain_mod_SOURCES): ... this.
54928 (chain_mod_CFLAGS): Renamed to ...
54929 (_chain_mod_CFLAGS): ... this.
54930 (linux_mod_SOURCES): Renamed to ...
54931 (_linux_mod_SOURCES): ... this.
54932 (linux_mod_CFLAGS): Renamed to ...
54933 (_linux_mod_CFLAGS): ... this.
54934 (normal_mod_SOURCES): New variable.
54935 (normal_mod_CFLAGS): Likewise.
54936 (normal_mod_ASFLAGS): Likewise.
54938 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54940 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54943 * kern/dl.c (pupa_dl_ref): Refer depending modules
54945 (pupa_dl_unref): Unrefer depending modules recursively.
54946 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54947 a module is unloaded before one depending on that module is
54949 (pupa_dl_unload): Unload depending modules explicitly,
54952 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54954 * include/pupa/i386/pc/linux.h: New file.
54955 * loader/i386/pc/linux.c: Likewise.
54957 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54959 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54960 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54961 of PUPA_CHAINLOADER_BOOT_SECTOR.
54963 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54964 (pupa_linux_prot_size): New variable.
54965 (pupa_linux_tmp_addr): Likewise.
54966 (pupa_linux_real_addr): Likewise.
54967 (pupa_linux_boot_zimage): New function.
54968 (pupa_linux_boot_bzimage): Likewise.
54970 * kern/i386/pc/init.c (struct mem_region): New structure.
54971 (MAX_REGIONS): New macro.
54972 (mem_regions): New variable.
54973 (num_regions): Likewise.
54974 (pupa_os_area_addr): Likewise.
54975 (pupa_os_area_size): Likewise.
54976 (pupa_lower_mem): Likewise.
54977 (pupa_upper_mem): Likewise.
54978 (add_mem_region): New function.
54979 (compact_mem_regions): Likewise.
54980 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54981 the size of the conventional memory and that of so-called upper
54982 memory (before the first memory hole).
54983 Instead of adding each found region to free memory, use
54984 add_mem_region and add them after removing overlaps.
54985 Also, add only 1/4 of the upper memory to free memory. The rest
54986 is used for loading OS images. Maybe this is ad hoc, but this
54987 makes it much easier to relocate OS images when booting.
54989 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54990 (pupa_enter_rescue_mode): Don't register initrd and module.
54992 * kern/mm.c: Include pupa/dl.h.
54994 * kern/main.c: Include pupa/file.h and pupa/device.h.
54996 * kern/loader.c (pupa_loader_load_module_func): Removed.
54997 (pupa_loader_load_module): Likewise.
54999 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55002 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55003 (pupa_linux_tmp_addr): Likewise.
55004 (pupa_linux_real_addr): Likewise.
55005 (pupa_linux_boot_zimage): Likewise.
55006 (pupa_linux_boot_bzimage): Likewise.
55008 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55009 (pupa_upper_mem): Likewise.
55010 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55011 module is too dangerous.
55013 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55014 (pupa_os_area_size): Likewise.
55015 (pupa_loader_set): Remove the first argument. Loader doesn't
55016 manage modules or initrd any longer.
55017 (pupa_loader_load_module): Removed.
55019 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55020 (linux_mod_SOURCES): New variable.
55021 (linux_mod_CFLAGS): Likewise.
55023 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55025 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55026 the length of a blocklist correctly.
55028 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55029 Use ioctl only if the OS file is a block device.
55030 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55031 not very useful for normal files.
55033 * kern/main.c (pupa_set_root_dev): New function.
55034 (pupa_load_normal_mode): Likewise.
55035 (pupa_main): Call those above.
55037 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55040 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55042 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55044 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55045 (setup): Configure the installed partition information and the
55048 * loader/i386/pc/chainloader.c (my_mod): New variable.
55049 (pupa_chainloader_unload): New function.
55050 (pupa_rescue_cmd_chainloader): Refer itself.
55051 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55053 * kern/i386/pc/startup.S (install_partition): Removed.
55054 (version_string): Likewise.
55055 (config_file): Likewise.
55056 (pupa_install_dos_part): New variable.
55057 (pupa_install_bsd_part): Likewise.
55058 (pupa_prefix): Likewise.
55059 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55061 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55063 (make_install_device): New function.
55064 (pupa_machine_init): Set the dl prefix.
55066 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55067 (buf): Renamed to ...
55068 (linebuf): ... this.
55069 (pupa_rescue_cmd_prefix): New function.
55070 (pupa_rescue_cmd_insmod): Likewise.
55071 (pupa_rescue_cmd_rmmod): Likewise.
55072 (pupa_rescue_cmd_lsmod): Likewise.
55073 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55076 * kern/mm.c (pupa_memalign): If failed even after invalidating
55077 disk caches, unload unneeded modules and retry.
55079 * kern/misc.c (pupa_memmove): New function.
55080 (pupa_memcpy): Removed.
55081 (pupa_strcpy): New function.
55082 (pupa_itoa): Made static.
55084 * kern/dl.c (pupa_dl_iterate): New function.
55085 (pupa_dl_ref): Likewise.
55086 (pupa_dl_unref): Likewise.
55087 (pupa_dl_unload): Return if succeeded or not.
55088 (pupa_dl_unload_unneeded): New function.
55089 (pupa_dl_unload_all): Likewise.
55090 (pupa_dl_init): Renamed to ...
55091 (pupa_dl_set_prefix): ... this.
55092 (pupa_dl_get_prefix): New function.
55094 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55095 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55096 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55097 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55098 (pupa_install_dos_part): Declared.
55099 (pupa_install_bsd_part): Likewise.
55100 (pupa_prefix): Likewise.
55101 (pupa_boot_drive): Likewise.
55103 * include/pupa/types.h: Fix a typo.
55105 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55107 (pupa_memmove): Declared.
55108 (pupa_strcpy): Likewise.
55110 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55111 pupa_mod_init takes one argument, its own module.
55112 (pupa_dl_unload_unneeded): Declared.
55113 (pupa_dl_unload_all): Likewise.
55114 (pupa_dl_ref): Likewise.
55115 (pupa_dl_unref): Likewise.
55116 (pupa_dl_iterate): Likewise.
55117 (pupa_dl_init): Renamed to ...
55118 (pupa_dl_set_prefix): ... this.
55119 (pupa_dl_get_prefix): Declared.
55121 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55122 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55124 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55125 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55127 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55128 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55130 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55132 * util/i386/pc/pupa-setup.c (setup): Define the internal
55133 function find_first_partition_start at the top level, because GCC
55134 3.0.x cannot compile internal functions in deeper scopes
55136 (find_root_device): Use lstat instead of stat.
55137 Don't follow symbolic links.
55138 Fix the path-constructing code.
55140 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55141 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55142 by a BLKGETSIZE ioctl first, because block devices don't fill
55143 the member st_mode of the structure stat on Linux.
55144 [__linux__] (linux_find_partition): Use a temporary buffer
55145 REAL_DEV for the working space. Copy it to DEV before returning.
55146 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55147 buffer cache consistent.
55148 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55149 strncmp. The previous value was merely wrong.
55150 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55152 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55153 FAT size is 12. The previous value was merely wrong.
55155 * kern/main.c (pupa_main): Don't split the starting message from
55158 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55159 LF, because BIOS goes crazy about character attributes in this
55162 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55164 * include/i386/pc/util/biosdisk.h: New file.
55165 * util/i386/pc/biosdisk.c: Likewise.
55166 * util/i386/pc/pupa-setup.c: Likewise.
55168 * Makefile.in (INCLUDE_DISTFILES): Added
55169 include/pupa/i386/pc/util/biosdisk.h.
55170 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55171 directory util/i386/pc.
55172 (install-local): Added a rule for sbin_UTILITIES.
55173 (uninstall): Likewise.
55175 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55177 * util/misc.c (xrealloc): New function.
55178 (pupa_malloc): Likewise.
55179 (pupa_free): Likewise.
55180 (pupa_realloc): Likewise.
55181 (pupa_stop): Likewise.
55182 (pupa_putchar): Likewise.
55184 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55186 * include/pupa/util/misc.h (xrealloc): Declared.
55188 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55190 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55191 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55193 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55194 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55196 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55197 way should be implemented.
55198 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55201 the size of NAME for safety.
55202 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55205 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55206 (pupa_setup_SOURCES): Likewise.
55208 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55210 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55212 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55213 bunch of pushl's from pusha, because this destroys the return
55216 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55218 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55219 This means that any missing prototypes could be fatal. Also, you
55220 must take care when writing assembly code. See the comments at
55221 the beginning of startup.S, for more details.
55223 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55224 compilation mechanism.
55225 (pupa_chainloader_real_boot): Likewise.
55226 (pupa_biosdisk_rw_int13_extensions): Likewise.
55227 (pupa_biosdisk_rw_standard): Likewise.
55228 (pupa_biosdisk_check_int13_extensions): Likewise.
55229 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55230 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55231 (pupa_get_memsize): Likewise.
55232 (pupa_get_mmap_entry): Likewise.
55233 (pupa_console_putchar): Likewise.
55234 (pupa_console_setcursor): Likewise.
55235 (pupa_getrtsecs): Use pushl instead of push.
55237 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55238 memory instead of the stack for a mmap entry, because some
55239 BIOSes may ignore the maximum size and overflow.
55241 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55243 * genmk.rb (PModule#rule): Compile automatically generated
55244 sources with module-specific CFLAGS as well as other sources.
55246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55248 * configure.ac: Check ld.
55249 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55250 respectively, before checking endianness and sizes.
55252 * Makefile.in (LD): New variable.
55254 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55256 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55258 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55260 * Changelog: New file.