1 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
3 * tests/util/grub-shell.in: Support --files also for netboot.
4 * tests/file_filter_test.in: New file with file filters tests.
5 * Makefile.util.def: Add file_filter_test.
6 * conf/Makefile.extra-dist: ... and here.
7 * tests/file_filter/file.gz: Test file for file_filter_test.
8 * tests/file_filter/file.gz.sig: Likewise.
9 * tests/file_filter/file.lzop: Likewise.
10 * tests/file_filter/file.lzop.sig: Likewise.
11 * tests/file_filter/file.xz: Likewise.
12 * tests/file_filter/file.xz.sig: Likewise.
13 * tests/file_filter/keys: Likewise.
14 * tests/file_filter/keys.pub: Likewise.
15 * tests/file_filter/test.cfg: Likewise.
17 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
19 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
20 memory leak (CID 73645, 73782).
21 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
24 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
26 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
27 inline array (CID 73610).
29 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
31 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
32 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
33 (Coverity CID 73813, 73710)
34 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
35 and use after free (Coverity CID 73813, 73710, 73730)
36 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
38 * util/grub-install-common.c (grub_install_get_target): Check return
39 value of grub_util_fd_read (Coverity CID 73819).
40 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
41 to hd.magic (Coverity CID 73587, 73888, bug 43690).
43 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
45 * tests/util/grub-fs-tester.in: Consistently print output
46 of grub ls if test fails.
48 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
50 * grub-core/kern/efi/init.c: check value of *path before
53 2014-11-03 Michael Chang <mchang@suse.com>
55 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
56 of neighbor solicitation packet in grub_netbuff_pull.
58 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
60 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
61 avoid fatal warnings with older gcc (probably before 4.7).
62 * grub-core/loader/arm64/linux.c: Likewise.
63 * grub-core/loader/i386/linux.c: Likewise.
64 * grub-core/loader/i386/pc/linux.c: Likewise.
65 * grub-core/loader/ia64/efi/linux.c: Likewise.
66 * grub-core/loader/mips/linux.c: Likewise.
67 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
68 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
70 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
72 Fix in-tree --platform=none
74 * configure.ac: Only remove include/grub/cpu and
75 include/grub/machine in the --platform=none case, not all of
78 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
80 Add a new "none" platform that only builds utilities
82 * configure.ac: Add "none" platform. Default to it for unsupported
83 CPUs rather than stopping with a fatal error. Don't downgrade
84 x86_64-none to i386. Define COND_real_platform Automake conditional
85 if the platform is anything other than "none". Don't do any include
86 directory linking for "none".
87 * Makefile.am: Skip building grub-core and all bootcheck targets if
89 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
92 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
94 Use grub_cpu_to_XXX_compile_time for constants.
96 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
98 The AML parser implements only a small subset of possible AML
99 opcodes. On the Fujitsu Lifebook E744 this and another bug in
100 the parser (incorrect handling of TermArg data types) would lead
101 to the laptop not turning off (_S5 not found).
103 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
104 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
105 aren't always simply strings!); Add function to skip TermArgs
106 * include/grub/acpi.h: Add new opcodes
108 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
110 * grub-core/normal/main.c: Don't drop to rescue console in
111 case of password-protected prompt and no menu entries.
113 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
115 * grub-core/commands/keylayouts.c: Ignore unknown keys.
117 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
119 * grub-core/gmodule.pl.in: Accept newer binutils which output
120 empty column rather than 0x0.
122 2014-09-21 Michael Chang <mchang@suse.com>
124 * grub-core/osdep/unix/config.c: Remove extraneous comma.
126 2014-09-21 Peter Jones <pjones@redhat.com>
128 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
129 we don't free a random pointer from the stack.
130 * grub-core/loader/arm64/linux.c: Likewise.
131 * grub-core/loader/i386/linux.c: Likewise.
132 * grub-core/loader/i386/pc/linux.c: Likewise.
133 * grub-core/loader/ia64/efi/linux.c: Likewise.
134 * grub-core/loader/mips/linux.c: Likewise.
135 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
136 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
138 2014-09-15 Khem Raj <raj.khem@gmail.com>
140 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
141 _BSD_SOURCE to avoid warnings under glibc 2.20+.
143 2014-09-08 Michael Chang <mchang@suse.com>
145 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
146 check; comparing &data->extent against addresses in the region it
147 points to is unpredictable.
149 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
151 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
153 * configure.ac: Remove -m64 from checks for -mcmodel=large and
154 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
155 already in TARGET_CFLAGS at this point, and they produce incorrect
156 results when building for x32.
157 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
158 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
159 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
160 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
162 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
164 * configure.ac: Remove several unnecessary semicolons.
166 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
168 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
169 Initialise pend to pacify GCC.
171 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
173 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
176 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
178 * grub-core/term/at_keyboard.c: Retry probing keyboard if
179 scancode setup failed.
181 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
183 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
185 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
187 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
188 safety to avoid triggerring VirtualBox bug.
190 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
192 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
194 Fixes hang on virtualbox.
196 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
198 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
199 kernels whose paths contain regex metacharacters.
200 * util/grub.d/10_kfreebsd.in: Likewise.
201 * util/grub.d/10_linux.in: Likewise.
202 * util/grub.d/20_linux_xen.in: Likewise.
204 Reported by: Heimo Stranner.
206 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
208 * docs/grub-dev.texi (Finding your way around): The build system no
209 longer uses AutoGen directly.
211 2014-06-21 Роман Пехов <roman_pekhov>
213 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
215 2014-06-21 Glenn Washburn <development@efficientek.com>
217 * util/grub-install.c: Fix handling of --disk-module.
219 2014-06-21 Stephane Rochoy <sheda>
221 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
224 2014-06-21 Stephane Rochoy <sheda>
226 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
227 EFI system table physical address.
229 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
231 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
233 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
235 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
237 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
239 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
242 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
244 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
246 Reported by: Yves Blusseau <blusseau@zetam.org>.
248 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
250 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
251 GDT in conventional memory.
253 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
255 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
256 UUID. Other parts of grub-mkconfig tolerate these, they were
257 previously allowed here up to commit
258 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
259 practice when the system has active LVM snapshots.
260 Fixes Ubuntu bug #1287436.
262 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
264 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
265 "logical_volumes" block a little more accurately.
267 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
269 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
271 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
273 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
276 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
278 Replace few instances of memcmp/memcpy in the code that should be
279 grub_memcmp/grub_memcpy.
281 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
283 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
286 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
288 btrfs: fix get_root key comparison failures due to endianness
290 * grub-core/fs/btrfs.c (get_root): Convert
291 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
293 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
295 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
297 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
298 no longer to be forgiving of trailing spaces on grub-probe output
299 lines, which among other things means that util/grub.d/10_linux.in
300 no longer detects LVM. To fix this, make grub-probe's output
301 delimiting more consistent. As a bonus, this improves the coverage
304 Fixes Debian bug #735935.
306 * grub-core/disk/cryptodisk.c
307 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
308 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
310 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
312 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
313 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
314 probe_mods): Adjust for extra user-data arguments.
315 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
316 probe_abstraction): Use configured delimiter. Update callers.
318 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
320 * util/grub-probe,c (options): Make -0 work again (broken by
322 (main): Simplify logic.
324 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
326 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
328 2014-03-26 Fu Wei <fu.wei@linaro.org>
330 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
332 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
334 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
335 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
337 Suggested by: Markus Müller.
339 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
341 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
342 if E820 failed to return any regions.
344 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
346 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
347 tables for low memory calculations.
349 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
351 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
354 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
356 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
359 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
361 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
364 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
366 Add bootpath parser for open firmware.
368 It enables net boot even when there is no bootp/dhcp server.
370 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
371 and call it at grub_ieee1275_net_config_real.
372 * grub-core/kern/ieee1275/init.c: Add bootpath to
373 grub_ieee1275_net_config.
374 * include/grub/ieee1275/ieee1275.h: Likewise.
377 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
379 Add grub_env_set_net_property function.
381 * grub-core/net/bootp.c: Remove set_env_limn_ro.
382 * grub-core/net/net.c: Add grub_env_set_net_property.
383 * include/grub/net.h: Likewise.
385 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
387 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
389 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
391 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
393 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
395 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
396 7 seconds to recover if last poweroff was bad.
398 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
400 * grub-core/disk/ahci.c: Properly handle transactions with no
403 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
405 * grub-core/disk/ahci.c: Add safety cleanups.
407 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
409 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
410 slots to avoid pointing to uninited area.
412 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
414 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
415 enabling busmaster for the end.
417 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
419 * util/grub-mkfont.c: Downgrade warnings about unhandled features
422 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
424 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
426 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
428 * .gitignore: add missing files and .exe variants.
430 2014-01-26 Mike Gilbert <floppym@gentoo.org>
432 grub-install: support for partitioned partx loop devices.
434 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
435 /dev/loopX as being the parent of /dev/loopXpY.
437 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
439 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
440 Ensure that pointers are inited to NULL and that pointers are not
443 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
445 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
446 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
447 * include/grub/emu/misc.h: ... and here.
448 * include/grub/err.h: ... and here.
449 * util/import_gcry.py: ... and here (in files g10lib.h).
451 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
453 * util/grub-mkimage.c: Make prefix argument mandatory.
455 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
457 Fix several translatable strings.
459 Suggested by: D. Prévot.
461 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
463 * util/grub-install.c: List available targets.
465 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
467 * util/grub-install.c (write_to_disk): Add an info message.
469 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
471 * Makefile.am: Allow adding extra files to generated Windows ZIP
472 archive by setting GRUB_WINDOWS_EXTRA_DIST.
474 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
476 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
477 Show detected font path in summary.
479 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
481 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
483 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
484 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
485 * grub-core/net/tftp.c (tftp_open): Likewise.
486 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
488 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
490 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
493 In net/net.c there is a while (1) that only exits if there is a stop
494 condition and more then 10 packages or if there is no package received.
496 If GRUB is idle and enter in this loop, the only condition to leave is
497 if it doesn't have incoming packages. In a network with heavy traffic
500 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
502 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
503 EPERM when modifying kern.geom.debugflags. It is only a problem for
504 such things as installing GRUB to the MBR, in which case there'll be
505 an error later anyway, not for opening files during tests.
507 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
509 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
510 instead of MOD_FILES.
511 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
512 both with and without .exe.
513 * grub-core/genemuinitheader.sh: Same.
515 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
517 * util/grub-install.c: Fix a typo.
519 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
521 * grub-core/normal/main.c (read_config_file): Buffer config file.
524 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
526 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
527 symbolic link to directory. It fails in Msys shell on Windows 2003.
529 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
531 * Makefile.am (default_payload.elf): Add modules
532 multiboot cbmemc linux16 gzio echo help.
534 2014-01-18 Mike Gilbert <floppym@gentoo.org>
536 * Makefile.util.def: Link grub-ofpathname with zfs libs.
538 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
540 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
543 Reported by: Andrey Borzenkov.
545 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
547 * include/grub/misc.h: Move macros for compiler features to ...
548 * include/grub/compiler.h: ... new file.
549 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
550 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
551 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
552 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
553 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
554 * grub-core/video/capture.c: Include <grub/misc.h>.
555 * include/grub/command.h: Include <grub/misc.h>.
556 * include/grub/dl.h: Include <grub/misc.h>.
557 * include/grub/procfs.h: Include <grub/misc.h>.
559 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
561 * configure.ac: Add support for BUILD_EXEEXT and use it ...
562 * Makefile.am: ... here.
563 * Makefile.util.def: ... and here.
564 * grub-core/Makefile.am: ... and here.
566 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
568 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
569 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
571 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
573 * grub-core/term/terminfo.c: Recognize keys F1-F12.
575 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
577 * configure.ac: Add support for BUILD_LDFLAGS.
578 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
579 * grub-core/Makefile.am: ... and here.
580 * INSTALL: Mention BUILD_LDFLAGS.
582 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
584 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
586 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
588 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
591 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
593 * NEWS: Add few missing entries.
595 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
597 * util/grub.d/00_header.in (make_timeout): Use && rather than test
599 * util/grub.d/10_windows.in: Likewise.
600 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
602 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
605 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
607 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
608 redundant preprocessor conditional.
610 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
612 * Makefile.util.def (grub-macbless): Change mansection to 8.
614 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
616 * grub-core/loader/arm64/linux.c: correctly set device path end length.
618 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
620 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
621 arm64 to comply with EFI specification. Also use grubaa64.efi for
623 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
625 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
627 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
628 on MinGW-64 when compiling for 32 bits.
630 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
632 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
634 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
636 * NEWS: Add few missing entries. Correct existing ones.
638 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
640 Don't abort() on unavailable coreboot tables if not running on coreboot.
642 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
644 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
647 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
649 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
650 mention of it from 2.02.
652 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
654 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
656 As these functions are used on pre-ARMv6 CPUs as well we don't want
657 to make assembler assume that architecture is higher than default one.
659 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
661 * NEWS: First draft of 2.02 entry.
663 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
665 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
666 * docs/grub.texi (Getting the source code): Likewise.
668 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
670 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
673 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
675 * configure.ac: Set version to 2.02~beta2.
677 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
679 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
681 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
683 * util/grub-probe.c: Improve help message and simplify list handling.
685 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
687 Fix buffer overflow in grub_efi_print_device_path.
689 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
691 Show SATA device path.
693 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
695 Revert grub-file usage in grub-mkconfig.
697 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
699 Make newly-created files other than grub.cfg world-readable.
701 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
703 * util/grub.d/00_header.in: Improve compatibility with old config.
705 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
707 Make rijndael.c respect aliasing rules.
709 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
711 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
713 Make grub_util_device_is_mapped_stat available in grub-emu core.
715 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
717 Add -Qn to TARGET_CFLAGS if it's supported.
718 Fixes compilation on cygwin.
720 Reported by: Andrey Borzenkov.
721 Suggested by: Andrey Borzenkov.
723 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
725 Save TARGET_CC version in modinfo.sh.
727 Suggested by: Andrey Borzenkov.
729 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
731 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
732 follow the same algorithm to avoid method mismatch. Don't assume
733 DMRAID- UUID to mean full disk but instead check that mapping is linear.
735 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
737 Declare GRUB_EFI_VENDOR_APPLE_GUID.
739 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
741 Dump type and vendor specific data when printing device path.
743 2013-12-23 Colin Watson <cjwatson@debian.org>
745 Update some documentation to refer to Git rather than Bazaar.
747 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
749 * po/README: Likewise. Fix spelling mistake.
751 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
753 Don't distribute config.h.
755 * Makefile.am (platform_HEADERS): Move to ...
756 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
757 failure when building from a distributed tarball.
759 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
761 * configure.ac: Fix spelling.
762 * grub-core/commands/parttool.c: Fix grammar.
763 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
764 Embedding Partition".
766 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
768 ARM64 support for grub-mkrescue.
770 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
772 Install modinfo.sh to keep build information around.
774 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
776 * grub-core/modinfo.sh.in: Add build config information.
778 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
780 ARM64 grub-file and grub-mkconfig support.
782 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
784 Remove leftover options defines.
786 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
788 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
790 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
792 * grub-core/loader/arm64/linux.c: Add missing bracket.
794 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
796 Add arm64-efi recognition to grub-file.
798 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
800 Fix ia64-efi recognition in grub-file.
802 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
804 Recognize raspberry pi kernel in grub-file.
806 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
808 Enable cache on ARM U-Boot port.
810 Without it the port is reidiculously slow.
812 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
814 Fix ARM cache maintainance.
816 More code was converted from ASM to C for easier handling.
818 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
823 Suggested by: Leif Lindholm.
825 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
827 * util/grub-mkconfig.in: Fix Xen platform conditions.
829 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
831 * util/grub-mkrescue.c: Split single help message string in several
832 strings used in previous shell version.
834 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
836 Add arm64 Linux loader.
838 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
840 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
842 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
844 Add module loading and parsing boot time checkpoints.
846 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
848 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
851 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
853 * util/grub-mkconfig.in: Skip non-executable files.
855 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
857 Workaround buggy timer in raspberry pie by using our own timer
860 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
862 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
863 Increase to 16 MiB to allow loading the whole memdisk.
865 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
867 Fix ARM Linux Loader on non-FDT platforms.
869 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
871 * configure.ac: Choose link format based on host_os on emu.
873 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
875 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
877 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
879 * grub-core/kern/emu/main.c: Build fix for emu.
881 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
883 Build fixes for argp.h with older gcc.
885 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
887 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
890 Suggested by: David Prévot.
892 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
894 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
896 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
898 Enable -Wformat=2 if it's supported.
900 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
902 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
903 -Wmissing-declarations if supported.
905 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
907 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
908 u32 as both HFS and HFS+ have 32-bit inodes.
910 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
912 * include/grub/misc.h (grub_strtol): Fix overflow.
914 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
916 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
917 as return type in both conditionals.
919 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
921 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
922 to use uint8_t for color.
924 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
926 * util/misc.c (grub_util_get_image_size): Check for overflow.
928 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
930 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
933 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
935 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
936 for pointer difference.
938 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
940 * util/import_gcry.py: Skip sample keys.
942 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
944 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
946 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
948 * configure.ac: Remove duplicate warning arguments.
950 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
952 Add missing static qualifiers.
954 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
956 Add missing includes.
958 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
960 Inline printf templates when possible to enable format checking.
962 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
964 * include/grub/crypto.h: Don't discard const attribute.
966 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
971 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
973 * grub-core/lib/crypto.c: Don't discard const attribute.
975 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
977 * grub-core/lib/disk.c: Fix potential overflow.
979 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
981 * grub-core/lib/arg.c: Don't discard const attribute.
983 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
985 * grub-core/kern/dl.c: Don't discard const attribute.
987 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
989 * grub-core/kern/disk.c: Fix potential overflow.
991 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
993 * conf/Makefile.common: Don't include non-existing directory
994 grub-core/lib/libgcrypt-grub/include.
996 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
998 Clarify several translatable messages.
1000 2013-12-21 David Prévot <david@tilapin.org>
1002 Correct some translatable strings.
1004 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1006 * util/grub-mkrescue.c: Rephrase mkrescue description.
1008 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1009 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1011 Clarify several translatable messages.
1013 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1015 Be more verbose about some configure failures.
1017 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1019 Fix various build problems on GNU/Hurd.
1021 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1023 (xgetcwd): Likewise.
1024 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1025 [__GNU__]: Add prototype.
1026 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1027 long int using %ld rather than %d.
1029 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1031 * util/grub-install.c: Inform user about install platform.
1033 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1035 * configure.ac: Set version to 2.02~beta1.
1037 2013-12-18 Allen Pais <allen.pais@oracle.com>
1038 2013-12-18 Bob Picco <bob.picco@oracle.com>
1040 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1042 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1044 Make grub_zlib_decompress handle incomplete chunks.
1048 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1050 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1053 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1055 * grub-core/disk/usbms.c: Retry on unknown errors.
1056 Reuse the same tag on retries.
1058 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1060 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1062 Avoid confusing them with already completed transfers.
1064 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1068 Due to XEN bug it prevents Linux boot. Remove it at least, until
1069 workaround is found.
1071 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1073 * po/exclude.pot: Add 2 missing excludes.
1075 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1077 Add missing license section in macbless.mod and macho.mod.
1079 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1081 Allow compilation without thumb-interwork as long as no thumb is
1082 involved or only thumb2 is used.
1084 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1086 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1088 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1090 Add __attribute__ ((sysv_abi)) only if it's really needed.
1092 Some compilers don't support it.
1094 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1096 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1098 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1100 Remove -Wold-style-definition.
1102 Not very useful and interaction of it with regexp depends on GCC
1105 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1107 Make grub_util_get_windows_path_real static.
1109 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1111 * grub-core/commands/fileXX.c: Silence cast-align.
1112 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1114 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1116 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1117 rather than LL suffix.
1119 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1121 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1123 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1125 * grub-core/loader/arm/linux.c: Use common initrd functions.
1127 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1129 Decrease number of strings to translate.
1131 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1135 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1137 Mark strings for translation and add remaining ones to exclude list.
1139 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1141 * util/grub-file.c (main): Fix sizeof usage.
1143 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1145 Silence spurious warning.
1147 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1149 Remove check_nt_hiberfil as it's been superseeded by file command.
1151 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1153 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1155 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1157 Implement syslinux parser.
1159 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1161 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1163 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1165 Support cpuid --pae.
1167 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1169 Use AT keyboard on Yeeloong 3A.
1171 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1173 Add Yeeloong 3A reboot and halt.
1175 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1177 Add Radeon Yeeloong 3A support.
1179 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1181 Add bonito 3A support.
1183 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1185 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1187 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1189 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1191 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1193 * grub-core/loader/macho.c: Fix compilation on non-i386.
1195 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1197 Add missing format_arg attribute to check that printf with translated
1198 messages has proper arguments.
1200 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1202 Use grub_xasprintf to format translated error messages containing
1205 2013-12-17 Jon McCune <jonmccune@google.com>
1207 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211 Unify message for unsupported relocation.
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215 Mark miscompile error for translation.
1217 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1219 Use %I64 and not %ll when using OS printf if compiling for windows.
1221 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1223 Update Mac code to match new register_efi prototype.
1225 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227 Implement better integration with Mac firmware.
1229 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1234 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1236 Include serial module in default_payload.elf.
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1240 Add explicit thumb interwork bx in asm files.
1242 Shouldn't matter for armv >= 5 but let's be safe.
1244 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1246 Implement Truecrypt ISO loader.
1248 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1250 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1252 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1254 Implement grub_file tool and use it to implement generating of config
1257 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1259 Change to v1 xen grants.
1261 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1263 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1265 GRUB relied on %ebx being preserved across hypercall which isn't true.
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1269 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1271 GRUB relied on %rdi being preserved across hypercall which isn't true.
1273 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1275 Implement XEN VFB support.
1277 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1279 Remove grub_bios_interrupt on coreboot.
1281 It's not used currently and cannot be used safely currently.
1283 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1285 Update exclude.pot and mark few strings for translation.
1287 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1289 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1291 Reported by: Jon McCune
1293 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1295 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1296 Add verbose information which firmware directories were tried.
1298 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1300 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1301 function to optionally redirect all three standard descriptors.
1302 Redefine grub_util_exec, grub_util_exec_redirect and
1303 grub_util_exec_redirect_null to use it.
1304 * include/grub/emu/exec.h: Define it.
1305 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1306 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1307 Use grub_util_exec_redirect_all to redirect error to NULL.
1309 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1311 * grub-core/tests/sleep_test.c: Silence spurious warning.
1313 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1315 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1316 linker trying to "fixup" the code.
1318 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1320 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1322 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1324 Add support for converting PE+ to Elf64.
1326 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1328 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1330 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1332 Remove practice of assigning random const pointers to device id.
1334 This is not required as cache code already checks driver id as well.
1336 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1338 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1341 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1343 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1344 mingw or cygwin as API already matches.
1346 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1348 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1350 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1352 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1355 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1357 Handle X86_64_PC64 relocation.
1359 Those are generated by some cygwin compilers.
1361 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1363 Determine the need for mingw-related stubs at compile time rather than
1364 using not very significant $target_os.
1366 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1368 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1369 may not work with ELF.
1371 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1373 Use unix functions for temporary files and special files on cygwin.
1375 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1377 Define functions explicitly rather than using --defsym in tests
1378 whenever possible. Respect locality in remaining cases.
1380 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1384 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1386 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1387 unlikely errors when getting EFI variables and make exhaustive search
1388 for all BootNNNN variables to find matching one.
1390 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1392 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1394 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1396 New functional test for sleep function.
1398 This test allows to check sleep without qemu. Keep qemu version as
1399 well as functional test won't notice if all clocks are going too fast
1402 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1404 Add explicit sysv_abi on amd64 asm routines.
1406 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1408 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1411 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1413 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1416 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1418 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1421 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1423 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1425 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1427 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1430 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1432 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1434 In case of quick removal of loopback and adding another one it may
1435 get same ID, confusing the cache system.
1437 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1439 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1442 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1444 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1445 than converting to long.
1447 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1449 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1451 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1453 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1454 than almost useless pointer.
1456 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1458 Add gcc_struct to all packed structures when compiling with mingw.
1460 Just "packed" doesn't always pack the way we expect.
1462 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1464 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1466 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1468 * util/grub-pe2elf.c: Fix handling of .bss.
1470 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1472 Implement windows flavour of EFI install routines.
1474 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1476 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1478 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1480 Change grub_install_register_efi interface to pass GRUB device.
1482 This allows grub_install_register_efi to request partition info
1485 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1487 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1489 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1491 Do not use TCHAR string functions as they are not available on cygwin.
1493 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1495 Workaround windows bug when querying EFI system partition parameters.
1497 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1499 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1502 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1504 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1506 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1508 Make i386-* other than i386-pc compileable under cygwin.
1510 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1512 Fix definition of grub_efi_hard_drive_device_path. Take care that
1513 existing code would work even if by some reason bogus definition is
1514 used by EFI implementations.
1516 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1518 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1520 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1525 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1527 * util/config.c: Remove trailing newline from distributor in simple
1530 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1532 * include/grub/efi/api.h: Rename protocol and interface to avoid
1535 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1537 * .gitignore: add .exe variants. add missing files. remove few outdated
1540 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/osdep/exec.c: Use unix version on cygwin.
1544 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1546 Implement multiboot2 EFI BS specification.
1548 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1550 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1551 Crash happened only in some cases like a string starting at the
1552 half of the screen of same length.
1554 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1556 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1557 with EFI counterpart.
1559 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1561 Propagate the EFI commits to x86-efi specific parts.
1563 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1565 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1567 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1569 Introduce grub_efi_packed_guid and use it where alignment is not
1572 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1574 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1575 unaligned u16 rather than u8[2].
1577 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1579 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1580 for relocation range.
1582 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1584 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1585 non-function pcrel21b relocation. It happens with .text.unlikely
1588 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1590 * make MAX_USABLE_ADDRESS platform-specific
1591 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1593 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1595 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1597 2013-12-09 Jon McCune <jonmccune@google.com>
1599 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1600 in grub-install and grub-bios-setup for x86 BIOS targets.
1602 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1604 Add missing compile and link options for sparc64-emu.
1606 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1608 Implement sparc64 trampolines (needed for sparc64-emu).
1610 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1613 range of R_SPARC_HI22.
1614 Implement R_SPARC_LM22.
1616 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1618 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1619 Do not explicitly check for symbol table as it's already checked in
1620 platform-independent layer.
1622 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1624 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1625 on ia64 as __clear_cache is a dummy on ia64.
1627 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1629 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1630 Do not explicitly check for symbol table as it's already checked in
1631 platform-independent layer.
1633 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1635 * util/grub-mkconfig.in: Add missing newline to output.
1637 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1639 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1640 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1642 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1644 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1645 compilation with GCC <= 4.2.
1646 * grub-core/kern/emu/argp_common.c: Likewise.
1648 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1650 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1651 right platform rather than leaking to sparc64-emu.
1653 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1655 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1656 But ensure that the variables in question are indeed unsigned.
1658 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1660 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1662 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1664 Remove grub_memalign on emu.
1666 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1668 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1669 truncate incomplete lines but instead flushes them.
1671 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1673 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1674 and implement windows variant.
1676 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1678 Fix mips-emu compilation.
1680 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1682 * configure.ac: Check for freetype library usability.
1684 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1688 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1690 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1692 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1694 * docs/grub.texi (Environment): Update color_normal and color_highlight
1695 defaults (light-gray instead of white).
1697 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1699 * grub-core/normal/main.c (INIT): Set default color to light-gray
1700 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1701 and apparently BIOS defaults.
1703 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1705 Transform -C option to grub-mkstandalone to --core-compress available
1706 in all grub-install flavours.
1708 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1710 Merge GRUBFS and GRUB_FS variables.
1712 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1714 Revert commit 69ca97c820, it caused failures when using OS device name
1715 in grub-install. Instead just strip off parenthesis in grub-install
1716 if (hdX) was passed.
1718 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1720 * util/grub-install.c (push_partmap_module): Add helper to convert
1721 partmap names to module names and use it in probe_mods(). Fixes
1722 failure to find partmap modules in diskfilter case.
1724 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1726 * configure.ac: Make unifont mandatory on coreboot.
1728 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1730 * configure.ac: Skip unifont 6.3 pcf and bdf.
1732 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1734 * Makefile.am: Remove partial font files if generation failed.
1736 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1738 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1740 * include/grub/util/misc.h: Define it ...
1741 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1743 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1745 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1748 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1750 Don't add -mlong-calls when compiling with clang.
1752 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1754 * configure.ac: Fix a typo.
1756 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1758 Revamp relocation handling.
1760 Move more code to common dl.c. Add missing veneers for arm and arm64.
1761 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1763 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1765 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1767 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1769 * INSTALL: Raise minimum python version to 2.6.
1770 * gentpl.py: Use python3-style print function.
1772 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1774 * util/grub-install.c: Mention Boot* variable.
1776 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1778 * grub-core/osdep/linux/hostdisk.c
1779 (grub_util_find_partition_start_os): Initialise start to avoid
1780 spurious compiler warning.
1782 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1784 On Linux, read partition start offsets from sysfs if possible, to
1785 cope with block device drivers that don't implement HDIO_GETGEO.
1786 Fixes Ubuntu bug #1237519.
1788 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1790 (sysfs_partition_start): Likewise.
1791 (grub_util_find_partition_start_os): Try sysfs_partition_start
1794 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1796 * grub-core/kern/fdt.c: Update struct size when adding node.
1798 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1800 Handle unaligned .bss on sparc64.
1802 Current code improperly assumes that both __bss_start and _end are
1803 aligned to 8-bytes. Eliminating this assumption and explicitly align
1806 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1808 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1809 so it doesn't land in the middle of loaded image.
1811 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1813 * configure.ac: Move all warning options that may be absent in
1814 gcc >= 3.1 to optional.
1816 Note: while this allows to compile with older GCC, official requirements
1817 remain the same and no support for older GCC.
1819 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1821 Copying the themes directory in grub-shell isn't
1822 parallel-test-friendly and breaks on the second test when the source
1823 directory is read-only (as in "make distcheck"). Instead, add a
1824 hidden --themes-directory option to grub-mkrescue et al, and use it
1827 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1829 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1830 as it's no longer necessarry.
1832 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1834 * configure.ac: Allow compilation with older GCC for ARM.
1836 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1838 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1839 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1842 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1844 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1846 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1848 Pass font config to config.h and not by TARGET_CFLAGS as adding
1849 arguments doesn't work if TARGET_CFLAGS is specified on command
1852 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1854 * configure.ac: Add -Wvla if compiler supports it.
1856 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1858 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1859 Remove variable length arrays.
1860 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1862 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1864 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1866 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1868 * include/grub/types.h: Declare all byteswaps as inline functions
1869 except compile-time ones.
1871 Solves variable shadowing in constructions like
1872 cpu_to_le (le_to_cpu(x) + 1).
1874 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1876 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1878 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1880 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1883 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1885 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1886 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1888 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1890 * grub-core/Makefile.core.def (setjmp): Distribute
1893 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1895 Add a new timeout_style environment variable and a corresponding
1896 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1897 controls hidden-timeout handling more simply than the previous
1898 arrangements, and pressing any hotkeys associated with menu entries
1899 during the hidden timeout will now boot the corresponding menu entry
1902 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1903 generates a warning, and if it shows the menu it will do so as if
1904 the second timeout were not present. Other combinations are
1905 translated into reasonable equivalents.
1907 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1909 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1911 * util/config.c: Add missing pointer adjustment.
1912 Reported by: qwertial
1914 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1916 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1917 directly, not via `cpu' link, to fix libgrub.pp generation.
1919 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1923 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1925 * docs/grub.texi (sleep): Document exit codes.
1927 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1929 Ensure that -mno-unaligned-access or some equivalent option is used.
1931 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1933 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1936 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1938 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1940 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1942 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1943 builds, since we don't have an EPS version of font_char_metrics.png.
1944 Add leading dot to image extension per the Texinfo documentation.
1946 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1948 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1949 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1950 * util/grub-gen-widthspec.c: Likewise.
1951 * util/grub-mkfont.c: Likewise.
1953 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1955 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1956 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1957 failed to install on (hdX).
1958 * util/grub-setup.c (get_device_name): Remove, not needed after
1961 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1963 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1965 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1967 * util/grub-fstest.c: Remove variable length arrays.
1969 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1971 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1973 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1975 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1976 computing crc32 rather than handling with md fundtions directly.
1978 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1980 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1981 checking fwstart.img rather than md fundtions directly.
1983 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1985 * util/grub-mkrescue.c (main): Check that fread succeeded.
1987 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1989 * conf/Makefile.common: Remove -mexplicit-relocs and
1990 -DUSE_ASCII_FALLBACK on yeeloong.
1992 -DUSE_ASCII_FALLBACK is already added by font snippets.
1993 -mexplicit-relocs isn't needed is compiler/assemblera are
1994 configured properly.
1995 If they're not we shouldn't attempt to fix it by ourselves.
1996 Binary compare between before and after shows no difference.
1998 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2000 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2001 sources in dependencies directly.
2003 This was the only instance of "library" in core config. A bug was
2004 reported that -fno-stack-protector wasn't passed to it. Instead of
2005 figuring out why it failed just remove this construction used
2008 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2010 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2013 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2015 * docs/grub.texi (ls): Fix command description in case of a device name
2018 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2020 Eliminate variable length arrays in grub_vsnprintf_real.
2022 A bit tricky because this function has to continue to work without
2023 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2024 but make all stack references use 32-bit offset rather than 8-bit one.
2025 So split va_args preparsing to separate function and put the prealloc
2028 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2030 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2031 Fixes build for windows.
2033 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2035 * gentpl.py: Don't generate platform-dependent conditionals for
2036 platform-independent targets.
2038 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2040 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2041 references to mdadm from otherwise generic code.
2042 (grub_util_exec_pipe): Likewise.
2043 (grub_util_exec_pipe_stderr): Likewise.
2044 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2045 This function calls vgs, not mdadm; adjust variable names
2048 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2050 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2051 of Autogen. The Autogen definitions files remain intact as they
2052 offer a useful abstraction.
2054 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2056 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2057 into no-ops, and use it in programs that copy files but do not need
2058 to take special care to sync writes (grub-mknetdir, grub-rescue,
2061 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2063 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2064 than hardcoding /usr/local/bin/xorriso.
2066 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2068 Add PCI command activation to all PCI drivers as required for coreboot
2069 and maybe some other firmwares.
2071 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2073 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2074 and non-Apple variants of efiemu compile.
2076 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2078 * configure.ac: Add explicit check for linking format of
2079 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2080 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2081 hardcoding linking format.
2083 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2085 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2088 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2089 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2091 Add a --locale-directory option to grub-install and related tools.
2093 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2094 --locale-directory option.
2095 (enum grub_install_options): Add
2096 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2097 * util/grub-install-common.c (grub_install_help_filter): Handle
2098 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2099 (grub_install_parse): Likewise.
2100 (get_localedir): New function to check for a user-provided option
2101 before trying grub_util_get_localedir.
2102 (copy_locales): Use get_localedir rather than
2103 grub_util_get_localedir. Handle differing locale directory layouts.
2104 (grub_install_copy_files): Likewise.
2106 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2108 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2109 Don't rely on PATH_MAX.
2111 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2113 * grub-core/genmoddep.awk: Use more portable && rather than and.
2115 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2118 an object after data. While it doesn't seem right solution, it
2119 works well enough and OSX isn't main compilation platform.
2121 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2123 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2124 While it doesn't seem right solution, it works well enough and
2125 OSX isn't main compilation platform.
2127 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2129 * configure.ac: Add -static to LDFLAGS when using apple linker to
2130 prevent it from pulling in dynamic linker.
2132 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2134 Apple assembly doesn't handle symbol arithmetic well. So define an
2135 offset symbol in boot.S and use it.
2137 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2139 Apple assembly doesn't handle symbol arithmetic well. So instead
2140 of getting addres of kernel_sector + 4 define kernel_sector_high.
2141 It also makes code more readable.
2143 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2145 With Apple assembly in .macro environvemnt you have to use $$ instead
2146 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2147 to $$x on Apple and to $x on everything else.
2149 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2151 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2154 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2156 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2157 and non-Apple. This instruction is shorter and faster,
2158 so no reason not to use it on both.
2160 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2162 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2163 .text when compiling for Apple.
2165 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2167 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2169 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2171 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2172 %dx restore the probe worked on non-existant drive. Reorganize the
2173 code a little bit to free 2 bytes necessary for push/pop.
2175 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2177 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2178 Add missing cast to silence warning.
2180 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2182 * util/grub-install.c (update_nvram): Support --no-nvram flag
2185 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2187 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2189 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2191 * util/garbage-gen.c: Add missing include of sys/time.h.
2193 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2195 Don't add -mflush-func if it's not supported by compiler.
2197 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2199 Move common BIOS/coreboot memory map declarations to
2200 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2202 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2204 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2206 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2208 * INSTALL: Document why older clang versions aren't appropriate.
2210 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2212 * INSTALL: Document about clang for mips.
2214 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2216 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2219 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2221 Add *-xen to the list of grub-install-common platforms.
2223 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2225 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2228 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2230 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2232 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2234 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2235 with -mcmodel=large.
2237 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2239 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2240 range-checking for 32-bit quantities.
2242 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2244 * configure.ac: Compile with -fPIC when compiling with clang on
2247 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2249 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2250 when compiling with clang.
2252 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2254 clang emits calls to abort () under some unknown conditions.
2255 Export abort () when compiling with clang.
2257 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2259 * docs/grub-dev.texi: Document stack and heap sizes.
2261 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2263 * include/grub/i386/pc/memory.h: Decrease
2264 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2265 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2266 The binary doesn't change (checked). It's more to better reflect actual
2269 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2271 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2272 at compile time that enough of scratch size is available.
2274 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2276 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2277 Previously we misaligned stack by 8 in startup.S and compensated
2278 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2279 right behaviour is to align stack in startup.S and keep it aligned
2280 in callwrap.S. startup.S part was committed few commits before. This
2281 takes care of callwrap.S.
2282 Reported by: Gary Lin.
2284 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2286 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2287 .data and .bss. May happen if compiler and assembly use different
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2292 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2295 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2297 Add support for a new magic symbol _gp_disp on mips to handle PIC
2300 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2302 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2304 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2306 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2307 when rest of GRUB is compiled for hisher stepping. Instead use
2308 .set mips3/.set mips1 around cache and sync opcodes.
2310 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2312 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2313 do essentially the same thing, do it in similar way.
2315 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2317 * util/grub-mkrescue.c (main): If a source directory is not
2318 specified, read platform-specific files from subdirectories of
2319 pkglibdir, not pkgdatadir.
2321 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2323 * grub-core/normal/progress.c: Remove unused file.
2325 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2327 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2330 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2332 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2335 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2337 * coreboot.cfg: Add missing file.
2339 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2341 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2343 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2345 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2346 selectively skipping systems.
2348 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2350 * Makefile.util.def (grub-mkimage): Add
2351 grub-core/osdep/aros/config.c to extra_dist.
2352 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2353 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2354 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2355 grub-core/gnulib-no-gets.diff.
2357 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2359 Add automated filesystem checking based on scripts I've used now for
2360 quite some time locally. Most of the test require root so they are
2361 skipped when run without necessarry privelegies.
2363 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2365 * util/grub-install.c (main): Adjust info messages to match
2366 installed paths of grub-bios-setup and grub-sparc64-setup.
2368 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2370 * util/grub-install-common.c (copy_locales): Consistently use
2371 grub_util_get_localedir () rather than LOCALEDIR.
2372 (grub_install_copy_files): Likewise.
2374 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2376 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2377 16-byte boundary, as required by the x86-64 ABI, before calling
2378 grub_main. In some cases, GCC emits code that assumes this
2379 alignment, which crashes if not aligned. The EFI firmware is also
2380 entitled to assume that stack alignment without checking.
2382 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2384 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2385 4k page boundaries as expected by firmware rather than 1k
2387 (grub_mmap_malign_and_register): Likewise.
2389 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2391 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2392 fragmentation 512M is enough.
2394 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2396 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2397 pointer to 32K. This is the size of cache element which is the most
2398 common allocation >1K. This way the pointer is always around blocks
2399 of 32K and so we keep performance while decreasing fragmentation.
2401 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2403 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2404 current memory when allocating large chunks. This significantly
2405 decreases memory fragmentation.
2407 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2409 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2411 * tests/lzocompress_test.in: Skip if lzop is not installed.
2412 * tests/xzcompress_test.in: Skip if xz is not installed.
2414 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2416 * util/grub-mkrescue.c (main): Fix typo.
2418 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2420 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2421 clock frequency to 200 MHz,
2423 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2425 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2427 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2429 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2430 Load config file from (cbfsdisk)/etc/grub.cfg.
2432 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2434 * util/grub-install-common.c (grub_install_copy_files): Fix module
2435 destination directory.
2437 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2439 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2440 files have not been built.
2442 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2444 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2445 Handle errors from mkstemp.
2446 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2448 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2450 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2451 on primary master on pseries.
2453 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2455 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2456 already loaded. This saves memory needed for tests,
2458 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2460 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2463 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2465 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2468 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2470 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2471 master since with some combinations of qemu and firmware only primary
2472 IDE channel is available.
2474 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2476 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2477 low-memory platforms where we don't have enough memory for them.
2478 * grub-core/tests/videotest_checksum.c: Likewise.
2480 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2482 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2483 already loaded. This saves memory needed for tests,
2485 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2487 Fix handling of install lists.
2489 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2493 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2495 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2496 the devices before accessing them.
2498 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2500 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2503 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2505 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2507 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2510 (grub_file_close): Free file->name.
2512 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2514 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2515 (grub_load_public_key): Likewise.
2516 (grub_verify_signature_real): Likewise.
2517 (grub_cmd_verify_signature): Likewise.
2519 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2521 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2524 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2526 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2527 (grub_longjmp): Restore r31.
2528 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2530 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2533 modules to be in line with make_image_abs.
2535 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2537 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2539 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2541 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2543 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2545 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2547 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2548 to leave some memory to firmware.
2550 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2552 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2553 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2554 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2557 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2559 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2560 now needs full arguments.
2562 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2564 * util/grub-mkrescue.c (main): Add trailing \n in
2565 .disk_label.contentDetails to be in line with previous shell script.
2567 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2569 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2571 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2573 * util/grub-install-common.c (grub_install_parse): Recognize
2574 --compress=none like shell script did.
2576 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2578 * include/grub/misc.h: Replace check for __sparc64__ with one for
2579 __sparc__ as __sparc64__ isn't actually defined.
2581 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2583 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2584 counterpart of fixing the naming of escc ports.
2586 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2588 * util/grub-install-common.c (platforms): Fix the order of entries and
2589 remove useless field val.
2591 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2593 * util/grub-install.c: Add new option --no-bootsector to skip
2594 installing of bootsector. Accept --grub-setup=/bin/true as
2595 backwards-compatible synonym.
2597 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2599 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2600 order of qsort arguments (number of elements vs. element size).
2602 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2604 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2605 the function of these files exceeds what can be sanely handled in shell
2606 in posix-comaptible way. Also writing it in C extends the functionality
2607 to non-UNIX-like OS and minimal environments.
2609 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2611 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2612 compiling to thumb2.
2613 * grub-core/kern/arm/cache_armv7.S: Likewise.
2614 * grub-core/lib/arm/setjmp.S: Likewise.
2616 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2618 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2619 in grub_uboot_syscall
2621 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2623 Decrease stack usage in lexer.
2625 We have only 92K of stack and using over 4K per frame is wasteful
2627 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2628 as macros so that compiler would remove useless structure on stack.
2629 Better solution would be to fix flex not to put this structure on
2630 the stack but flex is external program.
2632 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2634 Decrease stack usage in signature verification.
2636 We have only 92K of stack and using over 4K per frame is wasteful
2638 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2640 (grub_verify_signature_real): Likewise.
2642 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2644 Decrease stack usage in mdraid 0.9x.
2646 We have only 92K of stack and using over 4K per frame is wasteful
2648 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2651 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2653 Decrease stack usage in BtrFS.
2655 We have only 92K of stack and using over 4K per frame is wasteful
2657 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2660 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2662 Decrease stack usage in JFS.
2664 We have only 92K of stack and using over 4K per frame is wasteful
2666 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2667 stack. Note: this function is recursive.
2668 (grub_jfs_read_inode): Read only part we care about.
2670 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2672 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2675 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2677 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2679 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2681 * docs/grub.texi (Environment): Document cmdpath.
2683 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2685 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2686 Remove "unused" attribute from arguments, they are used.
2688 2013-11-15 Colin Watson <cjwatson@debian.org>
2690 * .gitignore: Only ignore grub-mk* at the top level.
2692 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2694 * util/grub-reboot.in (usage): Fix a typo.
2696 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2698 Replace libgcc version of ctz with our own.
2700 On upcoming arm64 port libgcc ctz* are not usable in standalone
2701 environment. Since we need ctz* for this case and implementation is
2702 in C we may as well use it on all concerned platforms.
2704 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2706 * configure.ac: Probe for linking format rather than guessing it based
2709 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2711 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2712 "1" prior to handoff.
2714 Reported by: M A Young.
2716 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2718 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2721 Reported by: M A Young.
2723 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2725 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2726 compilation on NetBSD.
2728 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2730 * acinclude.m4: Don't add -P on initial nm test.
2732 Note: even though this patch postdates Andrey's it bears 14 Nov as
2733 date due to timezone difference.
2735 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2737 * grub-core/Makefile.core.def (signature_test): Add missing
2740 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2742 * util/grub-install_header: Set localedir here, since this file is
2744 * util/grub-install.in: Remove setting of localedir.
2745 * util/grub-mkrescue.in: Likewise.
2747 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2749 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2751 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2753 * configure.ac: Move nm checks to the end.
2754 Call grub_PROG_NM_WORKS.
2755 * acinclude.m4: New check grub_PROG_NM_WORKS.
2756 Use $TARGET_CFLAGS -c when compiling test binary.
2758 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2760 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2763 2013-11-14 Matthew Garrett <mjg@redhat.com>
2765 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2766 cmdpath to firmware directory.
2768 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2770 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2771 at the start of second iteration.
2773 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2775 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2777 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2779 * Makefile.am (default_payload.elf): New target for easier coreboot
2782 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2784 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2785 clang (not necessarry with -no-integrated-as).
2786 * include/grub/symbol.h [__arm__]: Likewise.
2788 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2790 * configure.ac: Use -no-integrated-as on arm with clang.
2791 * INSTALL: Mention ARM compilation with clang.
2793 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2795 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2798 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2800 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2801 code for indirect block handling.
2803 Saves 185 bytes on compressed image.
2805 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2809 * Makefile.am: Remove build-grub-* in make clean.
2811 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2813 New files to gitignore.
2815 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2816 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2818 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2820 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2822 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2824 * .gitignore: fix rules for .dep* and add *.a post git migration
2826 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2828 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2831 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2833 * grub-core/kern/misc.c: Don't redirect divisions in the
2835 * include/grub/misc.h: Likewise.
2837 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2839 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2840 systems that require checking the return value of write.
2842 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2844 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2845 efibootmgr quiet when --debug is not used, rather than when it is.
2847 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2849 * gentpl.py (define_macro_for_platform_dependencies): Remove
2850 first (and thus unused) of two definitions for this function.
2851 (platform_dependencies): Likewise.
2853 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2855 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2856 functions, we only need to check this for the target, not the host.
2857 * configure.ac (grub_apple_cc): Likewise.
2859 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2861 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2862 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2863 asm to stay in arm even if surrounding is thumb.
2865 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2867 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2868 helper functions are needed for thumb.
2870 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2872 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2873 level / 3 division explicitly unsigned. Saves few bytes.
2875 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2877 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2879 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2881 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2884 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2886 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2887 grub_uboot_boot_data to asm part.
2889 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2891 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2893 (grub_uboot_syscall): Save/restore r9 and align stack.
2895 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2899 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2901 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2902 occurencies with END.
2904 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2906 * util/grub-editenv.c (help_filter, argp): Document how to delete
2907 the whole environment block.
2908 Reported by Dan Jacobson. Fixes Debian bug #726265.
2910 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2912 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2915 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2917 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2918 increment/decrement.
2920 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2922 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2923 compiling with clang.
2925 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2927 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2930 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2932 Redirect all divisions to grub_divmod64.
2934 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2936 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2938 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2940 Add missing includes of loader.h.
2942 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2944 * configure.ac: Allow disabling themes.
2946 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2948 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2950 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2953 until it becomes operational.
2955 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/Makefile.core.def (legacy_password_test): Disable
2958 on platforms where no legacycfg is compiled.
2959 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2960 load legacy_password_test.
2962 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2964 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2966 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2970 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2972 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2973 strict-aliasing warning.
2974 (fsync): Silence cast warning.
2976 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2978 * grub-core/commands/verify.c: Remove variable length arrays.
2979 Load gcry_dsa/gcry_rsa automatically.
2981 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2983 * grub-core/tests/signature_test.c: New test.
2985 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2987 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2990 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2992 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2993 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2995 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2999 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/fs/proc.c: Allow \0 in proc files.
3003 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3005 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3007 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3009 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3011 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3013 * grub-core/fs/ext2.c: Remove variable length arrays.
3015 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3017 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3020 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3022 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3023 * grub-core/disk/cryptodisk.c: Likewise.
3024 * grub-core/disk/geli.c: Likewise.
3025 * grub-core/disk/luks.c: Likewise.
3027 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3029 * grub-core/tests/legacy_password_test.c: New test.
3030 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3034 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3036 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3038 * grub-core/tests/pbkdf2_test.c: New test.
3040 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3042 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3044 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/io/lzopio.c: Remove variable length arrays.
3048 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3050 * include/grub/crypto.h: Add maximums on hash size and cipher block
3053 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3057 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3059 * grub-core/tests/xnu_uuid_test.c: New test.
3061 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3066 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3068 * grub-core/commands/hashsum.c: Remove variable length arrays.
3070 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3072 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3074 * tests/grub_func_test.in: Increase memory allocation.
3076 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3078 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3079 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3082 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3084 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3085 (grub_util_get_fd_size_os): ...this.
3086 (grub_hostdisk_flush_initial_buffer): New empty function.
3088 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3091 without --defined-only.
3093 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3095 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3096 rip-relative addressing in prologue.
3098 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3100 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3101 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3103 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3105 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3106 Add missing semicolon.
3108 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3110 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3112 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3114 * configure.ac: Check for lzma.h for enabling liblzma and allow
3117 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3119 Add missing includes of loader.h.
3121 2013-11-11 Fam Zheng <famcool@gmail.com>
3123 * util/grub.d/30_os-prober.in: Add minix entry.
3125 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3127 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3128 right buffer for temporary load.
3130 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3132 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3134 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3136 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3139 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3141 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3143 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3145 (LzmaDec_InitDicAndState): Make static.
3147 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3149 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3151 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3153 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3155 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3157 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3159 * docs/grub-dev.texi: Replace bzr references with git ones.
3161 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3163 * docs/grub.texi (Simple configuration): Remove reference to
3164 grub-reboot from saved default entry description - grub-default
3165 does not use it anymore.
3167 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3169 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3172 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3174 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3176 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3178 Fix grub_machine_fini bitrot.
3180 Reported by: Glenn Washburn.
3182 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3184 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3186 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3188 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3190 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3193 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3195 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3196 Add -march=core2 when testing compile of efiemu64.
3198 Thanks Andrey Borzenkov for spotting this.
3200 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3202 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3203 XEN PV environment and load kernels.
3205 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3207 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3208 * grub-core/loader/multiboot_mbi2.c: Likewise.
3210 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3212 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3215 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3217 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3219 Tested by: Denis 'GNUtoo' Carikli.
3221 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3223 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3225 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3227 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3228 Use to get rounded angle rather than truncated.
3230 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3232 * grub-core/term/serial.c: Add option for enabling/disabling
3233 RTS/CTS flow control.
3235 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3237 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3240 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3242 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3243 Use grub_fatal rather than divide by zero.
3244 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3246 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3248 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3250 (grub_fixed_fsf_divide): Likewise.
3252 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3254 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3255 division by-zero and senseless negative divisions.
3257 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3259 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3260 division by-zero and senseless negative divisions.
3261 (circprog_set_property): Don't accept negative num_ticks.
3263 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3265 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3266 division by-zero and senseless negative divisions.
3268 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3270 * configure.ac: Use elf_*_fbsd on kfreebsd.
3272 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3274 * grub-core/tests/div_test.c: New test.
3276 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3278 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3279 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3280 * grub-core/gfxmenu/view.c: Likewise.
3281 * grub-core/video/fb/video_fb.c: Introduce new functions:
3282 grub_video_set_area_status, grub_video_get_area_status,
3283 grub_video_set_region, grub_video_get_region.
3284 * grub-core/video/bochs.c: Likewise.
3285 * grub-core/video/capture.c: Likewise.
3286 * grub-core/video/video.c: Likewise.
3287 * grub-core/video/cirrus.c: Likewise.
3288 * grub-core/video/efi_gop.c: Likewise.
3289 * grub-core/video/efi_uga.c: Likewise.
3290 * grub-core/video/emu/sdl.c: Likewise.
3291 * grub-core/video/radeon_fuloong2e.c: Likewise.
3292 * grub-core/video/sis315pro.c: Likewise.
3293 * grub-core/video/sm712.c: Likewise.
3294 * grub-core/video/i386/pc/vbe.c: Likewise.
3295 * grub-core/video/i386/pc/vga.c: Likewise.
3296 * grub-core/video/ieee1275.c: Likewise.
3297 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3298 * include/grub/video.h: Likewise.
3299 * include/grub/video_fb.h: Likewise.
3300 * include/grub/fbfill.h: Updated render_target structure.
3301 grub_video_rect_t viewport, region, area
3302 int area_offset_x, area_offset_y, area_enabled
3303 * include/grub/gui.h: New helper function
3304 grub_video_bounds_inside_region.
3305 * docs/grub-dev.texi: Added information about new functions.
3307 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3312 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3314 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3316 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3318 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3321 simple division on arm and ia64.
3323 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3325 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3328 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3330 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3332 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3334 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3335 prefix symbol, not @.
3337 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3339 * INSTALL: Add note about older gcc and clang.
3341 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3343 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3345 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3347 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3348 NULL pointer dereference.
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3357 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3360 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3364 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3365 * grub-core/disk/geli.c (ascii2hex): Likewise.
3367 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3369 * configure.ac: Run linker tests without -Werror.
3370 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3371 Change all occurences of -static-libgcc resp -lgcc to
3372 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3374 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3376 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3380 Allow compiling with clang (not really supported though).
3382 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3384 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3385 Add -mrtd -mregparm=3 on i386 when not using clang.
3386 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3388 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3390 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3392 * grub-core/lib/reed_solomon.c: Likewise.
3393 * include/grub/i386/gdb.h: Likewise.
3394 * include/grub/i386/pc/int.h: Likewise.
3395 * include/grub/i386/pc/pxe.h: Likewise.
3396 * include/grub/ieee1275/ieee1275.h: Likewise.
3398 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3400 Import libgcrypt 1.5.3.
3402 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3404 * configure.ac: Don't add -Wcast-align on x86.
3406 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3408 * configure.ac: Add -freg-struct-return on all platforms that
3411 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3413 * acinclude.m4: Use -Werror on parameter tests.
3414 * configure.ac: Likewise.
3416 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3420 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3422 * configure.ac: Check that -malign-loops works rather than assuming that
3423 either -falign-loops or -malign-loops work.
3425 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3427 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3429 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3431 * configure.ac: Prevent cflags leaking to subsequent tests by always
3432 resetting cflags to target_cflags in target tests.
3434 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3436 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3439 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3441 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3443 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3447 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3449 * grub-core/normal/cmdline.c (grub_cmdline_get):
3450 Remove nested functions.
3452 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3454 * tests/test_sha512sum.in: Make it work on emu.
3456 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3458 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3460 (grub_bidi_line_logical_to_visual): Likewise.
3462 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3464 Remove vestiges of -Wunsafe-loop-optimisations.
3466 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3467 -Wno-unsafe-loop-optimisations.
3468 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3470 * grub-core/io/gzio.c: Likewise.
3471 * grub-core/script/parser.y: Likewise.
3472 * grub-core/script/yylex.l: Likewise.
3473 * util/grub-mkfont.c: Likewise.
3475 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3477 * util/grub-mkfont.c (process_cursive): Remove nested function.
3479 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3481 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3482 (grub_boot_time): Likewise.
3484 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3486 * include/grub/symbol.h (FUNCTION): Use @function rather than
3488 (VARIABLE): Likewise.
3490 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3496 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3497 (parse_dhcp_vendor): Likewise.
3499 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3501 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3503 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3506 Define after defining type and not before.
3508 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3510 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3512 (grub_gcm_decrypt): Likewise.
3513 (algo_decrypt): Likewise.
3514 (grub_zfs_decrypt_real): Transform error type.
3516 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3518 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3520 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3522 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3523 (grub_usbms_cbi_reset): Likewise.
3524 (grub_usbms_bo_reset): Likewise.
3525 (grub_usbms_reset): Likewise.
3526 (grub_usbms_attach): Likewise.
3527 (grub_usbms_transfer_cbi): Likewise.
3529 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3531 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3532 "checksum = checksum;".
3534 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3536 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3539 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3541 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3544 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3546 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3548 (grub_ehci_fini_hw): Likewise.
3549 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3551 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3553 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3554 return grub_usb_err_t for cosistency. All users updated.
3556 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3559 assigning to itself.
3561 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3562 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3564 Issue separate DNS queries for ipv4 and ipv6
3566 Adding multiple questions on a single DNS query is not supportted by
3567 most DNS servers. This patch issues two separate DNS queries
3568 sequentially for ipv4 and then for ipv6.
3570 Fixes: https://savannah.gnu.org/bugs/?39710
3572 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3573 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3574 * (grub_net_dns_lookup): Now using separated dns packages.
3575 * (grub_cmd_nslookup): Add error condition.
3576 * (grub_cmd_list_dns): Print DNS option.
3577 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3578 --prefer-ipv4, and --prefer-ipv6.
3579 * include/grub/net.h (grub_dns_option_t): New enum.
3580 * (grub_net_network_level_address): option added.
3582 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3584 * grub-core/video/fb/video_fb.c: Merge two blit functions
3587 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3589 * grub-core/term/terminfo.c: Add sequences for home and end.
3591 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3596 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3598 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3601 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3603 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3604 e-mail by Per Öberg.
3606 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3611 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3613 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3615 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3617 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3619 * docs/grub.texi: Document usage of menuentry id.
3621 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3623 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3625 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3627 * grub-core/commands/i386/nthibr.c: New command.
3629 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3631 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3633 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3635 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3638 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3640 Support GRUB_DISABLE_SUBMENU config.
3642 Inspired by patch from Prarit Bhargava.
3644 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3646 * docs/grub.texi: Mention RSA support.
3648 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/commands/verify.c: Add RSA support.
3652 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3654 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3655 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3656 device is known to be ATAPI.
3658 2013-11-03 Mike Frysinger <vapier>
3660 * configure.ac: Don't add target-prefix.
3662 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3664 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3667 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3669 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3670 if language is English.
3672 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3674 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3676 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3678 * configure.ac: Don't add -m32/-m64 on emu.
3682 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3683 broken linux headers.
3685 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3687 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3689 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3691 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3692 Reed-Solomon recovery if more than half of redundancy info is 0.
3694 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3696 * util/grub-mount.c: Handle symlinks to directories.
3698 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3700 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3701 find_file recursively for symlink.
3703 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3705 * tests/util/grub-shell.in: Copy themes.
3707 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3709 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3711 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3713 * configure.ac: Use 0x8000 for address instead of 8000.
3715 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3717 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3720 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3722 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3725 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3727 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3729 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3731 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3732 file_progress_read_hook.
3733 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3735 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3737 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3740 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3742 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3744 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3746 Rewrite blocklist functions in order to get progress when
3747 reading large extents and decrease amount of blocklist hook calls.
3749 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3751 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3754 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3756 Support --base-clock for serial command to handle weird cards with
3757 non-standard base clock.
3759 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3761 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3763 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3764 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3765 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3766 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3767 + strcpy rather than strncpy.
3769 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3772 (check_pool_label): Likewise. Fixes overflow.
3773 (nvlist_find_value): Fix comparison.
3775 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3777 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3778 more appropriate functions.
3780 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3785 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3787 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3789 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3791 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3794 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3796 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3798 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3800 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3801 (initialize_tables): reset tl and td to NULL after freeing.
3803 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3805 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3807 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3809 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3812 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3816 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3818 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3821 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3823 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3824 a page in protected space.
3826 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3828 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3829 allocate space for zero-sized modules.
3831 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3833 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3835 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3837 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3839 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3841 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3842 safeguards. Fixes a crash with i386/pc/console.c.
3844 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3846 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3847 and grub_hostfs_init.
3849 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3851 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3852 windows method on other platforms without good stat as well.
3854 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3858 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3860 Make / in btrfs refer to real root, not the default volume.
3861 Modify mkrelpath to work even if device is mounted with subvolid option.
3863 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3865 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3867 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3870 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3872 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3875 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3877 * docs/autoiso.cfg: New file.
3879 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3881 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3882 COND_GRUB_PE2ELF conditions.
3884 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3886 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3887 "vnd", "rd" and "fd" disks.
3889 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3891 Move grub_disk_write out of kernel into disk.mod.
3893 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3898 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3900 * grub-core/kern/misc.c (grub_abort): Make static
3902 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3904 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3905 transform invalid unicode codepoints.
3907 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3912 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3914 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3916 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3918 Consolidate cpuid code.
3920 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3922 Move cpuid code to cpuid.h and TSC code to tsc.c.
3924 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3926 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3928 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3930 * util/grub-mkconfig.in: Replace $0 with $self.
3931 * util/grub-reboot.in: Likewise.
3932 * util/grub-set-default.in: Likewise.
3934 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3936 * docs/osdetect.cfg: New file.
3938 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3940 * tests/util/grub-shell.in: Add new --debug option.
3942 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3944 * tests/test_unset.in: New test.
3946 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3948 * tests/test_sha512sum.in: New test.
3950 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3952 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3953 * include/grub/misc.h: Remove strncat.
3954 * grub-core/lib/posix_wrap/string.h: Likewise.
3956 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3958 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3959 Try to handle more than 0xFFFF packets.
3960 Reported by: Bernhard Übelacker <bernhardu>.
3961 He also spotted few overflows in first version of this patch.
3963 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3965 * tests/date_unit_test.c: New test.
3967 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3969 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3970 of first three years after start of validity of unixtime.
3972 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3974 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3975 division as the one making more sense.
3976 (update_screen): Likewise.
3977 (complete): Likewise.
3979 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3981 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3983 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3985 Make char and string width grub_size_t rather than grub_ssize_t.
3987 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3989 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3991 (grub_history_replace): Likewise.
3993 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3995 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3998 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4000 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4003 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4005 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4006 Use unsigned divisions rather than signed variants.
4008 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4010 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4011 unsigned arithmetics.
4014 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4016 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4018 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4020 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4021 rather than signed one.
4022 (recovery): Likewise.
4024 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4026 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4028 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4030 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4033 2013-10-25 Jon McCune <jonmccune@google.com>
4035 * docs/grub.texi: Cleanup security documentation around signatures.
4037 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4039 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4041 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4043 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4046 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4048 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4049 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4050 functions when compiling for kernel.
4052 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4055 unsigned long long when using %llu.
4057 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4059 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4060 terminal after updating progress.
4062 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4064 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4065 argument. We don't disable Gate A20 in this code.
4067 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4069 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4070 Conceptually based on change in branch "vbe-on-coreboot".
4072 2013-10-24 Robert Millan <rmh@gnu.org>
4074 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4075 numeric constants with their symbolic equivalent.
4076 Taken from branch "vbe-on-coreboot".
4078 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4080 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4082 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4085 divmod64 for offset division.
4087 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4089 Rename .bzrignore to .gitignore. Add "*.o" rule.
4091 * .bzrignore: Renamed to...
4092 * .gitignore: ...this.
4094 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4096 Add new progress module that displays the load progress of files.
4098 * grub-core/lib/progress.c: New file.
4099 * grub-core/Makefile.core.def (progress): New module.
4100 * grub-core/kern/file.c (grub_file_open): File name added.
4101 * (grub_file_read): Progress hook added.
4102 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4103 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4104 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4105 * include/grub/file.h (struct grub_file): Add progress module members.
4106 * include/grub/term.h (struct grub_term_output): Likewise.
4107 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4108 Terminal velocity added.
4109 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4110 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4111 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4112 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4113 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4114 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4115 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4116 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4117 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4118 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4119 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4120 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4122 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4124 Verify signatures of signatures unless --skip-sig is specified.
4126 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4128 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4131 Saves 70 bytes on compressed image.
4133 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4135 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4138 Saves 10 bytes on compressed image.
4140 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4142 * grub-core/kern/misc.c (grub_isprint): Move to ...
4143 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4145 Saves 20 bytes on compressed image due to remving exporting.
4147 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4149 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4151 Saves 5 bytes on compressed image.
4153 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4155 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4158 Saves 379 bytes on compressed image.
4160 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4162 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4164 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4166 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4168 Saves 40 bytes on compressed image.
4170 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4173 mask rather than 64-bit type.
4175 Saves 20 bytes on compressed image.
4177 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4179 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4180 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4182 Saves 273 bytes on compressed image.
4184 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4186 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4187 variable length arrays.
4189 Saves 50 bytes on compressed image.
4191 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4195 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/fs/ufs.c: Remove variable length arrays.
4199 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4201 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4203 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4205 * grub-core/fs/zfs.c: Remove variable length arrays.
4206 Reduces zfs.mod by 160 bytes (208 compressed).
4208 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4210 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4212 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4214 * grub-core/net/arp.c: Remove variable length arrays.
4215 * grub-core/net/bootp.c: Likewise.
4216 * grub-core/net/dns.c: Likewise.
4217 * grub-core/net/icmp6.c: Likewise.
4218 * grub-core/net/net.c: Likewise.
4220 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/fs/ntfs.c: Remove variable length arrays.
4223 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4226 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4228 * grub-core/fs/hfs.c: Remove variable length arrays.
4229 Reduces hfs.mod by 8 bytes (52 compressed).
4231 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4233 * grub-core/fs/udf.c: Remove variable length arrays.
4234 Increases udf.mod by 128 bytes (but decreases by 13 when
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4239 * grub-core/fs/iso9660.c: Remove variable length arrays.
4240 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4243 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4245 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4246 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4249 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4251 * grub-core/fs/xfs.c: Remove variable length arrays.
4252 Reduces xfs.mod by 40 bytes (43 compressed).
4254 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4256 * grub-core/fs/fshelp.c: Remove variable length arrays.
4257 Reduces fshelp.mod by 116 bytes (23 compressed).
4259 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4261 * grub-core/normal/completion.c: Remove variable length arrays.
4262 * grub-core/normal/menu_entry.c: Likewise.
4264 Reduces normal.mod by 496 bytes.
4266 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4268 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4269 by 356 bytes (158 compressed).
4271 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4273 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4274 by 364 bytes (169 compressed).
4276 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4278 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4279 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4280 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4282 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4284 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4285 bitmasks to small structures of size chosen to fit in registers.
4287 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4289 * conf/Makefile.common: Use -freg-struct-return on i386. This
4290 decreases code size and improves performance.
4292 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4294 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4296 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4298 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4300 Simplify expressions to save around 256 bytes in kernel.img.
4301 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4303 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4305 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4306 Use GRUB_UTIL_FD_O_* rather than O_*.
4308 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4310 Add haiku-specific functions.
4312 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4314 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4316 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4318 Move stat () and device mode checking into OS-dependent files as
4319 long as performance doesn't suffer.
4321 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4323 Split make_system_path_relative_to_its_root into separate file
4324 relpath.c from getroot.c as it's common between unix and haiku
4325 but otherwise haiku doesn't use any functions from unix getroot.c.
4327 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4329 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4331 (grub_util_is_special_file): Likewise.
4333 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4335 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4336 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4338 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4340 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4341 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4343 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4345 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4346 (load_image): Likewise.
4348 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4350 * util/grub-render-label.c: Move backend part to ...
4351 * util/render-label.c: ... here.
4353 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4355 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4356 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4358 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4360 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4362 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4364 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4365 CD-ROM in case when it's declared as having subpartitions.
4367 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4369 Don't add -lm on haiku.
4371 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4373 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4376 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4378 * configure.ac: Use -melf_*_haiku as target on haiku.
4380 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4382 * Makefile.util.def: Add util/setup.c to extra_dist.
4384 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4387 unknown types through.
4389 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4391 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4392 (grub_util_check_char_device): Likewise.
4393 * include/grub/emu/getroot.h: Likewise.
4395 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4398 memset rather than inline static function.
4400 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4402 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4403 not doing embedded decompressor.
4405 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4409 * grub-core/kern/disk.c: Likewise.
4410 * grub-core/kern/misc.c: Likewise.
4411 * include/grub/parser.h: Likewise.
4412 * include/grub/script_sh.h: Likewise.
4413 * include/grub/zfs/zfs.h: Likewise.
4415 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4419 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4422 defined before trying to use it.
4424 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4426 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4429 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4431 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4432 Use __unused__ rather than __used__ on gcc < 3.2.
4434 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4436 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4438 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4440 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4442 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4444 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4446 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4447 * include/grub/emu/misc.h: Likewise.
4449 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4451 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4454 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4456 * grub-core/tests/checksums.h: Regenerated due to progress bar
4457 get_minimal_size changes.
4459 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4461 Added `tr' command support.
4463 * grub-core/commands/tr.c: New file.
4464 * grub-core/Makefile.core.def: Build rules for new module.
4466 * tests/grub_cmd_tr.in: New test.
4467 * Makefile.util.def: Build rules for new test.
4469 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4471 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4473 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4475 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4476 * docs/gurb.texi: Likewise.
4478 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4480 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4481 Pixmap highlighted section with east and west slices was displayed
4482 incorrectly due to negative width of the central slice.
4484 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4486 * docs/grub.texi: Graphical options information update.
4487 Removed outdated. Updated current. Inserted missed.
4489 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4491 * docs/grub.texi: Mention few new platform-specific commands.
4493 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4495 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4496 currently used so this doesn't really have any effect.
4497 Reported by: Douglas Ray <dougray>
4499 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4501 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4502 compilation but prevents gcc from displaying messages in non-Latin
4504 * conf/Makefile.common: Likewise.
4506 2013-10-16 Hiroyuki YAMAMORI
4508 Handle Japanese special keys.
4509 Reported by: Hiroyuki YAMAMORI.
4510 Codes supplied by: Hiroyuki YAMAMORI.
4512 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4514 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4516 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4518 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4519 * docs/grub.texi: Likewise.
4521 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4523 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4524 value in case of incomplete read.
4525 (grub_util_fd_write): Likewise.
4527 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4529 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4531 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4533 * util/grub-editenv.c (create_envblk_file): More from here ...
4534 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4536 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4538 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4539 canonicalize file name before doing the rest.
4541 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4543 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4546 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4548 Define grub_util_is_directory/regular/special_file and
4549 use OS-dependent versions rather than to rely on stat().
4551 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4553 * util/grub-mkimage.c: Move backend part to ...
4554 * util/mkimage.c: ... here.
4556 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4558 Allow compilation with mingw64 albeit with warnings due to lack of
4561 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4562 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4563 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4564 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4566 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4568 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4570 Remove leftover references to some of the system headers.
4572 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4574 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4577 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4579 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4582 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4584 Split out blocklist retrieving from setup.c to
4585 grub-core/osdep/blocklist.c and add windows implementation since
4586 generic version doesn't work on NTFS on Windows due to aggressive
4589 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4591 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4594 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4596 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4597 Cut tailing newline. Remove arbitrary limitation. Always use
4598 grub_util_tchar_to_utf8.
4600 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4602 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4603 * tests/printf_unit_test.c (printf_test): Add %% tests.
4604 Reported by: Paulo Flabiano Smorigo.
4606 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4608 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4611 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4613 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4614 use nvlist_lookup_string and don't use nvlist_print.
4616 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4618 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4619 closedir to handle filename charset translation.
4621 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4623 * include/grub/emu/hostdisk.h: Move file operations to
4624 * include/grub/emu/hostfile.h: ... here.
4626 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4628 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4631 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4633 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4635 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4637 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4638 and remove export.h.
4640 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4642 * grub-core/kern/emu/error.c: Removed.
4643 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4644 explicitly as it's already in libgnu.a.
4646 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4648 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4649 config-util.h include.
4651 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4653 Split emunet into platform-dependent and GRUB-binding parts. Keep
4654 platform-dependent part in kernel for easy access to OS functions.
4656 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4658 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4661 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4663 * grub-core/osdep/windows/emuconsole.c: New file.
4665 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4667 * conf/Makefile.extra-dist: Add osdep/*/init.c
4669 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4671 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4673 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4675 * util/grub-probe.c (probe): Separate different drives in hint-str
4676 by spaces and not newlines.
4677 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4679 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4681 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4684 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4686 Pass-through unknown E820 types. It required reorganisation of mmap
4689 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4691 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4693 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4695 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4698 2013-10-14 qwertial <qwertial>
4700 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4702 2013-10-14 Jon McCune <jonmccune@google.com>
4704 * docs/grub.texi: Document new signatures possibility.
4706 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4708 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4710 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4712 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4714 (grub_util_tchar_to_utf8): Likewise.
4716 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4718 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4719 * grub-core/kern/emu/main.c: Add missing include.
4720 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4721 Don't call grub_util_init_nls.
4722 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4725 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4727 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4730 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4732 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4734 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4736 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4738 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4740 Add a wrapper for fopen. On unix-like systems just pass-through. On
4741 windows use unicode version.
4743 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4745 Move set_program_name and init_nls to host_init. On windows
4746 fix in this fuction console and argument charset as well.
4748 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4750 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4751 GRUB_ENABLE_CRYPTODISK.
4753 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4754 GRUB_ENABLE_CRYPTODISK.
4755 * util/grub-mkconfig_lib.in: Likewise.
4757 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4759 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4761 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4763 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4764 error when enabling debug.
4766 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4768 * configure.ac: Use -melf_*_obsd on openbsd.
4770 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4772 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4774 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4776 * include/grub/misc.h: Use gnu_printf rather than printf as format
4777 template since our functions are independent of libc.
4779 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4781 * util/grub-setup.c (setup): Move copying of partition table as
4782 futher up as possible to avoid possible overwrite by floppy routines.
4784 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4786 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4788 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4790 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4791 * docs/grub.texi: Likewise.
4793 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4795 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4796 it's mostly unused. Move vestiges to the callers.
4798 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4800 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4801 version of salt and hash. Use grub_snprintf rather than snprintf.
4803 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4805 * docs/grub.texi: Fix problem with braces.
4807 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4809 * conf/Makefile.extra-dist: Fix extra-dist list.
4810 * grub-core/Makefile.core.def: Likewise.
4812 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4814 * docs/grub.texi: Document disk names used on Windows and AROS.
4816 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4818 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4820 * grub-core/osdep/aros/hostdisk.c: Likewise.
4822 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4824 Avoid including hostfile.h when not necessarry as it pulls
4825 in OS-specific headers which may redefine generic names
4828 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4830 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4831 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4832 scrollbar_bottom_pad
4833 * docs/grub.texi: Likewise.
4835 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4837 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4839 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4841 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4843 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4845 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4847 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4850 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4852 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4855 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4857 Move OS-specific driver configuration to grub_util_fd_open. This
4858 moves OS-dependent parts from kern/emu/hostdisk.c to
4859 grub-core/osdep/*/hostdisk.c.
4861 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4863 * util/grub-mkimage.c (generate_image): Use size_t instead of
4865 * util/grub-mkimagexx.c (locate_sections): Likewise.
4866 (load_image): Likewise.
4868 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4870 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4872 (grub_util_write_image): Likewise.
4874 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4876 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4877 get random when no RNG is available.
4878 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4880 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4882 * include/grub/util/lvm.h: Removed.
4884 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4886 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4887 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4889 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4891 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4893 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4895 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4897 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4899 * grub-core/net/drivers/emu/emunet.c: Move to ..
4900 * grub-core/osdep/linux/emunet.c: ..here.
4902 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4904 * util/ieee1275/ofpath.c: Move to ...
4905 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4906 * grub-core/osdep/basic/ofpath.c: ..here.
4908 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4910 Move password-querying (util-version) routines to grub-core/osdep.
4912 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4914 Move sleep routines to grub-core/osdep.
4916 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4918 Move OS-dependent files to grub-core/osdep and document it.
4920 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4923 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4925 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4927 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4929 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4931 * util/misc.c: Remove leftover inclusion of malloc.h.
4933 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4935 * include/grub/setjmp.h: Remove leftover GRUBOF.
4937 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4939 * util/raid.c: Fold into ...
4940 * util/getroot_linux.c: ... here. Make all functions static.
4942 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4944 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4945 macros to GRUB ones.
4947 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4949 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4950 occasional bug. If there are too many boot entries or too low
4951 scrollbar height then we need to use another formula to calculate
4952 the position and size of the scrollbar thumb.
4954 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4956 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4958 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4960 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4961 * docs/grub.texi: Likewise.
4963 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4965 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4968 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4970 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4971 minimal width calculations.
4973 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4975 * docs/grub.texi: Update note on colors on emu console.
4977 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4979 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4980 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4981 it's FS and not GRUB limitation.
4983 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4985 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4987 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4991 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4993 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4994 kernels by version order.
4996 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4998 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5000 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5002 Add AROS hostdisk and getroot routines.
5004 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5006 Make cryptodisk and diskfilter probe data retrievable programmatically
5007 and not just printable.
5009 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5011 Split random retrieving code into separate files.
5013 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5015 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5018 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5020 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5022 * grub-core/tests/fake_input.c: Likewise.
5023 * grub-core/tests/cmdline_cat_test.c: Likewise.
5025 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5027 * grub-core/video/capture.c: Do not do finalization when .fini
5028 is called as there is explicit capture_end.
5030 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5032 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5033 changing windows to avoid crash.
5035 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5037 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5039 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5041 * po/exclude.pot: Add several strings to exclude.
5043 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5045 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5047 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5049 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5050 ./util/grub-gen-asciih.c to exclude list.
5052 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5054 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5055 and don't mark error strings for translation.
5057 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5059 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5060 properly in case of missing block size.
5062 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5064 * grub-core/lib/arm/setjmp.S: Add missing license section.
5066 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5068 * po/swiss.sed: Add replacement for key names and for term computer.
5070 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5072 * grub-core/gfxmenu/theme_loader.c: New global options for the
5073 theme background image handling. desktop-image-scale-method,
5074 desktop-image-h-align, desktop-image-v-align.
5075 * grub-core/gfxmenu/view.c: Likewise.
5076 * include/gfxmenu_view.h: Likewise.
5077 * include/bitmap_scale.h: Proportional scale functions introduced.
5078 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5079 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5080 cases of unexpected input variables for scale functions.
5081 * docs/grub.texi: Updated documentation for new options.
5083 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5085 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5087 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5089 * grub-core/tests/checksums.h: Corrected due to changes in
5090 bilinear interpolation function.
5092 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5094 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5095 to eliminate artefacts in bilinear interpolation.
5097 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5099 * grub-core/video/readers/tga.c: Support paletted tga.
5101 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5103 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5104 incorrect cbcr setting when in color mode.
5106 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5108 * grub-core/video/readers/png.c: Support paletted images and clean up
5111 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5113 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5114 usage of wrong table which resulted in mishandling of 4-byte
5117 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5119 * grub-core/term/terminfo.c: Add Home and End key sequences.
5121 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5123 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5124 Fix formula for computing total number of bytes.
5126 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5128 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5129 image processing, fix big-endian and support grayscale.
5131 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5133 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5134 Correctly will with maximum transparency when using index color.
5136 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5138 * grub-core/video/readers/png.c: Support grayscale
5140 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5142 * grub-core/video/readers/jpeg.c: Support grayscale.
5144 2013-09-26 Jon McCune <jonmccune@google.com>
5146 * grub-core/commands/loadenv.c: Support skipping signature check
5147 and variable names filtering.
5149 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5151 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5152 * grub-core/kern/emu/hostfs.c: Likewise.
5153 * util/getroot_unix.c: Likewise.
5155 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5157 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5158 Migrate all explicit defines to this new one.
5160 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5162 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5163 grub_util_fd_strerror when using grub_util_fd_*.
5164 (grub_util_fd_open_device): Likewise.
5165 (grub_util_biosdisk_read): Likewise.
5166 (grub_util_biosdisk_write): Likewise.
5167 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5168 (grub_util_fd_strerror): Likewise.
5169 (grub_util_fd_sync): Likewise.
5170 (grub_util_fd_close): Likewise.
5171 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5172 (grub_util_fd_close): Likewise.
5173 (grub_util_fd_strerror): Likewise.
5174 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5175 function proto rather than macro.
5176 (grub_util_fd_sync): Likewise.
5177 (grub_util_fd_open): Likewise.
5178 (grub_util_fd_strerror): New proto.
5180 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5182 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5183 platforms on which it doesn't work.
5185 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5188 stat immediately to where it's used.
5190 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5192 * util/getroot.c (grub_util_check_block_device): Move to ...
5193 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5194 * util/getroot.c (grub_util_check_char_device): Move to ...
5195 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5197 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5199 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5202 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5204 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5206 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5208 * docs/grub.texi (File name syntax): Document ZFS filenames
5209 (/volume@snapshot/...).
5211 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5213 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5214 Always return full path. Fixes a problem with mkrelpath.
5216 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5218 * util/grub-install.in: Add GPT PReP support.
5219 * util/grub-probe.c (probe): Support GPT partition type.
5220 (main): Support -t gpt_parttype.
5222 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5224 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5226 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5228 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5230 2013-09-23 Tim Hardeck <thardeck>
5232 * util/grub.d/10_hurd.in: Filter out character for the class.
5233 * util/grub.d/10_kfreebsd.in: Likewise.
5234 * util/grub.d/10_linux.in: Likewise.
5235 * util/grub.d/20_linux_xen.in: Likewise.
5237 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5239 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5242 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5244 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5247 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5249 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5250 doesn't use posix_wrap. Keep literal -fno-builtin however.
5252 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5254 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5256 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5259 * configure.ac: Do not enable -Wmissing-noreturn as its
5260 usefulness is limited and creates problems on some OS notably with
5261 code generated by bison.
5263 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5266 * configure.ac: Do not explicitly enable -Waddress as it's not
5267 supported by all gcc and when it is, it's already enabled by -Wall.
5269 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5271 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5272 desactivated use of EDID at all.
5274 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5278 video if no text is available.
5280 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5283 * configure.ac: Substitute TARGET_RANLIB.
5285 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5288 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5290 Based on patches from AROS.
5292 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5295 * grub-core/Makefile.am: Override STRIP and RANLIB.
5296 * configure.ac: compute TARGET_RANLIB.
5297 * INSTALL: Document TARGET_RANLIB
5299 Based on patches from AROS.
5301 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5303 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5304 that floppies are unpartitioned.
5306 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5308 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5309 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5311 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5313 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5314 less nice but more portable.
5315 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5317 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5319 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5321 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5323 (grub_cryptodisk_cheat_insert): Likewise.
5324 (grub_cryptodisk_close): Likewise.
5326 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5328 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5329 Use windows path for DEFAULT_DIRECTORY.
5331 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5333 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5334 difference was likely just gcc version, not anything mingw-related.
5336 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5338 Use Winapi on both cygwin and mingw32 to share more code between both.
5340 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5342 * util/grub-install.in: Add --grub-editenv option.
5343 * util/grub-install_header (grub_compress_file): Explicitly check for
5344 plain file to avoid cp error.
5346 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5348 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5349 names; fix LVM driver name (lvm, not lv).
5350 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5353 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5355 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5356 files rather than one file with loads of #if's.
5357 * util/getroot.c: Likewise.
5359 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5361 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5363 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5365 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5366 GNU/Hurd to the list of checked PRNG.
5368 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5370 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5372 2013-09-21 Ales Nesrsta <starous@volny.cz>
5374 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5376 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5378 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5379 * grub-core/disk/lvm.c: Add LVM UUIDs.
5380 * util/getroot.c: Use LVM UUIDs whenever possible.
5382 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5384 * docs/grub.texi (Networking commands): Add documentation for
5385 network related commands.
5387 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5389 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5390 to determine if device is handled by devmapper.
5391 (convert_system_partition_to_system_disk): Likewise.
5392 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5393 already done in grub_util_open_dm.
5395 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5397 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5398 Clean up stack manipulation (sync_caches_armv*)
5400 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5402 * util/lvm.c: Remove since unused. Remove remaining references.
5404 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5406 Handle the case of partitioned LVM properly.
5408 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5409 Stop on meeting LVM, mpath or DMRAID.
5410 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5411 (read_device_map): Likewise.
5412 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5413 device is full disk rather than erroring out on LVM and similar cases.
5415 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5417 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5419 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5421 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5423 Reported by: Leif Lindholm
5425 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5426 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5428 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5431 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5433 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5434 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5436 2013-09-18 Douglas Ray <dougray@cpan.org>
5438 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5441 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5443 * docs/grub.texi: Fix broken link.
5445 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5447 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5448 to break endless loop.
5450 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5452 * util/grub-fstest.c: Fix several printf formats.
5453 * util/grub-mkimage.c: Likewise.
5454 * util/grub-mkimagexx.c: Likewise.
5455 * util/grub-script-check.c: Likewise.
5457 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5459 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5462 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5464 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5466 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5468 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5469 removed in current versions cygwin_conv_*.
5471 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5473 * configure.ac: Disable efiemu runtime on cygwin.
5475 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5477 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5478 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5480 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5482 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5485 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5487 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5489 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5492 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5494 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5495 when on x86 and not cygwin.
5496 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5499 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5501 * configure.ac: Set CPP to build one when checkoing for freetype for
5504 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5506 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5507 [!GRUB_BUILD]: Remove has_argument.
5509 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5511 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5512 Replace with a dummy.
5514 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5516 * configure.ac: Don't change host_os from mingw to cygwin.
5518 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5520 * configure.ac: Change target_os from windows to cygwin.
5522 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5524 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5526 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5527 (build-grub-gen-asciih): Likewise.
5528 (build-grub-gen-widthspec): Likewise.
5529 * Makefile.util.def (grub-pe2elf): Remove.
5530 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5531 * configure.ac: Separate tests for build.
5532 Move ./build-grub-pe2elf to grub-core.
5534 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5535 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5537 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5539 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5540 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5541 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5543 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5545 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5546 mingw32 as well based on grub_util_get_disk_size.
5547 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5548 grub_util_get_fd_size.
5550 (fsync): Moved to ...
5551 * grub-core/kern/emu/misc.c (fsync): ... here.
5553 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5555 * include/grub/mm.h (grub_extend_alloc): Remove.
5556 * grub-core/loader/i386/pc/plan9.c: Use own version of
5557 grub_extend_alloc with appropriate types.
5559 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5561 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5563 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5565 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5567 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5569 Fix dependencies on cygwin.
5571 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5572 dependencies when used and defined.
5573 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5575 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5577 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5578 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5580 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5582 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5583 implementation available to cause compile-time rather than runtime
5586 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5588 * util/grub-fstest.c: Don't check for symlinks on windows.
5590 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5592 * INSTALL: Mention unavailability of man pages when cross-compiling.
5594 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5596 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5598 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5600 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5602 * INSTALL: Document cross-compilation.
5603 * acinclude.m4: Determine whether nm support -P and --defined-only.
5604 * configure.ac: Add TARGET_ to all variables pertaining to target
5605 that don't have it yet.
5606 * gentpl.py: Likewise.
5607 * grub-core/Makefile.am: Likewise.
5608 * grub-core/genmod.sh.in: Likewise.
5609 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5612 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5614 * configure.ac: Remove -Wempty-body. It's not essential and needs
5617 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5619 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5620 * util/getroot.c: Likewise.
5622 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5624 * grub-core/disk/ahci.c: Add needed explicit cast.
5625 * grub-core/lib/backtrace.c: Likewise.
5626 * grub-core/net/ip.c: Likewise.
5627 * grub-core/net/tcp.c: Likewise.
5628 * grub-core/net/udp.c: Likewise.
5630 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5632 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5634 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5636 * util/import_gcry.py: Add final newline in visibility.h.
5638 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5640 * conf/Makefile.common: Fix typo.
5642 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5644 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5646 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5648 * Makefile.am (widthspec.h): Fix typo.
5649 * util/grub-gen-widthspec.c: Likewise.
5651 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5653 Move ascii.h and widthspec.h generation to a separate build-time-only
5656 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5658 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5659 Always fill bootdisk info and improve check for NetBSD disklabel.
5661 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5663 * conf/Makefile.extra-dist: Add util/bin2h.c.
5664 Reported by: floppym.
5666 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5668 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5670 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5672 * configure.ac: Disable unifont and starfield if no freetype was found.
5674 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5676 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5677 on NetBSD and OpenBSD.
5679 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5681 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5683 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5685 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5686 reduced. Inheritant options are processed during the theme loading.
5688 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5690 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5692 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5694 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5696 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5698 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5701 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5703 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5704 remove-potcdate.sed.
5706 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5708 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5709 unused attribute from pull argument.
5711 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5713 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5716 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5718 * util/getroot.c (pull_lvm_by_command): add --separator option
5719 to vgs call to disable padding of output to 10 characters.
5721 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5723 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5725 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5728 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5730 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5733 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5735 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5736 full Canadian cross. Tested with build=x86_64, host=arm,
5737 target=ppc-ieee1275.
5739 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5741 * configure.ac: Error if no $BUILD_CC could be found.
5744 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5746 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5749 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5751 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5752 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5754 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5756 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5757 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5758 falling back to the partition device, otherwise a later call to this
5759 function may fail spuriously.
5760 Reported by Axel Beckert. Fixes Debian bug #708614.
5762 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5764 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5766 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5768 Prevent shadowing of stdlib's devname(3) on BSD.
5770 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5771 and devlast to diskname and disklast, respectively.
5773 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5775 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5777 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5779 * docs/grub.texi: Introduce terminal window position options:
5780 terminal-left: terminal window's left position
5781 terminal-top: terminal window's top position
5782 terminal-width: terminal window's width
5783 terminal-height: terminal window's height
5784 terminal-border: terminal window's border width
5785 * grub-core/gfxmenu/theme-loader.c: Likewise.
5786 * include/grub/gfxmenu_view.h: Likewise.
5787 * po/exlude.pot: Likewise.
5788 * grub-core/gfxmenu/view.c: Likewise.
5789 Also updated minimal window size.
5790 Also terminal_sanity_check function has been introduced.
5791 * grub-core/tests/checksums.h: Update (terminal window height
5792 is adjusted now for low resolution screen)
5794 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5796 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5799 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5801 * po/exclude.pot: Add few recent exceptions.
5803 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5805 * tests/grub_func_test.in: Add unicode.pf2.
5807 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5809 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5810 standard rather than noral color, in line with other terminals.
5812 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5814 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5817 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5819 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5821 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5823 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5824 inappropriate printf.
5826 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5828 * .bzrignore: Remove grub-core/lib/dtc-grub,
5829 grub-core/Makefile.libfdt.def
5830 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5832 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5834 * include/grub/video.h (grub_video_register): Keep double-linked as
5835 well as single-linked invariants.
5836 Reported by: qwertial.
5838 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5840 * grub-core/commands/nativedisk.c (get_uuid): Handle
5841 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5843 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5845 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5846 maximum of NW, N, NE heights instead of N's height and maximum of
5847 NW, W, SW widths instead of W's width. (So the box will be always
5850 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5852 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5853 Fix misuse of variable count.
5855 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5856 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5857 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5859 New ports to arm-uboot and arm-efi.
5860 Mostly by Leif Lindholm with some additions from
5861 Francesco Lavra and cleanup by Vladimir Serbinenko.
5863 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5865 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5867 Reported by: Leon Drugi.
5869 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5871 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5872 Reported by: Paulo Flabiano Smorigo.
5874 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5876 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5878 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5880 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5882 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5884 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5886 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5888 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5890 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5892 * grub-core/net/bootp.c: Export net_* variables.
5893 * grub-core/net/net.c: Likewise.
5895 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5897 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5899 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5901 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5903 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5905 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5907 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5909 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5911 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5913 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5916 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5918 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5921 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5923 * grub-core/fs/zfs/zfs_lz4.c: New file.
5924 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5926 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5928 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5930 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5932 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5933 (check_pool_label): Likewise.
5934 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5936 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5938 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5940 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5942 * docs/grub.texi (Commands): Document postition parameters
5943 for menuentry command.
5945 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5947 * util/grub-mknetdir.in: Remove stray line from help output.
5949 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5951 Remove early sm712 init as there is no reason for it (the "watchdog"
5952 effect was due to wrong GPIO map).
5954 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5956 * grub-core/commands/pcidump.c: Remove static variables.
5958 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5960 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5962 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5964 * configure.ac: Move delimiter after the infos.
5966 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5970 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5972 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5973 not filling whole 8x16 space.
5975 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5977 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5979 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5981 * configure.ac: Indicate which liblzma is used if any.
5983 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5984 2013-06-21 Craig Sanders <savannah@taz.net.au>
5986 * util/grub-reboot.in: Document submenu usage.
5988 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5990 * .bzrignore: Update with a number of new test-related files.
5992 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5994 * util/grub-script-check.c: Fail on scripts containing no
5995 commands, to guard against corrupted grub-mkconfig setups that
5996 produce no useful output.
5997 * tests/grub_script_no_commands.in: New test.
5998 * Makefile.util.def (grub_script_no_commands): Add.
5999 Reported by Hans Putter. Fixes Debian bug #713886.
6001 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6003 * grub-core/disk/diskfilter.c: Forgot to remove comment
6004 from previous commit.
6006 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6008 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6009 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6011 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6013 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6015 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6017 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6018 rescan diskfilter devices until nothing new is found.
6020 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6022 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6024 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6026 Don't try to detect cbfs on *-emu.
6028 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6030 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6032 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6034 Add support for processed coreboot payload chainloading.
6036 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6038 Enable coreboot information commands even when not loaded as
6039 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6041 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6043 Support for cbfs. Also factor out the part which is common
6044 for all archives to a separate module. This splits tar from cpio
6045 as they are very different but keeps cpio, cpio_be, odc and newc
6046 together since they're very similar.
6048 2013-06-15 David Michael <fedora.dm0@gmail.com>
6050 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6051 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6053 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6055 * tests/grub_script_eval.in: Really add the eval test.
6057 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6059 Move flavour-specific parts out of common cpio.c file and
6060 rename remaining to cpio_common.c
6062 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6064 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6065 off new function grub_script_execute_new_scope. Change callers to use
6066 either of them as appropriate.
6067 * grub-core/commands/eval.c: New command eval.
6068 * docs/grub.texi (Commands): Document it.
6070 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6072 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6073 to fetch values when listing.
6075 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6077 Fix make dist on non-pc.
6079 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6081 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6082 without a device name.
6084 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6086 Remove enable_executable_check as it's not needed anymore.
6087 Reported by: dougray.
6089 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6091 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6092 ambigouos RAID before discovering RAIDs on top of it.
6095 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6097 Fix typo (failback vs fallback).
6099 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6101 * util/grub.d/30_os-prober.in: Add support for probing EFI
6102 System Partition (as of os-prober 1.58).
6104 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6106 * configure.ac: Add yet another path to unifont. For parabola.
6108 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6110 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6111 handling to copy the killed characters to the kill buffer as
6112 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6113 stored as char. Eliminates UCS4 truncation and corruption
6114 observed when killing characters with Ctrl-u and yanking them
6117 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6119 Detach optional parts of gfxterm and integrate in with coreboot init.
6121 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6123 Move blit and fill dispatcher to appropriate files to decrease export
6124 and relocation overhead.
6126 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6128 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6131 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/Makefile.am: Fix compilation problem with some
6136 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6138 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6140 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6142 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6145 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6147 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6150 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6152 * grub-core/partmap/dfly.c: New partition map.
6154 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6156 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6158 Reported by: Francesco Lavra.
6160 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6162 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6163 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6165 * conf/Makefile.common: define dist_grubconf_DATA
6167 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6169 Progressively skip menu elements on small terminals rather
6172 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6174 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6175 to avoid losing last column.
6177 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6179 * po/exclude.pot: Add missing string "%C".
6181 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6183 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6186 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6188 * util/grub-install.in: Gettextize "Not found" message.
6190 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6193 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6195 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6197 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6199 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6201 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6203 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6205 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6207 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6208 attribute since structure is not necessarily aligned.
6210 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6212 * docs/grub.texi (Device syntax): Clarify description of network
6215 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6217 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6218 for vasprintf presence.
6220 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6222 * util/grub-install.in: Handle efibootmgr presence check.
6223 Reported by: Leif Lindholm.
6225 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6227 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6228 new strings to translate.
6230 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6232 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6233 yet another string (pun intended) to translate.
6235 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6237 * po/POTFILES-shell.in: Autogenerate it.
6239 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6241 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6243 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6245 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6248 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6250 * docs/grub.texi (Network): Add description of net_default_interface,
6251 net_default_ip and net_default_mac. Rewrite variables description
6252 to emphasize that they are per-interface.
6254 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6256 New test: cmdline and cat.
6258 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6260 * grub-core/commands/cat.c: Show UTF-8 characters.
6262 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6264 * conf/Makefile.common: Poison float and double on non-emu.
6266 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6268 * configure.ac: Don't disable extended registers on emu.
6270 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6272 * configure.ac: Don't use extended registers on x86_64.
6273 Reported by: Peter Jones.
6275 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6277 * grub-core/term/efi/console.c: Fix compile error.
6279 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6281 Compressed HFS+ support.
6283 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6285 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6288 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6292 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6294 * grub-core/tests/setjmp_test.c: New test.
6296 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6298 New variables 'net_default_*' to determine MAC/IP of default interface.
6300 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6302 * tests/gettext_strings_test.in: A test to check for strings not
6303 marked for translation.
6305 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6307 * autogen.sh: Exclude unused libgcrypt files from translation.
6309 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6311 Simplify few strings.
6313 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6315 Mark few forgotten strings for translation.
6317 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6319 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6322 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6324 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6326 * grub-core/video/readers/tga.c: Likewise.
6328 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6330 * tests/priority_queue_unit_test.cc: New test.
6332 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6334 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6337 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6339 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6340 variable for one time boot menu entry.
6342 2013-05-05 Bean <bean123ch@gmail.com>
6344 * grub-core/commands/testspeed.c: New command testspeed.
6346 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6348 Factor-out human-size printing.
6350 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6352 Agglomerate more mallocs to speed-up gfxterm.
6354 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6356 Speed-up gfxterm by slightly agglomerating mallocs.
6358 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6362 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6364 Speed-up gfxterm by saving intermediate results in index+alpha
6367 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6369 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6372 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6374 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6375 line of timeout as it may contain the rest of long line.
6377 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6379 * grub-core/normal/main.c: Fix freed memory dereference.
6381 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6383 Fix several memory leaks.
6385 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6389 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6391 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6393 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6395 Fix test -a and -o precedence.
6396 Reported by: adrian15.
6398 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6400 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6402 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6404 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6405 and add it as source to functional_test module.
6407 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6411 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6413 New series of tests for gfxterm and gfxmenu.
6415 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6417 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6418 the theme path relative to $prefix/themes.
6420 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6422 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6424 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6426 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6428 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6431 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6433 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6434 grub_gfxmenu_timeout_notifications.
6435 (grub_gfxmenu_view_destroy): Likewise.
6437 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6439 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6441 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6443 Several fixes to ieee1275 and big-endian video.
6445 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6447 Add missing exports on mips.
6449 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6451 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6452 if no unifont is found.
6453 Restore original keyboard.
6455 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6457 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6458 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6460 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6462 First automated video test (running videotest and comparing results)
6464 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6467 instead of 2 to have full RGB/CMY test pattern.
6469 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6473 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6475 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6476 ARCS. All users updated.
6478 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6480 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6482 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6484 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6486 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6488 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6489 Reported by: qwertial.
6491 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6493 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6494 with syntax "XXX deg"/"XXX °".
6496 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6498 Make PCI init in i386-qemu port more robust.
6500 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6502 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6503 cached view is reused.
6504 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6507 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6509 Unify more code in grub-install_header.
6511 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6515 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6517 Enforce disabling of firmware disk drivers when native drivers kick in.
6519 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6521 * grub-core/commands/nativedisk.c: Customize the list of modules on
6522 platform. Don't try to search for disks already using native drivers.
6524 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6526 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6529 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6531 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6532 handling of variables containing backslash.
6534 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6536 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6538 Reported by: qwertial.
6540 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6542 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6544 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6546 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6548 Reported by: qwertial.
6550 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6552 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6554 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6556 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6558 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6560 New command `nativedisk'.
6562 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6565 * grub-core/loader/i386/bsd.c: Likewise.
6567 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6571 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6573 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6574 grub_get_unaligned16 rather than shifts.
6576 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6578 * grub-core/kern/file.c: Use const char * rather than casting to
6581 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/commands/probe.c: Add missing grub_device_close.
6585 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6587 * INSTALL: Document linguas.sh.
6589 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6591 Remove POTFILES.in and regenerate it in autogen.sh.
6593 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6595 Move --directory/--override-directorry to grub-install_header and unify.
6597 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6599 * grub-core/term/morse.c: Macroify dih and dah.
6601 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6603 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6605 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/term/ns8250.c: Systematically probe ports by writing
6608 to SR before using them.
6610 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6612 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6614 (check_sas): Get sas_adress info.
6616 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6618 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6621 2013-04-27 Leon Drugi <eyak>
6623 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6626 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6628 Core compression test.
6630 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6632 Implement grub_machine_get_bootlocation for ARC.
6634 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6636 Improve AHCI detection and command issuing.
6638 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6642 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6644 Make 'make check' work on emu.
6646 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6648 Replace libcurses with our own vt100 handling for the ease of testing
6649 and decreasing prerequisites.
6651 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6653 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6655 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6657 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6658 compile when not needed.
6660 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6662 * tests/pseries_test.in: New test.
6664 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6666 Add test to check that different boot mediums work.
6668 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6670 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6671 ofw limited ISO support.
6673 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6675 * configure.ac: Fix loongson conditional.
6677 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6681 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6683 Add serial on ARC platform.
6685 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6687 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6690 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6692 * tests/partmap_test.in: Add missing double semicolon.
6694 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6696 * util/grub-mkrescue.in: Fix loongson filename.
6698 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6700 * util/grub-mkrescue.in: Move all files that don't have a location
6701 set in stone under /boot/grub. Use ISO hard links rather than copies
6704 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6706 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6709 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6711 Make check work on mips-arc.
6713 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6715 * util/grub-mkrescue.in: Alias sashARCS as sash.
6717 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6719 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6722 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6724 * util/grub-install.in: Fix target fo qemu_mips.
6725 Fix extension on EFI.
6727 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6729 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6730 in front of chosen entry to mark it even if highlighting is lost.
6732 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6734 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6735 gfxpayload=keep if cbfb is active.
6737 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6739 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6741 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6743 Add missing video ids to coreboot and ieee1275 video.
6745 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6747 * util/grub-mkrescue.in: Add mips-arc support.
6749 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6751 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6753 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6755 Move mips-arc link address. Previous link address was chosen
6756 in belief that RAM on SGI platforms grows down while in fact it
6757 grows up from an unusual base.
6759 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6761 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6762 Fix a type which prevented CD-ROM and floppy boot.
6764 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6766 Support coreboot framebuffer.
6768 * grub-core/video/i386/coreboot/cbfb.c: New file.
6770 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6772 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6773 detecting too small regions.
6775 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6777 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6779 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6781 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6783 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6785 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6787 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6788 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6789 * grub-core/loader/powerpc/ieee1275/linux.c
6790 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6792 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6794 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6795 Look for /boot-rom as well as /rom/boot-rom.
6797 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6799 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6800 handling when creating text_layer failed.
6801 * grub-core/video/video.c (grub_video_create_render_target):
6802 Set result to 0 on error.
6803 (grub_video_delete_render_target): Do not dereference NULL.
6805 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6807 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6808 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6809 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6810 (grub_linux_load64): Mask out 2 high bits.
6812 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6814 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6817 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6819 Add support for pseries and other bootinfo machines to grub-mkrescue.
6821 Tested by: Paulo Flabiano Smorigo.
6823 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6825 * util/grub-mkrescue.in: Add GPT for EFI boot.
6827 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6829 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6830 It improves performance in qemu.
6832 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6834 * build-aux/snippet: Add missing gnulib files.
6836 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6838 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6840 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6842 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6844 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6845 2013-04-15 Peter Jones <pjones@redhat.com>
6847 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6849 Based on patch by Peter Jones.
6851 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6853 Fix DMRAID partition handling.
6855 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6857 * tests/grub_cmd_date.in: Skip on sparc64.
6859 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6861 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6862 firmware error messages.
6864 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6866 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6867 source and destination differ.
6869 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6871 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6874 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6876 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6877 match config-util.h to avoid warnings and increase compatibility.
6879 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6880 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6882 Add option to compress files on install/image creation.
6884 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6886 * docs/grub-dev.texi: Rearrange menu to match the section order.
6887 Reported by: Bryan Hundven.
6889 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6891 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6893 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6895 Move GRUB out of system area when using xorriso 1.2.9 or later.
6897 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6899 * tests/grub_cmd_date.in: Add missing exit 1.
6901 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6903 * tests/partmap_test.in: Skip on sparc64.
6905 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6907 Support grub-shell on sparc64.
6909 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6911 Support mkrescue on sparc64.
6913 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6915 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6916 Needed on OpenBIOS due to incomplete device tree.
6918 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6920 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6921 would be otherwise excluded.
6923 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6925 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6926 Inline name defines used only once.
6928 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6930 Fix memory leaks in ofnet.
6931 Reported by: Francesco Lavra.
6933 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6935 * docs/man/grub-glue-efi.h2m: Add missing file.
6937 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6939 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6941 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6943 Better support Apple Intel Macs on CD.
6945 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6947 Replace stpcpy with grub_stpcpy in tools.
6949 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6951 Handle Japanese special keys.
6952 Reported by: Hiroyuki YAMAMORI.
6953 Codes supplied by: Hiroyuki YAMAMORI.
6955 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6957 * util/grub-mkimage.c: Document memdisk implying --prefix.
6959 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6961 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6962 much we can do about it anyway.
6964 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6966 Fix handling of split transfers.
6968 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6970 * grub-core/net/http.c: Fix bad free.
6972 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6974 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6977 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6979 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6981 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6983 * tests/util/grub-shell.in: Fix it on powerpc.
6985 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6987 Turn off QEMU ACPI-way since new releases don't have shutdown port
6990 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6992 * docs/grub.texi: Update coreboot status info.
6994 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6996 * tests/grub_cmd_date.in: New test for datetime.
6998 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7000 * tests/partmap_test.in: Fix missing qemudisk setting.
7002 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7004 Support i386-ieee1275 grub-mkrescue and make check on it.
7006 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7008 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7011 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7013 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7014 GRUB_CMDLINE_XEN_DEFAULT.
7015 Reported by: Marc Warne (GigaTux) <gigatux>
7017 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7021 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7023 Use ACPI shutdown intests as traditional port was removed.
7025 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7027 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7030 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7032 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7033 Fix few warining messages and leaks while on it.
7035 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7037 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7038 links under grub-core/lib/libgcrypt-grub/mpi.
7040 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7042 Fix ia64-efi image generation on big-endian machines. Deduplicate
7043 some code while on it.
7044 Reported by: Leif Lindholm.
7046 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7048 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7051 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7053 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7055 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7057 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7060 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7062 * grub-core/normal/term.c: Few more fixes for menu entry editor
7064 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7066 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7068 * grub-core/normal/term.c: Few more fixes for menu entry editor
7070 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7072 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7074 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7075 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7077 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7079 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7080 instead of hardcoding grub.mo.
7082 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7084 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7086 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7088 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7089 grub-core/disk/geli.c.
7091 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7093 * util/grub-mkfont.c: Prefer enum to #define.
7095 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7097 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7099 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7101 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7103 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7105 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7107 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7109 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7111 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7113 * include/grub/bsdlabel.h: Use enums.
7115 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7117 Move GRUB_CHAR_BIT to types.h.
7119 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7121 * docs/grub.texi: Document more user commands.
7123 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7125 * docs/grub.texi: Document menuentry --id option.
7127 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7129 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7131 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7133 Unify file copying setup across different install scripts. Add
7134 options for performing partial install.
7136 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7137 2013-04-04 Peter Jones <pjones@redhat.com>
7139 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7141 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7143 Use TSC as a possible time source on i386-ieee1275.
7145 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7147 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7150 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7152 * util/grub-setup.c (setup): Handle some corner cases.
7154 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7156 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7158 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7160 * grub-core/commands/verify.c: Save verified file to avoid it being
7161 tampered with after verification was done.
7163 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7166 reported width by one to compensate for curesor algorithm problem.
7168 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7170 Fix screen corruption in menu entry editor and simplify the code
7173 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7175 * util/grub-mount.c (fuse_init): Return error if fuse_main
7178 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7180 * include/grub/elf.h: Add missing ARM relocation codes and fix
7183 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7185 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7187 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7188 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7190 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7191 into account when calculating radius.
7193 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7195 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7197 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7199 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7201 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7203 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7204 missing closing bracket.
7206 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7208 * INSTALL: Mention xorriso requirement.
7210 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7212 * grub-core/commands/verify.c: Fix hash algorithms values for
7213 the first three hashes - they start with 1, not with 0.
7215 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7217 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7218 Try terminating EFI services several times due to quirks in some
7221 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7223 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7224 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7225 BankField extended opcodes.
7226 (get_sleep_type): Add minimal scope handling (just enough to
7227 handle setting the scope to the root path).
7228 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7229 * include/grub/acpi.h: Add enumeration values for Event, Device,
7230 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7232 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7234 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7237 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7239 * grub-core/disk/ahci.c: Give more time for AHCI request.
7241 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7243 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7246 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7248 Replace the region at 0 from coreboot tables to available in BSD
7251 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7253 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7256 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7258 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7261 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7263 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7264 handling of multi-device filesystems.
7266 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7268 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7271 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7273 Add new 'proc' filesystem framework and put luks_script into it.
7275 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7277 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7280 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7282 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7284 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7286 Add ability to generate newc additions on runtime.
7288 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7290 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7293 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7295 * po/POTFILES.in: Regenerate.
7297 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7299 * grub-core/commands/verify.c (hashes): Add several hashes
7302 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7304 Slight improve in USB-related boot-time checkpoints.
7306 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7308 * grub-core/commands/boottime.c: Fix copyright header.
7310 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7312 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7313 coreboot tables content. Support for cbmemc.
7315 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7317 Fix a conflict between ports structures with 2 controllers of
7320 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7322 * include/grub/boottime.h: Add missing file.
7324 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7326 Initialize USB ports in parallel to speed-up boot.
7328 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7330 Fix USB devices not being detected when requested
7331 due to delayed attach.
7333 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7335 Implement boot time analysis framework.
7337 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7339 Remove get_endpoint_descriptor and change all functions needing
7340 descriptor to just receive it as argument rather than endpoint
7343 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7345 Better estimate the maximum USB transfer size.
7347 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7349 Resend a packet if we got the wrong buffer in status.
7351 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7353 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7354 multiplication rather than division.
7356 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7361 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7363 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7364 operations to have intended shifts and not divisions.
7366 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7368 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7369 intended shifts rather than division.
7371 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7373 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7374 computation for some years before epoch. Avode confusing division
7377 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7379 * grub-core/video/i386/pc/vbe.c
7380 (grub_video_vbe_print_adapter_specific_info): Replace division by
7383 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7385 Adjust types in gdb module to have intended unsigned shifts rather than
7388 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7390 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7391 maximum size is 4G - 1 on hfs
7393 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7395 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7397 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7399 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7402 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7404 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7405 causing gcc error with gcc 4.7.1.
7407 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7409 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7410 dereference null pointer. While the code is technically correct, gcc
7411 may eliminate a null check if pointer is already dereferenced.
7413 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7415 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7417 * grub-core/normal/term.c (read_terminal_list): Likewise.
7419 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7421 Lift up core size limits on some platforms. Fix potential memory
7422 corruption with big core on small memory systems. Document remaining
7425 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7427 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7430 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7432 Remove all trampoline support. Add -Wtrampolines when
7433 present. Remove symbols used for trampolines to make
7434 link fail if trampolines are present.
7436 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7438 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7439 append out of its parent.
7441 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7443 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7446 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7448 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7449 all vars to a macro. All users updated.
7451 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7453 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7456 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7458 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7460 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7462 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7464 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7466 Move to more hookless approach in IEEE1275 devices handling.
7468 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7470 * grub-core/kern/term.c (grub_term_normal_color),
7471 (grub_term_highlight_color): Add back lost defaults.
7473 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7475 Make elfload not use hooks. Opt for flags and iterators instead.
7477 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7479 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7480 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7482 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7484 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7486 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7488 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7489 hook pass-through parameter. All users updated and unnested.
7491 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7493 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7496 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7498 * grub-core/fs/hfs.c: Remove nested functions.
7500 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7503 the context through.
7504 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7506 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7508 * util/grub-editenv.c (list_variables): Move print_var out of its
7511 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7513 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7516 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7518 * grub-core/gentrigtables.c: Make tables const.
7520 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7522 Remove nested functions from videoinfo iterators.
7524 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7526 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7527 for 64-bit platforms.
7529 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7532 a FOR_CHILDREN macro.
7534 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7536 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7537 platform from firmware path.
7539 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7541 Enable linux16 on non-BIOS systems for i.a. memtest.
7543 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7545 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7547 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7549 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7550 Fix end of table condition.
7552 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7554 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7557 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7559 * grub-core/fs/jfs.c: Remove nested functions.
7561 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7563 * grub-core/fs/minix.c: Remove nested functions.
7565 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7567 * grub-core/fs/iso9660.c: Remove nested functions.
7569 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7571 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7574 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7576 * util/grub-fstest.c: Remove nested functions.
7578 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7580 * grub-core/loader/machoXX.c: Remove nested functions.
7582 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7584 Remove nested functions from disk and file read hooks.
7586 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7587 (struct grub_disk): Add read_hook_data member.
7588 * include/grub/file.h (struct grub_file): Likewise.
7589 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7594 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7596 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7597 Fix off by one error in enumerating extended partitions.
7599 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7601 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7602 memory leak if device name is not found.
7604 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7606 * grub-core/normal/menu_entry.c (update_screen): remove
7607 unused variable `off' which caused scroll down arrow to be always shown.
7609 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7611 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7612 access to unallocated memory.
7614 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7616 * Makefile.util.def: Add partmap/msdos.c to common library.
7617 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7618 * grub-core/disk/ldm.c: Check for existence of
7619 GRUB_PC_PARTITION_TYPE_LDM.
7621 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7623 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7624 sizes and display sector size.
7626 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7628 Implement new command cmosdump.
7630 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7632 Support Openfirmware disks with non-512B sectors.
7634 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7636 * (grub_ofdisk_get_block_size): New function.
7637 * (grub_ofdisk_prepare): Use the correct block size.
7638 * (grub_ofdisk_read): Likewise.
7639 * (grub_ofdisk_write): Likewise.
7640 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7643 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7645 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7647 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7649 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7652 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7654 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7657 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7659 Implement USBDebug (full USB stack variant).
7661 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7663 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7664 unless they have unexpected values.
7666 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7668 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7671 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7673 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7674 zero-out of port structure.
7676 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7678 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7679 of extended attributes.
7681 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7683 * util/grub-install.in: change misleading comment about
7686 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7688 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7689 when menu highlight color isn't set.
7691 2013-01-27 C. Masloch <pushbx@38.de>
7693 Improve FreeDOS direct loading support compatibility.
7695 * include/grub/i386/relocator.h (grub_relocator16_state):
7697 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7699 (grub_relocator16_boot): Handle %ebp.
7700 * grub-core/lib/i386/relocator16.S: Likewise.
7701 * grub-core/loader/i386/pc/freedos.c:
7702 Load BPB to pass kernel which partition to load from.
7703 Check that kernel file is not too large.
7704 Set register dl to BIOS unit number as well.
7706 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7708 * util/grub-reboot.in (usage): Document the need for
7710 * util/grub-set-default.in (usage): Likewise.
7711 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7713 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7715 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7716 than defining WORDS_BIGENDIAN manually.
7718 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7720 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7723 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7725 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7727 (blit_comb: add_device_width): Likewise.
7729 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7731 Remove nested functions from USB iterators.
7733 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7734 (grub_usb_controller_iterate_hook_t): Likewise.
7735 (grub_usb_iterate): Add hook_data argument.
7736 (grub_usb_controller_iterate): Likewise.
7737 (struct grub_usb_controller_dev.iterate): Likewise.
7739 Update all implementations and callers.
7741 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7743 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7744 margin when not needed.
7746 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7748 Make color variables global instead of it being per-terminal.
7750 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7752 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7755 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7757 Fix powerpc and sparc64 build failures caused by un-nesting memory
7760 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7762 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7763 parameter declarations.
7765 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7767 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7769 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7771 Improve spkmomdem reliability by adding a separator between bytes.
7773 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7775 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7776 an Acer registration utility with several sightings in the wild.
7777 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7779 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7781 Remove nested functions from filesystem directory iterators.
7783 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7784 (struct grub_fs.dir): Add hook_data argument.
7786 Update all implementations and callers.
7788 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7790 * docs/grub.texi (Multi-boot manual config): Fix typo for
7793 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7795 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7796 until after its use in generate_image.
7798 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7800 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7801 initrd size to addr_min, since the initrd will be allocated after
7804 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7806 * conf/Makefile.common: Fix autogen rules to pass definition
7807 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7809 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7811 * include/grub/elf.h: Update ARM definitions based on binutils.
7813 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7815 Split long USB transfers into short ones.
7817 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7819 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7820 is interrupted by ESC.
7822 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7824 * util/grub-script-check.c (main): Uniform the error message.
7826 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7828 Remove nested functions from ELF iterators.
7830 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7832 Remove nested functions from device iterators.
7834 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7835 (grub_arc_iterate_devs): Add hook_data argument.
7836 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7837 (struct grub_ata_dev.iterate): Add hook_data argument.
7838 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7839 (grub_device_iterate): Add hook_data argument.
7840 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7841 (struct grub_disk_dev.iterate): Add hook_data argument.
7842 (grub_disk_dev_iterate): Likewise.
7843 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7845 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7847 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7849 (struct grub_partition_map.iterate): Add hook_data argument.
7850 (grub_partition_iterate): Likewise.
7851 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7852 (struct grub_scsi_dev.iterate): Add hook_data argument.
7856 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7858 Fix typos for "developer" and "development".
7860 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7862 Add license header to spkmodem-recv.c.
7864 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7866 Rewrite spkmodem to use PIT for timing. Double the speed.
7868 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7870 Add new command pcidump.
7872 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7874 New terminal outputs using serial: morse and spkmodem.
7876 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7878 Improve bidi handling in entry editor.
7880 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7882 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7883 argument to prevent name collision.
7885 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7887 Remove nested functions from script reading and parsing.
7889 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7890 getline_data argument, passed to getline.
7891 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7892 getline_data argument, passed to grub_parser_split_cmdline.
7893 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7894 lexerstate->getline_data to lexerstate->getline.
7895 (grub_script_lexer_init): Add getline_data argument, saved in
7896 lexerstate->getline_data.
7897 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7898 argument, passed to grub_script_parse.
7899 * grub-core/script/script.c (grub_script_parse): Add getline_data
7900 argument, passed to grub_script_lexer_init.
7901 * include/grub/parser.h (grub_parser_split_cmdline): Update
7902 prototype. Update all callers to pass appropriate getline data.
7903 (struct grub_parser.parse_line): Likewise.
7904 (grub_rescue_parse_line): Likewise.
7905 * include/grub/reader.h (grub_reader_getline_t): Add void *
7907 * include/grub/script_sh.h (struct grub_lexer_param): Add
7908 getline_data member.
7909 (grub_script_parse): Update prototype. Update all callers to pass
7910 appropriate getline data.
7911 (grub_script_lexer_init): Likewise.
7912 (grub_normal_parse_line): Likewise.
7914 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7916 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7917 static instead of nested. Rename to ...
7918 (grub_parser_execute_getline): ... this.
7919 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7921 * grub-core/normal/main.c (read_config_file: getline): Make static
7922 instead of nested. Rename to ...
7923 (read_config_file_getline): ... this.
7924 (grub_normal_read_line): Add unused data argument.
7925 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7926 getline): Make static instead of nested. Rename to ...
7927 (grub_script_execute_sourcecode_getline): ... this.
7928 * util/grub-script-check.c (main: get_config_line): Make static
7931 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7933 Remove nested functions from memory map iterators.
7935 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7936 argument, passed to hook.
7937 * grub-core/kern/i386/coreboot/mmap.c
7938 (grub_linuxbios_table_iterate): Likewise.
7939 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7941 (grub_machine_mmap_iterate): Add hook_data argument.
7942 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7943 Add hook_data argument, passed to hook.
7944 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7946 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7948 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7950 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7952 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7954 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7956 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7957 (grub_machine_mmap_iterate): Likewise.
7958 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7959 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7961 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7962 Remove NESTED_FUNC_ATTR from here and from all users.
7963 (grub_mmap_iterate): Update prototype.
7964 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7965 pass appropriate hook data.
7966 (grub_machine_mmap_iterate): Likewise.
7968 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7969 static instead of nested.
7970 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7972 (lsmmap_hook): ... this.
7973 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7975 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7976 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7977 heap_init): Likewise.
7978 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7980 (mmap_iterate_hook): ... this.
7981 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7983 * grub-core/lib/ieee1275/relocator.c
7984 (grub_relocator_firmware_get_max_events: count): Likewise.
7985 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7987 (grub_relocator_firmware_fill_events_iter): ... this.
7988 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7989 hook): Likewise. Rename to ...
7990 (grub_relocator_alloc_chunk_align_iter): ... this.
7991 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7993 (generate_e820_mmap_iter): ... this.
7994 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7996 (count_hook): ... this.
7997 (grub_linux_boot: hook): Likewise. Rename to ...
7998 (grub_linux_boot_mmap_find): ... this.
7999 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8000 (grub_linux_boot_mmap_fill): ... this.
8001 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8002 hook): Likewise. Rename to ...
8003 (grub_fill_multiboot_mmap_iter): ... this.
8004 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8005 hook): Likewise. Rename to ...
8006 (count_hook): ... this.
8007 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8008 hook): Likewise. Rename to ...
8009 (grub_fill_multiboot_mmap_iter): ... this.
8010 * grub-core/loader/powerpc/ieee1275/linux.c
8011 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8012 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8013 Likewise. Rename to ...
8014 (alloc_phys_choose): ... this.
8015 (determine_phys_base: get_physbase): Likewise.
8016 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8017 find_hook): Likewise.
8018 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8019 (malloc_hook: count_hook): Likewise.
8020 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8021 Likewise. Rename to ...
8022 (lower_hook): ... this.
8023 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8024 (upper_hook): ... this.
8025 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8026 (post64_hook): ... this.
8027 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8028 Likewise. Rename to ...
8029 (lower_hook): ... this.
8030 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8031 (upper_hook): ... this.
8032 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8033 (grub_mmap_iterate: fill_hook): Likewise.
8034 (fill_mask): Pass addr and mask within a single struct.
8035 (grub_cmd_badram: hook): Make static instead of nested. Rename
8037 (badram_iter): ... this.
8038 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8039 (cutmem_iter): ... this.
8041 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8043 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8044 delimit path in strings using quotes.
8045 * util/getroot.c (grub_guess_root_devices): Likewise.
8046 (grub_make_system_path_relative_to_its_root): Likewise.
8047 * util/grub-probe.c (probe): Likewise.
8048 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8049 (xrealpath): Likewise.
8051 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8053 Fix compilation with older compilers.
8055 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8056 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8058 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8059 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8060 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8062 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8063 * include/grub/crypto.h: Add type defines.
8064 * util/import_gcrypth.sed: Remove duplicate type defines.
8066 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8068 New command list_trusted.
8070 * grub-core/commands/verify.c (grub_cmd_list): New function.
8072 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8074 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8077 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8079 Remove nested functions from PCI iterators.
8081 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8082 passed to hook. Update all callers to pass appropriate hook data.
8083 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8084 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8085 Remove NESTED_FUNC_ATTR from here and from all users.
8086 (grub_pci_iterate): Update prototype.
8087 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8088 instead of nested. Rename to ...
8089 (grub_cs5536_find_iter): ... this.
8090 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8091 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8093 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8095 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8097 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8099 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8100 * grub-core/video/radeon_fuloong2e.c
8101 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8102 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8103 find_card): Likewise.
8104 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8107 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8109 * grub-core/commands/verify.c: Mark messages for translating.
8111 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8113 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8116 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8118 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8121 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8123 * autogen.sh: Do not try to delete nonexistant files.
8124 * util/import_gcrypth.sed: Add some missing header removals.
8126 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8128 Clean up dangling references to grub-setup.
8129 Fixes Ubuntu bug #1082045.
8131 * docs/grub.texi (Images): Refer generally to grub-install rather
8132 than directly to grub-setup.
8133 (Installing GRUB using grub-install): Remove direct reference to
8135 (Device map) Likewise.
8136 (Invoking grub-install): Likewise.
8137 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8138 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8139 * util/grub-install.in (usage): Likewise.
8141 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8142 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8144 * configure.ac: Remove grub_setup output variable.
8146 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8148 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8149 grub-setup to grub-sparc64-setup.
8151 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8153 Import gcrypt public-key cryptography and implement signature checking.
8155 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8157 * grub-core/fs/ntfs.c: Ue more appropriate types.
8158 * grub-core/fs/ntfscomp.c: Likewise.
8159 * include/grub/ntfs.h: Likewise.
8161 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8163 Support Apple FAT binaries on non-Apple platforms.
8165 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8166 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8168 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8171 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8173 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8176 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8178 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8179 explicitly zeroing elements.
8180 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8181 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8182 of elements in a structure already allocated using grub_zalloc.
8183 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8185 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8187 * docs/grub.texi (grub_cpu): New subsection.
8188 (grub_platform): Likewise.
8190 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8192 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8194 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8196 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8199 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8201 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8202 * grub-core/fs/ntfscomp.c: Likewise.
8203 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8204 (grub_ntfs_comp): Likewise.
8206 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8208 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8210 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8211 of groups_per_block. All users updated.
8213 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8215 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8216 grub_error properly.
8217 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8218 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8220 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8222 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8223 always in /boot/zfs.
8224 Reported by: Yuta Satoh.
8226 2013-01-03 Yuta Satoh <nigoro>
8228 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8231 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8233 * configure.ac: Extend -Wno-trampolines to host.
8235 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8237 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8240 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8242 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8243 (Invoking grub-script-check): Likewise.
8245 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8247 * docs/grub.texi (Invoking grub-mount): New section.
8248 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8250 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8252 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8253 test failures, so that a failing unit test correctly causes 'make
8256 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8258 Fix failing printf test.
8260 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8261 '$' in the correct order when collecting type information.
8263 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8265 * docs/grub.texi (configfile): Explain environment variable
8267 (source): New section.
8268 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8270 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8272 Remove several trivially-unnecessary uses of nested functions.
8274 * grub-core/commands/i386/pc/sendkey.c
8275 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8277 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8279 (legacy_file_getline): ... this.
8280 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8282 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8283 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8285 (probe_dummy_iter): ... this.
8286 * grub-core/kern/i386/coreboot/mmap.c
8287 (grub_linuxbios_table_iterate: check_signature): Likewise.
8288 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8289 check_varstate): Likewise. Mark inline.
8290 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8291 an additional parameter.
8292 (find_long: fnd_long): Likewise. Pass two additional parameters.
8293 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8294 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8295 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8296 Likewise. Rename to ...
8297 (grub_cmos_find_port_iter): ... this.
8298 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8300 (find_rtc_iter): ... this.
8302 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8303 function directly into the function body, since it is only called
8306 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8308 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8309 __attribute__ ((unused)).
8310 * grub-core/video/bochs.c (find_card): Likewise.
8311 * grub-core/video/cirrus.c (find_card): Likewise.
8312 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8313 * grub-core/video/sis315pro.c (find_card): Likewise.
8314 * grub-core/video/sm712.c (find_card): Likewise.
8316 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8318 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8319 Fixes Savannah bug #37821.
8321 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8323 Apply program name transformations at build-time rather than at
8324 run-time. Fixes Debian bug #696465.
8326 * acinclude.m4 (grub_TRANSFORM): New macro.
8327 * configure.ac: Create output variables with transformed names for
8329 * util/bash-completion.d/grub-completion.bash.in: Use
8330 pre-transformed variables for program names.
8331 * util/grub-install.in: Likewise.
8332 * util/grub-kbdcomp.in: Likewise.
8333 * util/grub-mkconfig.in: Likewise.
8334 * util/grub-mkconfig_lib.in: Likewise.
8335 * util/grub-mknetdir.in: Likewise.
8336 * util/grub-mkrescue.in: Likewise.
8337 * util/grub-mkstandalone.in: Likewise.
8338 * util/grub-reboot.in: Likewise.
8339 * util/grub-set-default.in: Likewise.
8340 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8341 * tests/util/grub-shell-tester.in: Remove unused assignment.
8342 * tests/util/grub-shell.in: Likewise.
8343 * util/grub.d/00_header.in: Likewise.
8345 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8347 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8349 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8351 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8353 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8355 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8356 Reported by: Eriks Latosheks <foresterlv>.
8358 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8360 * docs/grub.texi (Network): Update instructions on generating netboot
8363 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8365 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8366 around device name if necessarry.
8368 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8370 * util/grub-install.in: Follow the symbolic link parameter added
8371 to the file command.
8373 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8375 * util/grub-install.in: Remove stale TODO.
8377 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8379 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8380 dynamic allocation for the bootpath buffer.
8382 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8384 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8387 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8389 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8390 argument rather than font name. All users updated.
8391 (grub_gfxterm_set_window): Likewise.
8393 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8395 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8398 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8400 * util/getroot.c (convert_system_partition_to_system_disk): Support
8403 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8406 infinite loop on corrupted FS.
8408 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8410 Fix big-endian mtime.
8412 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8413 together sec and usec.
8414 (grub_ufs_dir): Use correct byteswapping for UFS time.
8416 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8418 Support big-endian UFS1.
8420 * Makefile.util.def (libgrubmods): Add ufs_be.c
8421 * grub-core/Makefile.core.def (ufs1_be): New module.
8422 * grub-core/fs/ufs_be.c: New file.
8423 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8426 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8428 * include/grub/types.h: Fix functionality unaffecting typo in
8429 GRUB_TARGET_WORDSIZE conditional macro.
8431 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8433 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8435 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8437 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8438 that /netbsd appears first (when it exists).
8440 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8442 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8443 Fixes Savannah bug #37558.
8445 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8447 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8448 description of extract_entries_configfile.
8450 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8452 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8454 (grub_cmd_linux): Likewise.
8455 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8456 preferred_lifetime. Update all users.
8458 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8460 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8461 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8463 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8465 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8466 errors from grub-probe to /dev/null, not stdout.
8468 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8470 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8473 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8475 * util/grub-install.in: Make the error message if $source_dir
8476 doesn't exist more useful.
8478 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8480 Fix grub-emu build on FreeBSD.
8482 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8483 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8485 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8486 implementation is currently Linux-specific.
8487 * util/getroot.c (exec_pipe): Define only on Linux or when either
8488 libzfs or libnvpair is unavailable.
8489 (find_root_devices_from_poolname): Remove unused path variable.
8491 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8493 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8494 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8495 should fit before end == 63.
8497 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8499 * util/grub-setup.c (write_rootdev): Remove unused core_img
8500 parameter. Update all callers.
8501 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8502 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8505 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8507 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8508 (grub_add_tab): New function.
8509 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8510 * util/grub.d/10_illumos.in: Likewise.
8511 * util/grub.d/10_kfreebsd.in: Likewise.
8512 * util/grub.d/10_linux.in: Likewise.
8513 * util/grub.d/10_netbsd.in: Likewise.
8514 * util/grub.d/10_windows.in: Likewise.
8515 * util/grub.d/10_xnu.in: Likewise.
8516 * util/grub.d/20_linux_xen.in: Likewise.
8517 * util/grub.d/30_os-prober.in: Likewise.
8519 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8521 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8522 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8523 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8524 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8525 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8527 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8528 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8530 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8532 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8534 Reported by: BURETTE, Bernard.
8536 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8538 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8541 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8543 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8544 IEEE1275 machines. Fixes powerpc-emu compilation.
8545 * include/grub/terminfo.h: Likewise.
8547 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8549 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8551 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8553 (efiemu_set_variable): Make vendor_guid a const pointer.
8555 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8557 Don't require grub-mkconfig_lib to generate manpages for programs.
8559 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8560 dependencies, don't add grub-mkconfig_lib.
8561 (program): Pass empty adddeps.
8562 (script): Pass grub-mkconfig_lib as adddeps.
8564 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8566 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8567 * util/getroot.c (grub_find_device): Likewise.
8568 (get_mdadm_uuid): Likewise.
8569 (grub_util_is_imsm): Likewise.
8570 (grub_util_pull_device): Likewise.
8571 * util/grub-probe.c (probe): Likewise.
8573 2012-09-10 Benoit Gschwind <gschwind>
8575 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8576 (devs): Add devpath_8.
8578 2012-09-08 Peter Jones <pjones@redhat.com>
8580 * grub-core/Makefile.core.def (efifwsetup): New module.
8581 * grub-core/commands/efi/efifwsetup.c: New file.
8582 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8583 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8585 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8587 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8589 * configure.ac: Add SuSe path.
8591 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8595 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8597 * util/import_gcry.py: Sort cipher_files, to make build system
8598 generation more deterministic.
8600 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8602 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8603 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8604 (grub_set_datetime): Likewise.
8606 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8611 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8613 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8615 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8617 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8619 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8621 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8622 required for checkouts from bzr, but it may be useful for users or
8623 distributors wishing to update translations against a tarball
8624 distribution, and it can be helpful for the tarball to be a superset
8627 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8629 * Makefile.am (EXTRA_DIST): Add
8630 grub-core/tests/boot/linux.init-mips.S,
8631 grub-core/tests/boot/linux.init-ppc.S, and
8632 grub-core/tests/boot/linux-ppc.cfg.
8634 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8636 * grub-core/mmap/mips/loongson: Remove empty directory.
8638 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8640 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8643 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8645 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8648 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8650 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8652 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8654 * po/POTFILES.in: Regenerated.
8656 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8658 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8659 (NetBSD): New subsection.
8661 2012-07-22 Ales Nesrsta <starous@volny.cz>
8663 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8664 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8666 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8668 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8669 * util/grub.d/10_hurd.in: Add missing quoting.
8670 * util/grub.d/10_illumos.in: Likewise.
8671 * util/grub.d/10_kfreebsd.in: Likewise.
8672 * util/grub.d/10_linux.in: Likewise.
8673 * util/grub.d/20_linux_xen.in: Likewise.
8675 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8677 New command `lsefi'.
8679 * grub-core/Makefile.core.def (lsefi): New module.
8680 * grub-core/commands/efi/lsefi.c: New file.
8681 * include/grub/efi/api.h: Add more GUIDs.
8683 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8685 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8686 (grub_bsd_elf32_hook): Likewise.
8687 (grub_bsd_elf64_size_hook): Likewise.
8688 (grub_bsd_elf64_hook): Likewise.
8689 (grub_bsd_load_elf): Likewise.
8691 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8693 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8694 if hash function is unavailable.
8695 (dec_stream_header): Likewise.
8697 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8702 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8704 Fix coreboot compilation.
8706 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8707 (grub_vga_text_init_real): ... this.
8708 (grub_vga_text_fini): Rename to ...
8709 (grub_vga_text_fini_real): ... this.
8711 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8713 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8715 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8717 * grub-core/lib/legacy_parse.c: Support clear and testload.
8719 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8721 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8723 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8725 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8727 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8729 * grub-core/net/tftp.c (ack): Fix endianness problem.
8730 (tftp_receive): Likewise.
8731 Reported by: Michael Davidsaver.
8733 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8735 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8737 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8739 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8740 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8741 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8743 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8745 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8747 Reported by: Stuart Hayes.
8749 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8751 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8753 * grub-core/Makefile.core.def (mda_text): New module.
8754 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8755 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8756 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8757 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8759 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8760 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8761 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8763 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8765 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8767 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8769 * grub-core/term/i386/vga_common.c: Removed.
8770 * include/grub/i386/vga_common.h: Likewise.
8771 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8772 (grub_vga_cr_bw_read): Likewise.
8773 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8774 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8775 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8776 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8777 grub_vga_cr_read/grub_vga_cr_write.
8778 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8780 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8782 * configure.ac: Bump version to 2.00.
8783 * grub-core/normal/main.c (features): Add feature_200_final.
8785 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8786 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8788 * NEWS: Fix unclarity and language mistakes.
8790 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8792 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8793 additional size to 3 pages.
8794 Reported by: Stuart Hayes.
8796 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8798 * NEWS: Add 2.00 entry.
8800 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8802 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8803 put explicit "/" for empty path.
8804 (wildcard_expand): Improve dprintf.
8806 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8808 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8809 it's equal to currnode. This can happen with "" symlink.
8811 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8813 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8814 echo shell command by printf command.
8816 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8818 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8819 the value returned by firmware is the maximal position, not diumension.
8820 (grub_terminfo_output_state): Use a more sane fallback.
8822 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8824 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8826 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8828 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8829 frequency to 150 MHz.
8831 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8835 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8837 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8839 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8841 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8843 Handle slash in HFS label.
8845 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8846 (grub_hfs_dir): Tanslate slash.
8847 (grub_hfs_label): Don't translate slash.
8849 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8851 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8852 network protocol listing since it introduces problematic dependency on
8855 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8857 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8859 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8861 Init video early on yeeloong to avoid being rebooted by watchdog.
8863 * grub-core/Makefile.am (gensm712): New target.
8864 (sm712_start.S): Likewise.
8865 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8866 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8867 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8869 * include/grub/vga.h: Move registry definitions to...
8870 * include/grub/vgaregs.h: ... here.
8872 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8874 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8877 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8879 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8880 platforms with firmware disk drivers in the core.
8882 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8884 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8885 informative verbose message.
8886 (read_lv): Handle 64-bit segment size.
8888 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8890 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8892 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8894 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8895 character but still remove trainling spaces.
8896 (grub_fat_label): Ignore archive flag.
8898 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8900 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8901 cast between linux_kernel_header and linux_kernel_params.
8903 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8905 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8907 (grub_raid6_recover_func_t): Likewise.
8908 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8909 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8911 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8913 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8915 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8919 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8920 [__NetBSD__]: Add explicit cast before bitshift.
8922 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8924 * configure.ac: Bump to 2.00~rc1.
8926 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8928 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8931 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8932 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8934 * docs/grub.texi: Fix search syntax.
8935 (Multi-boot manual config): Put msdos rather than GPT example.
8936 Grammar corrections.
8938 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8940 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8942 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8944 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8946 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8948 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8949 message on double free. Put the value of magic in case of mismatch.
8951 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8953 Speed-up video on yeeloong.
8955 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8957 (grub_video_sm712_video_fini): Unmap cached_ptr.
8958 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8959 (grub_video_sm712_set_active_render_target): Removed.
8960 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8961 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8964 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8966 Avoid flushing the same line multiple times on loongson.
8968 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8969 Step in 32 bytes and not 1 byte.
8970 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8973 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8975 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8978 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8980 Implement flow control for http.
8982 * grub-core/net/http.c (parse_line): Handle response 206.
8983 (http_receive): Stall if too many packets are in the queue.
8984 (http_establish): Fix range header.
8985 (http_seek): Fix double free.
8986 (http_close): Likewise.
8987 (http_packets_pulled): New function.
8988 (grub_http_protocol): Set http_seek
8989 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8990 (ack_real): Set window depending on i_stall.
8991 (grub_net_send_tcp_packet): Likewise.
8992 (grub_net_tcp_stall): New function.
8993 (grub_net_tcp_unstall): Likewise.
8994 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8995 (grub_net_tcp_unstall): Likewise.
8997 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8999 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9001 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9005 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9007 * tests/util/grub-shell.in: Fix a typo.
9009 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9011 Implement flow control for tftp.
9013 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9014 packets but stop only if stop condition is satisfied.
9015 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9016 `stall' instead of `eof' as stop condition.
9017 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9018 (http_err): Likewise.
9019 * grub-core/net/tftp.c (ack): Replace the first argument with data
9021 (tftp_receive): Stall if too many packets are in wait queue.
9022 (tftp_packets_pulled): New function.
9023 (grub_tftp_protocol): Set packets_pulled.
9024 * include/grub/net.h (grub_net_packets): New field count.
9025 (grub_net_put_packet): Increment count.
9026 (grub_net_remove_packet): Likewise.
9027 (grub_net_app_protocol): New field `packets_pulled'.
9028 (grub_net): New field `stall'.
9030 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9032 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9033 sync part to handle them.
9035 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9037 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9038 * grub-core/net/drivers/ieee1275/ofnet.c
9039 (grub_ieee1275_net_config_real): Likewise.
9041 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9043 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9044 the direct route for server/gateway.
9046 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9048 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9049 IP address to server name since we may not hame the DNS.
9051 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9053 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9054 freeing random buffer on failure.
9055 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9057 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9059 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9061 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9063 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9065 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9066 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9067 Handle malloc error correctly.
9069 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9071 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9074 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9079 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9082 none is explicitly specified.
9084 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9086 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9089 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9091 Respect netmask from bootp/dhcp.
9093 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9094 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9095 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9097 (grub_net_add_ipv4_local): ... this.
9098 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9099 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9100 (grub_net_add_ipv4_local): New proto.
9102 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9104 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9105 determining EFI memory map size.
9107 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9109 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9111 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9113 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9114 when looking for partition separator.
9116 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9118 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9121 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9123 Restructure FAT driver to avoid hook in label reading as it hits a
9126 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9127 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9128 (grub_fat_iterate_dir): Split into ...
9129 (grub_fat_iterate_init): ... this, ...
9130 (grub_fat_iterate_fini): ... this, ...
9131 (grub_fat_iterate_dir_next): ... and this. All users updated.
9133 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9135 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9136 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9137 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9138 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9139 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9140 New fields last_key and last_key_time.
9141 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9142 extended key-esc into extended key-extended key.
9144 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9146 Avoid unnecessary memcpy of whole video buffer.
9148 * grub-core/video/fb/video_fb.c (dirty): New struct.
9149 (framebuffer): Add members current_dirty and previous_dirty.
9150 (dirty): New function.
9151 (grub_video_fb_fill_rect): Update dirty.
9152 (common_blitter): Likewise.
9153 (grub_video_fb_scroll): Likewise.
9154 (doublebuf_blit_update_screen): Copy only dirty part.
9155 (doublebuf_pageflipping_update_screen): Likewise.
9156 (grub_video_fb_doublebuf_blit_init): Init dirty.
9157 (doublebuf_pageflipping_init): Likewise.
9158 (grub_video_fb_setup): Likewise.
9160 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9162 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9165 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9167 Fix wildcard regexp dot and other special characters handling.
9168 Reported by: Robert Mabee.
9170 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9171 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9172 (split_path): Trigger expansion on '?'.
9173 (unescape): New function.
9174 (wildcard_expand): Unescape parts copied without globbing.
9175 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9176 (grub_script_arglist_to_argv): Don't unescape expansions.
9178 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9180 * include/grub/net.h (grub_net_card): New member txbufsize.
9181 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9182 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9183 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9184 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9186 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9187 compatible property to check for macs. Set
9188 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9189 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9190 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9191 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9192 (send_card_buffer): Use txbuf.
9193 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9194 nested function out of the parent while on it.
9196 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9198 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9200 (grub_ieee1275_net_config_real): Fix config pointer.
9202 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9204 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9205 filename parsing to non-block devices.
9207 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9209 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9211 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9213 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9216 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9218 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9219 UUID search command even if hints probing failed.
9221 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9223 * po/POTFILES.in: Regenerated.
9225 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9227 Speed-up video on fuloong.
9229 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9231 (grub_pci_device_unmap_range): Handle non-cached address.
9232 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9234 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9235 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9236 (grub_video_sis315pro_set_active_render_target): Removed.
9237 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9238 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9239 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9241 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9244 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9246 * docs/grub.texi (Multi-boot manual config): New section.
9248 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9250 Avoid slow read-back from VRAM.
9252 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9254 * grub-core/video/fb/video_fb.c
9255 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9256 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9257 (front_target): Remove front_target. Add pages.
9258 (grub_video_fb_init): Skip setting front_pages.
9259 (grub_video_fb_fini): Likewise.
9260 (doublebuf_blit_update_screen): Use pages.
9261 (grub_video_fb_doublebuf_blit_init): Likewise.
9262 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9263 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9264 (grub_video_fb_setup): Prefer doublebuffing.
9266 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9268 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9271 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9275 * tests/util/grub-shell.in: Handle loongson.
9276 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9278 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9279 Reboot instead of shutdown if REBOOT is defined.
9281 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9283 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9284 sized ports since unlike on real hardware qemu supports only 32-bit
9287 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9289 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9290 * util/grub-mkrescue.in: Handle loongson.
9292 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9294 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9295 Set is_part appropriately.
9296 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9297 names. Canonicalize partition without full disk.
9299 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9301 Revert usb-quiesce since it's wrong.
9303 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9304 (grub_ofdisk_init): Don't do quiesce.
9306 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9308 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9309 PowerMac workaround to Xserves as well.
9310 Information supplied by: Benjamin Herrenschmidt.
9312 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9314 Don't assume that beginning address is also the entry point on ppc.
9316 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9317 (grub_linux_boot): Use linux_entry.
9318 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9319 (grub_linux_load64): Likewise.
9321 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9323 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9325 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9327 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9328 needlessly lose the console.
9330 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9332 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9335 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9337 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9338 than current grub_get_rtc() not implemented when booted with
9339 coreboot without TSC.
9341 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9342 Add machine/time.h to kernel headers on loongson.
9343 * grub-core/Makefile.core.def (kernel): Remove
9344 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9345 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9346 (grub_get_rtc): Likewise.
9347 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9348 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9349 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9350 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9351 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9352 rather than installing known non-working time source.
9353 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9354 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9355 * include/grub/time.h: Don't include machine/time.h.
9356 * include/grub/efi/time.h: Removed.
9357 * include/grub/i386/efi/time.h: Likewise.
9358 * include/grub/i386/ieee1275/time.h: Likewise.
9359 * include/grub/powerpc/ieee1275/time.h: Likewise.
9360 * include/grub/sparc64/ieee1275/time.h: Likewise.
9361 * include/grub/x86_64/efi/time.h: Likewise.
9363 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9365 Remove dot on i and j when combining with above diacritics.
9367 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9369 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9370 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9371 with dotless variants when any combining above is present.
9373 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9375 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9376 text and not binary.
9378 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9380 Stop polling as soon as we have the packet we were waiting for.
9382 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9384 * grub-core/net/arp.c (have_pending): New var.
9385 (pending_req): Likewise.
9386 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9388 (grub_net_arp_receive): Set have_pending.
9389 * grub-core/net/dns.c (recv_data): New field stop.
9390 (recv_hook): Set stop.
9391 (grub_net_dns_lookup): Init stop and use as stop condition.
9392 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9394 * grub-core/net/net.c (grub_net_poll_cards): New argument
9395 stop_condition. Stop when it goes true.
9396 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9398 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9400 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9402 Keep TX and RX buffers on EFI rather than always allocate new ones.
9404 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9405 card. All users updated.
9406 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9407 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9408 (get_card_packet): Likewise.
9409 (grub_efinet_findcards): Init new fields.
9411 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9413 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9414 compilation error on sparc64.
9416 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9418 Use ITC on IA64 rather than broken routine based on daytime.
9420 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9422 (grub_get_rtc) [__ia64__]: Likewise.
9423 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9424 (get_itc): New function.
9425 (grub_rtc_get_time_ms): Likewise.
9426 (grub_machine_init): Calibrate ITC.
9427 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9428 Keep only on non-ia64. Don't export since it's broken and used only
9429 if TSC is unavailable.
9431 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9433 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9435 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9436 Skip if parent is unused.
9438 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9440 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9442 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9444 Fix wildcard escaping.
9446 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9447 * grub-core/script/execute.c (wildcard_escape): .. to here.
9449 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9450 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9452 * grub-core/script/execute.c (gettext_append): Always escape.
9453 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9454 * grub-core/script/yylex.l: Don't cut away the escaping.
9455 * tests/grub_script_echo1.in: Add tests with wildcard.
9457 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9459 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9460 (ftdi_hw_configure): Likewise.
9461 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9463 (real_config): Handle 1.5 stop bits.
9464 (pl2303_hw_configure): Likewise.
9466 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9468 * Makefile.am: Add ppc linux bootcheck.
9469 * grub-core/tests/boot/linux-ppc.cfg: New file.
9470 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9472 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9474 * tests/grub_script_expansion.in: Skip network protocols.
9476 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9478 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9480 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9482 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9486 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9488 ESCC serial driver for conducting sautomated tests in qemu.
9489 Not tested on real hardware.
9491 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9492 * grub-core/term/ieee1275/escc.c: New file.
9493 * grub-core/Makefile.core.def (escc): New module.
9495 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9497 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9499 (serial_hw_fetch): Don't read invalid handle.
9500 (serial_hw_put): Don't write into invalid handle.
9502 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9504 Add a 1.5 stop bits value.
9506 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9507 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9508 GRUB_SERIAL_STOP_BITS_1_5.
9510 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9512 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9513 value rather than let it uninited.
9515 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9517 * grub-core/commands/wildcard.c (+check_file): New function.
9518 (wildcard_expand): Don't expand to non-existing files, expand with
9519 suffix and not attempt to expand if not needed.
9521 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9523 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9524 out of partitions containing other partitions.
9526 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9528 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9529 on some qemu versions with GRUB.
9531 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9533 (grub_openbsd_bootarg_pcibios): New struct.
9534 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9537 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9539 * tests/util/grub-shell.in: Trim firmware output on EFI.
9541 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9543 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9544 and coreboot since it's already in kernel.
9546 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9548 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9549 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9550 to here. New return value start. All users updated.
9551 Recursively scan linear mappings.
9552 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9554 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9555 Use grub_util_get_dm_node_linear_info.
9556 * util/getroot.c (convert_system_partition_to_system_disk): Use
9557 grub_util_info rather than grub_dprintf.
9558 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9560 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9562 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9564 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9565 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9567 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9569 * include/grub/types.h (grub_set_unaligned64): New function.
9570 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9573 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9575 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9576 (grub_ofdisk_fini): Quiesce USB devices.
9578 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9580 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9583 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9585 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9587 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9589 * grub-core/disk/pata.c (grub_pata_pio_read)
9590 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9591 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9593 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9595 Extend automated tests to qemu-mips.
9597 * Makefile.am: reorganise tests and enable qemu-mips.
9598 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9599 * grub-core/tests/boot/linux.init-mips.S: New file.
9600 * tests/partmap_test.in: Handle ata0 disks.
9601 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9604 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9606 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9608 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9611 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9613 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9614 (grub_halt): Likewise.
9615 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9617 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9619 * grub-core/term/serial.c (grub_serial_register)
9620 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9621 the behaviour in line with x86 platforms.
9623 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9625 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9626 (grub_ata_strncpy): Likewise.
9627 (grub_ata_identify): Add missing byteswaps.
9629 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9631 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9633 (screen_read_char): Likewise.
9634 (grub_vga_text_cls): Likewise.
9636 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9638 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9640 (make_file_path): Likewise.
9642 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9644 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9646 Tested by: Paulo Flabiano Smorigo.
9647 Crucial information about API supplied by: Coleen <Last name unknown>.
9648 Reviewed by: Coleen <Last name unknown>.
9650 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9652 * util/grub-mkimage.c: Disable -Wcast-align.
9654 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9659 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9661 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9663 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9665 * util/grub-probe.c (escape_of_path): Fix double free.
9667 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9669 * grub-core/commands/videoinfo.c (hook): Show pitch.
9671 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9673 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9675 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9677 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9678 (probe): Add ieee1275 to OFW devices.
9680 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9682 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9684 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9686 Handle IBM OFW path.
9688 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9690 (of_path_of_scsi): Handle vdevice.
9692 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9694 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9695 Allocate in multiples of 16 to avoid adding a few bytes free region the
9698 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9700 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9701 Allocate in multiples of 16 to avoid adding a few bytes free region the
9703 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9705 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9707 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9709 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9710 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9712 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9714 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9716 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9718 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9719 resulted in \\ at the end of the line.
9721 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9723 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9724 (grub_parser_cmdline_state): Likewise.
9725 (grub_parser_split_cmdline): Likewise.
9727 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9729 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9730 /dev/root and /dev/dm-*.
9732 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9734 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9735 fix partially stale display.
9737 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9739 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9742 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9744 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9745 Fix MBR remapping workaround.
9746 (grub_util_biosdisk_read) [__linux__]: Likewise.
9748 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9750 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9752 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9754 * configure.ac: Bump to beta6.
9756 2012-05-31 Christer Weinigel <christer@weinigel.se>
9758 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9760 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9762 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9763 (grub_cmd_linux): Likewise.
9765 2012-05-31 Christer Weinigel <christer@weinigel.se>
9769 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9770 (GRUB_EHCI_MULT_TWO): Likewise.
9771 (GRUB_EHCI_MULT_THREE): Likewise.
9772 (GRUB_EHCI_CMASK_MASK): New enum value.
9773 (GRUB_EHCI_SMASK_MASK): Likewise.
9774 (GRUB_EHCI_CMASK_OFF): Likewise.
9775 (GRUB_EHCI_SMASK_OFF): Likewise.
9776 (grub_ehci_pci_iter): Enable periodic schedule.
9777 (grub_ehci_parse_notrun): Likewise.
9778 (grub_ehci_restore_hw): Likewise.
9779 (grub_ehci_setup_qh): Set flags for low speed transfers.
9780 (grub_ehci_find_qh): Use periodic list for low speed.
9781 (grub_ehci_setup_transfer): Check periodic queue as well.
9782 (grub_ehci_check_transfer): Likewise.
9783 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9785 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9787 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9790 2012-05-31 Peter Jones <pjones@redhat.com>
9792 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9793 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9794 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9796 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9798 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9799 uninited variable. Allocate at least setup_sects.
9801 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9803 Fix handling of EFI with big memory maps.
9805 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9806 (real_mode_mem): Likewise.
9807 (real_mode_target): Likewise.
9808 (real_mode_pages): Likewise.
9809 (prot_mode_pages): Likewise.
9810 (linux_params): New var.
9811 (linux_cmdline): Likewise.
9812 (free_pages): Don't set real mode variables.
9813 (allocate_pages): Don't allocate real mode memory.
9814 (grub_e820_add_region): Remove the limit.
9815 (grub_linux_boot): Allocate and copy real mode memory.
9816 (grub_linux_unload): Free linux_cmdline.
9817 (grub_cmd_linux): Use temporary storage for parameters.
9818 (grub_cmd_initrd): Likewise.
9819 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9820 (linux_kernel_params): Make it 1K big.
9822 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9824 * Makefile.util.def: Remove -Wno-format.
9825 * grub-core/Makefile.core.def: Likewise.
9827 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9829 * tests/cmp_unit_test.c: Add missing failure message.
9830 * tests/example_unit_test.c: Likewise.
9831 * tests/printf_unit_test.c: Likewise.
9833 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9835 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9836 relaxation of protective MBR requirements.
9838 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9840 * configure.ac: Add condition for COND_HOST_XNU.
9841 * Makefile.util.def (10_xnu): New script.
9842 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9844 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9846 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9849 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9851 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9852 Binary on other platforms stays identical.
9854 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9856 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9859 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9861 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9863 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9865 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9866 rather than defining size_t ourselves to avoid conflict.
9868 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9870 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9871 initialisation to avoid __bzero reference.
9873 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9875 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9877 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9878 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9879 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9880 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9881 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9883 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9885 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9886 * grub-core/kern/misc.c: Likewise.
9887 * grub-core/loader/i386/xnu.c: Likewise.
9888 * include/grub/i386/tsc.h: Likewise.
9889 * include/grub/symbol.h: Likewise.
9891 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9893 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9894 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9897 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9899 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9900 Implement Apple flavour.
9901 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9903 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9905 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9906 (memmove) [__APPLE__]: Likewise.
9907 (memcpy) [__APPLE__]: Likewise.
9908 (memset) [__APPLE__]: Likewise.
9909 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9910 (memmove) [__APPLE__]: Likewise.
9911 (memcpy) [__APPLE__]: Likewise.
9912 (memset) [__APPLE__]: Likewise.
9914 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9916 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9919 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9921 * grub-core/normal/main.c (read_config_file): Provide config_file and
9923 * util/grub.d/41_custom.in: Use config_directoy when available.
9925 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9927 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9928 (grub_bfs_dir): Likewise.
9930 2012-05-27 Peter Jones <pjones@redhat.com>
9932 The old code gives arguments to a printf function which can't work
9933 correctly, and the compiler complains.
9935 * grub-core/tests/example_functional_test.c (example_test): Add
9937 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9938 * include/grub/test.h (grub_test_assert_helper): New declaration.
9939 (grub_test_assert): Use grub_test_assert_helper.
9941 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9943 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9944 (exfctest): ... this to avoid overlong filenames.
9947 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9949 Handle "." and ".." on squashfs.
9951 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9952 Make inode numbers into stack.
9953 (grub_squash_read_symlink): Use stack.
9954 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9955 (make_root_node): Fill stack.
9956 (grub_squash_open): Use stack.
9958 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9960 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9963 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9965 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9966 stderr on test calls.
9968 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9970 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9972 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9974 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9976 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9981 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9983 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9984 (grub_hfsplus_iterate_dir): Add "." and "..".
9986 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9988 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9989 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9991 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9993 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9994 (find_path): Handle "." and "..".
9996 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9998 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9999 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10000 (grub_affs_iterate_dir): Handle hardlinks.
10002 2012-05-26 Matthew Garrett <mjg@redhat.com>
10004 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10005 (grub_efi_console_fini): Likewise.
10006 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10007 (grub_video_gop_fill_mode_info): Rename to ...
10008 (grub_video_gop_fill_real_mode_info): ... this.
10009 (grub_video_gop_fill_mode_info): New function.
10010 (grub_video_gop_setup): Setup double framebuffer.
10011 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10013 (grub_video_gop_swap_buffers): Copy framebuffer.
10014 (grub_video_gop_fini): Free offscreen buffer.
10015 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10017 (grub_efi_gop_blt_pixel): New struct.
10019 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10021 * gentpl.py: Remove error disabling for objconv.
10023 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10025 * configure.ac: Remove -Wunitialized as it's not available on older
10028 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10030 Fix extent overflow comparator.
10032 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10033 (grub_hfsplus_read_block): Set type.
10034 (grub_hfsplus_cmp_extkey): Compare type.
10036 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10038 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10040 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10042 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10045 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10047 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10048 (dejavu_bold_14.pf2): New target.
10050 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10052 * configure.ac: Fix djvu font detection.
10054 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10056 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10057 ext* instead of ext2.
10059 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10061 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10064 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10066 * docs/grub-dev.texi: Remove dot from .png.
10068 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10070 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10071 protective entry in any slot.
10072 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10073 if protective entry is found in any slot.
10075 Protective entry in non-first slot make no sense but is a widespread
10078 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10080 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10082 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10084 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10086 (grub_reiserfs_open): Don't free root.
10088 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10090 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10091 after freeing for safety.
10093 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10095 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10096 Reported by: Jordan Uggla.
10098 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10100 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10101 actual implementation. Specifically, clarify that the grub menu will
10102 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10105 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10107 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10110 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10112 Remove unjustified hard dependency of normal.mod on gfxterm.
10114 * include/grub/term.h (grub_term_output): New member fullscreen.
10115 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10116 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10117 (grub_gfxterm): Set .fullscreen.
10118 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10119 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10121 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10123 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10124 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10125 Mention case-insensitive AFFS, SFS and JFS.
10127 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10129 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10131 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10133 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10136 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10138 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10139 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10141 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10143 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10144 (grub_jfs_mount): Fill caseins.
10145 (grub_jfs_find_file): Respect caseins.
10147 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10149 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10152 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10154 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10155 New argument origpath. All users updated.
10157 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10159 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10160 (read_attr): Ensure that we read start of possibly compressed block.
10162 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10164 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10165 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10168 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10170 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10171 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10172 (dejavu.pf2): Replace with ...
10173 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10176 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10178 * util/grub.d/20_linux_xen.in: Add missing line.
10180 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10182 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10183 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10184 (grub_utf16_to_utf8): Likewise.
10186 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10188 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10189 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10190 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10191 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10192 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10193 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10195 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10197 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10200 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10202 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10203 (grub_udf_read_symlink): Handle read_string failure.
10205 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10207 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10210 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10212 Fix handling of UDF symlinks.
10214 * grub-core/fs/udf.c (read_string): New argument outbuf.
10216 (grub_ufs_read_symlink): Rename to ...
10217 (grub_udf_read_symlink): ... this. All users updated.
10218 Handle symlinks with more than one component.
10220 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10222 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10223 symlinks. Replace leading colon with a slash.
10225 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10227 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10230 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10233 match in inner node.
10235 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10237 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10238 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10239 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10240 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10241 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10242 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10243 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10244 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10245 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10247 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10249 Use grub-probe and not cmp to check that disk is empty.
10251 * util/grub-install.in: Use grub-probe for zero-check.
10252 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10253 (probe): Handle PRINT_ZERO_CHECK.
10254 (argp_parser): Handle -t zero_check.
10256 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10258 Flush block cache on adding disk to device map.
10260 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10261 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10263 (read_device_map): Likewise.
10264 (open_device): Flush on opening.
10266 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10268 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10269 (handle_symlink): Fix off-by-one error.
10270 Canonicalize the target.
10271 (grub_cpio_dir): Canonicalize the name.
10274 (grub_cpio_open): Canonicalize the name.
10276 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10278 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10281 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10283 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10284 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10286 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10288 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10289 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10292 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10294 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10297 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10299 Fix UFS1 big file support.
10301 * grub-core/fs/ufs.c (INODE): Removed.
10302 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10304 (INODE_MODE): Simplify.
10305 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10306 (grub_ufs_lookup_symlink): Don't use INODE.
10308 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10310 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10312 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10313 (grub_minix_data): Replace log_block_size with block_size.
10314 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10315 (grub_minix_mount): Fill block_size.
10317 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10319 * configure.ac: Bump to beta5.
10321 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10323 Fix wrapped HFS+ handling.
10325 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10326 blocks_start. All users updated.
10327 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10329 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10331 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10333 Fix long symlinks on reiserfs.
10335 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10336 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10337 (grub_reiserfs_iterate_dir): Save size for non-directories.
10338 (grub_reiserfs_open): Don't reread stat block as we already know the
10340 (grub_reiserfs_read): Split into...
10341 (grub_reiserfs_read_real): ... and ...
10342 (grub_reiserfs_read): ...this.
10344 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10346 Fix non-indexed JFS.
10348 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10349 (grub_jfs_data): New field namecomponentlen.
10350 (grub_jfs_mount): Fill namecomponentlen.
10351 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10353 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10355 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10356 * tests/grub_script_echo1.in: Add tests.
10358 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10360 * util/grub-install.in: Ignore empty devicetree directory.
10362 2012-05-08 Bean <bean123ch@gmail.com>
10364 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10366 (free_rsm): Free header as well.
10367 (free_old_fragments): Fix memory leak.
10368 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10369 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10370 (destroy_pq): Likewise.
10371 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10373 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10375 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10376 resulting hash as a precaution.
10378 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10380 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10381 '_' in variable names.
10382 * grub-core/net/net.c (grub_net_network_level_interface_register):
10385 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10387 Fix AFFS with non-512B blocks.
10389 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10390 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10391 (grub_affs_data): Replace blocksize with log_blocksize.
10392 (grub_affs_read_block): Fix non-512B blocks.
10393 (grub_affs_read_symlink): Likewise.
10394 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10395 (grub_affs_read): Fix non-512B blocks.
10396 (grub_affs_label): Likewise.
10397 (grub_affs_mtime): Likewise.
10398 (grub_affs_mount): Fix block detection routine.
10400 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10402 Add filesystem mtime to AFFS.
10404 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10405 (aftime2ctime): New function.
10406 (grub_affs_dir): Use aftime2ctime.
10407 (grub_affs_label): Fix return value.
10408 (grub_affs_mtime): New function.
10409 (grub_affs_fs): Add mtime.
10411 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10413 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10416 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10418 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10421 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10423 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10425 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10427 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10429 (FLAGS_CASE_SENSITIVE): New enum value.
10430 (cache_entry): New struct.
10431 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10432 cache_size and cache.
10433 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10434 Add log_blocksize and fshelp_flags.
10435 (grub_sfs_read_extent): Handle non-512 blocks.
10436 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10437 (grub_sfs_read_file): Handle non-512 blocks.
10438 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10440 (grub_sfs_read_symlink): Handle non-512 blocks.
10441 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10442 (grub_sfs_dir): Free cache.
10443 (grub_sfs_close): Likewise.
10445 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10447 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10450 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10452 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10454 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10456 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10458 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10460 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10461 (grub_sfs_read_extent): Likewise.
10462 (grub_sfs_read_block): Likewise.
10463 (grub_sfs_mount): Likewise.
10464 (grub_sfs_iterate_dir): Likewise.
10465 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10466 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10468 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10470 Fix errors on compressed NTFS with 512B clusters.
10472 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10474 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10476 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10477 Relax check for inline extents.
10478 (ntfscomp): Return correct -1 on error and not 0.
10480 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10482 * util/grub-install.in: Fix handling of prefix containing spaces.
10484 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10486 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10487 (grub_squash_read_data): Fix offset byte-swapping.
10489 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10491 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10492 per common usage and preffered in several parts of code.
10493 (grub_memcmp): Likewise.
10494 (grub_strncmp): Likewise.
10495 * include/grub/misc.h (grub_strcasecmp): Likewise.
10496 (grub_strncasecmp): Likewise.
10497 * Makefile.util.def (cmp_test): New test.
10498 (grub_script_strcmp): Likewise.
10499 * tests/cmp_unit_test.c: New file.
10500 * tests/grub_script_strcmp.in: Likewise.
10501 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10503 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10505 * include/grub/pci.h: Move enums into no-asm part.
10507 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10509 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10511 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10513 * util/getroot.c (find_hurd_root_device): Try to make error message
10514 and comments to translators clearer.
10516 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10520 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10525 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10527 * docs/grub.cfg: Update.
10529 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10531 * docs/grub.texi (PXE): Remove not present variables.
10533 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10535 * grub-core/net/net.c (defserver_set_env): New function.
10536 (defserver_get_env): Likewise.
10537 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10539 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10541 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10544 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10546 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10547 * grub-core/kern/emu/hostdisk.c: Likewise.
10549 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10551 Handle hurd userspace partitions.
10553 * util/getroot.c (find_hurd_root_device): New function.
10554 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10556 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10558 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10560 Reported by: Bastian Blank.
10562 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10564 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10565 crossing page boundary.
10567 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10569 Fix B-tree search in BFS, especially in presence of non-ASCII
10572 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10573 (find_in_b_tree): Use standard bsearch + btree algorithm.
10575 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10577 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10580 2012-05-03 Matthew Garrett <mjg@redhat.com>
10581 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10583 Suspend broadcom cards in order to stop their DMA.
10585 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10586 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10587 (pci): Don't build on x86 EFI.
10588 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10589 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10591 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10592 stop_broadcom if running on EFI.
10593 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10594 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10595 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10596 (grub_pci_find_capability): New proto.
10598 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10600 * docs/grub.texi: Remove dot from the extension as it apparently
10601 doesn't work with some makeinfo versions.
10603 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10605 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10606 with GRUB expectance.
10608 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10610 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10612 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10614 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10615 zero after directory block since last entry may be not 0-terminated if
10616 it ends on block boundary. Use continue instead of if spanning whole
10619 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10621 Support 4K sectors UDF inline files.
10623 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10624 (grub_udf_extended_file_entry): Likewise.
10625 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10627 (get_fshelp_size): New function.
10628 (grub_udf_read_icb): Read whole block.
10629 (grub_udf_iterate_dir): Likewise.
10630 (grub_udf_dir): Likewise.
10631 (grub_udf_open): Likewise.
10633 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10635 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10637 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10639 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10640 inline symlinks in addition to workaround.
10642 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10644 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10646 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10648 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10650 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10652 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10654 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10656 Fix reiserfs big seek times.
10658 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10659 exact. All users updated.
10660 (grub_reiserfs_read): Use nearest btree search for seeking.
10661 Fix return value on error.
10663 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10665 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10667 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10668 * docs/grub.texi: Update menuentry description.
10670 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10672 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10673 crash when embedding onto filesystem.
10675 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10677 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10680 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10682 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10684 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10686 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10689 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10690 2012-05-01 Bean <bean123ch@gmail.com>
10692 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10694 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10696 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10697 Special behaviour for len = 0 to read whole file isn't used anywhere and
10698 can cause buffer ovewrflows in several places.
10700 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10702 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10704 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10706 Handle RAIDZ on non-512B sectors.
10708 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10709 max_children_ashift.
10710 (fill_vdev_info_real): Fill max_children_ashift.
10711 (read_device): Use max_children_ashift.
10713 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10715 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10717 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10719 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10721 * docs/grub.texi: Update device.map parts.
10723 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10725 Don't scan into non-diskfilter devices having diskfilter names.
10727 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10728 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10730 (scan_disk_hook): New function.
10732 2012-04-29 Bean <bean123ch@gmail.com>
10734 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10737 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10739 * configure.ac: Detect starfield theme font path
10740 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10742 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10744 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10745 geometry on serial consoles.
10747 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10749 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10750 because of network consoles.
10752 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10754 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10757 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10759 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10760 falls on Q syndrom.
10762 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10764 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10765 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10767 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10769 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10770 Allocate at lest 8192 for temporary buffer as required for lzo.
10772 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10774 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10775 to cluster_bits, since it's already added in.
10776 (grub_fat_read_data): Likewise.
10778 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10780 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10781 as long as cluster size is multiple of 512 bytes.
10783 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10785 * util/grub-mkrescue.in: Fix locale directory.
10787 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10789 * grub-core/kern/emu/hostdisk.c (map): Make static.
10791 2012-04-23 Bean <bean123ch@gmail.com>
10793 * util/grub-fstest.c (fstest): Add missing break.
10795 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10799 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10800 not define nr variable.
10801 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10802 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10803 grub_find_device): Do not define.
10805 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10807 Fix kfreebsd compile and behaviour.
10809 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10811 * util/getroot.c: Fix wait.h include.
10812 (grub_guess_root_devices): Error if grub_find_device fails.
10813 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10814 (grub_util_get_dev_abstraction): Likewise.
10815 (grub_util_pull_device): Likewise.
10816 (grub_util_get_grub_dev): Likewise.
10817 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10819 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10821 Fix and unify wholedisk detection.
10823 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10824 is_part. All users updated.
10825 (device_is_wholedisk): Removed.
10826 (grub_util_biosdisk_get_grub_dev): Use is_part.
10828 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10830 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10833 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10835 * configure.ac: Bump to beta4.
10837 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10839 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10840 --fs-uuid --set UUID syntax.
10842 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10844 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10847 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10849 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10851 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10853 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10855 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10857 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10859 2012-04-18 Bean <bean123ch@gmail.com>
10861 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10864 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10866 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10868 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10869 corresponding to GRUB partitions.
10870 (grub_util_biosdisk_write): Likewise.
10872 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10874 Scan mdraid before LVM.
10876 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10877 (grub_diskfilter_register_front): ... this.
10878 (grub_diskfilter_register_back): New function.
10879 All users of grub_diskfilter_register updated.
10881 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10883 * util/grub-install.in: Fix an automatic target detection bug.
10885 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10887 * util/grub-install.in: New option --efi-directory.
10889 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10891 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10892 boot services if we have no other choice.
10894 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10896 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10898 * tests/util/grub-shell.in: Update to --directory.
10900 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10902 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10904 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10906 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10907 (grub_minix_read_file): Likewise.
10908 (grub_minix_read_inode): Likewise.
10909 (grub_minix_find_file): Likewise.
10910 (grub_minix_dir): Likewise.
10912 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10914 * util/grub-setup.c (setup): Fix partition handling and blocklist
10917 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10919 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10920 redundant buggy overlap check.
10922 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10924 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10927 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10929 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10930 kh.loadflags on pre-2.00 kernels.
10932 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10934 Terminate UNDI and PXE before launching the payload to avoid problems
10937 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10938 (grub_loader_flags): ... this. All users updated.
10939 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10940 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10941 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10942 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10944 (grub_pxe_restore): Likewise.
10945 (fini_hnd): New var.
10946 (GRUB_MOD_INIT): Register shutdown hook.
10947 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10948 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10949 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10950 (grub_loader_set): Rename second argument to flags.
10952 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10954 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10956 (grub_get_num_of_utf8_bytes): New function.
10957 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10958 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10960 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10961 (grub_ucs4_to_utf8): Change return type.
10963 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10965 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10967 * grub-core/fs/bfs.c (hop_level): Likewise.
10968 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10970 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10972 * grub-core/lib/adler32.c: Recode due to license unclearness.
10974 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10976 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10977 (test_header): Likewise.
10979 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10981 Fix --help formatting.
10983 * util/grub-mkconfig_lib.in (print_option_help): New function.
10984 (grub_fmt): Likewise.
10985 * util/grub-install.in: Use print_option_help and grub_fmt.
10986 * util/grub-kbdcomp.in: Likewise.
10987 * util/grub-mkconfig.in: Likewise.
10988 * util/grub-mknetdir.in: Likewise.
10989 * util/grub-mkrescue.in: Likewise.
10990 * util/grub-mkstandalone.in: Likewise.
10991 * util/grub-reboot.in: Likewise.
10992 * util/grub-set-default.in: Likewise.
10993 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10995 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10997 * linguas.sh: Remove autogenerated *.po.
10999 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11001 * po/README: Move language fetcing to ...
11002 * linguas.sh: ... here.
11003 * po/README: Point to linguas.sh.
11005 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11007 * po/README: Exclude ko.po due to disclaimer problems.
11009 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11011 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11013 (grub_gettext_translate_real): Handle 0th string.
11014 (grub_gettext_translate): Ensure that "" isn't translated.
11016 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11018 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11019 TRANSLATORS comment.
11020 (grub_diskfilter_print_partmap): Propagate changing of error into
11023 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11025 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11026 to uint64_t to prevent overflow.
11027 (grub_diskfilter_lv): Increase start_extent and extent_count
11028 to uint64_t to prevent overflow.
11030 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11032 * configure.ac: Increase version.
11034 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11036 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11038 * po/Rules-translit: New file.
11039 * po/arabic.sed: Likewise.
11040 * po/cyrillic.sed: Likewise.
11041 * po/greek.sed: Likewise.
11042 * po/hebrew.sed: Likewise.
11043 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11044 * po/Makefile.in.in: Add extra_dist4.
11046 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11048 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11050 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11051 modify names. Introduce MODE_BIGENDIAN.
11052 * grub-core/fs/minix_be.c: New file.
11053 * grub-core/fs/minix2_be.c: Likewise
11054 * grub-core/fs/minix3_be.c: Likewise.
11055 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11057 * grub-core/Makefile.core.def (minix_be): New module.
11058 (minix2_be): Likewise.
11059 (minix3_be): Likewise.
11061 2012-04-01 Felix <email@hamburg.de>
11063 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11064 (devs): Add MBP 2011.
11066 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11068 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11070 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11072 * grub-core/normal/cmdline.c (print_completion): New field
11074 (grub_cmdline_get): Handle width properly.
11076 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11078 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11080 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11082 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11083 after 29th of February.
11085 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11087 Fix exfat endianness handling.
11089 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11090 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11091 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11092 Byte-swap utf16 when necessary.
11093 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11095 2012-03-31 Anton Blanchard <anton@samba.org>
11096 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11098 Fix btrfs endianness handling.
11100 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11101 (lower_bound): Make root uint64_t. Use root in le.
11102 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11103 (find_path): Fix template key init.
11104 (grub_btrfs_dir): Fix mtime byteswap.
11105 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11107 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11109 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11110 recursion_depth. Break infinite resursions. All users updated.
11112 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11114 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11116 Reported by: Peter Jones.
11118 2012-03-31 Anton Blanchard <anton@samba.org>
11120 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11123 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11125 * util/grub-install.in: Fix nvram call for PreP.
11127 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11129 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11130 the error when some elements are missing into a warning.
11132 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11136 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11138 * docs/grub.texi (Invoking grub-probe): New section.
11139 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11141 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11143 Fix tab and wide character handling in editor and menu.
11145 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11146 agglomerate control characters with combining marks.
11147 (bidi_line_wrap): Allow break on tab.
11148 (grub_unicode_get_comb_start): New function.
11149 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11151 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11153 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11154 fixed_tab_size. All users updated.
11155 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11156 (grub_term_getcharwidth): Handle \t.
11157 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11160 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11162 Handle big-endian mdraid.
11164 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11165 * grub-core/Makefile.core.def (mdraid09_be): New module.
11166 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11167 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11168 * grub-core/disk/mdraid_linux_be.c: New file.
11170 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11172 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11174 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11176 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11177 missing quotes which caused confusion among translators.
11179 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11181 * util/grub-mkconfig_lib.in: Fix typo.
11183 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11185 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11187 * tests/grub_script_leading_whitespace.in: New file.
11188 * Makefile.util.def (grub_script_leading_whitespace): New test.
11190 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11192 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11195 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11197 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11198 starts with control character.
11200 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11202 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11204 (grub_gdb_outbuf): Likewise.
11206 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11208 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11209 zero terminator. Fixes a crash.
11211 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11213 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11215 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11216 images independently of preffered adderss field.
11218 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11220 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11221 * grub-core/commands/regexp.c: Likewise.
11222 * grub-core/loader/i386/linux.c: Likewise.
11223 * grub-core/partmap/msdos.c: Likewise.
11224 * grub-core/script/execute.c: Likewise.
11225 * grub-core/term/gfxterm.c: Likewise.
11227 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11229 Add variable parsing in $"..." and fix several mismatches with bash.
11231 * Makefile.util.def (grub_script_gettext): New test.
11232 * grub-core/script/execute.c (parse_string): New function.
11233 (gettext_append): Likewise.
11234 (grub_script_arglist_to_argv): Use gettext_append.
11235 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11236 * tests/grub_script_gettext.in: New file.
11238 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11240 Fix handling of leading spaces in scripts.
11242 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11244 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11245 other than skipping \r. All users updated.
11246 * tests/grub_script_echo1.in: Add space-related tests.
11247 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11249 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11251 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11253 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11255 * configure.ac: Bump up the version to beta2.
11257 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11259 Fix gettext reload bugs (e.g. inability to disable gettext
11262 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11263 main_context and secondary_context. All functions updated.
11264 (grub_gettext_translate): Rename to ...
11265 (grub_gettext_translate_real): ... this. Return NULL on failed
11267 (grub_gettext_translate): Handle secondary context.
11268 (grub_gettext_delete_list): Close file and zero-out the context.
11269 (grub_mofile_open): Don't call grub_gettext_delete_list.
11271 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11272 if locale="" to avoid pointless error message.
11273 (grub_gettext_env_write_lang): Update lang even if load fails.
11274 Handle secondary context.
11275 (grub_gettext_reread_prefix): New function.
11276 (read_main): Likewise.
11277 (read_secondary): Likewise.
11278 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11279 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11280 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11281 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11283 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11285 * configure.ac: Decrease warning level to avoid spurious warnings and
11286 to be able to compile with GCC 4.2.
11287 * Makefile.util.def: Remove -Wno-error=logical-op.
11289 2012-03-10 William Bittner <william.bittner@gmail.com>
11291 * util/import_unicode.py: Add missing brackets around string for
11294 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11296 Fix efi chainloader on network root.
11298 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11300 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11303 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11305 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11306 unused show_text member.
11307 * docs/grub.texi: Document "text" property.
11309 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11311 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11314 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11316 Fix IMSM handling on Fedora.
11318 * util/getroot.c (grub_util_is_imsm): New function.
11319 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11323 * Makefile.am: Strip gold section.
11324 * conf/Makefile.common: Likewise.
11325 * gentpl.py: Likewise.
11326 * grub-core/Makefile.core.def: Likewise.
11327 * grub-core/genmod.sh.in: Likewise.
11329 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11331 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11332 * util/grub.d/20_linux_xen.in: Likewise.
11333 Based on Debian patch.
11335 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11337 * util/grub.d/10_linux.in: Fix syntax error resulting in
11338 Richard Laager's patch.
11339 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11341 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11343 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11346 2012-03-10 Richard Laager <rlaager@wiktel.com>
11348 * util/grub.d/10_linux.in: Fix ZFS root passing.
11350 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11352 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11353 * grub-core/commands/xnu_uuid.c: Likewise.
11354 * grub-core/loader/efi/appleloader.c: Likewise.
11355 * grub-core/script/execute.c: Likewise.
11356 * grub-core/script/main.c: Likewise.
11357 * util/grub-mkfont.c: Likewise.
11359 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11361 * util/grub-mkfont.c (options): Use more appropriate "select" that
11362 "set" for face index.
11364 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11366 * util/grub-editenv.c (options): Gettextize command summaries.
11368 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11370 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11371 "out of memory" error messagge.
11373 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11375 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11376 of diskfilter for diskfilter on diskfilter support.
11378 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11380 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11382 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11384 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11387 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11389 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11391 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11393 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11395 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11397 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11400 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11402 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11404 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11406 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11408 * util/grub-install.in: Fix and gettextize error message.
11410 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11412 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11414 * util/grub-mount.c (options): Likewise.
11416 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11418 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11420 * grub-core/commands/search_wrap.c (options): Likewise.
11422 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11424 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11426 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11428 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11430 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11433 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11435 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11436 "temporary" since it's used in identifier and is limited in space.
11438 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11440 * po/POTFILES.in: Regenerate. Include *.h since they contain
11441 translatable strings as well.
11443 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11445 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11446 byte-swap on big-endian.
11447 Reported by: Lennart Sorensen
11449 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11451 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11452 (allocate_pages): Improve dprintf.
11453 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11454 code32_start. Fill code32_start and kernel_alignment in params.
11455 (grub_cmd_initrd): Use prot_init_space.
11457 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11459 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11461 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11463 * util/grub-install.in: Add missing dot at the end of sentence.
11465 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11468 * grub-core/commands/videotest.c: Likewise.
11469 * grub-core/loader/i386/linux.c: Likewise.
11471 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11473 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11475 Reported by: Milo Casagrande.
11477 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11479 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11480 * grub-core/commands/gptsync.c: Likewise.
11481 * grub-core/commands/hashsum.c: Likewise.
11482 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11483 * grub-core/commands/legacycfg.c: Likewise.
11484 * grub-core/io/gzio.c: Likewise.
11485 * grub-core/net/net.c: Likewise.
11486 * grub-core/term/gfxterm.c: Likewise.
11487 * grub-core/term/terminfo.c: Likewise.
11488 * grub-core/tests/test_blockarg.c: Likewise.
11489 * grub-core/video/video.c: Likewise.
11490 * util/grub-install.in: Likewise.
11491 * util/grub-mkfont.c: Likewise.
11493 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11495 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11497 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11499 * grub-core/commands/search_wrap.c (options): Fix a typo.
11500 Reported by: David Prévot.
11502 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11504 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11507 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11509 * util/grub-script-check.c (main): Fix a syntax error message which was
11512 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11514 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11516 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11518 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11521 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11523 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11525 * util/grub-mount.c (options): Likewise.
11527 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11529 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11531 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11533 * grub-core/net/http.c: Add TRANSLATORS comments.
11534 * grub-core/normal/cmdline.c: Likewise.
11535 * grub-core/normal/misc.c: Likewise.
11536 * grub-core/partmap/msdos.c: Likewise.
11537 * grub-core/parttool/msdospart.c: Likewise.
11538 * grub-core/script/execute.c: Likewise.
11539 * grub-core/script/main.c: Likewise.
11540 * grub-core/term/terminfo.c: Likewise.
11541 * grub-core/video/bitmap.c: Likewise.
11542 * util/grub-install.in: Likewise.
11543 * util/grub-mkimage.c: Likewise.
11544 * util/grub-mklayout.c: Likewise.
11545 * util/grub-setup.c: Likewise.
11547 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11549 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11550 with similar messages in grub-fstest.
11552 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11554 * util/grub-install.in: Unify "option requires an argument" message
11555 with similar messages in other files.
11556 * util/grub-mkconfig.in: Likewise.
11558 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11560 * util/grub-set-default.in: Replace printf with gettext_printf (the
11561 string in in question is already translated from grub-reboot)
11563 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11565 * configure.ac: Bump up the version to beta1.
11567 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11569 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11570 case when min_align = 0.
11572 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11574 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11575 and fix a case when line_start overflows.
11577 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11579 * util/grub-reboot.in (usage): Mention id posibility.
11580 * util/grub-set-default.in (usage): Likewise.
11582 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11584 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11585 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11586 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11587 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11588 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11589 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11590 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11592 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11594 * grub-core/commands/menuentry.c (options): Remove
11595 GRUB_ARG_OPTION_REPEATABLE.
11596 Reported by: Andreas Vogel
11598 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11600 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11602 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11604 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11607 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11609 Use sort -V by the idea of Georgi Georgiev.
11611 * util/grub-mkconfig_lib.in (version_sort): New function.
11612 (version_test_numeric): Use version_sort.
11614 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11616 Use submenus in grub-mkconfig.
11618 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11619 * util/grub-mkconfig_lib.in (grub_quote): New function.
11620 (gettext_printf): Use gettext and not gettext_quoted to fix several
11622 * util/grub.d/10_hurd.in: Use submenus.
11623 * util/grub.d/10_kfreebsd.in: Likewise.
11624 * util/grub.d/10_linux.in: Likewise.
11625 * util/grub.d/10_netbsd.in: Likewise.
11626 * util/grub.d/20_linux_xen.in: Likewise.
11627 * util/grub.d/30_os-prober.in: Likewise.
11628 * util/grub.d/10_illumos.in: Add missing quoting.
11629 * util/grub.d/10_windows.in: Likewise.
11631 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11633 Fix menu title instability bug.
11635 * grub-core/commands/menuentry.c (options): New option --id.
11636 (grub_normal_add_menu_entry): New argument id. All users updated.
11637 (grub_cmd_menuentry): Handle --id.
11638 (grub_menu_init): Accept unknown arguments.
11639 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11640 feature_menuentry_options.
11641 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11643 (get_entry_number): Match with id as well.
11644 * include/grub/menu.h (grub_menu_entry): New member id.
11645 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11646 * util/grub.d/00_header.in: Define menuentry_id_option.
11647 * util/grub.d/10_hurd.in: Define id.
11648 * util/grub.d/10_illumos.in: Likewise.
11649 * util/grub.d/10_kfreebsd.in: Likewise.
11650 * util/grub.d/10_linux.in: Likewise.
11651 * util/grub.d/10_netbsd.in: Likewise.
11652 * util/grub.d/10_windows.in: Likewise.
11653 * util/grub.d/20_linux_xen.in: Likewise.
11654 * util/grub.d/30_os-prober.in: Likewise.
11656 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11658 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11659 "scope" with "body".
11661 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11663 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11664 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11665 prot_size and prot_file_size.
11667 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11669 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11670 All users updated. If easily=1 require raid-5/-6 to be full.
11671 (is_node_readable): Likewise.
11672 (scan_devices): Scan incomplete but readable LVs at the end.
11673 (grub_diskfilter_memberlist): Pull missing devices.
11674 (insert_array): Skip scanning until device is complete or scan is
11676 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11678 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11679 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11681 2012-03-03 Matthew Garrett <mjg@redhat.com>
11682 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11684 Avoid EFI boot services when loading Linux.
11686 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11687 avoid_efi_bootservices. All users updated.
11688 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11689 argument avoid_efi_bootservices. All users updated.
11690 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11691 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11692 align, min_align, relocatable, prefered_address. All users updated.
11693 Allocate avoiding boot services if kernel is relocatable.
11694 (grub_cmd_linux): Check if kernel is relocatable.
11695 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11696 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11697 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11698 avoid_efi_boot_services.
11699 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11700 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11701 (linux_kernel_params): Likewise.
11703 2012-03-03 Matthew Garrett <mjg@redhat.com>
11704 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11708 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11710 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11711 modes. Set gop_handle.
11712 (grub_video_gop_get_edid): New function.
11713 (grub_gop_get_preferred_mode): Likewise.
11714 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11715 (grub_video_efi_gop_adapter): Set .get_edid.
11716 * include/grub/efi/edid.h: New file.
11717 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11719 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11721 * util/grub-install.in: Load efivars unconditionally.
11723 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11725 * po/Rules-piglatin: Change suffix from .po-update-en to
11726 .po-update-en-piglatin.
11728 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11732 * po/piglatin.sed: New file.
11733 * po/en@piglatin.header: Likewise.
11734 * po/Rules-piglatin: Likewise.
11735 * po/README: Add en@piglatin to autogenerated languages.
11737 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11739 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11741 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11742 "Check" since we don't check anything.
11743 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11745 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11746 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11747 (grub_md_sha512_real): Likewise.
11749 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11751 * grub-core/commands/gptsync.c: Fix typographic quoting.
11752 * grub-core/commands/ieee1275/suspend.c: Likewise.
11753 * grub-core/commands/parttool.c: Likewise.
11754 * grub-core/commands/search_wrap.c: Likewise.
11755 * grub-core/commands/videoinfo.c: Likewise.
11756 * grub-core/gfxmenu/gui_label.c: Likewise.
11757 * grub-core/hello/hello.c: Likewise.
11758 * grub-core/kern/emu/main.c: Likewise.
11759 * grub-core/net/net.c: Likewise.
11760 * grub-core/normal/menu.c: Likewise.
11761 * grub-core/normal/menu_text.c: Likewise.
11762 * grub-core/normal/misc.c: Likewise.
11763 * util/grub-editenv.c: Likewise.
11764 * util/grub-install.in: Likewise.
11765 * util/grub-kbdcomp.in: Likewise.
11766 * util/grub-mkconfig.in: Likewise.
11767 * util/grub-mknetdir.in: Likewise.
11768 * util/grub-mkrescue.in: Likewise.
11769 * util/grub-mkstandalone.in: Likewise.
11770 * util/grub-reboot.in: Likewise.
11771 * util/grub-set-default.in: Likewise.
11772 * util/grub-setup.c: Likewise.
11773 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11775 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11777 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11778 * grub-core/commands/keystatus.c: Likewise.
11779 * grub-core/commands/loadenv.c: Likewise.
11780 * grub-core/commands/probe.c: Likewise.
11781 * grub-core/commands/regexp.c: Likewise.
11782 * grub-core/commands/true.c: Likewise.
11783 * grub-core/commands/videoinfo.c: Likewise.
11784 * grub-core/disk/cryptodisk.c: Likewise.
11785 * grub-core/disk/ldm.c: Likewise.
11786 * grub-core/disk/loopback.c: Likewise.
11787 * grub-core/disk/luks.c: Likewise.
11788 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11789 * grub-core/kern/disk.c: Likewise.
11790 * grub-core/kern/emu/hostdisk.c: Likewise.
11792 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11794 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11795 * util/grub-install.in: Add missing quote in the comment.
11797 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11799 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11800 * grub-core/commands/lsmmap.c: Likewise.
11801 * grub-core/commands/minicmd.c: Likewise.
11802 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11803 * grub-core/commands/regexp.c: Likewise.
11804 * grub-core/gdb/gdb.c: Likewise.
11805 * grub-core/term/gfxterm.c: Likewise.
11806 * util/grub-mkconfig.in: Likewise.
11807 * util/grub-mkfont.c: Likewise.
11808 * util/grub-mklayout.c: Likewise.
11809 * util/grub-mknetdir.in: Likewise.
11810 * util/grub-mkrescue.in: Likewise.
11811 * util/grub.d/30_os-prober.in: Likewise.
11813 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11815 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11816 with "Direct color" and "Packed" with "Packed pixel".
11817 (grub_cmd_videoinfo): Simplify legend.
11819 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11821 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11822 absolutely unclear error message.
11824 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11826 * util/grub-mkstandalone.in: Remove confusing leftover print.
11828 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11830 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11832 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11833 (GRUB_MOD_INIT): Likewise.
11834 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11836 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11838 * util/grub-install.in (usage): Likewise.
11839 Spell ID in whole letters.
11840 Add missing ending dot.
11842 * util/grub-reboot.in: Fix capitalisation.
11843 * util/grub-set-default.in: Likewise.
11845 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11847 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11848 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11849 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11850 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11851 Disable -Werror for -Wdeprecated-declarations.
11852 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11853 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11854 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11855 (grub_util_get_grub_dev): Make luks handling dependent on
11856 HAVE_DEVICE_MAPPER and not __linux__.
11857 (get_win32_path): Fix format security.
11858 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11859 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11860 Don't try grub_find_zpool_from_dir.
11861 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11862 #ifdef-out paresdir.
11864 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11866 * util/grub-pe2elf.c (usage): Add missing noreturn.
11867 (write_section_data): Rename name to shname to avoid shadowing.
11868 (write_symbol_table): Rename name to symname to avoid shadowing.
11869 Fix write_reloc_section call.
11871 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11873 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11874 to ensure that it's after the last byte of .text.
11876 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11878 * util/ieee1275/ofpath.c (my_isdigit): New function.
11879 (trailing_digits): Use my_isdigit.
11880 (strip_trailing_digits): Likewise.
11882 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11884 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11885 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11887 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11889 * grub-core/kern/i386/pc/startup.S: Define __start.
11891 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11893 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11894 strip already transforms he format.
11896 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11898 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11900 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11902 * util/grub-install.in: Add missing gettext init.
11903 * util/grub-kbdcomp.in: Likewise.
11904 * util/grub-mkconfig.in: Likewise.
11905 * util/grub-mknetdir.in: Likewise.
11906 * util/grub-mkrescue.in: Likewise.
11907 * util/grub-mkstandalone.in: Likewise.
11908 * util/grub-reboot.in: Likewise.
11909 * util/grub-set-default.in: Likewise.
11910 * util/grub.d/00_header.in: Likewise.
11911 * util/grub.d/10_hurd.in: Likewise.
11912 * util/grub.d/10_windows.in: Likewise.
11913 * util/grub.d/30_os-prober.in: Likewise.
11914 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11916 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11918 * po/Rules-swiss: Fix header comment.
11920 2012-02-29 Andreas Vogel <anvoit>
11922 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11923 resulted in leak of arguments.
11925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11927 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11928 reed_solomon_size const definition instead of computing it since
11929 Apple assembler doesn't support the later.
11931 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11933 * gentpl.py (kernel): Rewrite Apple part.
11935 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11937 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11941 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11943 (load_image): Likewise.
11945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11947 * configure.ac: Fix a typo in previous commit.
11949 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11951 Don't add -Wl,-N on Apple platform.
11953 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11954 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11956 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11958 * grub-core/Makefile.core.def (lzma_decompress): Use
11959 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11961 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11963 * grub-core/genmod.sh.in: Rewrite the Apple part.
11965 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11967 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11970 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11972 * acinclude.m4 (grub_CHECK_PIC): New test.
11973 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11975 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11977 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11978 to avoid the warning.
11980 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11982 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11983 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11984 after. All users updated.
11986 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11988 Use the common size routine in hostfs so we can read disks as well.
11990 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11991 (grub_util_get_fd_size): ... this. Return size in bytes.
11993 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11994 grub_util_get_fd_size.
11996 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11998 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11999 Add blocksize retrieval.
12001 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12003 * configure.ac: Restore CFLAGS after efiemu check.
12005 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12007 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12010 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12012 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12014 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12016 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12017 (grub_cmd_halt): Likewise.
12019 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12021 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12022 for local arithmetics.
12023 Break %sp init into 2 instructions.
12024 Add 0 byte at the end.
12026 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12028 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12031 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12033 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12036 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12038 * grub-core/disk/ldm.c (make_vg): Init part.name.
12039 (grub_ldm_detect): Silence spurious warning.
12040 (grub_util_is_ldm): Likewise.
12042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12045 sane value to avoid a spurious warning.
12047 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12049 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12050 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12055 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12059 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12060 hardcoding the relevant info.
12062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12064 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12065 missing const qualifiers.
12066 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070 * util/getroot.c [__APPLE__]: Add missing includes.
12071 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12073 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12075 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12077 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12079 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12082 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12084 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12086 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12088 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12089 and grub_file_close call.
12091 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12093 Add LZSS Mach-O support (needed for new xnu kernelcache).
12095 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12096 * grub-core/loader/lzss.c: New file.
12097 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12098 on Mach-O open failure.
12099 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12100 Don't free cmdsXX in uncompressedXX is set.
12101 (grub_macho_file): Init new fields.
12102 New argument is_64bit. All users updated.
12103 Handle compressed. Error out if no suitable architecture is found.
12105 (grub_macho_open): New argument is_64bit. All users updated.
12106 * grub-core/loader/macho32.c: Add defines for new fields.
12107 * grub-core/loader/macho64.c: Likewise.
12108 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12109 (grub_macho_parse): Handle compressed.
12110 Defer actual processing if compressed.
12111 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12112 "filename". All users updated.
12113 (grub_macho_size): New argument "filename". All users updated.
12114 (grub_macho_get_entry_point): Likewise.
12115 (grub_macho_load): Handle compressed.
12116 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12117 (GRUB_MACHO_LZSS_OFFSET): New define.
12118 (grub_decompress_lzss): New proto.
12119 * include/grub/machoload.h (grub_macho_file): New fields to handle
12121 (grub_macho_contains_macho64): Remove proto.
12122 (grub_macho_contains_macho32): Likewise.
12123 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12125 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12127 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12129 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12133 * Makefile.am (starfield_theme_files): New var.
12134 (starfield_DATA): Use starfield_theme_files.
12135 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12136 Add bootcheck-related files.
12137 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12138 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12139 and font_char_metrics.txt.
12140 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12141 (setjmp): Add lib/ia64/longjmp.S.
12142 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12143 * po/POTFILES.in: Regenerate.
12144 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12145 DISTFILES.common.extra1.
12146 * util/devicemap.c: Removed.
12147 * grub-core/lib/i386/relocator_backward.S: Likewise.
12148 * util/import_gcry.py: Remove unused files. Add extra_dist for
12151 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12153 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12154 grub_gettext_delete_list before changing grub_gettext_max to avoid
12155 running out of array bounds.
12157 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12159 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12160 grub_vga_text_init/grub_vga_text_fini.
12162 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12164 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12166 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12168 * configure.ac: Bump to 2.00~beta0.
12170 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12172 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12173 missing initialisation.
12175 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12177 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12179 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12181 Support v2 xnu boot arguments.
12183 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12184 New argument fsbfreq_out.
12185 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12186 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12188 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12190 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12191 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12192 (grub_xnu_boot_params): Rename to ...
12193 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12194 (grub_xnu_boot_params_v2): New struct.
12196 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12198 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12199 zeroing of CRC field before computing CRC.
12201 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12203 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12204 Change order of allocations to decrease fragmentation.
12206 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12208 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12210 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12212 Use write-combining MTRR to speed up video with buggy BIOSes.
12214 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12215 (cpuid): New define.
12218 (mtrr_base): Likewise.
12219 (mtrr_mask): Likewise.
12220 (grub_vbe_enable_mtrr_entry): New function.
12221 (grub_vbe_enable_mtrr): Likewise.
12222 (grub_vbe_disable_mtrr): Likewise.
12223 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12224 control off to BIOS.
12225 (grub_video_vbe_init): Fill mtrr.
12226 (grub_video_vbe_fini): Disable mtrr.
12227 (grub_video_vbe_get_info_and_fini): Likewise.
12228 (grub_video_vbe_setup): Enable mtrr.
12230 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12232 * include/grub/partition.h (grub_partition_map): Change prototype of
12233 embed to take a maximum value for nsectors.
12234 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12235 * include/grub/fs.h (grub_fs): Likewise.
12236 * grub-core/partmap/msdos.c (embed_signatures): New array.
12237 (pc_partition_map_embed): Check for and avoid sectors matching any
12238 of the signatures in embed_signatures, up to max_nsectors.
12239 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12240 returned sector map to max_nsectors.
12241 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12242 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12243 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12244 * util/grub-setup.c (setup): Allow for the embedding area being
12245 split into multiple blocklists. Tell dest_partmap->embed the
12246 maximum number of sectors we care about.
12248 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12250 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12251 Specify blocklist_install and reserver_first_sector for all fs.
12252 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12255 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12257 * util/grub-install.in: Clarify strings.
12258 Fix source dir check.
12260 2012-02-27 Richard Laager <rlaager@wiktel.com>
12262 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12263 "zfs" and "fuse.zfs" as synonyms.
12265 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12267 * configure.ac: Put platform and target_cpu substitutions back since
12268 they are used for directories.
12270 2012-02-27 Richard Laager <rlaager@wiktel.com>
12271 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12273 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12274 * util/grub.d/20_linux_xen.in: Likewise.
12276 2012-02-27 Richard Laager <rlaager@wiktel.com>
12278 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12281 2012-02-27 Richard Laager <rlaager@wiktel.com>
12283 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12286 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12288 Don't use insecure popen in getroot.
12290 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12291 (exec_pipe): ... here.
12292 (find_root_devices_from_poolname): Use exec_pipe.
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12296 Remove platform and target_cpu replacement.
12298 * configure.ac: Remove platform and target_cpu substitutions.
12299 * tests/util/grub-shell.in: Use modinfo.
12300 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12303 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12305 Autodetect platform in grub-install but allow override.
12307 * util/grub-install.in: Autodetect platform. Support --target and
12308 --directory. Read platform from modinfo.sh.
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12312 Support btrfs multi-volume probe.
12314 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12315 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12316 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12317 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12318 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12319 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12320 grub_find_root_devices_from_btrfs if on btrfs.
12322 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12324 Remove any awareness of *.c util files about target.
12326 * Makefile.util.def (grub-setup): Split to ...
12327 (grub-bios-setup): ... and this.
12328 (grub-sparc64-setup): ... and this.
12329 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12330 * docs/man/grub-setup.h2m: Split into ...
12331 * docs/man/grub-sparc64-setup.h2m: ... this.
12332 * docs/man/grub-bios-setup.h2m: ... and this.
12333 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12334 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12335 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12336 (grub_target_addr_t): Remove.
12337 (grub_target_size_t): Remove.
12338 (grub_target_ssize_t): Remove.
12339 * util/grub-install.in: Use new grub-*-setup.
12340 * util/grub-mkimagexx.c (Elf_Word): New define.
12341 (Elf_Half): Likewise.
12342 (Elf_Section): Likewise.
12343 (ELF_ST_TYPE): Likewise.
12344 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12345 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12347 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12349 Replace grub_target_addr with more appropriate types.
12351 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12352 grub_target_addr with grub_addr.
12353 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12354 grub_target_addr with grub_port.
12355 (grub_cmd_write): Likewise.
12356 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12357 grub_target_addr with grub_addr.
12358 (grub_cmd_write): Likewise.
12359 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12363 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12364 const qualifier for vendor_guid.
12366 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12368 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12370 (efiemu_memequal): Likewise.
12371 (find_variable): Likewise.
12373 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12375 Fix missing console prototype on qemu-mips.
12377 * include/grub/mips/qemu_mips/console.h: New file.
12379 2012-02-27 Matthew Garrett <mjg@redhat.com>
12380 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12382 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12383 * include/grub/efi/efi.h: Likewise.
12384 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12385 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12386 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12387 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12388 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12389 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12391 2012-02-27 Matthew Garrett <mjg@redhat.com>
12393 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12395 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12397 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12400 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12402 * configure.ac: Remove inappropriate use of program_transform_name
12403 on grubdir and bootdir but allow explicit specification of those
12406 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12408 * util/grub-mknetdir.in (grub_prefix): Removed.
12409 (subdir): Use @bootdirname@ and @grubdirname@.
12411 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12413 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12415 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12417 * po/POTFILES.in: Regenerated.
12419 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12421 Remove improper use of program_transform_name on pkglibrootdir.
12423 * configure.ac (pkglibrootdir): Removed.
12424 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12425 * util/grub-mkimage.c: Likewise.
12427 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12429 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12432 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12434 * util/grub-install.in: Use file identifier if no UUID is available
12435 or user explicitly prompted for it.
12437 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12439 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12440 (freebsd_get_zfs): New function.
12441 (grub_freebsd_boot): Pass zfs UUID.
12442 (grub_cmd_freebsd): Set zfs UUID.
12444 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12446 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12449 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12451 Add configure flag to control libzfs integration.
12453 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12455 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12457 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12459 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12462 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12464 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12465 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12466 be used on non-modules.
12468 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12469 Rename to grub_boot_init.
12470 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12471 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12472 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12473 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12474 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12475 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12476 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12477 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12479 (grub_machine_init): Remove empty inits.
12480 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12482 (grub_machine_init): Remove empty inits.
12483 * grub-core/term/arc/console.c: Remove explicit proto.
12484 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12485 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12486 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12487 grub_at_keyboard_fini.
12488 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12489 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12490 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12492 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12493 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12494 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12496 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12497 * grub-core/term/serial.c (GRUB_MOD_INIT)
12498 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12499 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12501 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12502 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12503 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12504 grub_terminfo_fini.
12505 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12506 (GRUB_MOD_FINI): Likewise.
12507 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12508 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12509 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12510 grub_video_radeon_fuloong2e_fini.
12511 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12512 [LOONGSON]: Rename to grub_video_sis315pro_init.
12513 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12514 grub_video_sis315pro_fini.
12515 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12516 [LOONGSON]: Rename to grub_video_sm712_init.
12517 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12518 grub_video_sm712_fini.
12519 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12520 (grub_at_keyboard_fini): Likewise.
12521 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12522 Don't declare grub_{modname}_init.
12523 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12524 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12526 (grub_keylayouts_fini) [!EMU]: Likewise.
12527 * include/grub/serial.h (grub_serial_init) [!EMU]:
12529 (grub_serial_fini) [!EMU]: Likewise.
12530 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12532 (grub_terminfo_fini) [!EMU]: Likewise.
12533 * include/grub/video.h (grub_font_init) [!EMU]:
12535 (grub_font_fini) [!EMU]: Likewise.
12536 (grub_gfxterm_init) [!EMU]: Likewise.
12537 (grub_gfxterm_fini) [!EMU]: Likewise.
12538 (grub_video_sm712_init) [!EMU]: Likewise.
12539 (grub_video_sm712_fini) [!EMU]: Likewise.
12540 (grub_video_sis315pro_init) [!EMU]: Likewise.
12541 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12542 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12543 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12545 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12547 Make nand a prefix for nand devices.
12549 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12551 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12553 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12554 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12556 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12558 * include/grub/env.h (grub_env_find): Remove prototype.
12559 * grub-core/kern/env.c (grub_env_find): Make static.
12560 (grub_env_set): Remove useless set.
12562 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12564 * grub-core/kern/i386/realmode.S: Remove useless align.
12566 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12568 * include/grub/dl.h (grub_dl_load_file): Don't export.
12570 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12572 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12575 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12577 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12579 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12580 not reloading whole superblock but only the part which is really needed.
12581 Remove useless grub_errors.
12582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12585 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12587 Don't export grub_get_rtc.
12589 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12590 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12592 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12594 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12596 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12598 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12599 argument since it can be deduced from diskfilter. All users updated.
12601 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12605 * include/grub/list.h (grub_prio_list): Removed.
12606 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12607 GRUB_COMMAND_PRIO_MASK.
12608 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12609 GRUB_COMMAND_FLAG_ACTIVE.
12610 (grub_prio_list_insert): Removed.
12611 (grub_prio_list_remove): Likewise.
12612 (GRUB_AS_PRIO_LIST): Likewise.
12613 (GRUB_AS_PRIO_LIST_P): Likewise.
12614 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12615 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12616 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12617 * grub-core/kern/command.c (grub_register_command_prio): Inline
12618 the prio_list code.
12619 (grub_unregister_command): Likewise.
12621 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12623 Fix interrupt mixup from previous commit.
12625 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12626 (grub_realidt): New var.
12627 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12629 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12631 (grub_relocator16_boot): Set grub_relocator16_idt.
12632 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12633 (LOCAL(realidt)): ... this.
12634 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12635 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12636 (grub_realidt): New variable.
12638 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12640 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12641 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12642 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12643 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12645 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12646 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12647 * po/POTFILES.in: Regenerate.
12649 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12651 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12658 (add_length): Likewise.
12660 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12661 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12663 GDB serial and backtrace support.
12665 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12666 (prot_to_real): Likewise.
12667 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12668 * grub-core/Makefile.core.def (backtrace): New module.
12670 * grub-core/gdb/cstub.c: New file.
12671 * grub-core/gdb/gdb.c: Likewise.
12672 * grub-core/gdb/i386/idt.c: Likewise.
12673 * grub-core/gdb/i386/machdep.S: Likewise.
12674 * grub-core/gdb/i386/signal.c: Likewise.
12675 * grub-core/lib/i386/backtrace.c: Likewise.
12676 * grub-core/lib/backtrace.c: Likewise.
12677 * include/grub/backtrace.h: Likewise.
12678 * include/grub/gdb.h: Likewise.
12679 * include/grub/i386/gdb.h: Likewise.
12681 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12683 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12685 (add_length): Likewise.
12686 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12687 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12689 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12690 __argp_get_display_len.
12692 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12694 $"..." support in scripts.
12696 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12697 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12698 * grub-core/script/yylex.l: Likewise.
12699 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12702 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12704 * gentpl.py: Remove obsolete pkglib_DATA handling.
12706 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12708 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12711 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12712 * util/grub-kbdcomp.in: Likewise.
12713 * util/grub-mkconfig.in: Likewise.
12714 * util/grub-mkconfig_lib.in: Likewise.
12715 * util/grub-mknetdir.in: Likewise.
12716 * util/grub-mkrescue.in: Likewise.
12717 * util/grub-mkstandalone.in: Likewise.
12718 * util/grub-reboot.in: Likewise.
12719 * util/grub-set-default.in: Likewise.
12720 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12722 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12724 Remove GRUB_PREFIX.
12726 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12727 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12728 used for backward compatibility.
12730 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12732 Add new all_video module.
12734 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12735 * grub-core/Makefile.core.def (all_video): New module.
12736 * grub-core/genmoddep.awk: Generate dependency of all_video from
12738 * grub-core/lib/fake_module.c: New file.
12739 * grub-core/normal/main.c (features): Add feature_all_video_module.
12740 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12741 don't do explicit search again.
12742 insmod all_video in load_video if available.
12744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12746 Another round of string clarification and adding TRANSLATORS comments.
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12750 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12752 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12754 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12756 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12757 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12759 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12761 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12762 trailing newline implicitly. All users updated.
12764 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12766 Implement serial on IEEE1275 and EFI.
12768 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12769 on emu. Mention arc and emu as the only platforms without serial
12771 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12772 ieee1275 platforms.
12773 * grub-core/term/efi/serial.c: New file.
12774 * grub-core/term/ieee1275/serial.c: Likewise.
12775 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12776 specification if no ns8250 driver is available.
12777 (grub_cmd_serial): Likewise.
12778 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12779 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12780 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12781 (grub_efi_parity_type_t): New type.
12782 (grub_efi_stop_bits_t): Likewise.
12783 (grub_efi_serial_io_interface): New struct.
12784 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12785 available for all interfaces.
12786 Add EFI and IEEE1275 fields.
12787 (grub_ofserial_init): New proto.
12788 (grub_efiserial_init): Likeiwse.
12789 * util/grub.d/00_header.in: Don't check for the presence of serial
12792 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12794 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12795 name as if it was an alias.
12797 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12799 * grub-core/commands/lsacpi.c (options): Fix typo.
12801 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12803 Convert grub-emu to argp.
12805 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12807 * util/argp_common.c: Rename to ...
12808 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12809 Add missing includes.
12810 * grub-core/kern/emu/main.c: Convert to argp.
12811 * po/POTFILES.in: Regenerate.
12812 * util/grub-install.in (usage): Make first letter lowcase in messages
12814 * util/grub-setup.c (options): Likewise.
12816 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12818 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12819 Put back accidently commented-out code.
12821 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12823 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12824 loop check using Brent algorithm.
12825 (grub_hfsplus_btree_search): Likewise.
12827 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12829 * util/grub-install.in: Fix usage of wrong device for PreP install.
12831 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12833 * conf/Makefile.common (CFLAGS_GNULIB): Add
12834 -Wno-unsafe-loop-optimizations.
12835 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12837 * grub-core/commands/legacycfg.c: Add pragma to skip
12838 -Wunsafe-loop-optimizations.
12839 (check_password_md5_real): Fix loop counter type.
12840 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12842 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12843 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12845 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12846 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12847 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12849 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12850 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12851 avoid possible infinite loops.
12852 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12853 and -Wunsafe-loop-optimizations.
12854 * grub-core/script/yylex.l: Likewise.
12855 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12856 (print_glyphs): Avoid infinite loops.
12857 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12859 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12861 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12862 to avoid infinite loop.
12863 (disp_acpi_rsdt_table): Likewise.
12865 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12867 * grub-core/font/font.c (grub_font_load): Add support for default
12868 path for fonts ($prefix/fonts).
12869 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12870 for checking if string is a path.
12871 * grub-core/normal/main.c (features): Add feature_default_font_path.
12872 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12873 * util/grub.d/00_header.in: Use default directory if possible.
12874 * util/grub-install.in: Install unicode.pf2.
12876 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12878 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12879 * po/Rules-swiss: New file.
12880 * po/swiss.sed: Likewise.
12882 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12884 * grub-core/fs/btrfs.c (find_device): Fix typos.
12885 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12886 * util/grub-mkrelpath.c (argp_parser): Likewise.
12887 Reported by: Yuri Chornoivan.
12889 2012-02-23 Dalet Omega <daletomega@gmail.com>
12891 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12892 for usual informative messages.
12894 2012-02-23 Dalet Omega <daletomega@gmail.com>
12898 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12899 * conf/Makefile.common: Define starfielddir.
12900 * configure.ac: Configure starfield.
12901 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12902 * themes/starfield/README: Likewise.
12903 * themes/starfield/blob_w.png: Likewise.
12904 * themes/starfield/boot_menu_c.png: Likewise.
12905 * themes/starfield/boot_menu_e.png: Likewise.
12906 * themes/starfield/boot_menu_n.png: Likewise.
12907 * themes/starfield/boot_menu_ne.png: Likewise.
12908 * themes/starfield/boot_menu_nw.png: Likewise.
12909 * themes/starfield/boot_menu_s.png: Likewise.
12910 * themes/starfield/boot_menu_se.png: Likewise.
12911 * themes/starfield/boot_menu_sw.png: Likewise.
12912 * themes/starfield/boot_menu_w.png: Likewise.
12913 * themes/starfield/slider_c.png: Likewise.
12914 * themes/starfield/slider_n.png: Likewise.
12915 * themes/starfield/slider_s.png: Likewise.
12916 * themes/starfield/src/blob_nw.xcf: Likewise.
12917 * themes/starfield/src/bootmenu/: Likewise.
12918 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12919 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12920 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12921 * themes/starfield/src/slider_c.xcf: Likewise.
12922 * themes/starfield/src/slider_n.xcf: Likewise.
12923 * themes/starfield/src/slider_s.xcf: Likewise.
12924 * themes/starfield/src/terminalbox/: Likewise.
12925 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12926 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12927 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12928 * themes/starfield/starfield.png: Likewise.
12929 * themes/starfield/terminal_box_c.png: Likewise.
12930 * themes/starfield/terminal_box_e.png: Likewise.
12931 * themes/starfield/terminal_box_n.png: Likewise.
12932 * themes/starfield/terminal_box_ne.png: Likewise.
12933 * themes/starfield/terminal_box_nw.png: Likewise.
12934 * themes/starfield/terminal_box_s.png: Likewise.
12935 * themes/starfield/terminal_box_se.png: Likewise.
12936 * themes/starfield/terminal_box_sw.png: Likewise.
12937 * themes/starfield/terminal_box_w.png: Likewise.
12938 * themes/starfield/theme.txt: Likewise.
12940 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12942 * util/grub.d/00_header.in: Add missing export theme.
12944 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12946 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12948 Reported by: Eren D.
12950 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12952 * conf/Makefile.common (grubdatadir): Removed.
12953 (Makefile.am): Move eveything grubdata to pkgdata.
12955 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12957 * grub-core/commands/acpihalt.c (get_sleep_type):
12958 Remove unused variable.
12960 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12962 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12963 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12964 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12965 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12966 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12967 i18n with gettext no-op.
12968 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12969 GRUB_ACPI_OPCODE_STRING_CONST.
12970 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12971 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12973 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12975 * po/POTFILES.in: Regenerate.
12977 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12979 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12980 -Wno-error=missing-noreturn.
12982 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12984 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12985 condition to avoid possibly infinite loops.
12986 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12987 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12989 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12991 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12992 condition to avoid possibly infinite loops.
12994 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12996 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12999 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13001 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13003 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13005 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13007 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13009 * util/bin2h.c (usage): Add missing attribute noreturn.
13011 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13013 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13014 if the size isn't divisible by 512.
13016 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13018 Make list_push and list_remove functions rather than inline functions
13019 to decrease size and avoid aliasing violations.
13021 * include/grub/list.h (grub_list_push): Move to ...
13022 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13023 * include/grub/list.h (grub_list_remove): Move to ...
13024 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13026 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13028 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13029 and -Wunused-result.
13031 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13033 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13034 Reported by: Seth Goldberg
13036 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13038 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13040 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13042 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13043 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13045 * docs/grub.texi (Simple configuration): Document
13046 GRUB_CMDLINE_GNUMACH.
13048 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13050 * conf/Makefile.common (platform_SCRIPTS): New variable.
13051 (platform_PROGRAMS): Likewise.
13052 * gentpl.py: Mark *,module and *.image for install.
13053 * grub-core/gdb_grub.in: Add a notice of expected environment.
13054 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13055 (gmodule.pl): Likewise.
13057 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13059 Replace grub_checkkey with grub_getkey_noblock.
13061 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13062 (grub_getkey_noblock): ... this. All users updated.
13064 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13066 * grub-core/kern/emu/console.c: Move to ...
13067 * grub-core/term/emu/console.c: ...here.
13068 (grub_ncurses_getkey): Fix return value if no key is detected.
13070 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13072 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13073 (grub_unit_test_fini): Likewise.
13074 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13076 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13078 * include/grub/test.h (GRUB_UNIT_TEST)
13080 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13082 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13083 Better error handling.
13084 (grub_script_return): Likewise.
13085 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13087 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13089 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13090 rimplicit redifinition.
13092 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13094 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13097 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13099 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13100 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13103 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13105 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13106 as GRUB_ERR_BUG. Don't malloc if no device is available.
13108 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13110 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13111 Mark calling with invalid term as GRUB_ERR_BUG.
13113 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13115 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13116 packets rather than raising an error.
13118 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13120 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13123 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13125 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13126 diagnostic to dprintf.
13127 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13129 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13131 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13134 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13136 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13137 (grub_ntfs_iterate_dir): Likewise.
13139 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13141 Efiemu stylistic fixes and gettext.
13143 * grub-core/efiemu/i386/loadcore32.c
13144 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13145 * grub-core/efiemu/i386/loadcore64.c
13146 (grub_arch_efiemu_relocate_symbols64): Likewise.
13147 * grub-core/efiemu/i386/pc/cfgtables.c
13148 (grub_machine_efiemu_init_tables): Likewise.
13149 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13150 (grub_efiemu_loadcore_initXX): Add a filename argument.
13152 Improved error message.
13153 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13154 Add a filename argument.
13156 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13157 Reclassify double relocation as GRUB_ERR_BUG.
13159 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13161 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13164 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13166 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13169 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13171 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13173 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13175 Improve string. Gettextize.
13177 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13179 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13181 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13183 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13185 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13186 [GRUB_UTIL]: New function.
13187 (insert_array) [GRUB_UTIL]: Store partmaps.
13188 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13190 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13191 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13192 (probe_abstraction): Print diskfilter and not raid.
13193 Reported by: Lennart Sorensen
13195 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13197 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13198 * util/grub-mkimagexx.c (MASK3): New define.
13199 (add_value_to_slot_20b): Use MASK3.
13200 (add_value_to_slot_21): Likewise.
13201 (relocate_addresses): Fix format specification.
13202 (load_image): Explicitly init symtab_section.
13204 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13206 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13207 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13209 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13211 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13213 Reported by: Lennart Sorensen
13215 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13217 * gentpl.py: Add missing license header.
13218 * docs/grub.texi: Update copyright year.
13220 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13222 Source grub-mkconfig_lib from the build directory at build time.
13223 Suggested by: Vladimir Serbinenko.
13225 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13226 * util/grub-install.in: Define pkgdatadir if not already set, and source
13227 grub-mkconfig_lib from there.
13228 * util/grub-kbdcomp.in: Likewise.
13229 * util/grub-mkconfig.in: Likewise.
13230 * util/grub-mknetdir.in: Likewise.
13231 * util/grub-mkrescue.in: Likewise.
13232 * util/grub-mkstandalone.in: Likewise.
13233 * util/grub-reboot.in: Likewise.
13234 * util/grub-set-default.in: Likewise.
13235 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13237 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13239 Increase warning level.
13241 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13242 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13243 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13244 (TARGET_CFLAGS): Likewise.
13245 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13246 * grub-core/Makefile.core.def (decompressor_xz): Add
13247 -Wno-unreachable-code.
13248 (normal): Add -Wno-redundant-decls.
13249 (xzio): Add -Wno-unreachable-code.
13250 (lzopio): Add -Wno-redundant-decls -Wno-error.
13251 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13252 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13253 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13254 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13255 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13256 * grub-core/kern/i386/coreboot/init.c: Add exception to
13257 -Wsuggest-attribute=noreturn.
13258 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13259 * grub-core/kern/ia64/dl_helper.c: Likewise.
13260 * grub-core/kern/mips/dl.c: Likewise.
13261 * grub-core/kern/sparc64/dl.c: Likewise.
13262 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13263 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13264 (memcmp): Likewise.
13265 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13266 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13267 * grub-core/loader/mips/linux.c: Likewise.
13268 * grub-core/loader/multiboot_elfxx.c: Likewise.
13269 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13270 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13271 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13272 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13274 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13275 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13278 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13283 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13285 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13286 Avoid improper use of strings.
13287 (grub_cmd_legacy_initrdnounzip): Likewise.
13289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13291 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13293 (grub_util_info): Likewise.
13294 (grub_util_error): Likewise.
13296 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13298 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13299 * util/grub-fstest.c (fstest): Likewise.
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13303 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13304 (grub_md_sha512_real): Likewise.
13305 (grub_util_get_geli_uuid): Likewise.
13306 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13307 (grub_util_biosdisk_open): Fix format specification.
13308 Respect format security.
13309 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13310 (xrealloc): Likewise.
13311 (xasprintf): Likewise.
13313 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13315 * util/import_gcry.py: Include grub/crypto.h in init.c.
13317 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13319 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13320 (generate_image): Make prefix a const char *.
13321 Fix format specifications. Respect format security.
13322 Avoid void * arithmetics.
13324 (argp_parser): Remove unused variable. Respect format security.
13325 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13326 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13327 (count_funcs): Remove unused variable.
13328 (relocate_addresses): Fix format specification.
13329 Disable x86-64 with elf32. Remove unused variables.
13330 (add_fixup_entry): Avoid shadowing.
13331 (make_reloc_section): Fix format specification.
13333 (locate_sections): Fix format specifications.
13334 (load_image): Avoid shadowing.
13336 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13338 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13339 Fix format specifications. Respect format security.
13340 Don't translate already translated grub_errmsg.
13341 (argp_parser): Remove unused variable
13343 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13345 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13347 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13349 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13350 (main): Likewise. Use xmalloc. Respect format security.
13352 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13354 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13356 (argp_parser): Remove unused variable.
13358 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13360 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13361 (add_pixel): Make static.
13362 (add_font): Likewise.
13363 (write_string_section): Make name and str a const char *.
13364 (write_be16_section): Make name a const char *.
13365 (print_glyphs): Make static.
13366 (write_font_ascii_bitmap): Likewise.
13367 (write_font_width_spec): Likewise.
13368 (write_font_pf2): Likewise.
13369 (argp_parser): Remove unused variable.
13370 Respect format security.
13371 (main): Avoid shadowing. Respect format security.
13373 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13375 * util/grub-editenv.c (argp_parser): Make static.
13376 (create_envblk_file): Use xmalloc.
13377 (open_envblk_file): Likewise.
13378 Resepect format security.
13379 (set_variables): Respect format security.
13381 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13383 * util/getroot.c (grub_find_device): Respect format security.
13384 (get_mdadm_uuid): Remove unused variable.
13385 (grub_util_pull_device): Dont call gettext on already translated
13387 (find_system_device): Remove unused variable.
13388 (grub_util_get_grub_dev): Likewise.
13389 (grub_make_system_path_relative_to_its_root): Respect format security.
13391 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393 * util/grub-fstest.c (execute_command): Make first argument
13395 (read_file): Avoid shadowing.
13396 Reuse underlying error message if device open fails.
13397 (cmd_cmp): Respect format security.
13398 (root): Make const char *.
13399 (fstest): Remove args argument and use global copy.
13400 Respect format security.
13401 (argp_parser): Make static.
13402 (main): Make default_root const char *.
13404 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13406 * util/grub-mount.c (root): Make const char *.
13407 (execute_command): Make first argument a const char *.
13408 (fuse_init): Respect format security.
13409 (argp_parser): Make static. Remove unused variable.
13410 (main): Make default_root a const char *.
13411 Respect format security.
13413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13415 * util/grub-probe.c (probe): Don't call gettext on already translated
13417 Remove unused variables.
13418 (argp_parser): Remove unused variable.
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13422 * util/grub-script-check.c (argp_parser): Remove unused variable.
13423 (main): Rename read to curread to avoid shadowing.
13425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13427 * util/misc.c (grub_util_write_image_at): Fix format specification.
13428 (grub_util_write_image): Likewise.
13429 (grub_script_execute_argument_to_string): Removed (unused).
13430 (grub_script_execute_menuentry): Likewise.
13431 (grub_putchar): Likewise.
13433 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13435 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13436 (FUNCTION) [GRUB_UTIL]: Likewise.
13437 (VARIABLE) [GRUB_UTIL]: Likewise.
13439 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13442 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13444 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13446 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13451 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13452 (LzmaEnc_SaveState): Removed (unused).
13453 (LzmaEnc_RestoreState): Likewise.
13454 (LzmaEnc_InitPriceTables): Made static.
13455 (LzmaEnc_Construct): Likewise.
13456 (LzmaEnc_FreeLits): Likewise.
13457 (LzmaEnc_Destruct): Likewise.
13458 (LzmaEnc_Init): Likewise.
13459 (LzmaEnc_InitPrices): Likewise.
13460 (LzmaEnc_Finish): Likewise.
13461 (LzmaEnc_PrepareForLzma2): Removed (unused).
13462 (LzmaEnc_MemPrepare): Likewise.
13463 (LzmaEnc_GetNumAvailableBytes): Likewise.
13464 (LzmaEnc_GetCurBuf): Likewise.
13465 (LzmaEnc_CodeOneMemBlock): Likewise.
13467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13469 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13470 (grub_util_ldm_embed): Likewise.
13472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13474 * util/grub-editenv.c (print_var): Rename name to varname to
13476 (main): Rename index to curindex to avoid shadowing.
13477 Make filename a const char *.
13479 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13481 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13482 to arg_getline to avoid shadowing.
13484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13486 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13487 disk_ to avoid shadowing.
13489 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13491 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13492 curindex to avoid shadowing.
13494 (MatchFinder_GetNumAvailableBytes): Make static.
13496 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13498 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13501 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13503 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13504 argument from encrypt to do_encrypt to avoid shadowing.
13506 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13508 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13509 incorrect nesting of #if's.
13511 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13513 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13514 checks which are always false on some platforms.
13515 (grub_cmd_lsacpi): Likewise.
13516 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13517 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13520 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13523 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13525 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13527 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13528 re_dfa_t to avoid breaking alignment invariants.
13529 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13530 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13532 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13534 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13535 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13537 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13539 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13542 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13544 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13545 conserve alignment invariants.
13546 (grub_ehci_ehcc_read16): Likewise.
13547 (grub_ehci_oper_read32): Likewise.
13548 (grub_ehci_oper_write32): Likewise.
13549 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13550 Conserve alignment invariants.
13552 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13554 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13555 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13558 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13560 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13561 Remove unused variable.
13563 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13565 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13568 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13570 * include/grub/net.h: Remove double declarations.
13572 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13574 Remove "payload" command in ia64 Linux loader since I couldn't
13575 find any evidence of it being used for anything.
13576 Replace "relocate" command with an environment variable
13578 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13580 (ia64_boot_payload): Removed.
13581 (last_payload): Likewise.
13582 (RELOCATE_OFF): Likewise.
13583 (RELOCATE_ON): Likewise.
13584 (RELOCATE_FORCE): Likewise.
13585 (relocate): Likewise.
13586 (free_pages): Don't free payloads.
13587 (grub_load_elf64): Use common error messages.
13588 Use "linux_relocate" variable.
13589 Increase the space after boot_params.
13590 (grub_cmd_payload): Removed.
13591 (grub_cmd_relocate): Likewise.
13592 (grub_cmd_fpswa): Improve messages.
13593 (cmd_payload): Removed.
13594 (cmd_relocate): Likewise.
13595 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13596 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13598 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13600 Convert UHCI to DMA framework.
13602 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13603 (grub_uhci_pci_iter): Fill new members
13604 (grub_alloc_td): Use P2V and V2P functions.
13605 (grub_free_queue): Likewise.
13606 (grub_alloc_qh): Likewise.
13607 (grub_uhci_setup_transfer): Likewise.
13608 (grub_uhci_check_transfer): Likewise.
13610 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13612 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13613 Remove assignment in if while on it.
13615 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13617 * util/grub-mkstandalone.in: Fix modules directory.
13619 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13621 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13623 (argp_parser): Accept "auto" as compression specification.
13625 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13627 Fix `help' with unloaded modules.
13629 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13630 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13631 (grub_dyncmd_dispatcher): Small stylistic fix.
13632 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13633 explicit help is requested.
13635 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13637 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13638 Explicitly init restart while on it.
13640 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13642 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13645 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13647 * util/grub-mknetdir.in: Use . rather than source for POSIX
13650 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13652 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13654 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13656 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13659 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13661 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13664 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13666 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13668 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13670 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13671 iteration of partitions.
13673 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13675 Improve gettext support. Stylistic fixes and error handling fixes while
13678 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13680 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13681 part. Instead setup the correct stack in RM.
13682 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13684 * include/grub/i386/relocator_private.h: New file.
13686 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13688 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13690 * util/grub-fstest.c (options): Add missing DEVICE part.
13692 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13694 Clarify and unify messages.
13696 * grub-core/commands/hashsum.c (options): Unify messages.
13697 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13698 literal-only message as translatable.
13699 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13700 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13701 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13703 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13704 key, not the key used to unlock. Clarify what it's used for.
13705 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13706 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13707 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13708 * util/grub-editenv.c (options): Unify "verbose" message.
13709 * util/grub-fstest.c (read_file): Unify error message.
13710 (fstest): Add quotes around commands.
13711 (options): Unify "verbose" message.
13712 * util/grub-install.in: Add quotes around variable name.
13713 * util/grub-kbdcomp.in: Unify error message.
13714 * util/grub-mkfont.c (main): Likewise.
13715 * util/grub-mkrescue.in: Likewise.
13716 * util/grub-mklayout.c (options): Unify "verbose" message.
13717 * util/grub-mkstandalone.in: Unify help and verbose messages.
13718 * util/grub-mount.c (options): Unify "verbose" message.
13719 * util/grub-probe.c (options): Likewise.
13720 * util/grub-script-check.c (options): Likewise.
13721 * util/grub-setup.c (setup): Unify no-terminator message.
13722 (options): Use DEVICE and not DEV.
13723 Unify "verbose" message.
13724 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13726 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13728 Improve and unify messages.
13730 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13731 name. All users updated.
13732 Print filename in error.
13733 (read_device_map): Print filename in error.
13734 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13735 (grub_util_get_os_disk): Likewise.
13736 (grub_util_biosdisk_get_grub_dev): Likewise.
13737 (grub_util_check_block_device): Likewise.
13738 (grub_util_check_char_device): Likewise.
13739 (grub_make_system_path_relative_to_its_root): Likewise.
13740 * util/grub-editenv.c (create_envblk_file): Likewise.
13741 (open_envblk_file): Likewise.
13742 (write_envblk): Likewise.
13743 * util/grub-fstest.c (cmd_cp): Likewise.
13744 (cmd_cat): Likewise.
13745 (cmd_cmp): Likewise.
13746 * util/grub-menulst2cfg.c (main): Likewise.
13747 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13748 (write_font_width_spec): Likewise.
13749 (write_font_pf2): Likewise.
13750 * util/grub-mkimage.c (generate_image): New argument outname.
13752 Remove unreacheable message.
13753 (options): Unify messages.
13754 (help_filter): Likewise.
13755 * util/grub-mklayout.c (usage): Removed (unused).
13756 (main): Print filename in error.
13757 * util/grub-mkrescue.in: Fix wrong quoting.
13758 * util/grub-setup.c (setup): Print filename in error.
13759 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13760 (check_sas): Likewise.
13761 * util/misc.c (grub_util_get_fp_size): Removed.
13762 (grub_util_get_image_size): Print filename in error.
13763 (grub_util_read_at): Removed.
13764 (grub_util_read_image): Print filename in error.
13765 (grub_util_load_image): Likewise.
13766 (grub_util_write_image_at): New argument filename. All users updated.
13767 Print filename in error.
13768 (grub_util_write_image): New argument filename. All users updated.
13769 Print filename in error.
13770 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13771 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13773 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13775 * grub-core/Makefile.core.def (pxechain): New module.
13776 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13777 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13779 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13780 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13782 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13784 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13785 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13786 * include/grub/err.h (grub_error_saved): New struct.
13787 (grub_errmsg): Make array size explicit.
13788 * include/grub/misc.h (grub_error_save): New function.
13789 (grub_error_load): Likewise.
13790 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13791 (grub_error_push): Update `errno' member name.
13792 (grub_error_pop): Likewise
13793 * grub-core/net/tftp.c (tftp_data): New member save_err.
13794 (tftp_receive): Save error.
13795 (tftp_open): Restore error.
13797 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13799 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13800 to real mode down to execute A20-related code in protected mode as
13803 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13805 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13806 NULL when the argument `level' has an unexpected value.
13808 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13810 Move platform-dependent files from $prefix to $prefix/$platform.
13812 * config.h.in (GRUB_TARGET_CPU): New definition.
13813 (GRUB_PLATFORM): Likewise.
13814 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13815 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13816 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13817 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13818 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13819 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13820 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13821 * grub-core/normal/term.c (read_terminal_list): Likewise.
13822 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13824 (grub_gettext_init_ext): Likewise.
13825 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13827 * util/grub-install.in: Update directories.
13828 * util/grub-mknetdir.in: Likewise.
13829 * util/grub-mkrescue.in: Likewise.
13831 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13833 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13834 grub_error framework. All users updated.
13836 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13838 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13839 lists (by always binsearching), improve caching (cache strings
13840 used for binsearch, not only results), improve
13841 maintainability (by using more structured binary search) and correct
13844 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13846 * grub-core/script/execute.c (grub_script_return): Fix warning.
13848 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13850 * grub-core/script/execute.c (grub_script_return): Fix potential
13852 Reported by: Jim Meyering.
13854 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13856 * po/POTFILES.in: Regenerate.
13857 * util/grub-install.in: Gettextize the strings missed in first pass.
13859 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861 * Makefile.util.def (grub-mkdevicemap): Removed.
13862 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13863 * include/grub/util/deviceiter.h: Removed.
13864 * util/deviceiter.c: Likewise.
13865 * util/getroot.c (grub_util_get_os_disk): New function.
13866 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13867 replacement for EFI.
13868 * util/grub-mkdevicemap.c: Removed.
13869 * util/grub-probe.c (probe): Handle PRINT_DISK.
13870 (argp_parser): Handle -t disk.
13872 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13874 * util/grub-mkfont.c: Migrate to argp.
13875 * util/grub-mklayout.c: Likewise.
13876 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13877 * util/grub-mkrelpath.c: Likewise.
13878 * util/grub-probe.c: Likewise.
13879 * util/grub-script-check.c: Likewise.
13881 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13883 * util/grub-reboot.in: Add missing datarootdir.
13884 Add missing newline.
13885 * util/grub-set-default.in: Add missing datarootdir.
13886 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13887 * util/grub-mkrescue.in: Likewise.
13889 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13891 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13893 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13895 * util/grub-kbdcomp.in: Add decent help and gettextize.
13896 * docs/man/grub-kbdcomp.h2m: New file.
13898 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13900 Migrate grub-mkimage.c to argp.
13902 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13903 (grub-setup): Likewise.
13904 * util/grub-setup.c (print_version): Move to ...
13905 * util/argp_common.c (print_version): ... here.
13906 * util/grub-setup.c (argp_program_version_hook): Move to ...
13907 * util/argp_common.c (argp_program_version_hook): ... here.
13908 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13910 * util/grub-mkimage.c (main): Migrate to argp.
13912 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13914 * util/grub-mkrescue.in: Use same message as
13915 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13916 for better translations.
13918 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13920 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13921 options with generic grub-mkrescue.in with the goal of future
13924 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13926 * grub-core/kern/mm.c: Add missing include of i18n.h
13927 * grub-core/lib/relocator.c: Likewise.
13929 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13931 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13933 (allocate_pages): Check return value.
13934 Replace fatal with error.
13935 (grub_linux_boot): Replace printf with dprintf.
13936 Check find_mmap_size return value.
13937 Replace fatal with error.
13938 Don't call grub_machine_fini.
13939 (grub_load_elf64): Replace printf with dprintf.
13940 (grub_cmd_linux): Likewise.
13941 (grub_cmd_initrd): Likewise.
13942 (grub_cmd_payload): Likewise.
13944 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13946 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13948 * grub-core/video/radeon_fuloong2e.c
13949 (grub_video_radeon_fuloong2e_setup): Likewise.
13950 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13951 * grub-core/video/video.c (grub_video_set_mode): Don't override
13952 standard out of memory message.
13954 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13956 NetBSD disk wedge support.
13958 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13959 [__NetBSD__]: Handle NetBSD disk wedges.
13960 * util/getroot.c (convert_system_partition_to_system_disk)
13961 [__NetBSD__]: Likewise.
13963 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13965 * util/grub-mkconfig.in: Use umask rather than chmod to create
13966 grub.cfg.new to avoid insecure grub.cfg.
13968 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13970 * grub-core/commands/ls.c: Gettextize.
13971 * grub-core/commands/setpci.c: Likewise.
13972 * grub-core/commands/videotest.c: Likewise.
13973 * grub-core/disk/geli.c: Likewise.
13974 * grub-core/kern/mm.c: Likewise.
13975 * grub-core/lib/relocator.c: Likewise.
13976 * grub-core/loader/efi/appleloader.c: Likewise.
13977 * grub-core/loader/i386/xnu.c: Likewise.
13978 * grub-core/loader/ia64/efi/linux.c: Likewise.
13979 * grub-core/loader/xnu.c: Likewise.
13980 * grub-core/net/dns.c: Likewise.
13981 * grub-core/net/net.c: Likewise.
13982 * grub-core/script/lexer.c: Likewise.
13983 * grub-core/script/parser.y: Likewise.
13984 * grub-core/script/yylex.l: Likewise.
13985 * util/getroot.c: Likewise.
13986 * util/grub-setup.c: Likewise.
13988 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13990 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13993 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13995 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13997 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13999 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14001 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14002 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14004 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14006 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14007 * util/grub-install.in: Gettextize.
14008 * util/grub-mkconfig.in: Likewise.
14009 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14011 (grub_warn): Gettextize.
14012 * util/grub-mknetdir.in: Gettextize.
14013 * util/grub-mkrescue.in: Likewise.
14014 * util/grub-mkstandalone.in: Likewise.
14015 * util/grub-reboot.in: Likewise.
14016 * util/grub-set-default.in: Likewise.
14017 * util/grub.d/00_header.in: Likewise.
14018 * util/grub.d/10_hurd.in: Likewise.
14019 * util/grub.d/10_kfreebsd.in: Likewise.
14020 * util/grub.d/10_linux.in: Likewise.
14021 * util/grub.d/10_netbsd.in: Likewise.
14022 * util/grub.d/10_windows.in: Likewise.
14023 * util/grub.d/20_linux_xen.in: Likewise.
14024 * util/grub.d/30_os-prober.in: Likewise.
14025 * po/POTFILES-shell.in: Regenerate.
14027 2012-02-03 Richard Laager <rlaager@wiktel.com>
14029 * util/grub-mkimage.c (main): Fix format-security warning.
14030 * util/grub-mkrelpath.c (main): Likewise.
14031 * util/grub-probe.c (main): Likewise.
14033 2012-02-03 Richard Laager <rlaager@wiktel.com>
14035 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14037 Put back lost PRINT_DRIVE.
14039 2012-02-03 Richard Laager <rlaager@wiktel.com>
14041 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14042 (grub_guess_root_devices): Replace strlen with sizeof.
14044 (find_root_devices_from_poolname): Remove unused variable.
14047 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14049 Support install on multi-device filesystems.
14051 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14052 (grub_guess_root_devices): ...this. Return char **. All users updated.
14053 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14055 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14056 (find_root_devices_from_poolname): ... here.
14057 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14059 (grub_guess_root_device): Rename to ...
14060 (grub_guess_root_devices): ... this. Return char **. All users updated.
14061 * util/grub-install.in: Handle multi-device filesystems.
14062 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14063 argument. All users updated.
14064 Handle multi-device filesystems.
14065 Use 'delim' as separator.
14066 Remove device check to allow filesystems on file.
14067 (main): Support -0 argument. Handle multi-device.
14068 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14069 Fix a cross-device check while on it.
14070 (arguments): Remove root_dev.
14071 (argp_parser): Remove -r.
14072 (main): Remove root_dev.
14074 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14076 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14078 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14080 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14082 Reported by: NODA, Kai <nodakai>.
14084 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14088 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14090 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14091 (grub_ehci_setup_qh): Likewise.
14092 (grub_ehci_find_qh): Likewise.
14093 (grub_ehci_transaction): Likewise.
14094 (grub_ehci_setup_transfer): Likewise.
14095 (grub_ehci_check_transfer): Likewise.
14096 (grub_ehci_portstatus): Likewise.
14097 (grub_ehci_detect_dev): Likewise.
14098 (grub_ehci_transfer_controller_data): New field td_last_phys.
14099 (grub_ehci_setup_transfer): Fill td_last_phys.
14100 (grub_ehci_check_transfer): Use td_last_phys.
14102 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14104 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14105 if no submenu is present.
14107 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14111 * include/grub/usb.h (grub_usbms_protocol_t): New values
14112 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14113 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14114 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14115 (grub_usbms_dev): Add subclass, protocol and intrpt.
14116 Remove in_maxsz and out_maxsz.
14117 (grub_usbms_reset): Rename to ...
14118 (grub_usbms_bo_reset): .. this.
14119 (grub_usbms_cbi_cmd): New function.
14120 (grub_usbms_cbi_reset): Likewise.
14121 (grub_usbms_reset): Likewise.
14122 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14123 (grub_usbms_transfer): Rename to ...
14124 (grub_usbms_transfer_bo): ... this.
14125 (grub_usbms_transfer_cbi): Likewise.
14126 (grub_usbms_transfer): Likewise.
14128 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14129 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14131 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14132 the support for the CS5536 modification thereos and few bugfixes.
14134 * grub-core/Makefile.core.def (ehci): New module.
14135 * grub-core/bus/usb/ehci.c: New file.
14136 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14137 port and hubaddr. All users updated.
14138 Save port and hubaddr into dev structure.
14139 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14141 * include/grub/pci.h (grub_dma_phys2virt): New function.
14142 (grub_dma_virt2phys): Likewise.
14143 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14145 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14147 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14148 check as some mkfs implementations omit it.
14150 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14152 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14154 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14156 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14157 Add new member volname2.
14158 (grub_jfs_label): Use volname2 if available.
14160 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14162 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14163 over last_mounted as seen in image generated by mkfs.nilfs2.
14164 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14166 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14168 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14169 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14170 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14172 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14174 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14177 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14179 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14180 subvolume name (by removing a bogus and useless check).
14182 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14184 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14185 sizeof while on it.
14187 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14189 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14190 (grub_scsi_read_capacity10): ... this.
14191 (grub_scsi_read_capacity16): New function.
14192 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14194 Fix off-by-one error.
14195 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14197 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14198 (grub_scsi_read_capacity10): ... this.
14199 (grub_scsi_read_capacity_data): Rename to ...
14200 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14201 (grub_scsi_read_capacity16): New struct.
14202 (grub_scsi_read_capacity16_data): Likewise.
14203 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14204 grub_scsi_cmd_read_capacity10.
14205 New command grub_scsi_cmd_read_capacity16.
14207 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14209 SCSI >2TiB support.
14211 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14212 (grub_scsi_write16): Likewise.
14213 (grub_scsi_read): Use read16 when necessary.
14214 (grub_scsi_write): Likewise.
14215 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14216 (grub_scsi_write16): Likewise.
14217 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14219 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14221 SCSI write support (for usbms mainly).
14223 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14225 (grub_scsi_write): Implement.
14226 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14228 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14230 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14233 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14235 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14237 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14239 * po/POTFILES.in: Regenerate.
14241 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14243 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14244 with grub_printf to avoid unnecessary fatal failure.
14246 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14248 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14249 (INT_MAX): Likewise.
14250 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14251 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14252 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14253 (strcpy): Likewise.
14254 (strstr): Likewise.
14255 (strchr): Likewise.
14256 (strncpy): Likewise.
14257 (strcat): Likewise.
14258 (strncat): Likewise.
14259 (strcoll): Likewise.
14260 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14261 (GRUB_INT_MAX): Likewise.
14263 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14265 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14267 (optimize_utf8): Likewise.
14268 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14270 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14272 * grub-core/boot/i386/pc/lnxboot.S: Use
14273 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14274 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14276 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14278 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14280 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14282 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14283 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14284 now to avoid double free.
14285 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14287 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14288 * util/grub-probe.c (escape_of_path): Always return a new copy.
14289 (print_full_name): Escape path.
14290 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14291 Fix hints on abstractions.
14293 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14295 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14296 Don't add "root" line if no compatibility hont is available.
14297 Suggested by: Seth Goldberg.
14299 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14301 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14302 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14303 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14304 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14306 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14308 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14310 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14312 * util/grub-pe2elf.c (ehdr): Make static.
14314 (num_sections): Likewise.
14315 (offset): Likewise.
14317 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14319 Eliminate ofpath limits and possible overflows.
14321 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14322 (OF_PATH_MAX): Removed.
14323 (MAX_DISK_CAT): New const.
14324 (find_obppath): Use allocated rather than preallocated buffer.
14325 Return result. Argument of_path removed. All users updated.
14326 Add missing fdstat.
14327 (xrealpath): New function.
14328 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14329 Allocate rather than use preallocated buffer. All users updated.
14330 (__of_path_common): Use allocated rather than preallocatecd buffer.
14331 Return result. Argument of_path removed. All users updated.
14332 (vendor_is_ATA): Read only needed part form the file.
14333 (check_sas): Allocate depending on contents rather than fixed.
14334 (main) [STANDALONE]: Handle NULL result.
14336 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14340 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342 Cryptodisk write support.
14344 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14345 (grub_cryptodisk_decrypt): Moved logic to ...
14346 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14347 (grub_cryptodisk_write): Implement.
14348 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14349 (grub_util_fd_write): ... this. Make global.
14350 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14352 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14354 * include/grub/list.h (grub_list_remove): Don't crash if element is
14357 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14359 Rename ofconsole to console.
14361 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14362 as sysnonym to console.
14363 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14364 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14365 Rename grub_ofconsole_ to grub_console_. All users updated
14366 (grub_console_term_output): Rename "ofconsole" to "console".
14367 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14370 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14372 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14374 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14375 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14376 GRUB_DISK_DEVICE_FILE_ID.
14378 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14380 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14381 and improve performance.
14383 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14385 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14386 missing ieee1275/ prefix on whole disk.
14388 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14390 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14391 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14393 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14395 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14397 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14399 Merge common RAID and LVM logic to an abstract diskfilter.
14400 Add LDM support using the same framework.
14402 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14403 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14404 (libgrubmods): Remove grub-core/disk/raid.c and
14405 grub-core/partmap/gpt.c.
14406 * grub-core/Makefile.core.def (ldm): New module.
14407 (raid): Renamed to diskfilter. All users updated.
14408 * grub-core/disk/raid.c: Moved to ...
14409 * grub-core/disk/diskfilter.c: ... here.
14410 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14412 (find_array): Renamed to ...
14413 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14414 (grub_is_array_readable): Renamed to ...
14415 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14416 (insert_array): New argument id.
14417 (is_node_readable): New function.
14418 (scan_device): Rename to ...
14419 (scan_disk): .. this. Restrict to one disk.
14420 (scan_devices): New function.
14421 (grub_diskfilter_iterate): Support multi-LV.
14422 Skip invisible and nameless LVs.
14423 (grub_diskfilter_memberlist): Support multi-LV.
14424 (grub_diskfilter_read_node): New function.
14425 (grub_raid_read): Most of logic moved to ...
14426 (read_segment): ... here
14427 (read_lv): New function.
14428 (grub_diskfilter_get_vg_by_uuid): New function.
14429 (grub_diskfilter_make_raid): Likewise.
14430 * grub-core/disk/ldm.c: New file.
14431 * grub-core/disk/lvm.c (vg_list): Removed.
14432 (lv_count): Likewise.
14433 (scan_depth): Likewise.
14434 (is_lv_readable): Likewise.
14435 (grub_lvm_getvalue): Advance pointer past the number.
14436 (find_lv): Removed.
14437 (do_lvm_scan): Refactored into ...
14438 (grub_lvm_detect): ... this. Support raid.
14439 (grub_lvm_iterate): Removed.
14440 (grub_lvm_memberlist): Likewise.
14441 (grub_lvm_open): Likewise.
14442 (grub_lvm_close): Likewise.
14443 (read_lv): Likewise.
14444 (read_node): Likewise.
14445 (is_node_readable): Likewise.
14446 (is_lv_readable): Likewise.
14447 (grub_lvm_read): Likewise.
14448 (grub_lvm_write): Likewise.
14449 (grub_lvm_dev): Use diskfilter
14450 (GRUB_MOD_INIT): Likewise.
14451 (GRUB_MOD_FINI): Likewise.
14452 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14454 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14455 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14456 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14457 grub_diskfilter_read_node.
14458 Fix a bug with xor.
14459 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14460 grub_diskfilter_read_node.
14461 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14462 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14463 (grub_disk_dev_iterate): Move from here...
14464 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14465 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14467 (grub_hostdisk_find_partition_start): Likewise.
14468 (grub_hostdisk_os_dev_to_grub_drive): New function.
14469 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14470 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14471 * util/getroot.c (make_device_name): ... here.
14472 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14474 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14475 * grub-core/kern/emu/hostdisk.c
14476 (convert_system_partition_to_system_disk): Move to ...
14477 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14478 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14479 * util/getroot.c (device_is_wholedisk): ... here.
14480 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14481 * util/getroot.c (find_system_device): ... here.
14482 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14484 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14485 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14487 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14489 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14491 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14492 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14493 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14495 * include/grub/raid.h: Renamed to ...
14496 * include/grub/diskfilter.h: ... this.
14497 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14498 (GRUB_RAID_LAYOUT_*): Make into array.
14499 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14500 (grub_diskfilter_vg): New struct.
14501 (grub_diskfilter_pv_id): Likewise.
14502 (grub_raid_member): Removed.
14503 (grub_raid_array): Likewise.
14504 (grub_diskfilter_pv): New struct.
14505 (grub_diskfilter_lv): Likewise.
14506 (grub_diskfilter_segment): Likewise.
14507 (grub_diskfilter_node): Likewise.
14508 (grub_diskfilter_get_vg_by_uuid): New proto.
14509 (grub_raid_register): Inline.
14510 (grub_diskfilter_unregister): Likewise.
14511 (grub_diskfilter_make_raid): New proto.
14512 (grub_diskfilter_vg_register): Likewise.
14513 (grub_diskfilter_read_node): Likewise.
14514 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14515 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14516 (grub_util_is_ldm): Likewise.
14517 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14518 (grub_hostdisk_find_partition_start): Likewise.
14519 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14520 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14522 (grub_gpt_partition_map_iterate): New proto.
14523 * include/grub/lvm.h (grub_lvm_vg): Removed.
14524 (grub_lvm_pv): Likewise.
14525 (grub_lvm_lv): Likewise.
14526 (grub_lvm_segment): Likewise.
14527 (grub_lvm_node): Likewise.
14528 * util/getroot.c [...]
14529 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14530 (probe_abstraction): Likewise.
14531 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14532 (main): Remove dead logic.
14534 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14536 Simplify root device discover and don't fail when trying to open
14539 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14541 (get_diskname_from_path): Likewise.
14542 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14545 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14547 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14549 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14551 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14554 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14556 * util/grub-install.in: Add missing \.
14557 Reported by: gentoofan
14559 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14561 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14562 (direct_read): Use correct compressed size.
14563 (grub_squash_read_data): Likewise.
14565 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14567 * docs/grub.texi (Platform limitations): New section.
14568 (Platform-specific operations): Likewise.
14569 * docs/grub-dev.texi (Porting): Likewise.
14571 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14573 IEEE1275 disk write support.
14575 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14577 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14578 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14579 and seek loginc to ...
14580 (grub_ofdisk_prepare): ... here.
14581 (grub_ofdisk_write): Implement.
14583 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14585 ARC disk write support.
14587 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14588 (reopen): New argument writable. All users updated.
14589 Handle required access mode.
14590 (grub_arcdisk_write): Implement.
14591 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14592 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14594 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14596 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14597 (read_sblock): Don't attempt to read superblocks outside the disk size.
14599 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14601 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14602 first superblock to find the second one when possible.
14604 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14606 * util/grub-install.in: Fix an ARC bug.
14607 Print a warning if no platform-specific setup is available.
14609 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14611 Use static allocation rather than scratch pointer in reed_solomon.
14612 It decreases its size significantly and avoids a variable in .text.
14614 * grub-core/lib/reed_solomon.c (scratch): Removed.
14615 (chosenstat): New const or static array.
14617 (errpot): Likewise.
14618 (errpos): Likewise.
14621 (errvals): Likewise.
14622 (eqstat): Likewise.
14623 (pol_evaluate): Replace x with log_x argument. All users updated.
14624 (syndroms): Removed.
14625 (gauss_solve): Use statically allocated arrays.
14626 (rs_recover): Likewise.
14627 Calculate syndroms directly.
14628 (decode_block): Use statically allocated arrays.
14629 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14630 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14632 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14634 Eliminate fixed limit on reed solomon decoder length.
14636 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14637 rather than hardcoding the address.
14638 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14639 no_reed_solomon_length.
14640 Move gate_a20 to no-reed-solomon part.
14641 Don't force a particular size of no reed-solomon part.
14642 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14644 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14645 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14647 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14649 * grub-core/commands/wildcard.c (match_files): Handle filenames
14650 without explicit device.
14651 (wildcard_expand): Don't add explicit device if not already present.
14652 * tests/grub_script_echo1.in: Add a new expansion test.
14654 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14656 Replace single-linked with double-linked lists. It results in more
14657 compact and more efficient code.
14659 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14660 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14661 (grub_list_remove): Moved from here ...
14662 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14663 (grub_prio_list_insert): Set prev.
14664 * include/grub/list.h (grub_list): Add prev. All users updated.
14666 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14668 Handle newer autotools. Add some missing quotes while on it.
14670 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14671 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14672 (pkgdata_DATA): ... here.
14673 * Makefile.util.def (update-grub_lib): Removed.
14674 * conf/Makefile.common (pkglib_DATA): Removed.
14675 (pkglib_SCRIPTS): Likewise.
14676 (pkgdata_DATA): New variable.
14677 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14679 Add missing quotes.
14680 Remove unused variable while on it.
14681 * tests/util/grub-shell.in: Likewise.
14682 * util/grub-install.in: Likewise.
14683 * util/grub-mkconfig.in: Likewise.
14684 * util/grub-mknetdir.in: Likewise.
14685 * util/grub-mkrescue.in: Likewise.
14686 * util/grub-mkstandalone.in: Likewise.
14687 * util/grub.d/00_header.in: Likewise.
14688 * util/grub.d/10_hurd.in: Likewise.
14689 * util/grub.d/10_illumos.in: Likewise.
14690 * util/grub.d/10_kfreebsd.in: Likewise.
14691 * util/grub.d/10_linux.in: Likewise.
14692 * util/grub.d/10_netbsd.in: Likewise.
14693 * util/grub.d/10_windows.in: Likewise.
14694 * util/grub.d/20_linux_xen.in: Likewise.
14695 * util/grub.d/30_os-prober.in: Likewise.
14696 * util/update-grub_lib.in: Removed.
14698 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14700 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14701 a workaround for intel problem.
14703 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14704 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14705 2012-01-23 pfsmorigo
14707 * util/grub-install.in: Support dd'in into PreP partition.
14708 * util/grub-probe.c (probe): Support discovering partition type.
14709 (main): Support -t msdos_parttype.
14711 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14713 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14714 infinite recursion using counter.
14715 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14716 init to skip it if the magic check fails.
14717 (dec_stream_header): Init s->crc32.
14719 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14720 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14721 2012-01-22 Richard Laager <rlaager@wiktel.com>
14723 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14725 (find_bestub): Determine correct size.
14726 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14727 (scan_disk): Align the size down.
14728 Call check pool before find_bestub to have ashift.
14730 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14732 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14733 dprintf in no-malloc zone.
14735 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14737 * configure.ac: Add back in test for limits.h.
14739 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14741 Support 4K-sector NTFS.
14743 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14744 (grub_ntfs_data): Remove blocksize.
14745 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14746 Remove data argument. All users updated.
14748 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14750 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14751 being in .text to avoid dprel references.
14752 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14753 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14754 (grub_arch_highmemsize): Likewise.
14755 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14756 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14757 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14759 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14761 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14763 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14764 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14766 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14768 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14770 (grub_set_datetime_cmos): Likewise.
14772 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14774 Make XZ compression parameters dependent on target and not host CPU.
14776 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14777 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14779 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14781 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14782 set but not used variable.
14784 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14786 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14787 created when no uuid support is compiled into mkfs.reiser.
14789 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14791 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14792 (utf8_to_macroman): Do the opposite.
14793 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14795 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14797 * configure.ac: Refise build qemu_mips w/o unifont.
14799 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14801 Eliminate grub_min/grub_max prone to overflow usage.
14803 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14804 (poll_nonroot_hub): Likewise.
14805 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14806 (grub_affs_label): Likewise.
14807 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14808 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14809 (grub_hfs_label): Likewise.
14810 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14811 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14812 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14813 (zap_leaf_array_get): Likewise.
14814 (dnode_get_path): Likewise.
14815 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14816 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14817 * grub-core/script/execute.c (grub_script_break): Likewise.
14818 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14820 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14821 * include/grub/misc.h (grub_min): Removed.
14822 (grub_max): Likewise.
14824 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14826 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14829 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14831 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14833 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14835 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14837 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14839 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14840 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14842 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14844 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14845 rather than a hack for grub_strncasemap.
14847 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14849 Support multiple initrds
14850 Note: part of this was accidently committed in r3739.
14852 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14854 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14855 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14856 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14857 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14858 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14860 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14862 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14863 disks with unknown size.
14864 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14866 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14868 Remove defines pertaining to arbitrary limits not affecting GRUB
14871 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14872 (EXT2_MAX_SYMLINKCNT): Likewise.
14873 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14874 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14875 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14876 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14877 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14878 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14879 (DN_MAX_OBJECT_SHIFT): Likewise.
14880 (DN_MAX_OFFSET_SHIFT): Likewise.
14881 (DN_MAX_OBJECT): Likewise.
14882 (DNODES_PER_LEVEL_SHIFT): Likewise.
14883 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14884 (SPA_MAXBLOCKSIZE): Likewise.
14885 (SPA_BLOCKSIZES): Likewise.
14886 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14887 (MZAP_MAX_BLKSZ): Likewise.
14889 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14891 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14892 handle NULL appropriately.
14895 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14899 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14901 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14902 * configure.ac: Fix efiemu check.
14904 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14906 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14908 Reported by: adamwill
14910 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14912 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14914 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14916 Fix handling of wide characters in gfxterm.
14918 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14919 (clear_char): Likewise.
14920 (paint_char): Skip code == NULL chars.
14921 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14923 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14925 * grub-core/normal/charset.c: Move comment to right place.
14927 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14929 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14930 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14931 (grub_affs_mount): Revert the correct version checking.
14933 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14935 * docs/grub.texi (Unicode): Mention several other unsupported features.
14937 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14939 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14940 case statements as compile-time one.
14941 (direct_read): Prevent spurious warnings.
14942 (grub_squash_read_data): Likewise.
14944 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14946 Various squash4 fixes and LZO and XZ support.
14948 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14949 Add xzembed source files.
14950 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14951 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14952 (grub_squash_inode): New subtype long_dir.
14953 (SQUASH_TYPE_LONG_DIR): New inode type.
14954 (COMPRESSION): New enum.
14955 (XZBUFSIZ): New const.
14956 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14957 (read_chunk): Use data->decompress.
14958 (zlib_decompress): New function.
14959 (lzo_decompress): Likewise.
14960 (xz_decompress): Likewise.
14961 (squash_mount): Set new data fields.
14962 (grub_squash_iterate_dir): Handle long dir.
14963 (squash_unmount): Free xzdec and xzbuf.
14964 (grub_squash_open): Check ino type.
14965 (direct_read): Stylistic fixes. Use data->decompress.
14966 (grub_squash_read_data): Likewise.
14967 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14968 (get_byte): Likewise.
14969 (grub_zlib_disk_read): Removed.
14970 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14971 (GRUB_POSIX_BOOL_DEFINED): New define.
14972 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14973 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14974 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14975 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14977 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14979 Don't override more informative errors.
14981 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14982 * grub-core/font/font.c (open_section): Likewise.
14983 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14984 filename. Don't override errors.
14985 (grub_cmd_openbsd_ramdisk): Don't override errors.
14986 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14987 (grub_cmd_initrd): Likewise.
14988 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14989 (grub_cmd_initrd): Likewise.
14990 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14991 (grub_cmd_linux): Likewise.
14992 (grub_cmd_initrd): Likewise.
14993 (grub_cmd_payload): Likewise.
14994 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14995 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14996 (grub_cmd_module): Likewise.
14997 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14998 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14999 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15000 (grub_cmd_xnu_mkext): Likewise.
15001 (grub_cmd_xnu_ramdisk): Likewise.
15002 (grub_xnu_check_os_bundle_required): Likewise.
15003 (grub_xnu_load_kext_from_dir): Likewise.
15004 (grub_cmd_xnu_kextdir): Likewise.
15005 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15007 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15009 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15010 as 1024 in block size field. Found on one of my test images.
15011 Small optimisation while on it.
15013 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15015 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15016 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15017 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15018 performance fixes while on it.
15019 (grub_sfs_close): Fix memory leak while on it.
15020 (grub_sfs_label): Convert Latin1 to UTF-8.
15022 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15024 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15025 space to avoid overflows.
15026 (grub_hfs_label): Convert from macroman to UTF-8.
15028 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15030 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15032 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15034 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15036 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15038 * unicode: Import Unicode 6.0 data.
15040 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15045 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15047 Avoid cutting in the middle of UTF-8 character.
15049 * include/grub/charset.h (grub_getend): New function.
15050 * grub-core/script/function.c (grub_script_function_find): Use
15052 * grub-core/normal/completion.c (add_completion): Likewise.
15054 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15056 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15057 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15058 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15059 (GRUB_UNICODE_TAG_END): Likewise.
15060 (GRUB_UNICODE_LAST_VALID): Likewise.
15062 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15064 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15065 len and make it smaller. All users updated.
15066 * util/import_unicode.py: Put length and not end character.
15069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15071 Make better Unicode-compliant and unify some UTF-8 code pathes.
15073 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15075 (grub_is_valid_utf8): Use grub_utf8_process.
15076 Check resulting code range.
15077 (grub_utf8_to_ucs4): Use grub_utf8_process.
15078 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15081 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15083 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15085 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15087 * docs/grub.texi (Filesystems): Mention AFS.
15089 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15091 * docs/grub.texi (Filesystems): Clarify restrictions.
15092 (Regexp): Mention non-Unicode regexp behaviour.
15093 (Other): Mention non-Unicode matching behaviour.
15095 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15097 Make HFS implementation use MacRoman.
15099 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15100 (macroman): New const array.
15101 (macroman_to_utf8): New function.
15102 (utf8_to_macroman): Likewise.
15103 (grub_hfs_find_dir): Use utf8_to_macroman.
15104 (grub_hfs_dir): Use macroman_to_utf8.
15105 Set case_insensitive.
15107 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15109 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15111 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15113 Integrate hints into autogeneration scripts.
15115 * docs/grub.texi (Filesystems): Add a hostdisk example.
15116 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15117 (grub-probe): Add ofpath.
15118 * gentpl.py: Remove group nosparc64.
15119 * grub-core/commands/search.c (cache_entry): New struct.
15121 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15122 * grub-core/commands/search_wrap.c (options): Add platform-specific
15124 (grub_cmd_search): Handle platform-specific hints.
15125 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15126 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15127 (grub_util_biosdisk_data): Likewise.
15128 (grub_util_biosdisk_open): Set device_map.
15129 (read_device_map): Handle "" as indication of no map.
15131 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15132 (grub_util_biosdisk_get_compatibility_hint): New function.
15133 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15134 * include/grub/emu/hostdisk.h
15135 (grub_util_biosdisk_get_compatibility_hint): New proto.
15136 * util/grub-install.in: Don't call grub-mkdevicemap.
15137 Add platform-specific hint to load.cfg.
15138 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15139 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15140 hints. Set root preliminary to compatibility hint, not to OS name.
15141 * util/grub-probe.c (PRINT_*): Add hints.
15142 (print): Make static.
15143 (escape_of_path): New function.
15144 (guess_bios_drive): Likewise.
15145 (guess_efi_drive): Likewise.
15146 (guess_baremetal_drive): Likewise.
15147 (print_full_name): Likewise.
15148 (probe): Handle hints.
15150 * util/ieee1275/devicemap.c: Removed.
15151 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15153 (grub_util_devname_to_ofpath): Return NULL on failure.
15155 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15157 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15159 * po/POTFILES.in: Regenerated.
15161 Allow purely long options
15163 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15164 (SHORT_ARG_USAGE): Likewise.
15165 (grub_arg_show_help): Compare opt with help_options.
15166 (parse_option): Receive opt as argument. If makes big simplificatons.
15169 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15171 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15172 Restructure to avoid warning.
15174 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15176 * util/grub-install.in: Account for possible escaped comma in device
15179 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15181 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15184 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15186 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15187 allocation and zero-setting.
15188 (grub_ieee1275_get_devname): Check that alias is complete.
15190 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15192 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15193 unaligned segments.
15195 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15197 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15199 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15200 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15201 Add ieee1275 prefix.
15203 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15205 * docs/grub.texi (Filesystems): Update.
15207 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15209 Support odc, newc and bigendian cpio formats.
15211 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15212 * grub-core/Makefile.core.def (newc): New module.
15214 (cpio_be): Likewise.
15215 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15217 (MAGIC2): Likewise.
15218 (head) [MODE_ODC]: Adapt for the format.
15219 (head) [MODE_NEWC]: Likewise.
15220 (head) [!MODE_*]: Write fields of interest as arrays.
15221 (MAGIC_USTAR): Removed.
15222 (read_number) [MODE_NEWC]: Change to hex.
15223 (read_number) [!MODE_*]: Parse binary arrays.
15224 (grub_cpio_find_file): Factor out the code for better structure and
15225 always use read_number.
15226 (grub_cpio_mount): Use MAGIC and MAGIC2.
15227 (grub_cpio_dir): Exit on first hook non-0 return.
15228 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15229 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15230 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15231 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15232 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15233 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15234 * grub-core/fs/newc.c: New file.
15235 * grub-core/fs/odc.c: Likewise.
15236 * grub-core/fs/cpio_be.c: Likewise.
15238 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15240 Fix handling of tar numbers occupying the whole field.
15242 * grub-core/fs/cpio.c (read_number): New function.
15243 (grub_cpio_find_file): Use read_number instead of strtoull.
15245 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15247 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15248 occupying the whole field size.
15250 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15252 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15254 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15256 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15258 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15260 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15261 TARGET_IMG_LDFLAGS.
15263 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15265 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15266 (mountinfo_entry): Increase the field size to take escaping into
15268 (find_root_device_from_libzfs): Add one byte to size of strings for
15271 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15273 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15275 * util/grub-setup.c (setup): Likewise.
15277 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15279 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15282 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15284 * docs/grub.texi (Internationalisation): New section.
15286 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15288 * docs/grub.texi (Loopback booting): New section.
15290 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15292 * util/grub-mkstandalone.in: Fix minor typo errors.
15294 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15296 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15298 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15299 net/icmp.c and net/icmp6.c.
15300 (http): New module.
15301 (priority_queue): Likewise.
15302 * grub-core/io/bufio.c: Rewritten.
15303 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15304 TYPE_WITH_CONFIGFILE_OPTION.
15305 (legacy_commands): Add bootp and dhcp.
15306 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15307 (grub_legacy_parse): Likewise.
15308 * grub-core/lib/priority_queue.c: New file.
15309 * grub-core/net/arp.c: Add missing license header.
15310 (arp_find_entry): Removed.
15311 (arp_find_entry): Likewise.
15312 (grub_net_arp_resolve): Rename to ...
15313 (grub_net_arp_send_request): ...this.
15314 (grub_net_arp_receive): New card argument.
15315 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15316 Set router and DNS server.
15317 (grub_net_configure_by_dhcp_ack): Handle routing information.
15318 (grub_cmd_bootp): Set checksum.
15319 (grub_bootp_init): Remove net_dhcp.
15320 * grub-core/net/dns.c: New file.
15321 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15323 (get_card_packet): Handle allocation.
15324 (grub_efinet_findcards): Set mtu.
15325 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15326 (get_card_packet): Handle allocation.
15327 (emucard): Set mtu.
15328 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15329 (GRUB_MOD_INIT): Set mtu.
15330 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15332 (get_card_packet): Handle allocation.
15333 (grub_ofnet_findcards): Set mtu.
15334 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15336 (grub_net_recv_ethernet_packet): Handle IPv6.
15337 * grub-core/net/http.c: New file.
15338 * grub-core/net/icmp.c: Likewise.
15339 * grub-core/net/icmp6.c: Likewise.
15340 * grub-core/net/ip.c (ip6addr): New type.
15341 (ip6hdr): Likewise.
15342 (reassemble): Likewise.
15343 (cmp): New function.
15344 (reassembles): New variable.
15345 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15346 (id): New variable.
15347 (send_fragmented): New function.
15348 (grub_net_send_ip_packet): Rename to ...
15349 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15351 (grub_net_recv_ip_packets): Rename to ...
15352 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15353 (free_rsm): New function.
15354 (free_old_fragments): Likewise.
15355 (grub_net_recv_ip4_packets): New function.
15356 (grub_net_send_ip6_packet): Likewise.
15357 (grub_net_send_ip_packet): Likewise.
15358 (grub_net_recv_ip6_packets): Likewise.
15359 (grub_net_recv_ip_packets): Likewise.
15360 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15361 (LINK_LAYER_CACHE_SIZE): New const.
15362 (link_layer_find_entry): New function.
15363 (grub_net_link_layer_add_address): Likewise.
15364 (grub_net_link_layer_resolve_check): Likewise.
15365 (grub_net_link_layer_resolve): Likewise.
15366 (grub_net_ipv6_get_slaac): Likewise.
15367 (grub_net_ipv6_get_link_local): Likewise.
15368 (grub_cmd_ipv6_autoconf): Likewise.
15369 (parse_ip): Handle one number representation.
15370 (parse_ip6): New functoion.
15371 (match_net): Handle IPv6.
15372 (grub_net_resolve_address): Handle IPv6 and DNS.
15373 (grub_net_resolve_net_address): Handle IPv6.
15374 (route_cmp): New function.
15375 (grub_net_route_address): Find best route.
15376 (grub_net_addr_to_str): Handle IPv6.
15377 (grub_net_addr_cmp): New function.
15378 (grub_net_add_addr): Register local route.
15379 (print_net_address): Handle net address.
15380 (grub_net_poll_cards): Retransmit TCP.
15381 (grub_net_poll_cards_idle_real): Likewise.
15382 (have_ahead): New function.
15383 (grub_net_seek_real): Use underlying seek.
15384 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15385 * grub-core/net/tcp.c: New file.
15386 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15387 (cmp): New function.
15389 (tftp_receive): Handle unordered input.
15390 (destroy_pq): New function.
15391 (tftp_close): Close pq.
15392 * grub-core/net/udp.c: Put missing license header.
15393 (grub_net_udp_socket): New function.
15394 (udp_socket_register): Likewise.
15395 (grub_net_udp_close): Likewise.
15396 (grub_net_recv_udp_packet): Check checksum.
15397 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15398 * include/grub/misc.h (grub_memchr): New function.
15399 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15400 (grub_net_card_driver): Return buf in recv.
15401 (grub_net_slaac_mac_list): New struct.
15402 (grub_network_level_protocol_id): Add ipv6.
15403 (grub_net_network_level_addr): Likewise.
15404 (grub_net_network_level_net_addr): Likewise.
15405 (grub_net_app_protocol): Add seek.
15406 (grub_net_socket): Removed.
15407 (grub_net_sockets): Likewise.
15408 (grub_net_socket_register): Likewise.
15409 (grub_net_socket_unregister): Likewise.
15410 (FOR_NET_SOCKETS): Likewise.
15411 (grub_net_add_addr): Add const.
15412 (GRUB_NET_BOOTP_*): New enum.
15413 (grub_net_addr_cmp): New proto.
15414 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15415 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15416 (grub_net_hwaddr_to_str): NEw proto.
15417 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15418 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15419 (grub_dns_init): New proto.
15420 (grub_dns_fini): Likewise.
15421 (grub_net_tcp_retransmit): Likewise.
15422 (grub_net_link_layer_add_address): Likewise.
15423 (grub_net_link_layer_resolve_check): Likewise.
15424 (grub_net_link_layer_resolve): Likewise.
15425 (grub_net_dns_lookup): Likewise.
15426 (grub_net_add_dns_server): Likewise.
15427 (grub_net_remove_dns_server): Likewise.
15428 (GRUB_NET_TRIES): New const.
15429 (GRUB_NET_INTERVAL): Likewise.
15430 * include/grub/net/arp.h: Mostly rewritten.
15431 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15432 * include/grub/net/ip.h: Mostly rewritten.
15433 * include/grub/net/netbuff.h: Indent.
15434 * include/grub/net/tcp.h: New file.
15435 * include/grub/net/udp.h: Mostly rewritten.
15436 * include/grub/priority_queue.h: New file.
15437 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15438 (grub_swap_bytes64_compile_time): Likewise.
15439 (grub_cpu_to_be16_compile_time): Likewise.
15440 (grub_cpu_to_be32_compile_time): Likewise.
15441 (grub_cpu_to_be64_compile_time): Likewise.
15442 (grub_be_to_cpu64_compile_time): Likewise.
15444 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15446 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15447 UINT_TO_PTR with cast.
15449 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15451 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15454 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15456 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15459 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15461 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15464 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15466 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15467 Add missing const attribute.
15468 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15470 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15473 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15475 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15477 (serpent_setkey): Likewise.
15478 (serpent_encrypt_internal): Likewise.
15479 (serpent_decrypt_internal): Likewise.
15480 (serpent_encrypt): Don't put an alignment-increasing cast.
15481 (serpent_decrypt): Likewise.
15482 (serpent_test): Likewise.
15484 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15486 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15488 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15490 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15492 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15494 (PTR_TO_UINT64): Likewise.
15495 (PTR_TO_UINT32): Likewise.
15497 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15499 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15501 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15504 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15506 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15507 text_width > available width a bit more gracefully.
15509 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15511 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15512 current address calculation.
15514 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15516 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15518 (encode_block): Likewise.
15520 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15522 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15525 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15527 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15528 non-RS part to avoid RS messing with GDT.
15529 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15530 Increase to suit in realmode routines.
15532 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15534 * grub-core/kern/i386/realmode.S: Increase alignment.
15535 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15537 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15539 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15541 (syndroms): Compute 0 syndrom.
15542 (rs_recover): Use 0 syndrom.
15544 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15546 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15548 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15550 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15553 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15555 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15557 (get_top_pad): Likewise.
15558 (get_right_pad): Likewise.
15559 (get_bottom_pad): Likewise.
15561 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15563 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15565 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15567 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15568 attribute as the structure isn't guaranteed to be properly aligned.
15569 (grub_efi_pci_device_path): Likewise.
15570 (grub_efi_pccard_device_path): Likewise.
15571 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15572 specify the size of `memory_type'.
15573 (grub_efi_vendor_device_path): Likewise.
15574 (grub_efi_controller_device_path): Likewise.
15575 (grub_efi_acpi_device_path): Likewise.
15576 (grub_efi_expanded_acpi_device_path): Likewise.
15577 (grub_efi_atapi_device_path): Likewise.
15578 (grub_efi_scsi_device_path): Likewise.
15579 (grub_efi_fibre_channel_device_path): Likewise.
15580 (grub_efi_1394_device_path): Likewise.
15581 (grub_efi_usb_device_path): Likewise.
15582 (grub_efi_usb_class_device_path): Likewise.
15583 (grub_efi_i2o_device_path): Likewise.
15584 (grub_efi_mac_address_device_path): Likewise.
15585 (grub_efi_ipv4_device_path): Likewise.
15586 (grub_efi_ipv6_device_path): Likewise.
15587 (grub_efi_infiniband_device_path): Likewise.
15588 (grub_efi_uart_device_path): Likewise.
15589 (grub_efi_vendor_messaging_device_path): Likewise.
15590 (grub_efi_hard_drive_device_path): Likewise.
15591 (grub_efi_cdrom_device_path): Likewise.
15592 (grub_efi_vendor_media_device_path): Likewise.
15593 (grub_efi_file_path_device_path): Likewise.
15594 (grub_efi_protocol_device_path): Likewise.
15595 (grub_efi_piwg_device_path): Likewise.
15596 (grub_efi_bios_device_path): Likewise.
15598 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15600 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15601 (grub_ucs4_to_utf8_alloc): Likewise.
15602 (grub_ucs4_to_utf8): Likewise.
15603 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15604 (grub_ucs4_to_utf8_alloc): Likewise.
15606 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15608 AFFS never uses unicode.
15610 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15611 (grub_latin1_to_utf8): New inline function.
15612 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15614 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15616 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15619 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15621 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15622 (grub_squash_dirent_header): Likewise.
15623 (read_chunk): Don't double swap.
15624 (grub_squash_iterate_dir): Fix swap sizes.
15626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15628 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15630 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15632 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15633 (grub_hfs_iterate_dir): Likewise.
15635 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15637 Fix video on platforms where unaligned access is forbidden.
15638 Make several optimisations while on it.
15640 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15641 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15642 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15643 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15645 (grub_video_fbblit_replace_16bit_1bit):
15646 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15647 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15648 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15649 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15650 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15651 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15652 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15653 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15654 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15655 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15656 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15657 (grub_video_fbblit_replace_index_RGB888): Likewise.
15658 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15659 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15660 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15661 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15662 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15663 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15664 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15666 (grub_video_fbblit_blend_XXX565_1bit):
15667 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15668 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15669 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15671 * grub-core/video/fb/video_fb.c (common_blitter)
15672 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15673 (grub_video_fb_create_render_target_from_pointer)
15674 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15675 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15676 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15678 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15682 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15683 HH22 and HM10 relocations.
15685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15691 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15692 allocation succeeded.
15694 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15696 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15697 argument a u8 pointer. All users updated.
15698 Handle unaligned buffers.
15700 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15702 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15703 add_part to workaround compiler bug.
15705 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15707 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15709 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15711 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15712 Reserve alignment invariants.
15713 (grub_multiboot_load): Likewise.
15714 (retrieve_video_parameters): Likewise.
15715 (grub_multiboot_make_mbi): Likewise.
15717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15725 (grub_pata_pio_write): Likewise.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 Add noreturn attributes and remove unreachable code.
15731 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15733 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15734 code. Mark as noreturn.
15735 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15736 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15737 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15739 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15740 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15741 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15742 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15743 * include/grub/kernel.h (grub_main): Mark as noreturn.
15744 * include/grub/reader.h (grub_rescue_run): Likewise.
15746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15748 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15749 redundant declaration.
15751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15753 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15754 redundant declaration.
15755 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15757 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15760 to ensure alignment.
15761 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15762 alignment. Ensure tmp alignment.
15763 (grub_cmd_hdparm): Ensure buf alignment.
15764 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15765 to ensure alignment.
15766 (grub_ata_dumpinfo): Ensure text alignment.
15767 (grub_atapi_identify): Preserve alignment invariant.
15768 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15773 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15774 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15775 * include/grub/misc.h (grub_reboot)
15776 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15777 (grub_halt) [__mips__]: Likewise.
15779 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15781 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15782 Remove redundant declaration.
15783 (grub_mmap_get_post64): Likewise.
15784 (grub_mmap_get_upper): Likewise.
15785 (grub_mmap_get_lower): Likewise.
15787 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15790 uint32_t * to ensure alignment.
15791 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15796 uint16_t * to ensure alignment.
15797 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15800 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15802 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15803 to ensure alignment.
15804 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15809 Handle unaligned pointers.
15812 (fixup): Use byte access instead of v16at.
15813 (find_attr): Fix imporper usage of v32at.
15814 (read_data): Likewise.
15815 (list_file): Handle byte-swapping and unaligned strings.
15816 (grub_ntfs_label): Likewise.
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15821 as it's not necessarily aligned.
15823 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15825 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15826 redundant declaration.
15827 (grub_serial_init): Likewise.
15828 (grub_terminfo_init): Likewise.
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15832 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15834 (ZAP_HASH_IDX): Likewise.
15835 (ZAP_LEAF_HASH_SHIFT): Likewise.
15836 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15837 (LEAF_HASH): Likewise.
15838 (ZAP_LEAF_NUMCHUNKS): Likewise.
15839 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15840 alignment invariants. Return pointer. All users updated.
15841 (ZAP_LEAF_ENTRY): Make into inline function.
15844 (xor_out): Use grub_crypto_xor.
15845 (dnode_get_path): Use grub_get_unaligned.
15846 (nvlist_find_value): Likewise.
15847 (grub_zfs_nvlist_lookup_uint64): Likewise.
15848 (grub_zfs_nvlist_lookup_string): Likewise.
15849 (get_nvlist_size): Likewise.
15850 (grub_zfs_open): Likewise.
15851 (fill_fs_info): Likewise.
15852 (grub_zfs_dir): Likewise.
15853 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15854 alignment invariants.
15855 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15856 necessarily aligned.
15858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15860 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15862 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15865 arithmetic to conserve alignment invariants.
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15870 redundant declaration.
15871 (grub_efiemu_mm_obtain_request): Likewise.
15872 (grub_efiemu_prepare): Likewise.
15874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15876 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15879 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15881 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15882 case of aunaligned recptr.
15883 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15885 (grub_hfsplus_btree_search): Handle unaligned index.
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15889 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15890 to get freetag and skip.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15896 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15897 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15899 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15901 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15902 name for checksum and fix allocation algorithm.
15904 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15906 * include/grub/types.h (grub_properly_aligned_t): New type.
15907 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15908 (grub_get_unaligned16): Add explicit casts.
15909 (grub_get_unaligned32): Likewise.
15910 (grub_get_unaligned64): Likewise.
15911 (grub_set_unaligned16): New function.
15912 (grub_set_unaligned32): Likewise.
15914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15916 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15918 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15920 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15921 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15922 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15926 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15931 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15932 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15936 Unify and improve RAID and crypto xor.
15938 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15939 changed to grub_crypto_xor
15940 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15941 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15942 Use bigger types when possible.
15944 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15946 * grub-core/disk/raid.c (scan_devices): Fix condition.
15948 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15950 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15951 Make name a const ptr.
15953 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15955 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15956 first argument a const pointer.
15957 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15958 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15960 (grub_children_iterate): Likewise.
15961 (grub_machine_mmap_iterate): Remove redundant declaration.
15963 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15965 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15966 (grub_cmd_acpi) [!x86]: Disable EBDA.
15968 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15970 Enable UTF8 in gnulib regexp.
15972 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15973 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15974 (isupper): Use grub_isupper.
15975 (isascii): New inline function.
15976 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15977 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15978 * grub-core/normal/charset.c (grub_utf8_process): New function.
15979 (grub_utf8_to_utf16): Use grub_utf8_process.
15980 (grub_encode_utf8_character): New function.
15981 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15982 * include/grub/charset.h (grub_utf8_process): New declaration.
15983 (grub_encode_utf8_character): Likewise.
15984 * include/grub/misc.h (grub_islower): New inline function.
15985 (grub_isupper): Likewise.
15986 (grub_strchrsub): Moved down to fix the definitions.
15988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15990 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15993 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15995 * include/grub/loader.h (grub_loader_register_preboot_hook):
15996 Use struct preboot * and not void * for handle. All users updated.
15997 (grub_loader_unregister_preboot_hook): Likewise.
15999 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16001 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16002 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16003 UTF-16-BE. All users updated.
16004 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16005 (grub_hfsplus_iterate_dir): Likewise.
16006 (grub_hfsplus_label): Likewise.
16008 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16010 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16012 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16014 Add missing const qualifiers.
16016 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16017 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16018 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16019 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16020 (grub_lvm_check_flag): Likewise.
16021 * grub-core/efiemu/i386/coredetect.c
16022 (grub_efiemu_get_default_core_name): Likewise
16023 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16024 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16025 * grub-core/fs/ntfs.c (fixup): Likewise.
16026 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16027 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16028 (fzap_lookup): Likewise.
16029 (zap_lookup): Likewise.
16030 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16031 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16032 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16033 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16034 (grub_freebsd_add_meta_module): Likewise.
16035 (grub_cmd_freebsd_module): Likewise.
16036 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16037 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16038 (grub_xnu_writetree_get_size): Likewise.
16039 (grub_xnu_writetree_toheap_real): Likewise.
16040 (grub_xnu_find_key): Likewise.
16041 (grub_xnu_create_key): Likewise.
16042 (grub_xnu_create_value): Likewise.
16043 (grub_xnu_register_memory): Likewise.
16044 (grub_xnu_check_os_bundle_required): Likewise.
16045 (grub_xnu_scan_dir_for_kexts): Likewise.
16046 (grub_xnu_load_kext_from_dir): Likewise.
16047 * grub-core/normal/color.c (color_list): Likewise.
16048 * grub-core/normal/completion.c (current_word): Likewise.
16049 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16050 * grub-core/term/serial.c (grub_serial_find): Likewise.
16051 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16052 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16054 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16055 (grub_freebsd_add_meta_module): Likewise.
16056 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16057 * include/grub/net.h (grub_net_card_driver): Likewise.
16058 (grub_net_card): Likewise.
16059 (grub_net_app_protocol): Likewise.
16060 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16061 * include/grub/serial.h (grub_serial_find): Likewise.
16062 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16063 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16064 (grub_xnu_create_value): Likewise.
16065 (grub_xnu_find_key): Likewise.
16066 (grub_xnu_scan_dir_for_kexts): Likewise.
16067 (grub_xnu_load_kext_from_dir): Likewise.
16069 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16070 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16071 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16072 Moved from here ...
16073 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16075 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16077 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16079 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16081 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16082 (read_device): Fix size calculation.
16084 2011-11-25 Robert Millan <rmh@gnu.org>
16086 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16087 (find_root_device_from_libzfs): Add zpool output parser to be used
16088 as fallback when libzfs isn't available.
16090 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16092 * po/Makefile.in.in: Add missing escape-continuation.
16094 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16096 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16098 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16100 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16102 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16104 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16106 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16108 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16110 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16112 * grub-core/lib/adler32.c: Add missing license specification.
16113 * grub-core/lib/crc64.c: Likewise.
16114 * grub-core/loader/i386/pc/plan9.c: Likewise.
16115 * grub-core/partmap/plan.c: Likewise.
16117 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16119 Add facility to debug GRUB with gdb under qemu.
16121 * grub-core/gdb_grub.in: New file.
16122 * grub-core/gmodule.pl.in: Likewise.
16123 * grub-core/Makefile.core.def (gmodule.pl): New script.
16124 (gdb_grub): Likewise.
16126 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16128 * util/grub-mount.c (argp_parser): Accept relative pathes.
16129 * util/grub-fstest.c (argp_parser): Likewise.
16131 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16135 * Makefile.util.def (libgrubmods): Add
16136 grub-core/partmap/plan.c.
16137 * docs/grub.texi: Notice Plan9 support.
16138 * grub-core/Makefile.core.def (plan9): New module.
16139 (part_plan): Likewise.
16140 * grub-core/loader/i386/pc/plan9.c: New file.
16141 * grub-core/partmap/plan.c: Likewise.
16142 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16144 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16145 * include/grub/mm.h (grub_extend_alloc): New inline function.
16147 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16149 Make Reed-Solomon faster by using power of generator representation of
16152 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16153 (gf_double_t): Likewise.
16154 (gf_invert): Removed.
16155 (gf_powx): New array.
16156 (gf_powx_inv): Likewise.
16157 (scratch): Move higher.
16158 (gf_reduce): Removed.
16159 (gf_mul): Use powx.
16160 (gf_invert): Likewise.
16161 (init_inverts): Replaced with ...
16162 (init_powx): ...this. All users updated.
16163 (pol_evaluate): Replace multiplications with additions.
16164 (rs_encode): Likewise.
16165 (gauss_eliminate): Call gf_invert.
16166 (grub_reed_solomon_add_redundancy): Call init_powx.
16167 (grub_reed_solomon_recover): Call init_powx unconditionally.
16169 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16171 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16173 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16175 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16176 disk->partiton for safety.
16178 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16180 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16182 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16184 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16186 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16188 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16190 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16192 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16194 Fix spaces handling in proc/self/mountinfo.
16196 * util/getroot.c (unescape): New function.
16197 (grub_find_root_device_from_mountinfo): Use unescape.
16199 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16201 Support ZFS embedding.
16203 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16204 (grub_zfs_fs): Register grub_zfs_embed.
16206 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16208 Fix MIPS compilation.
16210 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16211 * include/grub/offsets.h: Rename decompressor fields from
16212 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16213 * util/grub-mkimage.c (image_targets): Use new names.
16215 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16217 Defer multiboot device parsing until we're in compressed part.
16219 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16220 bsd_part. setdevice has fallen into disuse.
16221 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16222 (bsd_part): Likewise.
16223 (boot_dev): New variable.
16224 (multiboot_trampoline): Don't parse multiboot device.
16225 Pass multiboot device in %edx.
16226 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16228 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16230 * grub-core/kern/i386/pc/startup.S: Save edx.
16231 (grub_boot_drive): Removed.
16232 (grub_install_dos_part): Likewise.
16233 (grub_install_bsd_part): Likewise.
16234 (grub_boot_device): New variable.
16235 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16236 (grub_install_bsd_part): Likewise.
16237 (grub_boot_drive): Likewise.
16238 (grub_boot_device): New variable.
16239 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16241 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16242 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16243 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16244 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16245 * util/grub-install.in: Remove redundant condition.
16247 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16249 Fix bug introduced by previous commit.
16251 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16253 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16255 Use decompressors framework on i386-pc. It increases core size
16256 by 46 bytes but improves compatibility and maintainability.
16258 * grub-core/Makefile.core.def (lzma_decompress): New image.
16259 (kernel): Add i386_pc_ldflags.
16260 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16261 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16262 to real_to_prot, prot_to_real and device info.
16263 * include/grub/offsets.h: Renamed decompressor offsets.
16264 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16265 (image_target_desc): Remove raw_size and rename decompressor fields.
16266 (compress_kernel): Handle lzma.
16267 (generate_image): Handle decompressors on i386-pc.
16269 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16271 * configure.ac: Add -fno-asynchronous-unwind-tables.
16273 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16275 Move assembly code to C by using intwrap. It increases core size
16276 by 88 bytes but improves compatibility and maintainability.
16278 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16279 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16280 ... here. Translated to C.
16281 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16282 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16283 ... here. Translated to C.
16284 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16285 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16286 ... here. Translated to C.
16287 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16288 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16289 ... here. Translated to C.
16290 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16291 * grub-core/term/i386/pc/console.c (grub_console_cls):
16292 ... here. Translated to C.
16293 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16294 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16295 ... here. Translated to C.
16296 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16297 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16299 * grub-core/term/i386/pc/console.c (int10_9): New function.
16300 (grub_console_putchar): Likewise.
16301 * include/grub/i386/pc/console.h: Removed the not anymore shared
16304 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16306 Move grub_chainloader_real_boot out of the kernel.
16308 * grub-core/Makefile.am: Remove machine/loader.h.
16309 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16311 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16313 (grub_relocator16_keep_a20_enabled): Likewise.
16314 (grub_relocator16_boot): Fill new variables.
16315 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16316 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16318 (grub_chainloader_unload): Likewise.
16319 (grub_chainloader_cmd): Likewise.
16320 * include/grub/i386/pc/loader.h: Removed.
16321 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16322 and esi. All initialisers updated.
16324 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16325 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16327 * Makefile.util.def (grub-mount): New util.
16328 * .bzrignore: Add grub-mount.
16329 * configure.ac: Check for fuse and enable grub-mount if available.
16330 * docs/man/grub-mount.h2m: New file.
16331 * util/grub-mount.c: Likewise.
16333 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16335 * grub-core/commands/efi/fixvideo.c: Gettextize.
16336 * grub-core/commands/hashsum.c: Likewise.
16337 * grub-core/commands/i386/cmostest.c: Likewise.
16338 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16339 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16340 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16341 * grub-core/commands/lsmmap.c: Likewise.
16342 * grub-core/commands/menuentry.c: Likewise.
16343 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16344 * grub-core/commands/setpci.c: Likewise.
16345 * grub-core/loader/i386/bsd.c: Likewise.
16346 * grub-core/loader/i386/linux.c: Likewise.
16347 * util/getroot.c: Likewise.
16348 * util/grub-editenv.c: Likewise.
16349 * util/grub-fstest.c: Likewise.
16350 * util/grub-mkfont.c: Likewise.
16351 * util/grub-mkimage.c: Likewise.
16352 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16353 * util/grub-pe2elf.c: Likewise.
16354 * util/grub-probe.c: Likewise.
16355 * util/grub-setup.c: Likewise.
16356 * util/ieee1275/ofpath.c: Likewise.
16357 * util/misc.c: Likewise.
16358 * util/raid.c: Likewise.
16360 2011-11-11 Robert Millan <rmh@gnu.org>
16362 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16363 __attribute__((unused)) from `os_dev', which *is* being used.
16365 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16367 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16369 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16370 GRUB_IA64_DL_GOT_ALIGN.
16371 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16372 GRUB_IA64_DL_TRAMP_ALIGN.
16374 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16376 Replace grub_fatal with normal errors in i386 linux loader.
16378 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16379 (allocate_pages): Check find_efi_mmap_size return value.
16380 (grub_e820_add_region): Return error.
16381 (grub_linux_boot): Check mmap return value.
16383 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16385 * grub-core/commands/acpihalt.c: Gettextized.
16386 * grub-core/commands/cacheinfo.c: Likewise.
16387 * grub-core/commands/cmp.c: Likewise.
16388 * grub-core/commands/efi/loadbios.c: Likewise.
16389 * grub-core/commands/gptsync.c: Likewise.
16390 * grub-core/commands/ieee1275/suspend.c: Likewise.
16391 * grub-core/commands/legacycfg.c: Likewise.
16392 * grub-core/commands/memrw.c: Likewise.
16393 * grub-core/commands/minicmd.c: Likewise.
16394 * grub-core/commands/parttool.c: Likewise.
16395 * grub-core/commands/time.c: Likewise.
16396 * grub-core/commands/videoinfo.c: Likewise.
16397 * grub-core/disk/geli.c: Likewise.
16398 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16399 * grub-core/disk/luks.c: Likewise.
16400 * grub-core/disk/lvm.c: Likewise.
16401 * grub-core/font/font_cmd.c: Likewise.
16402 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16403 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16404 * grub-core/gfxmenu/view.c: Likewise.
16405 * grub-core/kern/emu/hostdisk.c: Likewise.
16406 * grub-core/kern/emu/main.c: Likewise.
16407 * grub-core/kern/emu/misc.c: Likewise.
16408 * grub-core/kern/emu/mm.c: Likewise.
16409 * grub-core/kern/mips/arc/init.c: Likewise.
16410 * grub-core/kern/mips/loongson/init.c: Likewise.
16411 * grub-core/kern/partition.c: Likewise.
16412 * grub-core/lib/i386/halt.c: Likewise.
16413 * grub-core/lib/mips/arc/reboot.c: Likewise.
16414 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16415 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16416 * grub-core/loader/i386/xnu.c: Likewise.
16417 * grub-core/loader/multiboot.c: Likewise.
16418 * grub-core/net/bootp.c: Likewise.
16419 * grub-core/net/net.c: Likewise.
16420 * grub-core/normal/term.c: Likewise.
16421 * grub-core/partmap/bsdlabel.c: Likewise.
16422 * grub-core/parttool/msdospart.c: Likewise.
16423 * grub-core/term/gfxterm.c: Likewise.
16424 * grub-core/term/terminfo.c: Likewise.
16425 * grub-core/video/i386/pc/vbe.c: Likewise.
16426 * util/grub-menulst2cfg.c: Likewise.
16427 * util/grub-mkdevicemap.c: Likewise.
16428 * util/grub-mklayout.c: Likewise.
16429 * util/grub-mkrelpath.c: Likewise.
16430 * util/grub-script-check.c: Likewise.
16431 * util/ieee1275/grub-ofpathname.c: Likewise.
16432 * util/resolve.c: Likewise.
16434 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16436 Support %1$d syntax.
16438 * tests/printf_unit_test.c: New file.
16439 * Makefile.util.def (printf_test): New test.
16440 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16442 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16444 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16447 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16449 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16451 * grub-core/font/font.c (grub_font_load): Likewise.
16453 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16455 * util/grub-macho2img.c: Add comment concerning gettext.
16456 * grub-core/lib/legacy_parse.c: Likewise.
16458 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16460 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16461 (grub_xvasprintf): Likewise.
16463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16465 Add const keyword to grub_env_get and gettextize week days.
16467 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16468 (grub_read_hook_datetime): Return const char *.
16469 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16471 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16473 (grub_get_weekday_name): Return const char *. Call gettext.
16474 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16475 char * and len as the argument. All users updated.
16476 (grub_script_argv_split_append): Receive const char *.
16477 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16478 * include/grub/env.h (grub_env_get): Likewise.
16479 (grub_env_read_hook_t): Return const char *.
16480 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16481 (grub_script_argv_split_append): Likewise.
16483 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16485 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16487 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16489 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16490 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16492 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16494 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16497 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16499 Fix mips compilation.
16501 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16503 (hashes): Use in embed decoder as well (for sizes).
16504 (dec_stream_header): Fix embed decompressor logic.
16505 (dec_stream_footer): Likewise.
16507 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16509 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16510 an error and not a fatal on unrecognised relocation types.
16512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16514 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16515 Issue error rather than printf on unknown arguments.
16517 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16519 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16522 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16524 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16527 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16529 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16530 leftover debug printf.
16532 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16534 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16536 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16538 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16541 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16543 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16545 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16547 Allow all modules to perform serial IO
16549 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16550 * include/grub/serial.h (grub_serial_port_configure): New inline
16552 (grub_serial_port_fetch): Likewise.
16553 (grub_serial_port_put): Likewise.
16554 (grub_serial_port_fini): Likewise.
16555 (grub_serial_find): New proto.
16557 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16559 Put symlink at the end of the node and fix a potential
16562 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16563 Make symlink into an array.
16564 (set_rockridge): Set have_symlink and alloc_dirents.
16565 (grub_iso9660_read_symlink): Use new layout.
16566 (grub_iso9660_iterate_dir): Fix memory corruption.
16568 (grub_iso9660_dir): Set have_symlink.
16569 (grub_iso9660_open): Likewise.
16571 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16573 Remove local keyword.
16575 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16576 (version_test_gt): Likewise.
16577 (version_find_latest): Likewise.
16578 (gettext_printf): Likewise.
16579 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16581 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16583 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16585 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16587 Fix ZFS memory and resource leaks.
16589 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16592 (fill_vdev_info): New parameter inserted. All users updated.
16593 (check_pool_label): Likewise.
16594 (scan_disk): Likewise.
16595 (scan_devices): Close non-inserted disks.
16596 (fzap_iterate): Free l.
16597 (unmount_device): Free children descripto memory.
16599 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16601 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16602 argument (access out of bounds).
16604 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16606 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16609 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16611 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16614 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16616 Fix several memory leaks.
16618 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16619 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16620 (grub_cpio_dir): Likewise.
16621 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16622 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16623 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16624 (grub_romfs_label): Likewise.
16625 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16626 (squash_unmount): New function.
16627 (grub_squash_dir): Fix memory leak.
16628 (grub_squash_open): Likewise.
16629 (grub_squash_read): Likewise.
16630 (grub_squash_mtime): Likewise.
16631 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16632 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16633 * util/grub-fstest.c (fstest): Likewise.
16635 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16637 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16638 avoid accessing beyond the array.
16640 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16642 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16644 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16646 Several AFFS fixes.
16648 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16649 (GRUB_AFFS_FLAG_FFS): Removed.
16650 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16651 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16652 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16653 (grub_fshelp_node): Make block 32-bit.
16654 Add block_cache and last_block_cache.
16655 (grub_affs_read_block): Fill and use block cache.
16656 (grub_affs_read_file): Removed.
16657 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16659 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16661 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16663 (grub_affs_close): Free block cache.
16664 (grub_affs_read): Use grub_fshelp_read_file directly.
16666 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16668 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16671 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16673 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16675 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16678 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16680 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16682 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16683 byteswap when needed.
16685 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16687 Fix FreeBSD compilation.
16689 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16690 to avoid circular dependency.
16691 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16692 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16693 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16695 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16697 Fix ZFS crypto error types.
16699 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16700 (grub_gcm_decrypt): Likewise.
16701 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16704 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16708 * Makefile.util.def (10_illumos): New script.
16709 * configure.ac: Set COND_HOST_ILLUMOS.
16710 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16711 Support Illumos calls.
16712 (find_partition_start) [__sun__]: Likewise.
16713 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16714 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16715 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16716 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16718 * util/grub-probe.c (probe) [__sun__]: Do character check.
16719 * util/grub.d/10_illumos.in: New file.
16721 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16723 Support escaped commas in hostdisk.
16725 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16726 (find_grub_drive): Use unescape_cmp.
16727 (make_device_name): Escape commas.
16729 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16731 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16733 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16735 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16738 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16740 Support trampoline jumps on powerpc.
16742 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16744 (grub_dl_load_segments): Set mod->sz.
16745 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16747 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16749 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16751 (trampoline): New struct.
16752 (trampoline_template): New const.
16753 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16754 * include/grub/dl.h (grub_dl): Add sz element.
16755 [__powerpc__]: Follow __ia64__.
16756 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16757 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16758 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16759 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16761 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16763 ZFS crypto support.
16765 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16766 * grub-core/Makefile.core.def (zfscrypt): New module.
16767 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16768 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16769 it. All users updated.
16770 (grub_zfs_decrypt): New var.
16771 (grub_zfs_load_key): Likewise.
16772 (zio_checksum_functions): Add SHA256+MAC.
16773 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16774 (zio_read): Handle encrypted blocks.
16775 (zap_verify): Remove incorrect check.
16776 (fzap_iterate): Handle non-standard fzap.
16777 (zap_iterate): Likewise.
16778 (zap_iterate_u64): New function.
16779 (dnode_get_fullpath): Load keys.
16780 * grub-core/fs/zfs/zfscrypt.c: New file.
16781 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16782 (grub_crypto_ecb_encrypt): Make input const.
16783 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16784 (grub_crypto_ecb_encrypt): Make input const.
16785 (GRUB_CIPHER_AES): New macro.
16786 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16787 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16788 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16789 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16790 prefix. All users updated.
16791 (grub_zfs_add_key): New proto.
16792 (grub_zfs_decrypt): Likewise.
16793 (grub_zfs_load_key): Likewise.
16794 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16795 * util/grub-fstest.c (options): Add -K option.
16796 (argp_parser): Likewise.
16798 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16800 Support zle compression on ZFS.
16802 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16803 (decomp_table): Add zle.
16804 * include/grub/zfs/zio.h (zio_compress): Add zle.
16806 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16808 Support BtrFS embedding.
16810 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16811 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16812 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16813 * util/grub-setup.c (setup): Use fs embedding if available.
16814 Add additional sanity check.
16816 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16818 * util/grub-install.in: Fix condition for config_opt.
16820 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16822 Support third redundancy strip on raidz3.
16824 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16825 Return error on singularity. All users updated.
16826 (read_device): Don't stop on 3rd failure on raidz3.
16828 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16830 Support case-insensitive ZFS subvolumes.
16832 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16834 (zap_hash): Likewise.
16835 (name_cmp): New function.
16836 (zap_leaf_array_equal): New parameter case_insensitive.
16838 (zap_leaf_lookup): Likewise.
16839 (fzap_lookup): Likewise.
16840 (zap_lookup): Likewise.
16841 (dnode_get_path): New parameter case_insensitive. Retrieve case
16842 sensitiviness of a volume. All users updated.
16843 (dnode_get_fullpath): New parameter case_insensitive.
16845 (grub_zfs_dir): Set info.case_insensitiveness.
16847 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16849 Support second redundancy strip on raidz(2,3).
16851 * grub-core/fs/zfs/zfs.c (powx): New array.
16852 (powx_inv): Likewise.
16854 (xor_out): New function.
16855 (gf_mul): Likewise.
16856 (recovery): Likewise.
16857 (read_device): Use second redundancy strip.
16859 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16861 Use a power of generator representation of GF(256) multiplication group
16862 to save space time and complexity.
16864 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16865 (raid6_table2): Likewise.
16867 (powx_inv): Likewise.
16869 (grub_raid_block_mul): Replace with ...
16870 (grub_raid_block_mulx): ...this.
16871 (grub_raid6_init_table): Rewritten.
16872 (grub_raid6_recover): Use power of generator representation.
16874 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16876 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16877 for the right device.
16879 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16881 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16882 expected by grub-mkimage and it's more clear since there is no implicit
16885 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16887 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16889 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16891 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16893 * util/grub-mkrescue.in: Fix handling xorriso option.
16895 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16897 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16900 2011-11-03 crocket <crockabiscuit@gmail.com>
16902 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16904 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16906 XZ CRC64 and SHA256 support.
16908 * Makefile.util.def (libgrubmods): Add crc64.c.
16909 * grub-core/Makefile.core.def (crc64): New module.
16910 * grub-core/lib/crc64.c: New file.
16911 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16912 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16914 (MAX_HASH_SIZE): New define.
16915 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16916 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16917 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16918 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16919 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16920 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16921 Handle non-crc32 hashes.
16922 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16923 (dec_stream_header): Handle non-crc32 hashes.
16924 (dec_stream_footer): Likewise.
16925 (dec_block_header): Likewise.
16926 (dec_main): Likewise.
16927 (xz_dec_init): Likewise.
16928 (xz_dec_reset): Likewise.
16929 (xz_dec_end): Likewise.
16930 * util/import_gcry.py: Add CRC64 line.
16932 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16934 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16937 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16939 Make reiserfs label retrieval similar to other *_label functions.
16941 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16942 (REISERFS_MAX_LABEL_LENGTH): Removed.
16943 (REISERFS_LABEL_OFFSET): Likewise.
16944 (grub_reiserfs_label): Rewritten.
16946 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16948 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16951 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16953 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16955 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16957 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16958 drive failure on both raidz and raidz2.
16960 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16962 Fix RAIDZ(2) for >= 5 devices.
16964 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16965 asize argument. All users updated.
16967 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16971 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16972 (fill_vdev_info_real): Set ashift.
16973 (read_device): Rewrite RAIDZ part based on reverse engineering.
16975 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16977 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16978 don't report potentially unavialiable fields in debug output.
16979 (find_path): Fix double-free and memory leak.
16981 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16983 Read label on UFS1.
16985 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16986 (grub_ufs_fs): Always set .label.
16988 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16992 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16993 (grub_ufs_data): New field log2_blksz.
16994 (grub_ufs_read_file): Use shifts.
16995 (grub_ufs_mount): Check block size and logarithm it.
16997 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16999 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17002 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17004 Handle symlinks and long names on tar and cpio.
17006 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17007 (ATTR_FILE): Likewise.
17008 (ATTR_DIR): Likewise.
17009 (ATTR_LNK): Likewise.
17010 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17011 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17013 (grub_cpio_mount): Zero-fill data.
17014 (handle_symlink): New function.
17015 (grub_cpio_dir): Handle symlinks.
17016 (grub_cpio_open): Likewise.
17017 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17019 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17021 Fix iso9660 filename limitations and fix memory leaks.
17023 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17024 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17026 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17028 Fix JFS file name length limitations.
17030 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17031 (grub_jfs_diropen): Fix maximum filename length.
17032 (grub_jfs_getent): Fix filename length.
17033 (grub_jfs_lookup_symlink): Fix size checks.
17035 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17037 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17040 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17042 Leverage BFS implementation to read AFS.
17044 * Makefile.util.def (libgrubmods): Add afs.c.
17045 * grub-core/Makefile.core.def (afs): New module
17046 * grub-core/fs/afs.c: New file.
17047 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17049 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17051 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17053 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17055 * grub-core/fs/bfs.c: Run indent.
17057 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17059 BFS implementation based on the specification.
17061 * grub-core/fs/bfs.c: New file.
17062 * Makefile.util.def (libgrubmods): Add bfs.c.
17063 * grub-core/Makefile.core.def (bfs): New module.
17065 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17067 * util/grub-fstest.c (cmd_cp): Clarify error message.
17068 (cmd_cmp): Likewise.
17070 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17072 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17075 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17077 Remove afs and befs because of copyright problem.
17079 * grub-core/fs/afs.c: Removed.
17080 * grub-core/fs/afs_be.c: Removed.
17081 * grub-core/fs/befs.c: Removed.
17082 * grub-core/fs/befs_be.c: Removed.
17083 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17084 * grub-core/Makefile.core.def (afs): Removed.
17085 (afs_be): Likewise.
17087 (befs_be): Likewise.
17089 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17091 Prefer rockridge over Joliet.
17093 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17095 (set_rockridge): ... here.
17096 (grub_iso9660_mount): Check rockridge on the primary label when
17097 discovering. Ignore Joliet if Rockridge is present.
17099 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17101 Use shifts in nilfs2.
17103 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17104 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17105 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17106 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17107 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17108 (grub_nilfs2_entries_per_block): Replaced with ...
17109 (grub_nilfs2_log_entries_per_block_log): ... this.
17110 (grub_nilfs2_blocks_per_group): Replaced with ...
17111 (grub_nilfs2_blocks_per_group_log): ... this.
17112 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17113 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17114 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17115 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17116 (grub_nilfs2_palloc_entry_offset): Replaced ...
17117 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17118 (grub_nilfs2_dat_translate): Use shifts.
17119 (grub_nilfs2_read_inode): Likewise.
17120 (GRUB_MOD_INIT): Ensure that logs are correct.
17122 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17124 Use shifts in minix filesystem.
17126 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17127 (GRUB_MINIX_ZONE2SECT): Likewise.
17128 (grub_minix_data): Replace block_size with log_block_size.
17129 (grub_minix_read_file): Use shifts.
17130 (grub_minix_mount): Check block size and take a logarithm.
17132 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17134 Use shifts in squash4.
17136 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17137 (squash_mount): Check block size and take logarithm.
17138 (direct_read): Use shifts.
17140 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17142 Correct befs block counting logic.
17144 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17145 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17146 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17147 (grub_afs_read_inode): Use block_shift.
17148 (RANGE_SHIFT): New definition.
17149 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17150 unexpected conditions, use shifts and appropriate types.
17151 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17153 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17155 * grub-core/disk/raid.c (scan_devices): Check partition.
17156 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17158 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17160 Support BFS (befs) UUID.
17162 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17163 (grub_afs_small_data_element_header): New struct.
17164 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17165 (grub_afs_read_attribute) [MODE_BFS]: New function.
17166 (grub_afs_iterate_dir): Allocate for complete inode.
17167 (grub_afs_mount): Likewise.
17168 (grub_afs_uuid) [MODE_BFS]: New function.
17169 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17171 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17173 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17174 (zfs_unmount): Fix memory leak.
17176 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17178 Support NTFS reparse points.
17180 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17181 (symlink_descriptor): New struct.
17182 (grub_ntfs_read_symlink): New function.
17183 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17184 (grub_ntfs_open): Likewise.
17186 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17188 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17190 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17192 fstest xnu_uuid subcommand.
17194 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17195 grub-core/commands/xnu_uuid.c.
17196 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17197 (fstest): Handle xnu_uuid.
17198 (options): Document xnu_uuid.
17199 (argp_parser): Parse xnu_uuid.
17201 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17203 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17204 -l argument. Add newline at the end if printing.
17205 (GRUB_MOD_INIT): Document -l.
17207 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17209 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17211 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17213 ZFS multi-device and version 33 support.
17215 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17216 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17217 (grub_zfs_data): Add multidev-ice-related fields.
17218 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17219 (dva_get_offset): Make dva const.
17220 (zfs_fetch_nvlist): New function.
17221 (fill_vdev_info_real): Likewise.
17222 (fill_vdev_info): Likewise.
17223 (check_pool_label): Likewise.
17224 (scan_disk): Likewise.
17225 (scan_devices): Likewise.
17226 (read_device): Likewise.
17227 (read_dva): Likewise.
17228 (zio_read_gang): Use read_dva.
17229 (zio_read_data): Likewise.
17230 (zap_leaf_lookup): Add missing endian conversion.
17231 (zap_verify): Add missing endian conversion. All users updated.
17232 (fzap_lookup): Likewise.
17233 (fzap_iterate): Likewise.
17234 (dnode_get_path): Handle SA bonus.
17235 (nvlist_find_value): Make input const. All users updated.
17236 (unmount_device): New function.
17237 (zfs_unmount): Use unmount_device.
17238 (zfs_mount): Use scan_disk.
17239 (zfs_mtime): New function.
17240 (grub_zfs_open): Handle system attributes.
17241 (fill_fs_info): Likewise.
17242 (grub_zfs_dir): Likewise.
17243 (grub_zfs_fs): Add mtime.
17244 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17245 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17246 (SA_MTIME_OFFSET): Likewise.
17247 (SA_SYMLINK_OFFSET): Likewise.
17248 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17249 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17250 (fstest): Support zfsinfo.
17251 (argp_parser): Likewise.
17253 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17255 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17258 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17262 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17263 sharing the same block. Iterate over correct number of indices.
17264 (dnode_get_path): Handle symlinks correctly.
17266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17268 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17270 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17272 Read label on HFS+.
17274 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17275 (grub_hfsplus_btree_search): Fix types.
17276 (grub_hfsplus_label): Implement.
17278 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17280 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17282 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17284 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17286 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17288 Fix symlink handling on iso9660.
17290 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17292 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17293 (grub_iso9660_read_symlink): Moved most of code ...
17294 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17296 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17298 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17299 Use union to avoid breaking strict-aliasing rules.
17301 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17303 Support multi-extent iso files.
17305 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17307 (grub_fshelp_node): Revamp. All users updated.
17308 (FLAG_*): New enum.
17309 (read_node): New function.
17310 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17312 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17313 (get_node_size): New function.
17314 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17316 Fix memory leak on . and ..
17317 (grub_iso9660_read): Use read_node.
17318 (grub_iso9660_close): Free node.
17320 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17322 Fix tar 4G limit and handle paths containing dot.
17324 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17325 (canonicalize): New function.
17326 (grub_cpio_find_file): Use canonicalize. Store offs in
17328 (grub_cpio_dir): Use grub_disk_addr_t.
17329 (grub_cpio_open): Likewise.
17331 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17333 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17335 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17337 (grub_squash_inode): Add long_file and block_size.
17338 (grub_squash_cache_inode): New struct.
17339 (grub_squash_dirent): Make types into enum.
17340 (SQUASH_TYPE_LONG_REGULAR): New type.
17341 (grub_squash_frag_desc): Add field size.
17342 (SQUASH_BLOCK_FLAGS): New enum.
17343 (grub_squash_data): Use grub_squash_cache_inode.
17344 (grub_fshelp_node): Make ino_chunk 64-bit.
17345 (read_chunk): Minor argument change. All users updated.
17346 (squash_mount): Use correct le_to_cpu.
17347 (grub_squash_open): Handle LONG_REGULAR.
17348 (direct_read): New function.
17349 (grub_squash_read_data): Handle blocks correctly.
17351 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17353 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17355 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17357 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17359 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17361 Fix 2G limit on ZFS.
17363 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17365 (uberblock_verify): Likewise.
17366 (dmu_read): Likewise.
17367 (grub_zfs_read): Likewise. Remove invalid cast.
17369 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17371 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17372 (grub_jfs_blkno): Fix incorrect shift.
17373 (grub_jfs_read_file): Use more appropriate types.
17375 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17377 Support triple indirect on minix2 and minix3.
17379 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17380 Declare triple_indir_zone.
17381 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17384 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17388 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17389 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17390 Rename ctime to mtime. All users updated.
17391 (grub_minix_get_file_block): Fix types and double indirect computations.
17393 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17395 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17396 if no label is found.
17397 (grub_fat_iterate_dir): Fix file size type.
17398 (grub_fat_iterate_dir): Likewise.
17400 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17402 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17404 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17405 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17407 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17409 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17411 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17413 * util/import_gcry.py: Accept space between # and include.
17415 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17417 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17419 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17421 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17423 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17424 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17426 * grub-core/script/yylex.l: Add fine-grained #pragma.
17428 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17430 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17431 New inline function.
17432 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17434 (memset) [GRUB_UTIL]: Likewise.
17435 (memcmp) [GRUB_UTIL]: Likewise.
17437 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17439 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17440 inline function rather than a define.
17442 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17444 * util/grub-setup.c: Add missing include.
17446 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17448 * util/ieee1275/grub-ofpathname.c: Add missing include.
17450 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17452 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17453 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17456 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17458 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17461 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17463 * util/grub-install.in: Add datarootdir as per automake manual
17465 * util/grub-mknetdir.in: Likewise.
17467 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17469 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17471 * util/grub.d/10_kfreebsd.in: Likewise.
17472 * util/grub.d/10_linux.in: Likewise.
17473 * util/grub.d/10_netbsd.in: Likewise.
17474 * util/grub.d/10_windows.in: Likewise.
17475 * util/grub.d/20_linux_xen.in: Likewise.
17477 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17479 Remove redundant grub_kernel_image_size.
17481 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17483 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17484 the small code. It moves it only by few bytes but simplifies the code.
17485 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17487 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17488 (grub_kernel_image_size): Removed.
17489 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17490 (grub_kernel_image_size): Removed.
17491 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17492 compiled with Apple toolchain.
17493 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17494 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17495 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17496 (grub_total_module_size): Likewise.
17497 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17499 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17500 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17501 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17502 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17503 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17504 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17505 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17506 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17508 (grub_total_module_size): Removed.
17509 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17510 (image_targets): Likewise.
17511 Set .compressed_size to no field on sparc.
17512 (generate_image): Remove kernel_image_size handling.
17514 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17516 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17517 NULL pointer dereference.
17519 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17521 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17522 done with a dedicated section.
17524 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17525 Ensure the correct position of boot_path.
17526 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17527 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17529 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17530 * include/grub/boot.h: Removed. All references removed.
17531 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17533 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17535 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17537 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17540 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17542 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17544 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17546 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17547 Don't add the bogus brackets.
17549 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17553 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17554 * grub-core/Makefile.core.def (exfat): New module.
17555 * grub-core/fs/exfat.c: New file.
17556 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17557 (GRUB_FAT_ATTR_*): Make into an enum.
17558 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17559 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17560 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17561 (GRUB_FAT_MAXFILE): Removed.
17562 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17563 (grub_current_fat_bpb_t): New type.
17564 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17565 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17566 (grub_fat_dir_node_t): New type.
17567 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17568 (fat_log2) [MODE_EXFAT]: Removed.
17569 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17570 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17571 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17572 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17573 (grub_fat_label) [MODE_EXFAT]: New function.
17574 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17575 reserved_first_sector to 0.
17577 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17579 Move grub_reboot out of the kernel.
17581 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17582 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17583 * grub-core/lib/efi/reboot.c: ... here.
17584 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17585 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17586 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17587 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17588 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17589 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17590 * grub-core/lib/ieee1275/reboot.c: ... here.
17591 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17592 * grub-core/lib/mips/arc/reboot.c: ... here.
17593 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17594 * grub-core/lib/mips/loongson/reboot.c: ...here.
17595 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17596 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17597 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17598 * include/grub/i386/reboot.h: New file.
17599 * include/grub/mips/loongson/ec.h: Fix includes.
17600 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17601 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17602 * grub-core/lib/i386/reboot.c: New file.
17604 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17606 Make grub_prefix into module to fix the arbitrary limit and save
17609 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17610 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17611 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17612 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17613 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17614 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17615 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17616 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17617 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17618 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17619 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17620 * include/grub/ia64/efi/kernel.h: Removed.
17621 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17622 (grub_prefix): Removed.
17623 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17624 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17625 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17626 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17627 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17628 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17629 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17630 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17631 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17632 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17633 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17634 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17635 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17636 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17637 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17638 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17639 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17640 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17641 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17642 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17643 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17644 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17645 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17646 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17647 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17648 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17649 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17650 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17651 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17653 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17655 (image_targets): Likewise.
17656 (generate_image): Put prefix as a module.
17658 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17660 Replace grub_module_iterate with FOR_MODULES.
17662 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17663 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17664 (grub_efi_modules_addr): ...this.
17665 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17666 (grub_efi_init): Set grub_modbase.
17667 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17668 (grub_modbase): New variable.
17669 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17670 (grub_modbase): New variable.
17671 (grub_machine_init): Set grub_modbase.
17672 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17673 (grub_modbase): New variable.
17674 (grub_machine_init): Set grub_modbase.
17675 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17676 (grub_modbase): New variable.
17677 (grub_machine_init): Set grub_modbase.
17678 * grub-core/kern/main.c (grub_module_iterate): Remove.
17679 (grub_modules_get_end): Use grub_modbase.
17680 (grub_load_modules): Use FOR_MODULES.
17681 (grub_load_config): Likewise.
17682 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17683 (grub_modbase): New variable.
17684 (grub_machine_init): Set grub_modbase.
17685 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17686 (grub_modbase): New variable.
17687 (grub_machine_init): Set grub_modbase.
17688 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17690 (grub_modbase): New variable.
17691 (grub_machine_init): Set grub_modbase.
17692 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17693 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17694 (grub_module_iterate): Likewise.
17695 (grub_modbase): New variable declaration.
17696 (FOR_MODULES): New macro.
17698 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17700 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17701 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17703 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17705 Fix few obvious type discrepancies.
17707 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17708 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17709 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17711 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17712 and connected types.
17713 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17715 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17716 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17717 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17718 and connected types.
17720 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17722 Fix python 3.x incompatibilities.
17724 * gentpl.py: Put brackets around print strings.
17725 * util/import_gcry.py: Open explicitly as utf-8.
17726 Use in instead of has_key.
17728 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17730 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17731 (GRUB_XFS_INO_AGBITS): Make into inline function.
17732 (GRUB_XFS_INO_INOINAG): Likewise.
17733 (GRUB_XFS_INO_AG): Likewise.
17734 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17735 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17736 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17737 (GRUB_XFS_EXTENT_SIZE): Likewise.
17738 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17739 (GRUB_XFS_NEXT_DIRENT): Likewise.
17740 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17741 (grub_xfs_read_file): Fix offset type.
17743 2011-10-15 Robert Millan <rmh@gnu.org>
17745 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17747 2011-10-15 Robert Millan <rmh@gnu.org>
17749 Fix build problem on FreeBSD and GNU/kFreeBSD.
17751 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17753 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17755 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17757 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17759 (grub_hfsplus_btree_recoffset): Likewise.
17760 (grub_hfsplus_btree_recptr): Likewise.
17761 (grub_hfsplus_find_block): Likewise.
17762 (grub_hfsplus_btree_search): Likewise.
17763 (grub_hfsplus_read_block): Likewise.
17764 (grub_hfsplus_read_file): Likewise.
17765 (grub_hfsplus_mount): Likewise.
17766 (grub_hfsplus_btree_iterate_node): Likewise.
17767 (grub_hfsplus_btree_search): Likewise.
17768 (grub_hfsplus_iterate_dir): Likewise.
17769 (grub_hfsplus_read): A small code simplification.
17771 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17773 * grub-core/kern/emu/hostdisk.c
17774 (convert_system_partition_to_system_disk): Don't assume that children
17775 of mapper nodes are mapper nodes.
17777 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17779 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17780 * include/grub/misc.h (grub_isxdigit): New function.
17781 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17782 switched to grub_isxdigit.
17783 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17784 number starting with a letter.
17786 2011-10-09 Robert Millan <rmh@gnu.org>
17788 LVM support for FreeBSD and GNU/kFreeBSD.
17790 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17792 (LVM_DEV_MAPPER_STRING): Move from here ...
17793 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17794 * util/getroot.c: Include `<grub/util/lvm.h>'.
17795 (grub_util_get_dev_abstraction): Enable
17796 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17797 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17798 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17799 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17801 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17803 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17804 when LVM abstraction is required for ${GRUB_DEVICE}.
17806 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17808 Add support for LZO compression in GRUB:
17809 - import of minilzo library,
17810 - LZO decompression for btrfs,
17811 - lzop files decompression.
17813 * grub-core/io/lzopio.c: New file.
17814 * grub-core/lib/adler32.c: Likewise.
17815 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17816 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17817 * grub-core/lib/minilzo/minilzo.c: Likewise.
17818 * grub-core/lib/minilzo/minilzo.h: Likewise.
17819 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17820 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17821 grub-core/lib/minilzo/minilzo.c to common.
17822 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17823 cflags in cppflags.
17824 * grub-core/Makefile.core.def (btrfs): Likewise.
17825 * grub-core/Makefile.core.def (lzopio): New module.
17826 (adler32): Likewise.
17827 * grub-core/fs/btrfs.c: Include minilzo.h.
17828 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17829 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17830 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17831 (grub_btrfs_lzo_decompress): New function.
17832 (grub_btrfs_extent_read): Add support for LZO compression type.
17833 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17834 (GRUB_USHRT_MAX): Likewise.
17835 (GRUB_UINT_MAX): Likewise.
17836 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17837 (UINT_MAX): Likewise.
17838 (CHAR_BIT): Likewise.
17839 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17840 grub-core/lib/posix_wrap/limits.h
17841 (UCHAR_MAX): Likewise.
17842 * include/grub/file.h (grub_file_filter_id): New compression filter
17843 GRUB_FILE_FILTER_LZOPIO.
17844 * include/grub/file.h (grub_file_filter_id): Set
17845 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17846 * include/grub/types.h (grub_get_unaligned16): New function.
17847 (grub_get_unaligned32): Likewise.
17848 (grub_get_unaligned64): Likewise.
17849 * util/import_gcry.py (cryptolist): Add adler32.
17851 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17853 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17854 in perspective decreases the complexity of build system and fixes
17855 compilation right now.
17857 2011-10-01 Ales Nesrsta <starous@volny.cz>
17859 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17860 (fixed problem related to using UHCI with coreboot).
17862 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17864 * gentpl.py: Use Autogen macros so that the output template file
17865 (Makefile.tpl) size is reduced.
17867 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17869 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17872 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17874 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17875 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17877 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17879 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17882 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17884 Remove extra declaration of sleep for mingw32.
17886 * util/misc.c (sleep) [__MINGW32__]: Removed.
17887 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17889 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17891 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17893 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17895 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17896 (grub_netbsd_btinfo_bootwedge): New struct.
17897 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17899 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17901 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17903 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17906 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17908 Fix incorrect identifiers in bash-completion.
17910 * util/bash-completion.d/grub-completion.bash.in
17911 (_grub_mkpasswd-pbkdf2): Rename to ...
17912 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17913 (_grub_script-check): Rename to ...
17914 (_grub_script_check): ... this. All users updated.
17916 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17919 Return 0 if disk isn't biosdisk.
17921 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17923 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17925 * Makefile.util.def (grub-fstest): Likewise.
17927 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17929 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17930 Get sector size from disk label.
17932 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17934 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17935 */README* as well as README*.
17936 Reported by: Axel Beckert.
17938 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17940 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17941 case of less than 256 MiB of RAM.
17943 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17945 * grub-core/commands/wildcard.c (make_regex): Handle @.
17947 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17949 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17951 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17953 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17954 AC_LANG_CONFTEST macros.
17956 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17958 Add grub-fstest option to uncompress data for commands.
17960 * util/grub-fstest.c (uncompress): New var.
17961 (options): New option -u.
17963 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17965 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17966 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17968 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17970 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17971 file type was not recognized correctly (not gzip or corrupted).
17973 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17975 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17976 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17978 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17980 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17982 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17983 video_radeon_fuloong2e.
17984 * grub-core/video/radeon_fuloong2e.c: New file.
17985 * include/grub/video.h (grub_video_id_t): Add new ID
17986 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17988 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17990 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17992 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17993 that PRID matches the detected subplatform and reset the subplatform
17996 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17998 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18000 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18002 Fix PCI iterating on functions >= 4.
18004 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18005 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18007 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18008 (grub_pci_read): Fix bitmask.
18009 (grub_pci_read_word): Likewise.
18010 (grub_pci_read_byte): Likewise.
18011 (grub_pci_write): Likewise.
18012 (grub_pci_write_word): Likewise.
18013 (grub_pci_write_byte): Likewise.
18015 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18017 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18018 can still be specified in TARGET_CFLAGS)
18020 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18022 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18024 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18025 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18026 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18027 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18028 (FULOONG): Rename to ...
18029 (FULOONG2F): ... this. All users updated.
18030 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18031 (machtype_fuloong2f_str): ... this.
18032 (machtype_fuloong2e_str): New string.
18033 Check for machtype_fuloong2e_str.
18034 * grub-core/loader/mips/linux.c (loongson_machtypes)
18035 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18036 * grub-core/term/serial.c (loongson_defserial)
18037 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18038 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18039 loongson_defserial.
18040 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18042 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18043 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18044 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18045 to IMAGE_FULOONG2F_FLASH. All users updated.
18046 (image_targets): Rename images.
18047 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18049 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18051 Make enable of disk cache statistics code configurable.
18053 * configure.ac: --enable-cache-stats added.
18054 * config.h.in (DISK_CACHE_STATS): New define.
18055 * grub-core/Makefile.core.def (cacheinfo): New command.
18056 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18057 * grub-core/commands/cacheinfo.c: New file.
18058 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18059 moved to cacheinfo.c.
18060 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18062 * include/grub/disk.h: Likewise.
18064 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18066 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18067 * grub-core/Makefile.am: Likewise.
18069 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18071 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18074 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18076 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18078 (grub_jfs_lookup_symlink): Use correct starting inode.
18080 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18082 * util/grub-setup.c (main): Add missing gcry initialisation.
18084 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18086 Don't accept text modes on EFI when booting Linux.
18088 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18089 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18091 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18092 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18094 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18095 use of "/path/.." as in grub-install for EFI as well as handling
18096 symlinks correctly.
18097 Fixes Debian bug #637768.
18099 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18101 * util/grub-probe.c: Remove duplicate #include.
18103 2011-08-10 Robert Millan <rmh@gnu.org>
18105 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18107 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18109 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18110 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18112 2011-08-03 Robert Millan <rmh@gnu.org>
18114 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18115 la_array as packed.
18116 Reported by: Zachary Bedell
18118 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18120 * configure.ac: The Loongson port requires grub-mkfont due to its
18121 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18124 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18126 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18127 processing arguments (otherwise help2man fails when GRUB has not yet
18130 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18132 New script grub-mkstandalone.
18134 * Makefile.util.def (grub-mkstandalone): New script.
18135 * docs/man/grub-mkstandalone.h2m: New file.
18136 * util/grub-mkstandalone.in: Likewise.
18138 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18140 Support ATA disks with 4K sectors.
18142 * include/grub/ata.h (grub_ata): New member log_sector_size.
18143 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18144 (grub_ata_identify): Read sector size.
18145 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18147 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18149 * util/grub-install.in: Don't use uhci outside of x86.
18151 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18153 * util/grub-mkrescue.in: Add missing quotes.
18155 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18157 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18160 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18162 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18164 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18166 * include/grub/video.h: add missing EXPORT_FUND on
18167 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18169 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18171 * include/grub/mips/kernel.h: Fix define conflict.
18173 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18175 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18178 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18180 Preferred resolution detection for VBE.
18182 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18183 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18184 the Flat Panel extension, in line with the X.org VESA driver.
18185 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18187 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18188 (grub_vbe_bios_read_edid): Likewise.
18189 (grub_vbe_get_preferred_mode): Likewise.
18190 (grub_video_vbe_setup): When the mode is "auto", try to get the
18191 preferred mode from VBE, and use the largest mode that is no larger
18192 than the preferred mode (some BIOSes expose a preferred mode that is
18193 not in their mode list!). If this fails, fall back to 640x480 as a
18194 safe conservative choice.
18195 (grub_video_vbe_get_edid): New function.
18196 (grub_video_vbe_adapter): Add get_edid.
18197 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18198 (struct grub_video_adapter): Add get_edid.
18199 (grub_video_edid_checksum): Add prototype.
18200 (grub_video_edid_preferred_mode): Likewise.
18201 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18204 * grub-core/commands/videoinfo.c (print_edid): New function.
18205 (grub_cmd_videoinfo): Print EDID if available.
18207 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18208 is more appropriate on a wider range of platforms than 640x480.
18209 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18212 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18214 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18216 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18218 * po/POTFILES.in: Regenerate.
18220 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18222 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18223 incorrect memory usage.
18225 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18227 * util/grub-install.in: Source grub-mkconfig_lib.
18229 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18231 Remove getroot.c from core on emu platform.
18233 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18235 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18237 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18238 * util/getroot.c (get_win32_path): ... here.
18239 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18240 * util/getroot.c (fini_libzfs): ... here.
18241 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18242 * util/getroot.c (grub_get_libzfs_handle): ... here.
18243 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18245 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18246 * grub-core/kern/emu/misc.c
18247 (grub_make_system_path_relative_to_its_root): Moved from here...
18248 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18249 * grub-core/kern/emu/getroot.c: Moved from here ...
18250 * util/getroot.c: ... here. All users updated.
18251 * grub-core/kern/emu/raid.c: Moved from here ...
18252 * util/raid.c: ... here. All users updated.
18254 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18256 * po/POTFILES.in: Regenerate.
18258 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18260 Fix compilation on GNU/Linux.
18262 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18264 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18265 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18266 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18268 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18269 2011-07-07 Michael Gorven <michael@gorven.za.net>
18270 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18272 LUKS and GELI support.
18274 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18275 grub-core/disk/luks.c, grub-core/disk/geli.c,
18276 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18277 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18278 grub-core/lib/arg.c.
18279 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18280 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18281 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18282 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18283 (grub-bin2h): Add libgcry.a.
18284 (grub-mkimage): Likewise.
18285 (grub-mkrelpath): Likewise.
18286 (grub-script-check): Likewise.
18287 (grub-editenv): Likewise.
18288 (grub-mkpasswd-pbkdf2): Likewise.
18289 (grub-pe2elf): Likewise.
18290 (grub-fstest): Likewise.
18291 (grub-mkfont): Likewise.
18292 (grub-mkdevicemap): Likewise.
18293 (grub-probe): Likewise.
18294 (grub-ofpath): Likewise.
18295 (grub-mklayout): Likewise.
18296 (example_unit_test): Likewise.
18297 (grub-menulst2cfg): Likewise.
18298 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18299 * grub-core/Makefile.core.def (cryptodisk): New module.
18302 * grub-core/disk/AFSplitter.c: New file.
18303 * grub-core/disk/cryptodisk.c: Likewise.
18304 * grub-core/disk/geli.c: Likewise.
18305 * grub-core/disk/luks.c: Likewise.
18306 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18308 (grub_util_get_dm_abstraction): New function.
18309 (grub_util_follow_gpart_up): Likewise.
18310 (grub_util_get_geom_abstraction): Likewise.
18311 (grub_util_get_dev_abstraction): Use new functions.
18312 (grub_util_pull_device): Pull GELI and LUKS.
18313 (grub_util_get_grub_dev): Handle LUKS and GELI.
18314 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18315 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18316 (follow_geom_up): Removed.
18317 (grub_util_fd_seek): New function.
18318 (open_device): Use grub_util_fd_seek.
18319 (nread): Rename to ..
18320 (grub_util_fd_read): ... this. All users updated.
18321 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18322 (grub_crypto_cbc_decrypt): Likewise.
18323 (grub_crypto_hmac_write): Likewise.
18324 (grub_crypto_hmac_buffer): Likewise.
18325 (grub_password_get): Extend to util.
18326 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18327 New member modname.
18328 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18329 * include/grub/cryptodisk.h: New file.
18330 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18331 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18333 (grub_util_follow_gpart_up): New proto.
18334 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18335 (grub_util_fd_read): Likewise.
18336 (grub_cryptodisk_cheat_mount): Likewise.
18337 (grub_util_cryptodisk_print_uuid): Likewise.
18338 (grub_util_get_fd_sectors): Likewise.
18339 * util/grub-fstest.c (mount_crypt): New var.
18340 (fstest): Mount crypto if requested.
18341 (options): New option -C.
18342 (argp_parser): Parse -C.
18343 (main): Init and fini gcry.
18344 * util/grub-install.in: Support cryptodisk install.
18345 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18346 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18348 (prepare_grub_to_access_device): Likewise.
18349 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18350 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18351 (probe_cryptodisk_uuid): New function.
18352 (probe_abstraction): Likewise.
18353 (probe): Use new functions.
18354 * util/import_gcry.py: Create Makefile.utilgcry.def.
18355 Add modname member.
18357 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18359 Lazy device scanning.
18361 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18362 (grub-setup): Remove util/raid.c.
18363 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18364 * grub-core/disk/lvm.c (scan_depth): New variable.
18365 (grub_lvm_iterate): Rescan if necessary.
18366 (find_lv): New function based on grub_lvm_open.
18367 (grub_lvm_open): Use find_lv. Rescan on error.
18368 (is_node_readable): New function.
18369 (is_lv_readable): Likewise.
18370 (grub_lvm_scan_device): Skip already found disks.
18371 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18372 Stop if searched device is found and readable.
18373 * grub-core/disk/raid.c (inscnt): New variable.
18374 (scan_depth): Likewise.
18375 (scan_devices): New function based on grub_raid_register. Abort if
18376 looked for device is found.
18377 (grub_raid_iterate): Rescan if needed.
18378 (find_array): NEw function based on -grub_raid_open.
18379 (grub_raid_open): Use find_array and rescan.
18380 (insert_array): Set became_readable_at.
18381 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18382 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18384 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18385 (grub_util_pull_device): New function.
18386 (grub_util_get_grub_dev): Call grub_util_pull_device.
18387 * util/raid.c: Moved to ..
18388 * grub-core/kern/emu/raid.c: ... here.
18389 (grub_util_raid_getmembers): New parameter "bootable".
18390 All users updated. Support 1.x.
18391 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18393 * include/grub/disk.h (grub_disk_pull_t): New enum.
18394 (grub_disk_dev): Change iterate prototype.
18396 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18398 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18399 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18400 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18401 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18403 * include/grub/util/raid.h: Removed.
18405 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18407 * po/POTFILES.in: Regenerate.
18409 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18411 Unify sparc init with other ieee1275.
18413 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18414 instead of kern/sparc64/ieee1275/init.c.
18415 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18416 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18417 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18418 grub/machine/kernel.h.
18419 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18420 (grub_claim_heap) [__sparc__]: Use sparc version.
18421 (grub_machine_init): Moved args parsing to
18422 (grub_parse_cmdline): ...this.
18423 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18424 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18426 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18428 Move BOOTP to separate file.
18430 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18431 * grub-core/net/net.c: Move all BOOTP functions to
18432 * grub-core/net/bootp.c: ... here.
18434 Use frame interface on PXE.
18436 * grub-core/Makefile.core.def (pxecmd): Removed.
18437 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18438 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18439 * grub-core/i386/pc/pxe.c: Moved from here ...
18440 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18441 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18442 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18444 EFI network support.
18446 * grub-core/Makefile.core.def (efinet): New module.
18447 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18449 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18451 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18452 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18453 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18454 * grub-core/net/drivers/efi/efinet.c: New file.
18455 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18456 (grub_efi_net_config): New extern var.
18458 Various cleanups and bugfixes.
18460 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18462 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18463 disk declared as partition.
18464 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18466 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18467 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18468 (grub_debug_zalloc): Likewise.
18469 (grub_debug_realloc): Likewise.
18470 (grub_debug_memalign): Likewise.
18471 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18472 Check that target is IPv4.
18473 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18474 local-mac-address as fallback.
18475 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18477 * grub-core/net/ip.c (ipchksum): Rename to ...
18478 (grub_net_ip_chksum): ... this. All users updated.
18479 (grub_net_recv_ip_packets): Special handling for DHCP.
18480 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18482 Unify prefix handling
18484 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18485 (grub_machine_get_bootlocation): ... this.
18486 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18487 (grub_machine_get_bootlocation): ... this.
18488 (grub_prefix): New variable.
18490 (root_dev): New variable.
18492 (main): Use new variables.
18493 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18495 (grub_machine_get_bootlocation): ... this.
18496 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18497 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18498 (grub_machine_get_bootlocation): ... this.
18499 (grub_machine_set_prefix): Removed.
18500 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18501 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18503 (grub_machine_get_bootlocation): ... this.
18504 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18505 (grub_set_prefix_and_root): ... this. All users updated.
18506 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18508 (grub_machine_get_bootlocation): ... this.
18509 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18510 (grub_machine_get_bootlocation): New proto.
18511 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18513 Less intrusive and more reliable seek on network implementation.
18515 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18516 (grub_file_seek): Don't call grub_file_net_seek.
18517 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18518 (grub_net_fs_read_real): .. this.
18519 (grub_net_seek_real): Use net->offset.
18520 (grub_net_fs_read): Seek if necessary.
18522 Unify IEEE1275 netwotk config with the other platforms.
18524 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18526 (grub_machine_get_bootlocation): Support network.
18527 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18528 Support type and device parsing.
18529 (grub_ieee1275_get_device_type): New function.
18530 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18532 (grub_ieee1275_net_config_real): ... this.
18533 (grub_ofnet_probecards): Removed.
18534 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18535 * include/grub/ieee1275/ofnet.h: Removed.
18536 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18538 (grub_ieee1275_get_device_type): New function.
18540 Unify network device closing across platforms and make more robust.
18542 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18544 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18546 * grub-core/net/net.c (grub_net_network_level_interface_register):
18548 (grub_net_card_unregister): Close all interfaces.
18549 (receive_packets): Don't poll if no iterfaces are registered.
18551 (grub_net_fini_hw): New function.
18552 (grub_net_restore_hw): Likewise.
18553 (fini_hnd): New variable.
18554 (GRUB_MOD_INIT): Register preboot hook.
18555 (GRUB_MOD_FINI): Run and unregister preboot hook.
18557 Poll network cards when idle.
18559 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18560 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18561 * grub-core/net/net.c (receive_packets): Save last poll time.
18562 (grub_net_poll_cards_idle_real): New function.
18563 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18564 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18565 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18567 Rename ofnet interfaces.
18569 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18570 (grub_ofnet_findcards): Use ofnet_%s names.
18572 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18574 Cleanup socket opening.
18576 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18577 (grub_net_fs_close): Likewise.
18578 (grub_net_fs_read_real): Use eof member.
18579 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18580 (+grub_net_udp_close): New inline function.
18582 * include/grub/net/tftp.h: Moved to the top of ...
18583 * grub-core/net/tftp.c: ... here.
18584 * include/grub/net/ip.h: Moved mostly to the top of ...
18585 * grub-core/net/ip.c: ... here.
18586 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18587 * grub-core/net/ethernet.c: ... here.
18589 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18591 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18594 * include/grub/net/ip.h (ipv4_ini): Removed.
18595 (ipv4_fini): Likewise.
18597 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18598 (grub_net_send_ip_packets): Likewise.
18600 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18602 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18603 grub_read_cmos prototype.
18605 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18607 VGA text support in qemu-mips
18609 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18610 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18611 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18613 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18614 * grub-core/kern/vga_init.c: ... this.
18615 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18616 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18617 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18619 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18620 GRUB_MACHINE_PCI_IO_BASE.
18622 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18624 MIPS qemu flash support.
18626 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18628 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18629 (grub_machine_init): Probe memory if its size isn't known.
18630 * util/grub-mkimage.c (image_targets): Add flash targets.
18631 (generate_image): Handle flash targets.
18633 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18635 MIPS qemu at_keyboard support.
18637 * gentpl.py (videoinkernel): Add qemu-mips.
18638 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18639 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18640 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18642 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18643 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18644 * grub-core/term/serial.c (grub_serial_register)
18645 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18647 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18649 CMOS support on sparc.
18651 * gentpl.py (cmos): Add powerpc and sparc.
18652 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18654 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18655 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18656 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18657 grub_set_datetime_cmos.
18658 * grub-core/lib/ieee1275/cmos.c: New file.
18659 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18660 (find_rtc): Set no_ieee1275_rtc on error.
18661 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18662 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18663 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18664 fail. Move value to argument. All users updated
18665 (grub_cmos_write): Likewise.
18666 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18667 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18668 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18669 grub_get_datetime_cmos and grub_set_datetime_cmos.
18671 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18673 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18674 sourcing grub-mkconfig_lib.
18675 * util/update-grub_lib.in: Likewise.
18676 * util/grub.d/00_header.in: Likewise.
18677 * util/grub.d/10_hurd.in: Likewise.
18678 * util/grub.d/10_kfreebsd.in: Likewise.
18679 * util/grub.d/10_linux.in: Likewise.
18680 * util/grub.d/10_netbsd.in: Likewise.
18681 * util/grub.d/10_windows.in: Likewise.
18682 * util/grub.d/20_linux_xen.in: Likewise.
18683 * util/grub.d/30_os-prober.in: Likewise.
18685 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18687 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18688 default_bg_color rather than black.
18689 (grub_gfxterm_fullscreen): Likewise.
18690 (grub_gfxterm_background_color_cmd): Save new background color in
18693 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18695 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18697 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18699 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18704 Chainloading on coreboot support.
18706 * grub-core/Makefile.core.def (chain): Add coreboot.
18707 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18709 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18711 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18714 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18716 Implement time command.
18718 * grub-core/Makefile.core.def (time): New module.
18719 * grub-core/commands/time.c: New file.
18720 * grub-core/script/parser.y: Remove "time" keyword.
18721 * grub-core/script/yylex.l: Likewise.
18723 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18725 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18727 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18729 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18730 when handling leftovers.
18732 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18734 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18735 so that help2man doesn't fail.
18737 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18739 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18740 type in pointers on sparc64.
18741 (get_card_packet): Likewise.
18743 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18745 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18747 (grub_cmd_videoinfo): Fetch current video mode.
18749 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18751 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18752 because of underlying system restrictions.
18754 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18756 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18761 Coreboot video support.
18763 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18765 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18766 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18768 * grub-core/kern/i386/int.S: ... here.
18769 * grub-core/video/i386/pc/vbe.c: Updated includes.
18770 * grub-core/video/i386/pc/vga.c: Likewise.
18771 * include/grub/i386/coreboot/memory.h
18772 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18773 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18774 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18775 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18776 Disable interrupts.
18777 * include/grub/i386/pc/vga.h: Removed. All users updated.
18779 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18781 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18782 definitions for dprintf.
18783 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18785 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18787 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18789 (get_card_packet): Likewise.
18791 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18793 Display the path of the file when file is not found
18795 * grub-core/fs/fat.c: Display the filename when file is not found.
18796 * grub-core/fs/fshelp.c: Likewise.
18797 * grub-core/fs/hfs.c: Likewise.
18798 * grub-core/fs/jfs.c: Likewise.
18799 * grub-core/fs/minix.c: Likewise.
18800 * grub-core/fs/ufs.c: Likewise.
18801 * grub-core/fs/btrfs.c: Likewise.
18802 * grub-core/commands/i386/pc/play.c: Likewise.
18804 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18806 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18807 pointer checks before calling grub_free().
18808 * grub-core/commands/wildcard.c (match_devices): Likewise.
18809 * grub-core/commands/wildcard.c (match_files): Likewise.
18810 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18811 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18812 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18813 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18814 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18815 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18816 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18817 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18818 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18820 2011-06-25 Patrick <p55@mailinator.com>
18822 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18824 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18826 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18827 (grub_pxe_send): Likewise.
18828 (GRUB_MOD_INIT): Fix types.
18830 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18832 * grub-core/io/xzio.c: Fix code style issues
18834 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18835 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18837 Network infrastructure.
18838 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18840 * include/grub/net/arp.h: New file.
18841 * include/grub/net/device.h: Likewise.
18842 * include/grub/net/ethernet.h: Likewise.
18843 * include/grub/net/ip.h: Likewise.
18844 * include/grub/net/netbuff.h: Likewise.
18845 * include/grub/net/tftp.h: Likewise.
18846 * include/grub/net/udp.h: Likewise.
18847 * include/grub/ieee1275/ofnet.h: Likewise.
18848 * include/grub/emu/export.h: Likewise.
18849 * include/grub/net.h: Likewise.
18850 * grub-core/net/arp.c: Likewise.
18851 * grub-core/net/ethernet.c: Likewise.
18852 * grub-core/net/ip.c: Likewise.
18853 * grub-core/net/udp.c: Likewise.
18854 * grub-core/net/tftp.c: Likewise.
18855 * grub-core/net/netbuff.c: Likewise.
18856 * grub-core/net/net.c: Likewise.
18857 * grub-core/net/drivers/emu/emunet.c: Likewise.
18858 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18859 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18861 * grub-core/Makefile.core.def (net): New module.
18864 (emunet): Likewise.
18865 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18867 * grub-core/kern/device.c (grub_net_open) : New variable.
18868 (grub_device_open): Handle network device.
18869 (grub_device_close): Likewise.
18870 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18871 (grub_grubnet_fini): Likewise.
18872 (grub_file_seek): Seek in network device.
18873 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18874 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18876 (grub_machine_fini): Call grub_grubnet_fini.
18877 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18879 (grub_ieee1275_get_aliasdevname): New function.
18880 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18881 Add unofficial Solaris network info.
18882 (grub_multiboot_make_mbi): Likewise.
18883 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18884 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18885 * include/grub/device.h (grub_fs): Removed.
18886 * include/grub/err.h (grub_err_t): Add network-related values.
18887 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18888 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18889 (grub_ieee1275_get_aliasdevname): New proto.
18890 * include/grub/net.h: Rewritten.
18892 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18894 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18897 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18899 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18900 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18901 it truncates the output.
18902 Reported by: Ximin Luo.
18904 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18906 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18908 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18910 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18911 partmap before abstraction.
18913 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18915 * util/grub-mkconfig_lib.in: Add missing quotes.
18917 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18919 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18920 old method if mountinfo would return /dev/root and /dev/root doesn't
18923 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18927 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18928 (decomp_table): Add zlib entries.
18929 (zio_read): USe 8 bits for compression function rather than 3.
18930 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18932 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18934 * grub-core/disk/ahci.c: Add missing license statements.
18935 * grub-core/fs/romfs.c: Likewise.
18936 * grub-core/lib/ia64/setjmp.S: Likewise.
18937 * grub-core/loader/i386/pc/freedos.c: Likewise.
18938 * grub-core/loader/ia64/efi/linux.c: Likewise.
18939 * grub-core/video/colors.c: Likewise.
18940 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18942 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18946 * grub-core/Makefile.core.def (ata_pthru): Removed.
18947 (ahci): New module.
18949 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18951 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18953 (grub_hdparm_do_check_powermode_cmd): Likewise.
18954 (grub_hdparm_do_smart_cmd): Likewise.
18955 (grub_hdparm_set_val_cmd): Likewise.
18956 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18957 * grub-core/disk/ahci.c: New file.
18958 * grub-core/disk/ata.c: Factor out the low-level part into ...
18959 * grub-core/disk/pata.c: ... here.
18960 * grub-core/disk/ata_pthru.c: Contents moved to ...
18961 * grub-core/disk/pata.c: ... here.
18962 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18963 (grub_scsi_iterate): Use grub_scsi_names.
18964 (grub_scsi_open): Likewise.
18965 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18966 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18967 (grub_ata_regs_t): New struct.
18968 (grub_disk_ata_pass_through_parms): Likewise.
18969 (grub_ata_device): Renamed to ...
18970 (grub_ata): ... this.
18971 (grub_ata_dev): New struct.
18972 Removed all low-level inline functions.
18973 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18974 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18975 iterate hooks and open. All users updated.
18976 * util/grub-install.in: Handle AHCI disk module.
18978 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18980 Add support for DRI and RSTn markers in JPEG files.
18982 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18983 (JPEG_MARKER_RST0): Likewise.
18984 (JPEG_MARKER_RST1): Likewise.
18985 (JPEG_MARKER_RST2): Likewise.
18986 (JPEG_MARKER_RST3): Likewise.
18987 (JPEG_MARKER_RST4): Likewise.
18988 (JPEG_MARKER_RST5): Likewise.
18989 (JPEG_MARKER_RST6): Likewise.
18990 (JPEG_MARKER_RST7): Likewise.
18991 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18992 (grub_jpeg_decode_dri): New function.
18993 (grub_jpeg_decode_sos): Move image data related part into
18994 grub_jpeg_decode_data function.
18995 (grub_jpeg_decode_data): New function.
18996 (grub_jpeg_reset): New function.
18997 (grub_jpeg_decode_jpeg): Handle new markers.
18999 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19001 * util/ieee1275/ofpath.c (check_sas): Close fd.
19002 (main): Free of_path.
19003 Reported by: David Volgyes <dvolgyes>.
19005 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19007 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19008 Reported by: David Volgyes <dvolgyes>.
19010 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19012 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19014 Reported by: David Volgyes <dvolgyes>.
19016 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19018 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19020 Reported by: David Volgyes <dvolgyes>.
19022 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19024 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19025 Prevent memory leak.
19027 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19029 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19030 (main): Close file.
19031 Reported by: David Volgyes <dvolgyes>.
19033 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19035 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19036 to continue if allocation is failed.
19038 Reported by: David Volgyes <dvolgyes>.
19040 2011-06-23 David Volgyes <dvolgyes>
19042 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19045 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19047 Fix spurious warning.
19049 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19050 (acorn_partition_map_find): Use .bin member.
19052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19054 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19055 /dev/root as a valid device.
19057 2011-06-23 Jim Meyering <meyering@redhat.com>
19059 Avoid NULL deref in grub_device_open.
19061 * grub-core/kern/device.c (grub_device_open): Don't dereference
19062 a NULL pointer upon failed grub_env_get.
19064 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19066 Support non-512B sectors and agglomerate reads.
19068 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19069 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19070 (disk_io_guid): Removed.
19071 (make_devices): Locate solely by BlockIO.
19072 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19073 (grub_efidisk_read): Use read_blocks.
19074 (grub_efidisk_write): Use write_blocks.
19075 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19077 (get_safe_sectors): Handle non-512B sectors.
19078 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19080 (grub_biosdisk_write): Handle non-512B sectors.
19081 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19082 (grub_scsi_read): Remove special non-512B block handling (now handled
19084 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19085 and do sanity checks.
19086 (grub_disk_adjust_range): Handle non-512B sectors.
19087 (transform_sector): New function.
19088 (grub_disk_read_small): Likewise.
19089 (grub_disk_read): Rewritten.
19090 (grub_disk_write): Handle non-512B sectors.
19091 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19093 (open_device): Use log_sector_size.
19094 (grub_util_biosdisk_read): Likewise.
19095 (grub_util_biosdisk_write): Likewise.
19096 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19098 (pc_partition_map_embed): Likewise.
19099 * include/grub/disk.h (grub_disk): New field log_sector_size.
19100 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19101 (GRUB_DISK_CACHE_BITS): Increased to 6.
19102 * util/grub-fstest.c (fstest): New command testload.
19103 (argp_parser): Likewise.
19105 2011-06-16 Robert Millan <rmh@gnu.org>
19107 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19108 `ata' driver on kernel of FreeBSD 9.
19110 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19111 (get_ataraid_disk_name): New functions.
19112 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19113 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19114 get_ataraid_disk_name() and get_ada_disk_name().
19116 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19118 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19121 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19123 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19124 `ftp.gnu.org' for `alpha.gnu.org'.
19126 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19128 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19129 partitions under /dev/disk/by-id/.
19131 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19133 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19134 after ten consecutive open failures. Scanning all the way up to
19135 10000 is excessive and can cause serious performance problems in
19136 some configurations.
19137 Fixes Ubuntu bug #787461.
19139 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19141 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19144 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19145 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19147 Don't stat devices unless we have to.
19149 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19150 dir == /dev/mapper.
19151 (grub_guess_root_device): Use already known os_dev if possible.
19152 * grub-core/kern/emu/hostdisk.c
19153 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19154 if device is known to be a dm one.
19156 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19158 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19159 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19160 Reported by: Pawel Tecza.
19162 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19164 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19165 (lsefisystab): Likewise.
19167 (lsefimmap): Likewise.
19168 (hdparm): Enable on qemu-mips.
19169 (setjmp): Add ia64 nodist.
19170 (serial): Simplify tags.
19172 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19174 * Makefile.util.def (grub-ofpathname): Install manual page.
19176 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19178 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19180 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19182 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19184 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19186 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19189 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19191 Use full 64-bit division.
19193 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19194 (grub_divmod64): ... this.
19195 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19198 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19200 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19203 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19205 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19206 to avoid accidents when debugging with 'sh -x'.
19207 * grub-core/gensyminfo.sh.in: Likewise.
19208 * tests/example_scripted_test.in: Likewise.
19209 * tests/grub_cmd_regexp.in: Likewise.
19210 * tests/grub_script_blanklines.in: Likewise.
19211 * tests/grub_script_dollar.in: Likewise.
19212 * tests/grub_script_expansion.in: Likewise.
19213 * tests/grub_script_final_semicolon.in: Likewise.
19214 * tests/partmap_test.in: Likewise.
19215 * tests/util/grub-shell-tester.in: Likewise.
19216 * tests/util/grub-shell.in: Likewise.
19218 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19220 Move gfxmenu color handling to video, so that gfxterm can use it
19223 * grub-core/gfxmenu/named_colors.c: Move to ...
19224 * grub-core/video/colors.c: ... here. Rename
19225 grub_gui_get_named_color to grub_video_get_named_color.
19226 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19227 * grub-core/video/colors.c (my_isxdigit): ... here.
19228 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19230 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19231 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19233 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19235 * include/grub/gui.h (grub_gui_color_t): Move to ...
19236 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19237 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19238 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19239 * include/grub/gui.h (grub_gui_map_color): Move to ...
19240 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19241 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19243 * include/grub/video.h (grub_video_get_named_color): ... here.
19244 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19245 * include/grub/video.h (grub_video_parse_color): ... here.
19247 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19249 (gfxmenu): Remove gfxmenu/named_colors.c.
19250 (video) [videomodules]: Add video/colors.c.
19252 Add a background_color command.
19254 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19256 (GRUB_MOD_INIT): Register background_color command.
19257 (GRUB_MOD_FINI): Unregister background_color command.
19258 (redraw_screen_rect): Allow blend/replace of text layer to be
19259 controlled independently from whether there is a background bitmap.
19260 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19263 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19265 Patch BPB in ntldr and chainloader --bpb.
19267 * grub-core/fs/fat.c: Include grub/fat.h.
19268 (grub_fat_bpb): Moved to ...
19269 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19270 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19272 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19274 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19276 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19278 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19279 (GRUB_MOD_INIT): Show --bpb.
19280 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19281 * grub-core/normal/main.c (features): New variable.
19282 (GRUB_MOD_INIT): Set feature_* variables.
19283 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19285 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19287 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19289 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19294 FreeDOS direct loading support.
19296 * docs/grub.texi (Supported OS): Add FreeDOS.
19297 * grub-core/Makefile.core.def (freedos): New module.
19298 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19300 (grub_relocator16_boot): Handle %ebx.
19301 * grub-core/lib/i386/relocator16.S: Likewise.
19302 * grub-core/loader/i386/pc/freedos.c: New file.
19304 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19306 Long Linux command line support.
19308 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19309 (maximal_cmdline_size): New variable.
19310 (allocate_pages): Use maximal_cmdline_size.
19311 (grub_cmd_linux): Set and use maximal_cmdline_size.
19312 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19313 (allocate_pages): Use maximal_cmdline_size.
19314 (grub_cmd_linux): Set and use maximal_cmdline_size.
19315 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19316 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19319 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19320 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19322 Improve devmapper support
19324 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19325 (grub_util_is_lvm): New function.
19326 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19327 than lvm if not dmraid.
19328 Handle mapped md nodes.
19329 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19330 (grub_util_device_is_mapped): ... this. Make always available. All users
19332 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19333 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19335 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19337 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19339 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19341 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19342 * grub-core/modinfo.sh.in: New file.
19343 * grub-core/Makefile.core.def (modinfo.sh): New script.
19344 * util/grub-mknetdir.in: Use modinfo.sh.
19345 * util/grub-mkrescue.in: Likewise.
19347 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19349 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19350 Fix potential usage of Elf32 instead of Elf64 when compiling on
19351 32-bit architecture. Add endianness macros while on it.
19353 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19355 Use mipsel- rather than mips- in directories involving mipsel ports to
19356 allow both endiannesses coexist.
19358 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19359 mips. All conditions adjusted.
19360 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19362 * util/grub-install.in: Adjust conditions to take renaming into account.
19363 * util/grub-mkimage.c (image_targets): Likewise. New target
19364 mips-qemu_mips-elf for bigendian mips.
19366 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19368 Avoid unnecessary copying on MIPS.
19370 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19371 early if src == dest.
19372 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19373 compression is none.
19375 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19377 Reduce memory footprint on SGI by putting modules before the kernel
19378 as opposed to after.
19380 * grub-core/Makefile.core.def (kernel): Increase linking address.
19381 (none_decompress): Likewise.
19382 (xz_decompress): Likewise.
19383 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19385 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19387 (grub_arch_modules_addr): New function.
19388 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19389 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19390 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19392 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19393 (grub_total_modules_size): ... this. Make global.
19394 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19395 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19397 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19398 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19399 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19400 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19401 * util/grub-mkimage.c (image_target_desc): New flag
19402 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19403 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19404 (generate_image): Handle images with modules before kernel.
19406 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19408 Prevent potential loss of memory map by overwrite on qemu-mips.
19410 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19411 Save ram size in $s4.
19412 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19413 All users changed to grub_arch_memsize.
19414 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19416 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19417 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19418 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19421 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19423 * .bzrignore: Remove grub-dumpbios.
19425 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19427 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19428 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19429 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19430 existing options which append).
19431 * docs/grub.texi (Simple configuration): Document new options.
19432 Reported by: Ian Jackson. Fixes Debian bug #617538.
19434 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19436 * util/grub-fstest.c (cmd_cat): New function.
19437 (fstest): Handle CMD_CAT.
19438 (options): Add cat.
19439 (argp_parser): Handle cat.
19441 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19443 * Makefile.util.def (grub-bin2h): Don't install.
19444 * docs/man/grub-bin2h.h2m: Remove.
19446 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19448 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19451 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19453 Reenable qemu-mips port.
19455 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19456 Fix small arc bug while on it.
19457 * gentpl.py: Handle qemu_mips.
19458 * grub-core/Makefile.am: Likewise.
19459 * grub-core/Makefile.core.def: Likewise.
19460 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19461 inappropriate includes.
19462 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19463 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19464 * grub-core/kern/main.c (grub_modules_get_end)
19465 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19466 * grub-core/kern/mips/qemu-mips: Moved to ..
19467 * grub-core/kern/mips/qemu_mips: ... this.
19468 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19469 (grub_machine_init): Call terminfo_init and serial_init.
19470 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19471 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19473 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19475 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19476 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19477 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19478 * include/grub/mips/qemu_mips/cmos.h: New file.
19479 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19480 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19482 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19483 Use correct mips-style address.
19484 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19485 (GRUB_TICKS_PER_SECOND): Removed.
19486 (grub_get_rtc): Likewise.
19487 (grub_cpu_idle): Likewise.
19488 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19490 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19491 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19492 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19493 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19494 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19495 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19496 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19497 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19499 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19503 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19504 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19506 * configure.ac: New target mips-arc.
19507 * gentpl.py: Likewise.
19508 * grub-core/Makefile.am: Likewise.
19509 * grub-core/Makefile.core.def: Likewise.
19510 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19511 (none_decompress): Likewise.
19512 (lsdev): New module.
19513 (datetime): Use lib/arc/datetime.c on ARC.
19514 (part_dvh): New module.
19515 * grub-core/commands/arc/lsdev.c: New file.
19516 * grub-core/disk/arc/arcdisk.c: Likewise.
19517 * grub-core/kern/mips/arc/init.c: Likewise.
19518 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19520 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19522 (grub_arch_dl_relocate_symbols): Likewise.
19523 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19524 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19525 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19527 * grub-core/lib/arc/datetime.c: New file.
19528 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19529 pci.h on non-loongson.
19530 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19531 (grub_linux_boot): Set unused registers to 0.
19532 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19533 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19534 * grub-core/mmap/mips/uppermem.c: ...here.
19535 * grub-core/partmap/dvh.c: New file.
19536 * grub-core/term/arc/console.c: Likewise.
19537 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19538 (grub_terminfo_set_current): Add terminal "arc".
19539 (grub_terminfo_readkey): Support ARC sequences.
19540 * include/grub/arc/arc.h: New file.
19541 * include/grub/arc/console.h: Likewise.
19542 * include/grub/disk.h (grub_disk_dev_id): Add
19543 GRUB_DISK_DEVICE_ARCDISK_ID.
19544 * include/grub/mips/arc/kernel.h: New file.
19545 * include/grub/mips/arc/memory.h: Likewise.
19546 * include/grub/mips/arc/time.h: Likewise.
19547 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19548 * include/grub/mips/kernel.h (grub_halt): ... here.
19549 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19551 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19552 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19553 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19554 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19556 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19558 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19559 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19560 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19561 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19562 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19563 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19564 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19565 (grub_phys_addr_t): Moved from here ...
19566 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19567 (grub_vtop): Moved from here ...
19568 * include/grub/mips/memory.h (grub_vtop): ... here.
19569 (grub_map_memory): Moved from here ...
19570 * include/grub/mips/memory.h (grub_map_memory): ... here.
19571 (grub_unmap_memory): Moved from here ...
19572 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19573 (grub_machine_mmap_iterate): Moved from here ...
19574 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19575 (grub_mmap_get_lower): Moved from here ...
19576 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19577 (grub_mmap_get_upper): Moved from here ...
19578 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19579 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19581 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19582 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19584 * include/grub/mips/time.h (grub_get_rtc): ... here.
19585 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19587 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19588 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19590 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19591 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19593 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19594 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19595 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19596 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19597 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19598 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19599 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19600 (GRUB_MACHINE_LINK_ADDR): Likewise.
19601 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19603 * util/grub-install.in: Run dvhtool on ARC.
19604 * util/grub-mkimage.c (image_targets): Add mips-arc.
19605 (generate_image): Handle ECOFF output for mips-arc.
19607 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19609 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19612 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19614 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19615 after enabling port.
19617 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19619 Skip incorrect USB devices.
19621 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19623 * include/grub/usb.h (grub_usb_err_t): New enum value
19624 GRUB_USB_ERR_BADDEVICE.
19626 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19628 Fuloong video init support.
19630 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19632 (grub_vga_read_arx): New function.
19633 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19635 (framebuffer): New members io, mmioptr and mmiobase.
19636 (read_sis_cmd): New function.
19637 (write_sis_cmd): Likewise.
19638 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19639 rather than 640x400.
19640 * grub-core/video/sis315_init.c: New file.
19642 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19644 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19646 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19647 to grub_dl_register_symbol.
19649 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19651 Fix compilation errors.
19653 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19654 potentially unused.
19655 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19656 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19657 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19658 to loongson machines.
19660 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19662 Several FS mtime support.
19664 * grub-core/fs/affs.c (grub_affs_time): New struct.
19665 (grub_affs_file): New field mtime.
19666 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19667 type. Removed 'size'. New field 'di'. All users updated.
19668 (grub_affs_mount): Simplify checsum checking.
19669 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19670 (grub_affs_dir): Handle mtime.
19671 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19672 (grub_cpio_dir): Likewise.
19673 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19674 (grub_hfs_filerec): New field mtime.
19675 (grub_hfs_dir): Handle mtime.
19676 (grub_hfs_mtime): New function.
19677 (grub_hfs_fs): Register grub_hfs_mtime.
19678 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19679 (grub_iso9660_dir): New field mtime.
19680 (grub_fshelp_node): New field dirent.
19681 (iso9660_to_unixtime): New function.
19682 (iso9660_to_unixtime2): Likewise.
19683 (grub_iso9660_read_symlink): Use node->dirent.
19684 (grub_iso9660_iterate_dir): Likewise.
19685 (grub_iso9660_dir): Set mtime.
19686 (grub_iso9660_mtime): New function.
19687 (grub_iso9660_fs): Register grub_iso9660_mtime.
19688 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19689 (grub_jfs_inode): New fields atime, ctime and mtime.
19690 (grub_jfs_dir): Set mtime.
19691 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19692 * grub-core/fs/ntfs.c (list_file): Set mtime.
19693 (grub_ntfs_dir): Likewise.
19694 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19695 (grub_reiserfs_iterate_dir): Set mtime.
19696 (grub_reiserfs_dir): Likewise.
19697 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19698 (grub_fshelp_node): Likewise.
19699 (grub_sfs_iterate_dir): Set mtime.
19700 (grub_sfs_dir): Likewise.
19701 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19702 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19703 (grub_xfs_inode): New fields atime, mtime, ctime.
19704 (grub_xfs_dir): Set mtime.
19705 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19706 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19707 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19709 Support UDF symlinks.
19711 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19712 (grub_ufs_read_symlink): New function. All users updated.
19714 Check amiga partmap checksum.
19716 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19717 (grub_amiga_partition): Likewise.
19718 (amiga_partition_map_checksum): New function.
19719 (amiga_partition_map_iterate): Check checksum.
19721 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19725 * Makefile.util.def (libgrubmods.a): Add romfs.
19726 * grub-core/Makefile.core.def (romfs): New module.
19727 * grub-core/fs/romfs.c: New file.
19729 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19731 Squashfs v4 support.
19733 * Makefile.util.def (libgrubmods.a): Add squash4.
19734 * grub-core/Makefile.core.def (squash4): New module.
19735 * grub-core/fs/squash4.c: New file.
19736 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19737 disk_input_start, disk_input.
19738 (get_byte): Handle disk_input.
19739 (grub_zlib_disk_read): New function.
19740 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19742 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19743 2011-05-15 Feiran Zheng <famcool@gmail.com>
19745 * Makefile.util.def (libgrubmods.a): Add minix3.
19746 * grub-core/Makefile.core.def (minix3): New module.
19747 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19748 (GRUB_MINIX_BSIZE): Removed.
19749 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19750 (grub_minix_ino_t): New type.
19751 (grub_minix_le_to_cpu_ino): New macro.
19752 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19753 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19754 (grub_minix_data): New field block_size.
19755 (grub_minix_read_file): Handle 64-bit correctly.
19756 * grub-core/fs/minix3.c: New file.
19758 2011-05-15 Tristan Gingold <gingold@free.fr>
19759 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19760 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19764 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19765 * configure.ac: Add ia64-efi target.
19766 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19767 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19768 * gentpl.py: Add ia64_efi platform.
19769 Rename x86_efi to efi and Add ia64-efi. All users updated.
19770 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19771 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19772 Remove kern/generic/rtc_get_time_ms.c on EFI.
19773 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19774 kern/ia64/dl_helper.c on ia64-efi.
19775 Add kern/emu/cache.c on emu.
19776 (linux): Use on loader/ia64/efi/linux.c on ia64.
19777 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19778 whether symbol is a function.
19779 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19780 (grub_symbol): New field 'isfunc'.
19781 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19782 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19783 (grub_dl_load_segments): Place all sections into the same region.
19784 [__ia64__]: Create trampolines and got.
19785 [GRUB_MACHINE_EMU]: Call mprotect.
19786 (grub_dl_resolve_symbols): Resolve symbol type as well.
19787 [__ia64__]: Create function descriptors.
19788 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19789 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19790 (grub_get_rtc): New function.
19791 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19792 * grub-core/kern/emu/cache.S: Renamed to ...
19793 * grub-core/kern/emu/cache_s.S: ... this.
19794 [__ia64__]: Add a nop.
19795 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19796 [__ia64__]: New function.
19797 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19798 * grub-core/kern/ia64/dl.c: New file.
19799 * grub-core/kern/ia64/dl_helper.c: Likewise.
19800 * grub-core/kern/ia64/efi/init.c: New file.
19801 * grub-core/kern/ia64/efi/startup.S: Likewise.
19802 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19803 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19804 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19805 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19806 * grub-core/loader/ia64/efi/linux.c: New file.
19807 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19808 (GRUB_MOD_DEP): Likewise.
19809 (grub_dl) [__ia64__]: New fields got and tramp.
19810 (grub_dl): New field 'base'.
19811 (grub_dl_register_symbol): New argument isfunc. All users updated.
19812 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19813 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19814 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19815 (grub_ia64_dl_get_tramp_got_size): New proto.
19816 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19817 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19818 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19819 * include/grub/efi/api.h: Skip call wrappers on ia64.
19820 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19821 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19822 * include/grub/elf.h (ELF_ST_INFO): New definition.
19823 * include/grub/ia64/efi/kernel.h: New file.
19824 * include/grub/ia64/efi/memory.h: Likewise.
19825 * include/grub/ia64/efi/time.h: Likewise.
19826 * include/grub/ia64/kernel.h: Likewise.
19827 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19828 * include/grub/ia64/time.h: New file.
19829 * include/grub/ia64/types.h: Likewise.
19830 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19831 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19833 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19834 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19835 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19836 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19838 (EFI64_HEADER_SIZE): New definition. All users updated.
19839 (image_targets): Add ia64-efi.
19840 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19841 jumpers_addr. All users updated.
19842 Create function descriptors.
19843 (count_funcs): New function.
19844 (unaligned_uint32): New struct.
19845 (MASK20): New definition.
19846 (MASK19): Likewise.
19847 (MASKF21): Likewise.
19848 (add_value_to_slot_20b): New function.
19849 (add_value_to_slot_21_real): Likewise.
19850 (add_value_to_slot_21): Likewise.
19851 (ia64_kernel_trampoline): New struct.
19852 (nopm): New variable.
19854 (make_trampoline): New function.
19855 (relocate_addresses): Handle ia64.
19856 (make_reloc_section): Likewise.
19857 (load_image): Likewise.
19859 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19861 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19862 warning. Move variables before code while on it.
19864 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19868 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19869 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19870 * grub-core/boot/mips/loongson/fuloong.S: New file.
19871 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19872 Explicitly init CS5536.
19873 [FULOONG]: Don't use serial until CS5536 is available.
19874 Set GPIO based on dumps.
19875 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19876 [FULOONG]: Handle GPIO and memory controller differences.
19877 Parse machine type in $a2.
19878 * grub-core/boot/mips/startup_raw.S: Determine and save the
19880 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19881 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19882 init on architecture type.
19883 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19884 SIS315E. Don't init at_keyboard on fuloong.
19885 (grub_halt): Support Fuloong.
19886 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19887 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19888 (loongson_machtypes): New array.
19889 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19891 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19892 config. All users updated. Handle CS5536 serial.
19893 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19894 default port on machine type. Register serial as inactive.
19895 * grub-core/video/sis315pro.c: New file.
19896 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19898 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19899 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19900 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19901 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19902 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19903 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19905 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19906 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19908 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19909 (grub_arch_machine): New extern var.
19910 * include/grub/mips/loongson/serial.h
19911 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19912 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19913 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19914 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19915 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19916 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19917 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19918 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19919 * include/grub/term.h (grub_term_register_input_inactive): New inline
19921 (grub_term_register_output_inactive): Likewise.
19922 * include/grub/video.h (grub_video_driver_id): New value
19923 GRUB_VIDEO_DRIVER_SIS315PRO.
19924 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19925 New field "names". All users updated.
19926 New field value IMAGE_FULOONG_FLASH.
19927 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19929 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19931 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19932 and add some clarification.
19934 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19936 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19937 platforms if kernel is compressed.
19939 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19941 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19942 unused modules since currently referrence counter isn't reliable and
19943 there isn't much memory to recover there anyway.
19945 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19947 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19948 rather than resetting it to allow modules to reference themselves
19951 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19953 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19954 counter on dependencies since grub_dl_unref already handles this.
19956 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19958 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19959 on error if not already done.
19961 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19963 Fix few potential memory misusage.
19965 * grub-core/font/font.c (load_font_index): Don't free char_index to
19967 (grub_font_load): Zero-fill font at alloc for safety.
19968 Close file on error.
19969 (free_font): Free bmp_idx.
19971 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19973 * docs/grub.texi (Installation): Fix several outdated claims.
19975 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19977 Handle module_license on windows.
19979 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19981 (insert_string): Make argument const char * instead of char *.
19982 (write_section_data): Handle long section names.
19983 Handle module_license.
19985 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19987 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19988 handle class-free menuentries.
19989 (grub_normal_add_menu_entry): Add a check to be sure.
19991 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19993 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19996 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19998 * configure.ac: Bump version to 1.99.
20000 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20002 Give ATA device a bit more time on first try in order to allow disks
20005 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20006 if dev->present is 1. Reset dev->present on failure.
20007 (grub_ata_device_initialize): Set dev->present to 1.
20008 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20009 (grub_ata_device): New member 'present'.
20011 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20013 * util/grub-mkimage.c (generate_image): Update hash.
20015 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20017 Flush caches on DMA memory.
20019 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20020 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20021 (grub_dma_free): Likewise.
20022 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20024 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20026 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20027 to avoid asm treating ld and sd as macros.
20029 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20031 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20034 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20036 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20037 grub_decompress_core since later would fail if grub_decompress_core
20040 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20042 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20043 R_MIPS_JALR since it's used by newer compiler.
20045 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20047 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20049 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20051 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20052 file_path to 0 for surety.
20053 (grub_chainloader_boot): Set exit_data to NULL.
20054 Unset the loader once done.
20055 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20057 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20059 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20060 unknown key into a dprintf.
20062 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20064 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20065 on first non-existant partition.
20067 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20069 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20071 Reported by: Mark Korenberg.
20073 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20075 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20078 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20080 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20081 before closing to ensure that it will be readable by grub-setup.
20083 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20085 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20086 (devpath_1): Use MAKE_PIWG_PATH.
20087 (devpath_2): Likewise.
20088 (devpath_3): Likewise.
20089 (devpath_4): Likewise.
20090 (devpath_5): Likewise.
20091 (devpath_6): Likewise.
20093 The appleldr.mod was checked that to be binary identical to previous
20096 2011-05-05 Zach <mikezackles>
20098 Support 2010 Macbooks.
20100 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20101 (devs): Add devpath_6.
20103 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20105 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20106 /dev/random. /dev/urandom is good enough for our purposes (salting).
20108 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20110 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20112 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20114 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20117 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20119 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20120 and not 0 on failure.
20122 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20124 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20125 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20126 disk; otherwise grub_fs_probe will not fall back to the next
20128 (grub_pxefs_open): Likewise, for consistency.
20129 Reported and tested by: Ezekiel Grave.
20131 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20133 * tests/partmap_test.in: Don't hardcode path to parted.
20134 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20136 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20138 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20139 of `ls' to find out which devices are available.
20141 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20143 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20144 than source address for efi mmap buffer.
20146 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20148 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20149 wrong action on non-detecting the magic.
20151 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20153 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20154 already supplied by another part of the module (fixes compilation on
20157 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20159 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20160 match the one used by mdadm.
20162 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20164 * po/README: Add instructions for creating po/LINGUAS.
20166 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20168 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20171 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20172 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20173 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20174 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20175 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20176 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20177 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20178 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20179 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20180 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20181 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20182 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20183 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20184 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20185 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20186 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20187 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20188 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20189 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20190 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20191 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20192 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20194 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20196 * grub-core/kern/emu/getroot.c
20197 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20198 test that was incorrectly reintroduced in r3214.
20199 Reported by: Ian Dall. Fixes Savannah bug #33133.
20201 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20203 Fix stack pointer handling in 16-bit relocator.
20205 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20206 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20207 Fixes Ubuntu bug #683904.
20209 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20211 * configure.ac: Bump version to 1.99~rc2.
20213 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20215 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20216 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20217 * grub-core/lib/x86_64/setjmp.S: Likewise.
20218 * grub-core/lib/mips/setjmp.S: Likewise.
20219 * grub-core/lib/powerpc/setjmp.S: Likewise.
20220 * grub-core/lib/sparc64/setjmp.S: Likewise.
20222 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20224 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20225 * grub-core/lib/efi/datetime.c: Likewise.
20227 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20229 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20231 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20232 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20233 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20235 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20237 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20239 (grub_gfxterm_term_init): Likewise.
20241 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20243 Take into account the decorations the computing menu entry width.
20245 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20246 (grub_gfxmenu_create_box): Register get_border_width.
20247 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20249 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20252 2011-04-18 Endres Puschner <code@e7p.de>
20254 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20255 Don't skip first class.
20257 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20259 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20261 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20263 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20265 Complete 64-bit division support.
20267 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20268 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20269 * include/grub/misc.h (grub_divmod64): Rename to ...
20270 (grub_divmod64_full): ... this.
20271 (grub_divmod64): New inline function.
20273 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20275 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20277 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20279 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20280 performing the necessary test.
20282 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20284 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20285 (kfreebsd.elf): Likewise.
20286 (pc-chainloader.elf): Likewise.
20287 (ntldr.elf): Likewise.
20289 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20291 Identify RAID by its UUID rather than (guessed) name.
20293 * grub-core/disk/raid.c (ascii2hex): New function.
20294 (grub_raid_open): Accept mduuid/%s specification.
20295 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20296 (get_mdadm_uuid): ... this.
20297 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20299 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20301 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20304 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20306 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20308 * util/grub.d/20_linux_xen.in: Likewise.
20310 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20312 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20313 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20315 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20316 Build a list of relevant visible mounts using the mnt_id and
20317 parent_mnt_id fields, and then scan that list at the end.
20319 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20321 * docs/grub.texi (normal): New section.
20322 (normal_exit): New section.
20323 (Embedded configuration): Add reference to normal.
20324 (GRUB only offers a rescue shell): Likewise.
20325 * docs/grub-dev.texi (Error Handling): Fix typo.
20327 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20329 * NEWS: Drop obsolete entry about probe-only btrfs support.
20331 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20333 * util/import_gcry.py: Fix typo.
20335 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20337 * NEWS: Add btrfs support.
20339 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20340 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20342 BtrFS support. Written by me (Vladimir) with important bugfixes and
20343 even more important testing by Colin.
20345 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20346 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20347 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20348 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20349 mem_input_off and mem_input. All users updated to accept in-RAM input.
20350 (gzio_seek): New function.
20351 (test_zlib_header): Likewise.
20352 (grub_gzio_read): Likewise.
20353 (grub_zlib_decompress): Likewise.
20354 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20355 Accept partial and non-virtual mounts.
20356 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20357 avoid receiving /dev/dm-X as device.
20358 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20359 Handle bind and partial mounts.
20360 * grub-core/lib/crc.c: New file.
20361 * include/grub/deflate.h: Likewise.
20362 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20364 * include/grub/lib/crc.h: New file.
20366 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20368 Implement automatic module license checking according to new GNU
20371 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20372 (grub_dl_load_core): Use grub_dl_check_license.
20373 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20374 (GRUB_MOD_LICENSE): Likewise.
20375 (GRUB_MOD_DUAL_LICENSE): Likewise.
20376 All modules updated.
20378 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20380 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20381 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20383 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20385 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20387 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20389 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20391 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20394 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20396 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20397 parenthesis in the middle of the filename.
20399 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20401 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20402 rather than trying to put initrd way too high.
20403 Reported by: Ryan Lortie <desrt@desrt.ca>
20405 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20407 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20408 improperly removed string.
20410 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20412 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20414 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20415 (open_device) Likewise.
20416 (grub_util_biosdisk_close): Likewise.
20417 Reported by: Mark Korenberg.
20419 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20421 * util/grub-mkconfig_lib.in: Add missing quotes.
20423 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20425 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20428 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20430 Dynamically count the number of lines for the lower banner.
20432 * grub-core/normal/menu_entry.c (per_term_screen): New member
20434 (print_down): Use num_entries.
20435 (update_screen): Likewise.
20436 (grub_menu_entry_run): Set num_entries.
20437 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20439 (grub_print_message_indented): Move real part to ...
20440 (grub_print_message_indented_real): ... here. Additional argument
20442 (draw_border): Additional argument num_entries.
20443 (print_message): Additional argument dry_run.
20444 (print_entries): Receive menu viewer data.
20445 (grub_menu_init_page): New argment num_entries.
20446 (menu_text_set_chosen_entry): Use num_entries.
20447 (grub_menu_try_text): Likewise.
20448 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20450 (grub_ucs4_count_lines): New function.
20451 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20452 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20453 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20454 (grub_term_border_height): Likewise.
20455 (grub_term_num_entries): Likewise.
20457 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20459 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20460 Remove now unused string.
20462 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20464 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20466 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20468 (Comment): Fix typo.
20469 (Getting started): General copy-editing.
20470 (Typical Development Experience): Likewise.
20471 (Error Handling): Likewise.
20472 (Video API): Likewise.
20474 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20476 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20479 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20481 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20484 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20486 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20487 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20490 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20492 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20493 grub_strcpy since the lines aren't necessarily 0-terminated.
20495 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20497 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20500 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20502 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20503 (GRUB_MOD_INIT): DEVICE isn't optional.
20505 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20507 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20508 word on new line if it's too long anyway. Fixes a hang.
20510 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20512 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20514 * util/grub-setup.c (main): Reuse md device name if available.
20515 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20516 not GRUB name as argument.
20517 Based on patch by: Florian Wagner <fwagner>.
20519 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20521 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20522 Place mbi on low memory for better compatibility.
20524 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20526 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20528 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20529 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20531 * autogen.sh: Ensure that collate and ctype locale is C.
20532 * conf/Makefile.common: Likewise.
20534 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20536 * grub-core/normal/menu.c: Add missing include.
20538 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20540 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20542 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20544 * util/grub-mkconfig.in: Ignore emacsen backup.
20546 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20548 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20550 (grub_util_biosdisk_close): Likewise.
20552 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20554 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20555 const attribute and use grub_isdigit.
20557 2011-04-06 Andrey <dev_null@ukr.net>
20559 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20562 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20564 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20565 useful grub_dprintf's.
20567 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20569 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20571 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20573 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20575 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20577 Output errors if theme loading failed.
20579 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20580 grub_gfxterm_fullscreen on error paths to ...
20581 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20582 theme loading error.
20584 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20586 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20587 space for older compilers.
20588 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20590 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20592 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20593 and report them as not RAID members since they are useless for GRUB.
20594 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20596 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20598 Increase LVM implementation robustness in order not to crash on
20599 configurations like pvmove. Previously code assumed that in some places
20600 only lvs or only pvs are used whereas it seems that they are used
20603 * grub-core/disk/lvm.c (read_node): New function.
20604 (read_lv): Use read_node.
20605 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20606 Match volumes only at the end when all lvs are found. Take both
20607 pvs (first) and lvs (second) into account.
20608 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20609 mirror_* into node_*. All users updated.
20610 (grub_lvm_stripe): Merge this ...
20611 (grub_lvm_mirror): ... and this ...
20612 (grub_lvm_node): ... into this. All users updated.
20614 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20616 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20617 of function to allow further scanning for LVMs.
20619 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20621 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20622 on failed seek as it breaks open fd reusage.
20624 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20626 * util/grub-install.in: Add a recommendation to use --recheck before
20629 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20631 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20634 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20636 GRUB developper manual based on existing Internals section and
20637 contributions by the various authors with active copyright assignment.
20639 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20640 * docs/font_char_metrics.png: New file.
20641 * docs/font_char_metrics.txt: Likewise.
20642 * docs/grub-dev.texi: Likewise.
20643 * docs/grub.texi (Internals): Move from here ...
20644 * docs/grub-dev.texi: ... here.
20646 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20648 Store the loopback device as data on loopback grub_disk structures,
20649 rather than the file it points to. This fixes use of freed memory
20650 if an existing loopback device is replaced.
20652 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20653 disk->data, not dev->file.
20654 (grub_loopback_read): Adjust file assignment to match.
20655 Fixes Ubuntu bug #742967.
20657 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20659 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20660 when replacing an existing device.
20662 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20664 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20665 memory corruptions.
20667 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20669 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20670 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20671 (grub_jfs_read_inode): Likewise.
20672 (grub_jfs_opendir): Likewise. Remove now useless casts.
20673 (grub_jfs_getent): Likewise.
20674 Make ino a grub_uint32_t rather than int.
20675 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20676 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20677 division and module with bit operations.
20678 (grub_jfs_find_file): Make ino a grub_uint32_t.
20679 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20681 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20683 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20684 warning. (This was in fact always initialised before use, but GCC
20685 wasn't smart enough to prove that.)
20686 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20688 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20690 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20692 (efi_wrap_1): Likewise.
20693 (efi_wrap_2): Likewise.
20694 (efi_wrap_3): Likewise.
20695 (efi_wrap_4): Likewise.
20696 (efi_wrap_5): Likewise.
20697 (efi_wrap_6): Likewise.
20698 (efi_wrap_10): Likewise.
20699 Based on information by: Red Hat/Peter Jones.
20701 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20703 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20704 set-but-not-used variable.
20706 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20708 * docs/grub.texi (Simple configuration): Be more explicit about
20709 GRUB_DEFAULT, and add an example.
20710 Reported by: Leslie Rhorer.
20712 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20714 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20717 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20719 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20720 * util/grub.d/20_linux_xen.in: Likewise.
20722 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20724 * util/grub.d/10_linux.in: Try alternative config filenames where
20725 we parse config file.
20726 * util/grub.d/20_linux_xen.in: Likewise.
20728 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20730 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20731 * util/grub.d/20_linux_xen.in: Likewise.
20733 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20735 * grub-core/disk/raid.c (insert_array): Add few potentially
20736 useful grub_util_info.
20737 (grub_raid_register): Likewise.
20739 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20741 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20742 Preserve partition number in mdadm code path.
20744 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20746 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20747 few potentially useful grub_util_info.
20749 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20751 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20753 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20755 * docs/grub.texi (default): Use @example rather than nested
20756 itemized lists to avoid breaking gendocs.
20758 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20760 * docs/grub.texi (Future): Update.
20762 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20764 * docs/grub.texi (Environment): New chapter.
20765 (Changes from GRUB Legacy): Link to "Environment block" section for
20766 details of limitations.
20767 (Simple configuration): Likewise. Link to documentation of gfxmode
20768 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20770 (Shell-like scripting): Note that normal variables are stored in the
20772 (gettext): Link to documentation of lang and locale_dir.
20773 (list_env): New section.
20774 (load_env): New section.
20775 (save_env): New section.
20777 (Reporting bugs): Fix typo.
20779 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20781 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20784 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20786 * grub-core/term/at_keyboard.c (set_scancodes)
20787 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20789 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20791 * docs/grub.texi (Menu-specific commands): Remove some semantics
20792 that were true in GRUB Legacy but not in GRUB 2.
20793 (submenu): New section.
20794 (false): New section.
20795 (read): New section.
20796 (true): New section.
20798 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20800 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20802 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20804 * docs/grub.texi (Simple configuration): Explain some of the
20805 current limitations of grub-mkconfig.
20806 Reported by: Leslie Rhorer.
20808 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20810 Old macs search for boot.efi rather than for bootia32.efi.
20812 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20813 * util/grub-mkrescue.in: Likewise.
20814 Suggested by: Peter Jones.
20816 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20818 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20820 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20822 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20823 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20824 (grub_lvm_mirror): New struct.
20825 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20826 (grub_lvm_iterate): Iterate only visible volumes.
20827 (grub_lvm_read): Factor out to ..
20828 (read_lv): ... this. Support mirrors.
20829 (grub_lvm_read): New wrapper function.
20830 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20831 stripped or mirrored.
20833 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20835 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20837 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20839 * docs/grub.texi (loopback): New section.
20841 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20843 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20846 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20848 * docs/grub.texi (BIOS installation): New section, partly based on
20849 previous text in other sections.
20850 (Installing GRUB using grub-install): Replace BIOS discussion with a
20852 (Images): Likewise.
20854 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20856 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20857 [HAVE_DIOCGDINFO]: Add safety checks.
20859 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20861 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20862 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20864 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20866 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20867 real_sb->size is zero (e.g. RAID-0), get the disk size from
20868 real_sb->data_size instead.
20869 Fixes Ubuntu bug #743136.
20871 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20873 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20874 printf clauses for printing size and start.
20876 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20878 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20879 Reported and tested by: Timothy Nikkel.
20881 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20883 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20884 (dirty_region_add_real): ... this.
20885 (dirty_region_add): Don't discard margin refresh when performing
20888 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20890 * grub-core/lib/relocator.c (allocate_regstart)
20891 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20892 terminals are capabple of malloc-free operation.
20893 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20894 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20896 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20898 * util/grub-setup.c: Copy the partition table zone if floppy support
20899 is disabled, even if no partition table is found.
20901 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20902 during POST if an invalid partition table is contained in the PBR
20903 of the active partition when GRUB is installed to a partition.
20905 2011-03-28 Colin Watson <cjwatson@debian.org>
20907 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20910 2011-03-28 Colin Watson <cjwatson@debian.org>
20912 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20913 to be specific about what kind of RAID device we're scanning for.
20915 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20917 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20918 return freed string.
20920 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20922 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20924 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20926 Use libgeom on FreeBSD to detect partitions.
20928 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20929 (grub-mkrelpath): Likewise.
20930 (grub-script-check): Likewise.
20931 (grub-editenv): Likewise.
20932 (grub-mkpasswd-pbkdf2): Likewise.
20933 (grub-fstest): Likewise.
20934 (grub-mkfont): Likewise.
20935 (grub-mkdevicemap): Likewise.
20936 (grub-probe): Likewise.
20937 (grub-setup): Likewise.
20938 (grub-ofpathname): Likewise.
20939 (grub-mklayout): Likewise.
20940 (example_unit_test): Likewise.
20941 (grub-menulst2cfg): Likewise.
20942 * grub-core/Makefile.core.def (grub-emu): Likewise.
20943 (grub-emu-lite): Likewise.
20944 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20945 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20946 define HAVE_DIOCGDINFO.
20947 (follow_geom_up) [FreeBSD]: New function.
20948 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20949 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20950 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20951 unconditionally of HAVE_DIOCGDINFO.
20953 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20955 Fix FreeBSD compilation problem.
20957 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20958 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20960 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20962 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20963 Switch back to page zero before loading a kernel, since some kernel
20964 drivers expect that.
20965 Thanks to: Felix Kuehling.
20967 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20969 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20970 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20971 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20973 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20975 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20976 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20978 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20980 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20981 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20982 malloc is disabled.
20984 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20986 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20987 for modules headers when counting the needed allocation size.
20989 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20991 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20992 if no ASCII character is found to prevent crash.
20994 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20996 * grub-core/video/bitmap.c (match_extension): Ignore case.
20998 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21000 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21002 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21004 * grub-core/script/parser.y: Declare "time" as valid argument.
21006 2011-03-23 Peter Jones <pjones@redhat.com>
21008 Fix incorrect assert failure reporting.
21010 * grub-core/tests/example_functional_test.c (example_test): Add
21012 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21013 (failure_start): ...this. Check that malloc succeeded.
21014 Don't call xvasprintf. Return failure struct.
21015 (failure_append_vtext): New function.
21016 (failure_append_text): Likewise.
21017 (add_failure): Likewise.
21018 (grub_test_assert_helper): Likewise.
21019 * include/grub/test.h (grub_test_assert_helper): New declaration.
21020 (grub_test_assert): Macro rewritten.
21022 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21024 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21026 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21028 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21030 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21032 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21033 into GRUB-style one.
21035 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21037 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21038 error and not grub_errno.
21039 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21041 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21043 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21044 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21046 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21048 * grub-core/efiemu/i386/pc/cfgtables.c
21049 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21050 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21051 (grub_xnu_unlock): Likewise.
21052 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21054 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21056 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21057 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21058 * grub-core/commands/hashsum.c (aliases): Likewise.
21059 * grub-core/commands/setpci.c (pci_registers): Likewise.
21060 * grub-core/disk/usbms.c (attach_hook): Likewise.
21061 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21062 (zio_checksum_table): Likewise.
21063 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21064 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21065 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21066 * grub-core/lib/relocator.c (leftovers): Likewise.
21067 (extra_blocks): Likewise.
21068 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21069 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21070 (modules_last): Likewise.
21071 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21072 (devices): Likewise.
21073 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21074 (modules_last): Likewise.
21075 * grub-core/normal/auth.c (users): Likewise.
21076 * grub-core/normal/context.c (initial_menu): Likewise.
21077 (current_menu): Likewise.
21078 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21079 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21080 (grub_serial_terminfo_input_template): Likewise.
21081 (grub_serial_terminfo_output_template): Likewise.
21082 (grub_serial_terminfo_input): Likewise.
21083 (grub_serial_terminfo_output): Likewise.
21084 (registered): Likewise.
21085 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21087 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21089 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21090 grub_video_mode_type_t.
21091 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21092 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21093 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21095 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21097 * util/grub-install.in: Correct the x86-64 name as x86_64.
21099 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21101 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21102 initial chunk read from the kernel always includes GRUB's multiboot
21103 header, which is now outside the first sector.
21105 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21107 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21108 cached mmap_size, so that this works correctly when called multiple
21110 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21112 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21114 * docs/grub.texi (Simple configuration): Tidy up formatting.
21116 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21118 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21119 Set-but-not-used variable removed.
21121 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21123 Workaround yet another IEEE1275 bug.
21125 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21126 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21127 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21128 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21130 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21131 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21133 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21135 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21138 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21140 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21141 empty, since in that case we can only generate either nothing or a
21142 syntactically invalid configuration file.
21143 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21145 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21147 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21148 (Making a GRUB bootable CD-ROM): Likewise.
21149 (Invoking grub-mkrescue): New section.
21150 Reported by: Yann Dirson. Fixes Debian bug #612585.
21152 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21154 * util/grub-install.in: Remove unnecessary brackets from tr
21156 * util/grub.d/10_hurd.in: Likewise.
21157 * util/grub.d/10_kfreebsd.in: Likewise.
21158 * util/grub.d/10_linux.in: Likewise.
21159 * util/grub.d/20_linux_xen.in: Likewise.
21160 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21162 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21164 * include/grub/file.h (not_easly_seekable): Rename to ...
21165 (not_easily_seekable): ... this. Update all users.
21167 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21169 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21172 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21174 * util/grub-mkimage.c (generate_image): Refuse to create the images
21175 bigger than the actual flash (512K) in Loongson machines. 512K is also
21176 the biggest chip supported by them.
21178 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21180 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21182 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21184 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21185 super_offset field.
21187 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21189 * util/grub-install.in: Ignore install device on platforms
21190 where it doesn't make sense. Always use UUIDs except on pc, efi and
21192 Reported by: Daniel Kahn Gillmor.
21194 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21196 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21198 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21200 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21201 (iterate_real): Don't rely on partition being non-NULL.
21203 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21205 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21206 supported platforms. Put a compile time assert for this rather than
21207 generate a warning with 32-bit shift.
21209 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21211 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21212 logical expression more readable.
21214 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21216 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21217 even if some elements have a name.
21218 Reported by: Alexander GQ Gerasiov.
21220 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21222 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21223 path unreadable if `grub-probe -t abstraction' fails, for example if
21224 memberlist fails on an LVM volume group.
21225 Reported by: Darius Jahandarie.
21227 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21229 * docs/grub.texi (Simple configuration): Document
21230 GRUB_PRELOAD_MODULES.
21232 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21234 * .bzrignore: Remove nonexistent grub-pbkdf2.
21236 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21238 * configure.ac: Bump version to 1.99~rc1.
21240 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21242 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21245 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21247 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21250 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21252 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21254 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21256 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21259 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21261 Fix compilation on cygwin.
21263 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21264 -R .drectve on cygwin.
21265 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21266 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21267 (COND_CYGWIN): New condition.
21268 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21269 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21270 not @TARGET_OBJ2ELF@.
21271 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21272 type to determine whether aux is to be used.
21274 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21276 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21277 realpath'ed device string.
21278 Handle floppy (somewhat).
21279 Issue error in unknown case rather than garbage.
21280 Reported by: Axel Beckert.
21282 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21284 * util/grub.d/00_header.in (load_video): Handle the case when no video
21286 Thanks to: Axel Beckert.
21288 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21290 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21291 variable. Fixes problem on big endian platforms.
21293 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21295 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21296 It doesn't work well there.
21298 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21300 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21302 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21303 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21306 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21308 Use alias->path rather than buggy "canon".
21310 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21311 (ofdisk_hash_add): New argument curcan. All users updated.
21313 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21315 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21317 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21319 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21320 loadmask before doing any calculations. Use correct type for offset.
21321 (grub_linux_load64): Likewise.
21323 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21325 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21327 (console_grub_equivalences_unshift): Likewise.
21328 Reported by: Daniel Dehennin.
21330 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21332 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21333 (set_env_limn_ro): Likewise.
21334 (GRUB_MOD_INIT): Likewise.
21335 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21336 ARRAY_SIZE while on it.
21337 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21338 * grub-core/normal/context.c (grub_env_export): Move from here ...
21339 * grub-core/kern/env.c (grub_env_export): ... here.
21340 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21342 * grub-core/kern/main.c (grub_main): Export root and prefix.
21343 * include/grub/env.h (grub_env_export): Export.
21344 Reported by: Seth Goldberg.
21346 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21348 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21349 Take into account space used by ELF sections and multiboot palette.
21350 Reported by: Grégoire Sutre.
21352 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21356 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21358 Pass more appropriate video id to Linux.
21360 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21361 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21363 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21364 shift params->lfb_size.
21365 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21367 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21369 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21371 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21373 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21374 separator and pass bootpath/devid even if only one of them is available.
21375 Reported by: Seth Goldberg.
21377 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21379 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21380 implementations bug on them.
21382 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21384 (filter_memory_map): Likewise.
21386 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21388 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21389 Reported by: nebuchadnezzar.
21391 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21393 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21394 Reported by: nebuchadnezzar.
21396 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21398 Submenu default support.
21400 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21401 auto_boot. All users updated.
21403 Handle chosen and default with submenus.
21404 (grub_menu_execute_with_fallback): Declared static.
21405 Don't notify failure if autobooted. Upper level does it.
21406 (menuentry_eq): New function.
21407 (get_entry_number): Use menuentry_eq.
21408 (show_menu): New parameter "autobooted". All users updated.
21409 (grub_show_menu): Likewise.
21410 * include/grub/normal.h (grub_show_menu): Likewise.
21411 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21412 (grub_menu_execute_with_fallback): Likewise.
21414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21416 * util/grub-mklayout.c (usage): Update help text.
21418 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21420 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21422 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21424 * util/grub-menulst2cfg.c (main): Trim the line.
21426 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21428 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21429 (grub_machine_init): Don't check amount of low memory as reportedly
21430 INT 12h can be broken and if low memory is too low we wouldn't have
21431 gotten into grub_machine_init anyway.
21433 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21435 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21436 (grub_machine_mmap_iterate): Take low memory into account
21438 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21440 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21442 Reported by: TiCPU.
21444 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21446 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21449 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21451 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21452 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21454 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21456 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21457 openbsd and netbsd types being in part_bsd module.
21459 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21461 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21462 (_FILE_OFFSET_BITS): Likewise.
21463 Reported by: Seth Goldberg.
21465 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21467 * configure.ac: Check for libdevmapper header.
21469 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21471 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21473 (fzap_lookup): Likewise.
21474 (dnode_get): Likewise.
21475 (make_mdn): Likewise.
21476 (zfs_mount): Likewise.
21477 (fzap_iterate): Use temporary pointer to avoid aliasing.
21478 (grub_zfs_read): Likewise.
21479 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21480 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21481 pointers to avoid aliasing.
21482 (grub_cmd_xnu_kernel64): Likewise.
21483 (grub_xnu_load_driver): Likewise.
21485 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21487 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21489 (grub_cmd_terminal_output): Likewise.
21490 Reported and tested by: Grégoire Sutre.
21492 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21494 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21496 Reported and tested by: Grégoire Sutre.
21498 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21500 * configure.ac: Do CPU substitution even if it's specified explicitly.
21501 Reported and tested by: Alain Greppin.
21503 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21505 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21506 Reported and tested by: Alain Greppin.
21508 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21510 Satisfy some bison versions need for inttypes.h.
21512 * grub-core/lib/posix_wrap/inttypes.h: New file.
21513 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21514 (int16_t): Likewise.
21515 (int32_t): Likewise.
21516 (int64_t): Likewise.
21517 Reported and tested by: Alain Greppin.
21519 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21521 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21522 Silence spurious warning.
21523 Reported and tested by: Alain Greppin.
21525 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21527 * docs/grub.texi (Support automatic decompression): Update with xz
21528 decompression support.
21530 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21532 Improve loaders' kernel command line handling.
21534 * grub-core/lib/cmdline.c: New file.
21535 * include/grub/lib/cmdline.h: Likewise.
21536 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21537 grub_create_loader_cmdline to create kernel command line.
21538 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21539 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21540 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21541 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21542 (linux): Add lib/cmdline.c on common.
21544 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21546 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21547 inopos might be unaligned.
21549 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21551 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21552 endian transformations.
21553 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21554 Based on report by: Doug Nazar.
21556 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21558 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21559 array->members[i].start_sector.
21560 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21562 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21564 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21565 Reported and tested by: Grégoire Sutre.
21567 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21569 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21570 avoid causing test failures by clearing the screen.
21572 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21574 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21575 Fix prefix check to handle the case where dir ends with a slash
21576 (most significantly, "/" itself).
21577 Reported by: Michael Vogt.
21579 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21581 Run terminfo_cls on initing terminfo output to clear the screen and
21582 move the cursor to (0,0).
21584 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21585 Call grub_terminfo_output_init.
21586 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21587 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21588 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21590 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21592 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21595 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21597 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21600 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21602 The E820 type 5 is BADRAM, not EXEC_CODE.
21604 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21605 (GRUB_E820_BADRAM): New define.
21606 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21607 into reserved. Propagate BADRAM.
21608 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21609 (GRUB_E820_BADRAM): New define.
21611 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21613 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21614 Ignore the memory post-4G.
21615 (grub_relocator_firmware_alloc_region): Additional debug statement.
21617 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21619 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21621 Reported by: David Pravec.
21623 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21625 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21628 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21630 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21632 (grub_reed_solomon_recover): Likewise.
21634 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21636 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21638 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21640 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21643 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21645 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21646 descriptions of extract_legacy_entries_source and
21647 extract_legacy_entries_configfile.
21648 Reported by: Seung Soo, Ha.
21650 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21652 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21653 on devices that do not implement function 0.
21655 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21657 * grub-core/fs/hfsplus.c: Make parent unsigned.
21658 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21660 (grub_hfsplus_cmp_extkey): Likewise
21662 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21664 * util/grub-install.in: Correctly use bootloader_id and not
21665 GRUB_DISTRIBUTOR on efibootmgr line.
21667 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21669 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21671 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21673 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21674 Xen and reorder menu item wording to make it clearer that this entry
21675 will launch Xen. Print separate messages when loading Xen and
21678 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21680 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21681 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21682 loop in case of incorrect amiga partmap.
21684 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21686 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21687 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21690 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21692 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21694 Reported by: crocket
21696 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21698 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21700 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21702 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21704 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21706 (grub_cmd_xnu_kextdir): Likewise.
21707 (grub_cmd_xnu_splash): Likewise.
21709 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21711 Avoid using Reed-Solomon with 0 redundancy.
21713 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21714 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21716 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21717 (grub_reed_solomon_recover): Likewise.
21719 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21721 Don't use disk subsystem in freebsd_boot.
21723 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21724 (freebsd_biosdev): Likewise.
21725 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21726 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21728 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21730 Handling of files of unknown size is currently limited. They can't be
21731 used e.g. for initrd or modules. Moreover gzip handling of not
21732 easily seekable files is buggy. Disable unknown file size for now. May
21733 be inefficient but works.
21735 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21736 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21738 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21740 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21743 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21745 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21747 2010-12-25 Shea Levy <shlevy>
21749 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21751 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21753 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21754 Windows Server 2008.
21755 Reported by: Devin Giddings.
21757 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21759 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21760 writing an error message because of async power management.
21761 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21762 (grub_reboot): Likewise.
21764 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21766 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21767 keep unit tests from failing when they shouldn't.
21769 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21771 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21772 previous patch increased the size of the RS code by 20 bytes (at
21773 least with gcc-4.4), so increase this by 20 bytes to match.
21774 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21776 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21778 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21779 scratch area. Make sure to initialise chosen in standalone mode as
21780 well as non-standalone.
21781 Reported by: Robert Hooker and Andy Whitcroft.
21782 Tested by: Andy Whitcroft.
21784 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21786 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21787 constructing a new unescaped string and passing it to grub_xputs in
21788 one go, rather than passing characters to grub_printf one at a time.
21790 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21792 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21793 initialising utf16.
21795 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21797 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21798 comment. Add an extra layer of quotation, requiring the output of
21799 this function to be used in a printf format string.
21800 (gettext_printf): New function.
21801 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21802 Extract translatable strings from here-documents and use a temporary
21803 variable instead, so that xgettext can find them.
21804 * util/grub.d/10_kfreebsd.in: Likewise.
21805 * util/grub.d/10_linux.in: Likewise.
21806 * util/grub.d/20_linux_xen.in: Likewise.
21808 * po/grub.d.sed: New file.
21809 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21810 arguments. Set c-format flags on all strings extracted from
21811 util/grub.d/ (xgettext refuses to include these itself for strings
21812 it extracted from a shell file, but these really are c-format).
21814 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21816 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21817 Avoid next pointing to nowhere.
21819 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21821 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21822 rather than assuming than rootblock is exactly in the middle.
21823 (grub_affs_label): Likewise.
21825 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21827 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21828 reserved_first_sector to 0.
21829 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21830 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21831 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21833 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21835 Fix handling of UTF-16 UDF labels.
21837 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21838 (read_string): .. here.
21839 (grub_udf_label): Use read_string.
21841 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21843 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21844 editor under argument scope.
21845 Reported by: Jordan Uggla
21847 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21849 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21851 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21853 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21854 line, and other keys scroll an entire page (previous handling was
21855 for \r and \n to scroll a page and other keys to scroll two lines).
21857 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21859 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21860 Set ptrdest to correct get_physical_target_address rather than
21861 incorrect get_virtual_current_address.
21863 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21865 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21866 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21868 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21870 * .bzrignore: Ignore grub-core/rs_decoder.S.
21872 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21874 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21875 .mo/.mo.gz opening sequence to ...
21876 (grub_mofile_open_lang): ... here.
21877 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21878 * util/grub.d/00_header.in (grub_lang): Include country part of
21880 Reported by: Mario Limonciello.
21882 2010-12-09 Robert Millan <rmh@gnu.org>
21884 * NEWS: Document addition of ZFS support.
21886 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21888 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21889 rather than `/ 2', as the latter requires -Wa,--divide which would
21890 require bumping our minimum binutils version.
21892 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21894 * util/grub-script-check.c (main): Print script line number on
21897 2010-12-01 Robert Millan <rmh@gnu.org>
21899 * grub-core/fs/zfs/zfs.c: New file.
21900 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21901 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21902 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21903 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21905 * include/grub/zfs/dmu.h: Likewise.
21906 * include/grub/zfs/dmu_objset.h: Likewise.
21907 * include/grub/zfs/dnode.h: Likewise.
21908 * include/grub/zfs/dsl_dataset.h: Likewise.
21909 * include/grub/zfs/dsl_dir.h: Likewise.
21910 * include/grub/zfs/sa_impl.h: Likewise.
21911 * include/grub/zfs/spa.h: Likewise.
21912 * include/grub/zfs/uberblock_impl.h: Likewise.
21913 * include/grub/zfs/vdev_impl.h: Likewise.
21914 * include/grub/zfs/zap_impl.h: Likewise.
21915 * include/grub/zfs/zap_leaf.h: Likewise.
21916 * include/grub/zfs/zfs.h: Likewise.
21917 * include/grub/zfs/zfs_acl.h: Likewise.
21918 * include/grub/zfs/zfs_znode.h: Likewise.
21919 * include/grub/zfs/zil.h: Likewise.
21920 * include/grub/zfs/zio.h: Likewise.
21921 * include/grub/zfs/zio_checksum.h: Likewise.
21923 * Makefile.util.def: Build ZFS into libgrubmods.
21924 * grub-core/Makefile.core.def: Build zfs.mod.
21926 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21928 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21930 * grub-core/commands/wildcard.c (match_files): Likewise.
21932 2010-11-30 Robert Millan <rmh@gnu.org>
21934 * grub-core/loader/i386/bsd.c
21935 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21936 whether kernel is loaded using grub_loader_is_loaded(), rather
21937 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21938 certain error conditions.
21940 2010-11-30 Robert Millan <rmh@gnu.org>
21942 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21943 (grub_cmd_echo): Call grub_refresh() after printing a message.
21945 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21947 Avoid using tricks for initialising endian variables.
21949 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21951 (GRUB_MOD_INIT): Don't byte-swap.
21952 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21953 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21954 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21955 (grub_swap_bytes32_compile_time): Likewise.
21956 (grub_cpu_to_le32_compile_time): Likewise.
21957 (grub_cpu_to_le16_compile_time): Likewise.
21959 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21961 * util/grub-setup.c (setup): Stop recommending --force. People who
21962 understand the dangers of blocklists are able to find this option
21963 anyway and the ones who don't shouldn't use it anyway.
21965 2010-11-26 Robert Millan <rmh@gnu.org>
21967 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21970 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21972 Fix LVM-on-RAID probing.
21974 * util/grub-probe.c (probe): Remember which disk was detected as
21975 RAID (perhaps an LVM physical volume). Use that disk's raidname
21976 rather than that of the top-level disk.
21978 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21980 Fix cmdline argument quotes for setparams command of menuentry
21983 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21984 quotes for arguments.
21985 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21986 grub_strchrsub function instead.
21988 * include/grub/misc.h (grub_strchrsub): New function.
21990 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21992 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21993 effort by skipping "." and ".." entries up-front.
21994 Suggested by: Michael Lazarev.
21996 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21998 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21999 ldflags to ldadd, to fix link line ordering.
22000 (none_decompress): Likewise.
22002 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22004 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22006 (grub-emu-lite): Remove kern/emu/cache.S.
22008 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22010 * util/deviceiter.c (compare_devices): If the by-id link for a
22011 device couldn't be resolved, fall back to sorting by the by-id link
22012 rather than segfaulting.
22013 Reported and tested by: Daniel Mierswa.
22015 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22017 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22018 ldflags, to fix link line ordering.
22020 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22022 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22023 linkers are picky about this.
22025 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22027 * grub-core/Makefile.am (command.lst): Adjust sed expression
22028 ordering so that extended and priority commands aren't treated as
22031 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22033 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22034 Remove byte-swapping function calls, which are not valid in
22035 structure initialisers.
22036 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22038 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22039 grub_gpt_partition_type_bios_boot.
22041 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22043 Fix test program build on GNU/kFreeBSD.
22045 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22046 $(LIBNVPAIR)' library dependencies.
22048 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22050 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22052 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22054 * util/grub-install.in: Remove excessive quoting that broke
22055 installations to RAID devices.
22057 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22059 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22060 bootloader version instead of 0.
22062 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22064 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22067 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22069 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22070 retrieve the metadat sector if size isn't known.
22071 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22073 2010-11-18 Robert Millan <rmh@gnu.org>
22075 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22076 with grub_memcmp().
22078 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22080 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22082 Reported by: Jordan Uggla.
22084 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22086 Make better UTF compliant.
22088 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22089 sequences as incorrect.
22090 (grub_is_valid_utf8): Likewise.
22091 (grub_utf8_to_ucs4): Likewise.
22092 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22093 (grub_ucs4_to_utf8_alloc): Likewise.
22094 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22096 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22098 Make legacy_source behave like source.
22100 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22102 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22104 2010-11-16 Colin Watson <cjwatson@debian.org>
22106 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22107 (-Wunused implies -Wunused-parameter, but not vice versa).
22109 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22111 * configure.ac: Make error messages less confusing by testing for
22112 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22113 accepted, but produces a diagnostic if something else is wrong).
22115 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22117 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22118 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22120 (grub_keyboard_controller_init)
22121 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22122 read the initial state since controller isn't inited yet.
22124 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22126 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22127 allocate_regbeg may need to create new chunk header.
22129 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22131 Fix quoting in legacy parser.
22133 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22135 (grub_legacy_parse): Likewise.
22136 Reported by: Jordan Uggla.
22137 Tested by: Jordan Uggla.
22139 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22141 Don't add -lgcc on i386 and x86_64.
22143 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22144 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22145 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22147 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22149 * configure.ac: Add -Wno-trampolines when supported.
22151 2010-11-14 Modestas Vainius <modax@debian.org>
22153 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22156 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22158 Add generic logical block size support for UDF.
22160 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22161 (GRUB_UDF_BLKSZ): Removed.
22162 (struct grub_udf_data): New field "lbshift" to hold the logical block
22163 size of the file system in log2 format. All users updated.
22164 (sblocklist): Change type to unsigned.
22165 (grub_udf_mount): Change type of "sblklist" to unsigned.
22166 Move AVDP search before VRS recognition, because the latter requires
22167 knowledge of the logical block size, which is detected during the
22169 Detect and validate logical block size during AVDP search, adding
22170 support for block sizes 512, 1024 and 4096.
22171 Make VRS recognition independent of block size.
22173 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22175 Properly handle deleted files on UDF.
22177 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22178 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22181 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22183 Support reading files larger than 2 GiB.
22185 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22186 "offset" to grub_off_t.
22187 (grub_udf_read_file): Likewise for parameter "pos".
22189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22191 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22193 (Simple configuration): Refer to Changes from GRUB Legacy about
22194 save_env availability.
22196 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22198 * util/grub-install.in: Ignore empty partition table detection
22199 instead of trying to include part_ module.
22201 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22203 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22204 LVM on RAID support.
22206 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22208 Properly define WORDS_BIGENDIAN in wrapped environments.
22210 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22212 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22214 Reported by: Manoel Rebelo Abranches.
22215 Tested by: Manoel Rebelo Abranches.
22217 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22219 * util/grub-mkconfig.in: Fix quoting.
22221 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22223 Support big ext2 files.
22225 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22226 (grub_ext2_read_block): Support triple indirect blocks.
22227 (grub_ext2_read_file): Use 64-bit types and read size_high.
22228 (grub_ext2_open): Read size_high.
22229 Reported by: Ximin Luo.
22230 Tested by: Manoel Rebelo Abranches.
22232 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22234 * util/grub-install.in: Handle filenames containing spaces.
22235 Reported by: Jordan Uggla.
22236 Tested by: Jordan Uggla.
22238 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22240 * util/grub-mkconfig.in (grub_script_check): New variable.
22241 Use grub_script_check instead of grub-script-check.
22242 Reported by: Barry Jackson.
22244 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22246 * docs/grub.texi (menu): Correct the order.
22247 Reported by: D. Hugh Redelmeier.
22249 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22251 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22254 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22256 * include/grub/elfload.h (grub_elf32_size): New parameter.
22258 Return maximum segments alignment.
22259 (grub_elf64_size): Likewise.
22260 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22261 Return maximum segments alignment.
22262 (grub_elf64_size): Likewise.
22263 * grub-core/loader/powerpc/ieee1275/linux.c:
22264 (grub_linux_claimmap_iterate): New function. Uses the
22265 "available" property in the "memory" node for memory allocation
22266 for kernel in the PowerPC loader.
22267 (grub_linux_load32): Correctly find linux entry point offset.
22268 (grub_linux_load64): Likewise.
22270 2010-11-07 Robert Millan <rmh@gnu.org>
22272 On mips-yeeloong, build with -march=loongson2f when this flag is
22273 available (GCC >= 4.4).
22274 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22276 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22277 or otherwise add -march=mips3.
22279 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22281 Suppress shell expansion on echo '*' and echo "*" like cases.
22282 Reported by: Jordan Uggla.
22284 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22285 string arguments before shell expansion.
22286 * tests/grub_cmd_echo.in: New testcases.
22288 2010-11-07 Robert Millan <rmh@gnu.org>
22290 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22293 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22295 * grub-core/kern/emu/hostdisk.c
22296 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22298 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22300 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22301 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22302 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22304 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22306 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22308 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22310 * util/grub-install.in: Replace useless recomendation to pass
22311 --modules with a recomendation to report a bug.
22313 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22315 Properly register serial terminfo.
22316 Reported by: Jordan Uggla
22318 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22320 (grub_serial_terminfo_output_template): Likewise.
22321 (grub_cmd_serial): Register "serial" with terminfo.
22322 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22323 grub_serial_terminfo_output.
22325 2010-11-05 Robert Millan <rmh@gnu.org>
22327 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22330 2010-11-05 Robert Millan <rmh@gnu.org>
22332 On Yeeloong, pass machine type information to Linux.
22334 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22335 (LOONGSON_MACHTYPE): New macro, set to
22336 "machtype=lemote-yeeloong-2f-8.9inches".
22337 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22338 additional argument to Linux.
22340 2010-11-04 Robert Millan <rmh@gnu.org>
22342 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22343 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22344 (its SATA disks are detected as slaveless IDE master drives on
22346 Reported by Carsten Aulbert.
22348 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22350 * util/bin2h.c (main): Fix spelling error in generated output.
22352 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22354 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22356 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22358 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22359 vga= option is supplied.
22361 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22363 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22364 * util/grub.d/10_kfreebsd.in: Likewise.
22365 * util/grub.d/10_linux.in: Likewise.
22366 * util/grub.d/20_linux_xen.in: Likewise.
22368 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22370 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22371 argument as an argument to no-argument option.
22373 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22375 * util/grub.d/10_linux.in: Add missing load_video with explicit
22376 GRUB_GFXPAYLOAD_LINUX.
22378 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22380 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22382 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22384 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22385 elements with invlid index.
22386 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22387 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22389 * include/grub/raid.h (grub_raid_member): New struct.
22390 (grub_raid_array): Transform devices and start_sector into usage of
22391 grub_raid_member. All users updated
22392 (allocated_devs): New member.
22394 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22396 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22399 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22401 NetBSD build fix for getline function conflict from gnulib.
22403 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22404 components that depend on gnulib headers.
22405 (libgrubmods.a): Renamed from earlier libgrub.a.
22406 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22408 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22410 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22411 install rather than creating a broken install.
22413 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22415 * util/grub-setup.c (argp): Remove misleading example of installing to
22418 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22420 * util/grub-setup.c (setup): Clarify the error message.
22422 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22424 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22426 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22428 * grub-core/kern/emu/misc.c
22429 (grub_make_system_path_relative_to_its_root)
22430 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22432 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22434 * grub-core/kern/emu/misc.c
22435 (grub_make_system_path_relative_to_its_root): Revert r2882.
22437 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22439 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22440 useless field head. All users updated.
22441 (free_subchunk): Correct handling of IN_REGION subchunk.
22443 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22445 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22446 (Supported kernels): Likewise.
22448 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22450 Make mktemp invocations portable.
22452 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22453 exit if mktemp fails.
22454 * tests/grub_script_blockarg.in: Likewise.
22455 * tests/partmap_test.in: Likewise.
22456 * tests/util/grub-shell-tester.in: Likewise.
22457 * tests/util/grub-shell.in: Likewise.
22458 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22459 * Makefile.am: Likewise, and chain shell commands with `&&'
22461 * util/grub-mkrescue.in: Use the same explicit template as above, and
22462 exit if mktemp fails.
22464 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22466 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22467 Linux kernel, reported by Dennis Schridde.
22469 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22471 * grub-core/normal/auth.c (grub_auth_check_authentication):
22472 Set-but-not-used variable removed.
22474 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22476 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22477 32-bit linux protocol.
22479 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22481 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22482 cursor shape for sanity.
22484 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22486 * docs/grub.texi (Installation): Document buggy BIOS install.
22488 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22490 * docs/grub.texi (Installation): Indent.
22492 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22494 * util/grub-setup.c (setup): New parameter allow_floppy.
22495 (arguments): New member allow_floppy.
22496 (argp_parser): Handle --allow-floppy.
22497 (main): Pass allow_floppy.
22498 * util/grub-install.in: New option --allow-floppy passed though to
22501 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22503 * util/grub-install.in: Handle partitionless disks.
22505 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22507 * util/grub-setup.c (setup): Don't clean blocklists before readability
22510 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22512 * docs/grub.texi (Installation): Document embedding zone. Remove
22513 obsolete grub-install example.
22515 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22517 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22518 Set-but-not-used variable ifdef'ed.
22519 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22520 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22522 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22523 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22524 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22525 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22526 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22527 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22528 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22529 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22530 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22531 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22532 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22535 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22537 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22538 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22541 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22543 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22544 synonym to _S5_. Needed for some DSDTs.
22546 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22548 Userspace ACPI parser debugging.
22550 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22551 headers and add relevant defines. Don't include standard headers.
22552 (main) [GRUB_DSDT_TEST]: New function.
22553 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22554 Don't declare functions.
22556 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22558 Remove dead grub_efi_mm_fini.
22560 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22561 (ALLOCATED_PAGES_SIZE): Likewise.
22562 (MAX_ALLOCATED_PAGES): Likewise.
22563 (allocated_pages): Likewise.
22564 (grub_efi_allocate_pages): Don't record allocated pages.
22565 (grub_efi_free_pages): Likewise.
22566 (grub_efi_mm_init): Likewise.
22567 (grub_efi_mm_fini): Removed.
22569 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22571 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22572 (grub_efi_mm_init): Take into account the memory map size increase.
22574 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22576 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22577 (serial_hw_put): Wait based on real time rather than port reads. Don't
22579 * include/grub/serial.h (grub_serial_port): New field broken.
22581 2010-10-16 Robert Millan <rmh@gnu.org>
22583 * grub-core/kern/emu/misc.c
22584 (grub_make_system_path_relative_to_its_root): Fix premature return
22585 when processing non-root ZFS filesystems.
22586 Reported by Sergio Talens-Oliag.
22588 2010-10-15 Robert Millan <rmh@gnu.org>
22590 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22591 guarantee compressed ones are processed first.
22593 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22595 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22596 grub_efiemu_autocore.
22598 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22600 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22602 (grub_console_getkey): Use correct jae opcode rather than ja.
22604 2010-10-12 Robert Millan <rmh@gnu.org>
22606 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22607 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22608 variable. All references updated.
22610 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22612 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22614 Correctly distinguish mdraid flavours.
22616 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22617 (insert_array): New argument raid.
22618 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22619 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22620 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22622 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22624 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22625 handling of special keys.
22627 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22629 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22630 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22632 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22634 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22635 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22637 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22638 Use right endpoint when querying descriptor.
22640 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22642 Clear out 0x80 color bit on EFI.
22644 Reported by: decoder and meta tech.
22646 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22647 (grub_console_setcolorstate): Clear out 0x80 bit.
22648 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22649 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22650 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22652 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22654 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22657 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22659 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22660 mo_file after freeing.
22662 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22664 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22666 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22668 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22671 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22673 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22676 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22678 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22680 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22681 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22682 and terminfo.h when needed.
22683 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22684 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22685 (terminfo): Enable only on terminfokernel.
22686 (extcmd): Likewise.
22687 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22688 * include/grub/lib/arg.h: Likewise.
22689 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22690 incorrect usage of ->.
22692 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22694 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22695 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22697 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22699 Fix coreboot compilation.
22701 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22702 Take VBE info into account even if only text is supported.
22703 (fill_vbe_info): Take into account the case when only VGA text
22705 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22706 on coreboot, multiboot and qemu.
22708 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22710 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22712 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22714 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22716 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22719 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22721 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22722 if they were BSD-style.
22724 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22726 * grub-core/boot/i386/pc/lnxboot.S: Replace
22727 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22728 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22730 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22732 Write embedding zone using Reed-Solomon.
22734 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22735 * grub-core/Makefile.am (rs_decoder.S): New target.
22736 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22737 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22738 (multiboot): Move to RS part.
22739 (post_reed_solomon): New label.
22740 (grub_boot_drive): Move to non-RS part since it's modified in memory
22742 Include rs_decoder.S.
22743 * grub-core/lib/reed_solomon.c: New file.
22744 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22746 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22747 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22748 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22749 * include/grub/partition.h (grub_partition_map): Change prototype of
22750 embed to allow returning additional sectors.
22751 * include/grub/reed_solomon.h: New file.
22752 * util/grub-setup.c (setup): Handle Reed-Solomon.
22754 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22756 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22757 i386 and x86-64 definedness tests.
22759 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22761 Fix generation of kernel_syms.lst
22763 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22766 2010-09-26 Robert Millan <rmh@gnu.org>
22768 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22770 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22771 the pool is an array of devices, iterate through it and return the
22772 first device that passes a stat() test (instead of blindly returning
22775 2010-09-26 Robert Millan <rmh@gnu.org>
22777 Build fixes for GNU/kFreeBSD.
22779 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22780 to programs that require ZFS conversion.
22781 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22782 kernels that don't have FLOPPY_MAJOR.
22784 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22786 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22788 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22790 Fix grub-emu build.
22792 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22793 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22794 mdraid09 and mdraid1x.
22796 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22798 Re-enable grub-extras.
22800 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22801 avoid confusing Automake. Run autogen only twice, once for the top
22802 level and once for grub-core. Add Makefile.util.def and
22803 Makefile.core.def from extra modules to the appropriate autogen
22804 invocations. If Makefile.common exists in an extra module, include
22805 it in both Makefile.util.am and grub-core/Makefile.core.am;
22806 similarly, include any Makefile.util.common file in Makefile.util.am
22807 and any Makefile.core.common file in grub-core/Makefile.core.am.
22808 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22809 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22810 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22811 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22813 * gentpl.py (gvar_add): Turn GVARS into a set.
22814 (global_variable_initializers): Sort global variables on output.
22815 (vars_init): New function.
22816 (first_time): Likewise.
22817 (library): Ensure that non-global variable initialisations are
22818 emitted before the first time we emit code for a library block.
22819 Append to variables rather than setting them. Only emit
22820 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22821 each conditional path.
22822 (program): installdir() emits an Autogen macro, so must be passed to
22823 var_add rather than gvar_add.
22825 (script): Likewise.
22826 (rules): New function, centralising handling for different target
22827 types. Set up Guile association lists for first_time and vars_init,
22828 and send most output to a diversion so that variable initialisations
22829 can be emitted first.
22830 (module_rules): Use new rules function.
22831 (kernel_rules): Likewise.
22832 (image_rules): Likewise.
22833 (library_rules): Likewise.
22834 (program_rules): Likewise.
22835 (script_rules): Likewise.
22836 (data_rules): Likewise.
22838 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22840 * .bzrignore: Add contrib and grub-core/contrib. Remove
22841 grub-core/Makefile.gcry.am.
22843 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22845 * grub-core/lib/LzFind.c: Add missing include.
22846 * grub-core/lib/LzmaEnc.c: Likewise.
22847 * grub-core/script/lexer.c: Likewise.
22848 * grub-core/script/yylex.l: Likewise.
22849 * util/grub-macho2img.c: Likewise.
22850 * util/grub-menulst2cfg.c: Likewise.
22851 * util/grub-mklayout.c: Likewise.
22852 * util/grub-mkpasswd-pbkdf2.c
22853 * util/grub-mkrelpath.c: Likewise.
22854 * util/resolve.c: Likewise.
22856 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22858 * Makefile.util.def (example_unit_test): Add
22859 grub-core/gnulib/libgnu.a.
22861 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22863 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22865 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22867 Support xz compression on yeeloong.
22869 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22870 * configure.ac: Check for LZMA.
22871 * grub-core/Makefile.core.def (xz_decompress): New target.
22872 (none_decompress): Likewise.
22873 * grub-core/boot/decompressor/minilib.c: New file.
22874 * grub-core/boot/decompressor/none.c: Likewise.
22875 * grub-core/boot/decompressor/xz.c: Likewise.
22876 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22877 * grub-core/kern/mips/cache_flush.S: Likewise.
22878 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22879 * grub-core/kern/mips/startup.S: Move first stage to ...
22880 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22882 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22883 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22884 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22885 Allocate statically.
22886 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22887 Allocate statically or use scratch. Don't check CRC32.
22888 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22889 Allocate statically. Don't check CRC32.
22890 * include/grub/decompressor.h: New file.
22891 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22893 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22894 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22895 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22896 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22897 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22898 * util/grub-mkimage.c (grub_compression_t): New type.
22899 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22900 (image_target_desc): New field default_compression.
22901 (image_targets): Adjust yeeloong targets.
22902 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22903 (compress_kernel): New parameter comp.
22904 (generate_image): Likewise. Handle new compression case.
22905 (options): New option --compression
22907 (main): Handle new option.
22909 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22911 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22913 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22916 typo in __i386__ conditional.
22918 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22920 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22923 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22925 Implement EFI and ACPI multiboot2 extensions.
22927 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22928 new tags as supported.
22929 (acpiv2_size): New function.
22930 (grub_multiboot_get_mbi_size): Take new tags into account.
22931 (grub_multiboot_make_mbi): Add new tags.
22932 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22934 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22936 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22937 Added missing configuration of USB device.
22939 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22941 * grub-core/normal/menu_entry.c (run): Make sure we always return
22944 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22946 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22947 NumberOfPages is UINT64 according to the UEFI specification, not
22948 UINTN. Fix printf format.
22950 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22952 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22953 `err' to grub_usb_err_t.
22954 Reported and tested by: KESHAV P.R.
22956 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22958 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22959 tpart non-const, so that we can assign to it. (Since this is a
22960 typedef, the constness refers to the pointer rather than what it
22963 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22965 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22966 $(top_srcdir)/grub-core/gnulib as well as
22967 $(top_builddir)/grub-core/gnulib.
22968 Reported by: KESHAV P.R.
22970 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22972 * util/grub-install.in: Fix the bootloader ID option to be
22973 consistently --bootloader-id, not --bootloader_id.
22974 Reported by: KESHAV P.R.
22976 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22978 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22979 check hash checksum." consistently translatable.
22981 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22983 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22986 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22988 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22989 (GRUB_MOD_INIT): Register sha1sum command.
22990 (GRUB_MOD_FINI): Unregister sha1sum command.
22992 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22994 Keep boot and grub directory names in sync with utils scripts
22996 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22997 * config.h.in: Add previous macros.
22998 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22999 * util/grub-install.in: Use $bootdir and $grubdir variables.
23001 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23003 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23004 convert partition names to disk names if the new `convert' parameter
23006 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23007 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23008 disk in its own right. This can happen with Xen disk images.
23010 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23012 * util/grub-editenv.c: Update strings to avoid warnings when generating
23014 * util/grub-setup.c: Likewise.
23016 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23018 * configure.ac: Change version to 1.99~beta0.
23020 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23022 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23024 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23026 * include/multiboot.h: Resynced with specification.
23027 * include/multiboot2.h: Likewise.
23029 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23031 Fix po directory handling.
23033 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23034 * grub-core/gnulib/Makefile.am: Import gettext module.
23035 * m4/gnulib-cache.m4: Likewise.
23036 * m4/gnulib-comp.m4: Likewise.
23037 * m4/gettext.m4: New file, from gnulib.
23038 * m4/glibc2.m4: Likewise.
23039 * m4/iconv.m4: Likewise.
23040 * m4/intdiv0.m4: Likewise.
23041 * m4/intl.m4: Likewise.
23042 * m4/intldir.m4: Likewise.
23043 * m4/intlmacosx.m4: Likewise.
23044 * m4/intmax.m4: Likewise.
23045 * m4/inttypes-pri.m4: Likewise.
23046 * m4/lcmessage.m4: Likewise.
23047 * m4/lib-ld.m4: Likewise.
23048 * m4/lib-link.m4: Likewise.
23049 * m4/lib-prefix.m4: Likewise.
23050 * m4/lock.m4: Likewise.
23051 * m4/nls.m4: Likewise.
23052 * m4/po.m4: Likewise.
23053 * m4/printf-posix.m4: Likewise.
23054 * m4/progtest.m4: Likewise.
23055 * m4/threadlib.m4: Likewise.
23056 * m4/uintmax_t.m4: Likewise.
23057 * m4/visibility.m4: Likewise.
23058 * po/Makefile.am: Remove.
23059 * po/Makefile.in.in: New file, from gettext.
23060 ($(DOMAIN).pot-update): Support POTFILES-shell.
23061 * po/Makevars: New file.
23062 * po/POTFILES-shell: Rename to ...
23063 * po/POTFILES-shell.in: ... this. Update.
23064 * po/POTFILES: Rename to ...
23065 * po/POTFILES.in: ... this. Update.
23066 * po/Rules-quot: New file, from gettext.
23067 * po/boldquot.sed: Likewise.
23068 * po/en@boldquot.header: Likewise.
23069 * po/en@quot.header: Likewise.
23070 * po/insert-header.sin: Likewise.
23071 * po/quot.sed: Likewise.
23072 * po/remove-potcdate.sin: Likewise.
23074 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23076 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23078 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23080 * util/grub.d/20_linux_xen.in: Use submenus.
23082 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23086 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23087 parameter submenu. All users updated.
23088 * grub-core/normal/main.c (free_menu): Rename to ...
23089 (grub_normal_free_menu): ... this. Made global.
23090 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23092 * grub-core/normal/menu_entry.c (screen): New field submenu.
23093 (make_screen): Set submenu.
23094 (run): Open new context if requested.
23095 * include/grub/menu.h (grub_menu_entry): New field submenu.
23096 * include/grub/normal.h (grub_normal_free_menu): New proto.
23098 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23100 Menu entries extractor.
23102 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23104 (GRUB_MOD_INIT): Register new variants.
23105 (GRUB_MOD_FINI): Unregister new variants.
23106 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23107 into grub_cmd_legacy_source.
23108 (grub_cmd_legacy_source): Implement extractor variants.
23109 (GRUB_MOD_INIT): Register new variants.
23110 (GRUB_MOD_FINI): Unregister new variants.
23111 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23113 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23114 search as an extractor.
23115 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23116 test as an extractor.
23117 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23119 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23120 (grub_env_new_context): New function.
23121 (grub_env_context_open): Likewise.
23122 (grub_env_extractor_open): Likewise.
23123 (grub_env_extractor_close): Likewise.
23124 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23125 grub_extractor_level.
23126 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23127 * include/grub/env.h (grub_env_extractor_open): New proto.
23128 (grub_env_extractor_close): Likewise.
23129 * include/grub/normal.h (grub_extractor_level): New external variable.
23131 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23133 Make cutmem accept a region specification.
23134 Suggested by: Samuel Thibault
23136 * grub-core/mmap/mmap.c (parsemem): New function.
23137 (grub_cmd_cutmem): Handle new arguments.
23139 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23141 New command cutmem.
23143 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23144 (GRUB_MOD_INIT): Register new command.
23145 (GRUB_MOD_FINI): Unregister new command.
23147 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23149 Support some annoying BSD and Minix subpartitions.
23151 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23152 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23153 Properly handle concatenation.
23154 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23155 * grub-core/normal/completion.c (iterate_partition): Likewise.
23156 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23157 contain partition. All users updated.
23158 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23160 (grub_openbsdlabel_partition_map): Likewise.
23161 (bsdlabel_partition_map_iterate): Rename to ..
23162 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23163 (bsdlabel_partition_map_iterate): New function.
23164 (netopenbsdlabel_partition_map_iterate): Likewise.
23165 (netbsdlabel_partition_map_iterate): Likewise.
23166 (openbsdlabel_partition_map_iterate): Likewise.
23167 (GRUB_MOD_INIT): Register new partmaps.
23168 (GRUB_MOD_FINI): Unregister new partmaps.
23169 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23170 (grub_partition_msdos_iterate): ... this. All users updated.
23171 Don't support embedding other than in a minix partition.
23172 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23174 * include/grub/partition.h (grub_partition): New field msdostype.
23175 * util/grub-install.in: Handle openbsd and netbsd types being in
23178 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23180 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23182 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23183 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23184 (mdraid09): ... this.
23185 (mdraid1x): New module.
23186 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23187 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23191 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23194 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23196 * grub-core/commands/efi/lsefimmap.c: Correct header.
23199 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23201 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23202 as printf format strings; the translations might contain '%' which
23203 could cause a crash.
23205 * util/grub-fstest.c (argp_parser): Likewise.
23206 * util/grub-setup.c (argp_parser): Likewise.
23209 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23211 Use argp in grub-fstest.
23213 * util/grub-fstest.c: Don't include getopt.h.
23215 (root): New variable.
23216 (args_count): Likewise.
23218 (num_disks): Likewise.
23219 (images): Likewise.
23221 (debug_str): Likewise.
23223 (options): Transformed to argp.
23225 (main): Split argument parsing into ...
23226 (argp_parser): ... this. Changed to argp format.
23227 (argp): New variable.
23228 (main): Use argp_parse.
23230 2010-09-20 Tristan Gingold <gingold@free.fr>
23231 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23232 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23234 * grub-core/commands/efi/lsefimmap.c: New file.
23235 * grub-core/Makefile.core.def (lsefimmap): New module.
23236 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23238 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23240 Pause the execution (10s max) if any errors are displayed so the user
23241 has a chance to see them.
23243 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23244 (grub_print_error): Increment grub_err_printed_errors.
23245 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23246 execution if any errors were displayed.
23247 (show_menu): Remove old code for pause.
23248 * grub-core/normal/menu_entry.c (run): Likewise.
23249 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23251 (grub_normal_get_char_counter): Likewise.
23252 * include/grub/err.h (grub_err_printed_errors): New external variable.
23253 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23255 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23257 Support multiboot VBE info.
23259 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23260 Take VBE info into account.
23261 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23262 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23263 Call fill_vbe_info when appropriate.
23264 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23265 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23267 (grub_multiboot_get_mbi_size): Take new tags into account.
23268 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23269 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23270 Call fill_vbe_tag when appropriate.
23271 (grub_multiboot_make_mbi): Properly align tags.
23272 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23274 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23276 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23278 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23280 Suport manual terminal geometry specification.
23282 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23283 Save state in grub_ofconsole_terminfo_output.
23284 (grub_ofconsole_term): Use grub_terminfo_getwh.
23285 (grub_ofconsole_getwh): Removed.
23286 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23287 (grub_serial_term): Use grub_terminfo_getwh.
23288 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23289 (options): New struct.
23290 (OPTION_*): New enum.
23291 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23292 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23294 (grub_terminfo_getwh): New proto.
23295 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23297 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23299 Handle legacy "terminal" command.
23301 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23303 (legacy_commands): Add terminal and title.
23304 (grub_legacy_parse): Handle terminal. Simplify title handling.
23306 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23308 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23309 parameters overflow.
23311 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23313 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23316 * docs/grub.texi (Shell-like scripting): Document `!'.
23317 (Network): Simplify using new i386-pc-pxe format. Mention
23322 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23324 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23325 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23328 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23330 * grub-core/commands/efi/lsefisystab.c: Correct header.
23331 * grub-core/commands/efi/lssal.c: Likewise.
23332 * grub-core/commands/testload.c: Likewise.
23334 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23336 * util/grub-mkrescue.in: Add explicit root argument to --set to
23337 prevent the UUID being interpreted as an argument to --set (matches
23338 previous change to prepare_grub_to_access_device).
23340 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23342 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23343 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23344 the verbosity of later #ifs.
23345 (find_partition_start): Define this function on FreeBSD too.
23346 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23348 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23351 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23353 * util/grub-editenv.c: Use argp instead of getopt.
23355 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23357 * util/grub-setup.c: Use argp instead of getopt.
23359 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23361 Use gnulib-tool to create gnulib source files.
23363 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23364 grub-core/gnulib directories
23365 * .bzignore: Add **/.deps and autogenerated gnulib files
23366 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23367 of gnulib macros, add grub-core/gnulib/Makefile
23368 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23369 include m4 directory to aclocal.
23370 * Makefile.util.def: Remove direct compilation of gnulib source files
23371 and use the new grub-core/gnulib/libgnu.a.
23372 * build-aux/config.rpath: move config.rpath from top directory to
23374 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23376 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23377 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23378 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23380 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23383 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23385 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23386 grub-core/genmod.sh and grub-core/gensyminfo.sh
23388 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23390 Add a test for echo command options.
23392 * tests/grub_cmd_echo.in: New test.
23393 * Makefile.util.def: Rules for new test.
23395 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23397 Remove crc.mod and move crc command to hashsum.mod.
23398 Remove lib/crc.c - users updated to use gcrypt implementation.
23400 * grub-core/commands/crc.c: Removed.
23401 * grub-core/Makefile.core.def (crc): Module removed.
23402 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23403 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23404 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23405 * grub-core/lib/crc.c: Removed.
23406 * include/grub/lib/crc.h: Removed.
23407 * Makefile.util.def (crc): Remove lib/crc.c
23408 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23409 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23410 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23411 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23412 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23413 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23415 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23417 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23419 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23421 Split config.h for util and core.
23423 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23424 (ADDR32): Likewise.
23425 (DATA32): Likewise.
23426 (BSS_START_SYMBOL): Likewise.
23427 (END_SYMBOL): Likewise.
23428 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23429 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23430 * config.h.in: New file.
23431 * configure.ac: Use config-util.h as config define file.
23432 Rename MACHINE into GRUB_MACHINE. All users updated.
23433 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23435 (NESTED_FUNC_ATTR): Likewise.
23436 Substitue new variables.
23437 (COND_HAVE_ASM_USCORE): New conditional.
23438 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23439 (kernel_syms.lst): Use ASM_PREFIX.
23440 * grub-core/kern/emu/console.c: Include config-util.h.
23441 * grub-core/kern/emu/misc.c: Likewise.
23442 * grub-core/kern/emu/mm.c: Likewise.
23443 * include/grub/emu/misc.h: Likewise.
23444 * include/grub/libgcc.h: Likewise.
23446 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23448 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23450 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23451 Fix GRUB_TERM_KEY_* constants usage.
23452 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23454 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23456 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23458 * grub-core/bus/usb/uhci.c: Remove empty define.
23459 (grub_uhci_check_transfer): Add missing cast.
23460 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23462 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23464 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23466 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23468 * grub-core/Makefile.core.def (legacycfg): Add
23469 lib/i386/pc/vesa_modes_table.c on emu.
23471 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23473 Reduce number of temporary files generated by build system.
23475 * grub-core/gencmdlist.sh: Removed.
23476 * grub-core/genfslist.sh: Removed.
23477 * grub-core/genhandlerlist.sh: Removed.
23478 * grub-core/genmodsrc.sh: Removed.
23479 * grub-core/genpartmaplist.sh: Removed.
23480 * grub-core/genparttoollist.sh: Removed.
23481 * grub-core/gentermiinallist.sh: Removed.
23482 * grub-core/genvideolist.sh: Removed.
23484 * grub-core/genmod.sh.in: New file.
23485 * grub-core/gensyminfo.sh.in: New file.
23487 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23488 * conf/Makefile.extra-dist: Update with new files.
23489 * gentpl.py: Remove rules related to unnecessary temporary files.
23490 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23492 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23494 * grub-core/bus/usb/uhci.c: Remove empty #define.
23495 * grub-core/genmoddep.awk: Updated with new syminfo format.
23496 * util/bash-completion.d/Makefile.am: Add config.log to
23499 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23501 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23503 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23505 * util/grub-mkconfig.in: Check the config script for syntax errors
23508 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23509 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23511 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23513 * util/grub-install.in: Add EFI and IEEE1275 support.
23514 * util/i386/efi/grub-install.in: Removed.
23515 * util/ieee1275/grub-install.in: Likewise.
23517 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23519 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23520 (grub_cmd_cmosclean): Likewise.
23521 (GRUB_MOD_INIT): Register command cmosclean.
23522 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23523 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23525 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23526 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23527 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23529 Add keyboard layouts support.
23531 * Makefile.util.def (grub-mklayout): New file.
23532 (grub-kbdcomp): New script.
23533 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23534 Add keyboard_layouts.h.
23535 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23536 commands/boot.c on yeeloong.
23537 (keylayouts): New module.
23538 * grub-core/bus/usb/ohci.c
23539 * grub-core/bus/usb/uhci.c
23540 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23541 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23542 (attach_root_port): Likewise.
23543 (poll_nonroot_hub): Likewise.
23544 (grub_usb_poll_devices): Likewise.
23545 (detach_device): Close transfer.
23546 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23548 (grub_usb_bulk_setup_readwrite): Likewise.
23549 (grub_usb_bulk_finish_readwrite): Likewise.
23550 * grub-core/commands/keylayouts.c: New file.
23551 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23552 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23554 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23555 support scancode 2.
23556 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23557 * include/grub/keyboard_layouts.h: New file.
23558 * util/grub-mklayout.c: New file.
23559 * util/grub-kbdcomp.in: Likewise.
23561 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23563 Unify memory types.
23565 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23566 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23568 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23569 (grub_upper_mem): Likewise.
23570 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23571 * include/grub/memory.h (grub_memory_type_t): New enum.
23574 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23576 * grub-core/Makefile.core.def (lsapm): New module.
23577 * grub-core/commands/i386/pc/lsapm.c: New file.
23578 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23579 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23581 * include/grub/i386/pc/apm.h: New file.
23582 * include/multiboot.h (multiboot_apm_info): New struct.
23584 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23586 GRUB-legacy configuration file support.
23588 * Makefile.util.def (grub-menulst2cfg): New util.
23589 * docs/man/grub-menulst2cfg.h2m: New file.
23590 * grub-core/Makefile.core.def (legacycfg): New module.
23591 * grub-core/commands/legacycfg.c: New file.
23592 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23593 (grub_normal_add_menu_entry): ... this.
23594 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23595 (grub_normal_set_password): ...this.
23596 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23597 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23598 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23599 * grub-core/lib/legacy_parse.c: New file.
23600 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23601 * include/grub/i386/pc/vesa_modes_table.h: New file.
23602 * include/grub/legacy_parse.h: Likewise.
23603 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23604 * util/grub-menulst2cfg.c: New file.
23606 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23608 * grub-core/kern/emu/hostdisk.c
23609 (convert_system_partition_to_system_disk): Initialise node.
23611 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23613 * grub-core/kern/emu/hostdisk.c
23614 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23616 Reported and based on patch by: Modestas Vainius.
23618 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23620 Fix DM-RAID probing with recent versions of device-mapper udev
23623 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23624 canonicalise device paths under /dev/mapper/.
23625 (convert_system_partition_to_system_disk): Compare the
23626 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23627 path, since device nodes under /dev/mapper/ are often symlinks.
23629 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23631 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23633 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23635 * configure.ac: Avoid some annoying error messages if freetype-config
23636 program is not found.
23638 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23640 Support RAID on virtio devices, and others.
23642 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23644 [__MINGW32__] (grub_find_device): ... this.
23645 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23646 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23647 reasonable default if dir is NULL.
23648 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23650 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23651 (grub_guess_root_device): Update callers.
23652 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23654 * util/raid.c (grub_util_getdiskname): Remove.
23655 (grub_util_raid_getmembers): Use grub_find_device rather than
23656 grub_util_getdiskname.
23658 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23660 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23661 needing to be compiled with serial support.
23662 (ls): Indicate that multiple files are accepted.
23663 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23664 indicate that multiple files are accepted.
23666 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23668 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23669 libgrub_a_init.c, and util/bash-completion.d/grub.
23671 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23673 * util/grub-setup.c (setup): Fix incorrect container semantics.
23675 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23677 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23679 Reported by: J. Nick Terry
23681 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23683 Move embedding routines to partmap sources files.
23685 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23686 [GRUB_UTIL]: New variable.
23687 (gpt_partition_map_iterate): Set part.parent.
23688 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23689 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23690 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23692 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23693 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23694 (grub_partition_map) [GRUB_UTIL]: New field embed.
23695 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23696 (setup): Use ->embed.
23698 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23700 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23702 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23703 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23705 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23707 Add function to get completions from usage.
23709 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23710 completions from usage. Use LC_ALL=C to get options properly.
23712 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23714 * grub-core/gnulib/basename-lgpl.c: Imported.
23715 * grub-core/gnulib/basename.c: Likewise.
23716 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23717 * grub-core/gnulib/dirname.c: Likewise.
23718 * grub-core/gnulib/dirname.h: Likewise.
23719 * grub-core/gnulib/stripslash.c: Likewise.
23721 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23723 * grub-core/gnulib/error.c: Resynced.
23724 * grub-core/gnulib/getopt.c: Likewise.
23725 * grub-core/gnulib/getopt_int.h: Likewise.
23726 * grub-core/gnulib/regex.h: Likewise.
23727 * grub-core/gnulib/regex_internal.c: Likewise.
23728 * grub-core/gnulib/regex_internal.h: Likewise.
23730 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23732 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23733 CRC calculations and validity checks.
23734 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23737 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23739 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23741 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23743 Fix incorrect echo options handling.
23744 Reported by: Yves Blusseau.
23746 * include/grub/command.h (grub_command_flags_t): New flags
23747 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23748 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23749 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23751 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23753 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23755 (GRUB_COMMAND_FLAG_MENU): Likewise.
23756 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23757 (GRUB_COMMAND_FLAG_TITLE): Removed.
23758 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23759 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23760 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23761 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23762 (grub_command_flags_t): New enum. All users updated.
23764 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23766 Fix solaris compilation.
23768 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23769 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23770 (grub-emu-list): Likewise.
23772 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23774 Remove deprecated root command.
23776 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23779 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23781 * util/i386/pc/grub-setup.c: Merge this ...
23782 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23783 * util/grub-setup.c: ... into this.
23784 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23787 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23789 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23792 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23794 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23797 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23799 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23800 explicit root argument to set to prevent UUID to be interpreted as
23803 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23805 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23807 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23809 Don't export grub_gate_a20.
23811 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23812 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23814 (grub_gate_a20): ... this. All users updated.
23815 * include/grub/i386/pc/init.h: Removed. All users updated.
23817 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23819 Create euro.pf2 which supports most European languages.
23821 * Makefile.am (grubdata_DATA): Add euro.pf2.
23822 (euro.pf2): New target.
23823 (CLEANFILES): Add euro.pf2.
23825 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23827 * configure.ac: Disable emu-usb by default to prevent inadvertent
23830 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23832 Disable usbserial on grub-emu since our libusb code isn't good enough
23835 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23836 (usbserial_pl2303): Likewise.
23837 (usbserial_ftdi): Likewise.
23839 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23841 * include/grub/disk.h (grub_disk): Remove has_partitions.
23843 * disk/loopback.c (grub_loopback): Remove has_partitions.
23845 (options): Remove partitions. All users updated.
23846 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23847 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23848 actual partition table is found.
23850 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23852 Remove readability checks (too many false negatives).
23854 * util/grub-install.in: Remove readability checks.
23855 * util/grub-mkconfig.in: Likewise.
23856 * util/grub.d/10_hurd.in: Likewise.
23857 * util/grub.d/10_kfreebsd.in: Likewise.
23858 * util/grub.d/10_linux.in: Likewise.
23859 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23862 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23864 Enable acpi shutdown on all ACPI platforms.
23866 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23867 on coreboo, multiboot and EFI.
23868 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23869 (grub_acpi_halt): Likewise.
23870 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23871 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23872 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23873 * grub-core/lib/i386/halt.c (grub_halt)
23874 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23876 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23878 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23881 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23883 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23884 * grub-core/video/efi_uga.c: Likewise.
23886 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23888 Filter devaliases and never open same device twice.
23890 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23891 (last_ihandle): Likewise.
23892 (ofdisk_hash_ent): New member shortest.
23893 (ofdisk_hash_add): Add canonical path too.
23894 (scan): New function.
23895 (grub_ofdisk_iterate): Iterate over hashed entries.
23896 (compute_dev_path): Don't add :0.
23897 (grub_ofdisk_open): Don't really open the disk.
23898 (grub_ofdisk_close): Avoid closing unrelated disk.
23899 (grub_ofdisk_read): Implement reopen logic.
23900 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23902 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23905 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23909 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23910 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23911 right address. Add sparc64_ieee1275_ldflags.
23912 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23913 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23914 to grub_host_to_target_addr
23915 (load_image): Likewise.
23917 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23919 * grub-core/normal/completion.c (complete_file): Handle device
23921 Fix based on patch by Doug Nazar.
23923 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23925 grub-mknetdir script.
23927 * Makefile.util.def (grub-mknetdir): New module.
23928 * tests/util/grub-shell.in: Support boot=net
23929 * util/grub-mknetdir.in: New file.
23931 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23933 videoinfo on non-vbe.
23935 * grub-core/Makefile.core.def (vbeinfo): Removed.
23936 (vbetest): Removed.
23937 (videoinfo): New module.
23938 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23939 * grub-core/commands/i386/pc/vbetest.c: Removed.
23940 * grub-core/commands/videoinfo.c: New file.
23941 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23943 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23945 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23946 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23947 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23948 mode_number. New parameter mode. All users updated.
23949 (grub_video_gop_iterate): New function.
23950 (grub_video_efi_gop): New member iterate.
23951 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23952 (grub_vbe_set_video_mode): Remove setting useless fields.
23953 (vbe2videoinfo): New function.
23954 (grub_video_vbe_iterate): Likewise.
23955 (grub_video_vbe_setup): Use vbe2videoinfo.
23956 (grub_video_vbe_print_adapter_specific_info): New function.
23957 (grub_video_vbe_adapter): New fields iterate and
23958 print_adapter_specific_info.
23959 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23961 (grub_video_mode_info): New field mode_number.
23962 (grub_video_adapter): New fields iterate and
23963 print_adapter_specific_info.
23965 2010-09-13 Tristan Gingold <gingold@free.fr>
23966 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23967 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23969 * grub-core/commands/efi/lsefisystab.c: New file.
23970 * grub-core/commands/efi/lssal.c: Likewise.
23971 * grub-core/Makefile.core.def (lsacpi): New module.
23972 (lsefisystab): Likewise.
23973 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23974 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23975 (grub_efi_sal_system_table): New struct.
23976 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23977 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23978 (grub_efi_sal_system_table_platform_features): Likewise.
23979 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23980 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23981 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23982 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23984 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23986 Support explicit user claim that a device is BIOS-visible.
23988 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23989 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23990 * grub-core/kern/emu/hostdisk.c
23991 (convert_system_partition_to_system_disk): Support mdX.
23992 (find_system_device): New parameter add. All users updated.
23993 (grub_util_biosdisk_is_present): New function.
23994 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23997 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23999 Search hints support.
24001 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24004 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24006 Bash completion script for util commands
24008 * Makefile.am: Add util/bash-completion.d directory
24009 * configure.ac: Likewise.
24010 * util/bash-completion.d/Makefile.am: New file.
24011 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24013 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24015 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24016 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24017 Reported by: Yves Blusseau.
24019 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24021 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24022 partition size and offset.
24024 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24026 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24028 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24030 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24032 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24034 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24035 (grub_xvasprintf): Likewise.
24037 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24039 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24041 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24043 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24044 args ending with NULL.
24046 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24048 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24051 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24053 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24055 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24057 Shutdown using ACPI.
24059 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24060 * grub-core/commands/acpihalt.c: New file.
24061 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24062 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24063 (grub_acpi_halt): New proto.
24064 (GRUB_ACPI_SLP_EN): New const.
24065 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24066 (GRUB_ACPI_OPCODE_*): New enum.
24067 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24069 2010-09-11 Tristan Gingold <gingold@free.fr>
24070 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24071 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24073 * commands/lsacpi.c: New file.
24074 * grub-core/Makefile.core.def (lsacpi): New module.
24075 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24076 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24077 (grub_acpi_madt_entry_header): New struct.
24078 (grub_acpi_madt): Likewise.
24079 (grub_acpi_madt_entry_interrupt_override): Likewise.
24080 (grub_acpi_madt_entry_sapic): Likewise.
24081 (grub_acpi_madt_entry_lsapic): Likewise.
24082 (grub_acpi_madt_entry_platform_int_source): Likewise.
24083 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24084 (PRIuGRUB_UINT32_T): Likewise.
24085 (PRIxGRUB_UINT64_T): Likewise.
24087 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24089 Implement loading palette on ieee1275_fb.
24091 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24092 (have_setcolors): Likewise.
24093 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24094 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24095 (grub_video_ieee1275_set_palette): Implement.
24097 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24098 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24100 * util/grub-install.in (grub_partition): New variable.
24101 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24102 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24103 Fixes a bug reported by Yves Blusseau.
24105 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24109 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24110 =grub_cpu_flush_cache on all mips and not only yeeloong.
24111 * configure.ac (COND_mips): New conditional.
24112 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24114 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24115 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24116 [GRUB_LINKER_HAVE_INIT]: New function.
24117 (grub_emu_post_init): Likewise.
24118 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24119 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24120 * include/grub/cache.h (_mips): Include mips/cache.h.
24121 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24122 LVM and RAID prototypes.
24123 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24124 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24127 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24129 * util/grub-install.in: Don't try to verify core.img until after
24130 running grub-mkimage to create it.
24132 2010-09-10 Robert Millan <rmh@gnu.org>
24134 * util/grub.d/10_hurd.in: Add misc readability checks.
24135 * util/grub.d/10_kfreebsd.in: Likewise.
24136 * util/grub.d/10_linux.in: Likewise.
24138 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24140 * util/grub-install.in: ${imgext} won't be defined here until the
24141 install branch is merged. For the meantime, only verify core.img on
24142 i386-pc and sparc64-ieee1275 platforms.
24144 2010-09-10 Robert Millan <rmh@gnu.org>
24146 Solaris support in grub_find_zpool_from_dir(). Thanks
24147 Seth Goldberg for referring to getextmntent() facility.
24149 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24151 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24153 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24154 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24155 method for finding zpool name.
24157 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24159 grub-fstest needs the host and hostfs modules while other utilities
24160 actively require those modules to be absent, so grub-fstest needs
24161 its own initialisation and finalisation code.
24163 * Makefile.am (grub_fstest.pp): New target.
24164 (grub_fstest_init.lst): Likewise.
24165 (grub_fstest_init.c): Likewise.
24166 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24168 2010-09-10 Robert Millan <rmh@gnu.org>
24170 * configure.ac: Check for `struct statfs.f_fstypename' and
24171 `struct statfs.f_mntfromname'.
24173 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24174 kFreeBSD-specific code.
24176 2010-09-10 Robert Millan <rmh@gnu.org>
24178 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24179 on ZFS. Now non-main filesystems are supported as / too.
24181 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24183 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24184 and grub-core/disk/host.c to ...
24185 (grub-fstest): ... here. Having the host disk implementation
24186 present confuses grub-probe and other utility programs.
24188 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24189 when writing to a file, not when writing to stdout.
24191 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24193 * tests/partmap_test.in: New test for partitions.
24194 * Makefile.util.def: Rules for new test.
24196 2010-09-09 Robert Millan <rmh@gnu.org>
24198 * util/grub-probe.c (probe): Fix a pair of unhandled error
24201 2010-09-09 Robert Millan <rmh@gnu.org>
24203 Basic Btrfs support (detection and UUID).
24205 * grub-core/fs/btrfs.c: New file.
24206 * Makefile.util.def (library): Register btrfs.c.
24207 * grub-core/Makefile.core.def: Likewise.
24209 2010-09-08 Robert Millan <rmh@gnu.org>
24211 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24212 with (optional) parameters to specify device and relative path.
24213 * util/grub-install.in: Use is_path_readable_by_grub() to
24214 verify readability of a few critical files.
24215 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24216 verify readability of grub.cfg.new.
24218 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24220 Split minix.mod into minix.mod and minix2.mod.
24222 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24223 * grub-core/Makefile.core.def (minix2): New module.
24224 * grub-core/fs/minix.c: Use definitions instead of runtime version
24226 * grub-core/fs/minix2.c: New file.
24228 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24230 Add new --boot-directory option to replace --root-directory
24232 * util/grub-install.in: Add new --boot-directory option
24233 * util/grub-reboot.in: Likewise.
24234 * util/grub-set-default.in: Likewise.
24236 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24238 * util/grub-mkconfig.in: Use new variable.
24240 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24242 * configure.ac: Define some useful variables.
24244 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24246 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24247 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24248 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24249 Use terminfo and don't use cursor-on/cursor-off unless it's known
24251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24252 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24254 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24256 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24257 starts with "(,", fill the drive containing the loaded image in
24258 between those two characters, but expect that a full partition
24259 specification including partition map names will follow.
24261 2010-09-08 Robert Millan <rmh@gnu.org>
24263 * configure.ac: Remove `--enable-grub-fstest' option.
24264 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24266 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24267 `grub-fstest' instead of `grub-probe' for readability verification.
24268 * util/grub-probe.c (probe): Remove readability verification kludge.
24270 2010-09-08 Robert Millan <rmh@gnu.org>
24272 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24273 initializing `GRUB_FS'.
24275 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24277 Not command (!) support to GRUB script.
24279 * tests/grub_script_not.in: New test.
24280 * Makefile.util.def: Rules for new test.
24282 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24283 ! command as a special case.
24284 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24286 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24288 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24291 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24293 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24295 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24297 * docs/grub.texi (Shell-like scripting): Documentation for break,
24298 continue, shift and return commands.
24300 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24302 Rename CD-ROM to cd on BIOS.
24304 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24306 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24308 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24310 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24311 * util/grub-probe.c (main): Likewise.
24312 * util/i386/pc/grub-setup.c (main): Likewise.
24313 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24314 Reported and debugged by: alexxy
24316 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24318 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24321 2010-09-05 Jo Shields <directhex@apebox.org>
24323 * util/grub.d/30_os-prober.in: Add missing classes.
24325 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24327 * docs/grub.texi (Theme file format): Document new position format.
24329 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24331 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24332 a table. Use @code instead of @verbatim.
24334 2010-09-05 Colin D Bennett <colin@gibibit.com>
24336 Gfxmenu documentation.
24338 * docs/grub.texi (Theme file format): New chapter.
24340 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24342 * grub-core/Makefile.core.def (xzio): New module.
24343 * grub-core/io/xzio.c: New file.
24344 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24345 * grub-core/lib/xzembed/xz_config.h: Likewise.
24346 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24347 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24348 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24349 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24350 * grub-core/lib/xzembed/xz_private.h: Likewise.
24351 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24352 * include/grub/file.h (grub_file_filter_id): New compression filter
24353 GRUB_FILE_FILTER_XZIO.
24355 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24357 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24358 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24361 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24363 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24364 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24366 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24368 Uncompressed checksum support.
24370 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24371 (check_list): New parameter uncompress.
24372 (grub_cmd_hashsum): Handle --uncompress.
24374 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24376 Reintroduce testload.
24378 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24380 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24381 (GRUB_MOD_INIT): New function.
24382 (GRUB_MOD_FINI): Likewise.
24383 * grub-core/Makefile.core.def (testload): New module.
24385 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24387 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24388 (uint8_t): New type.
24389 (uint16_t): Likewise.
24390 (uint32_t): Likewise.
24391 (uint64_t): Likewise.
24393 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24395 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24397 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24399 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24401 (grub_gzfile_open): Removed. All users updated.
24402 (GRUB_MOD_INIT): New function.
24403 (GRUB_MOD_FINI): Likewise.
24404 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24405 (grub_file_filters_enabled): Likewise.
24406 (grub_file_open): Handle filters.
24407 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24408 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24409 * include/grub/file.h (grub_file_filter_id_t): New type.
24410 (grub_file_filter_t): Likewise.
24411 (grub_file_filters_all): New extern variable.
24412 (grub_file_filters_enabled): Likewise.
24413 (grub_file_filter_register): New inline function.
24414 (grub_file_filter_unregister): Likewise.
24415 (grub_file_filter_disable): Likewise.
24416 (grub_file_filter_disable_compression): Likewise.
24417 * include/grub/gzio.h: Removed.
24419 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24421 Filename expansion support for wildcards in GRUB script.
24423 * tests/grub_script_expansion.in: New test.
24424 * Makefile.util.def: Rule for new test.
24426 * grub-core/commands/wildcard.c: New file, implements filename
24427 expansion support for GRUB script.
24428 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24429 * grub-core/script/argv.c: Cosmetic changes.
24430 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24431 Refactored to perform wildcard expansion on arguments.
24432 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24435 * tests/util/grub-shell.in: Fix quoting for read input.
24437 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24439 Support for updating environment variables with matched substrings
24442 * tests/grub_cmd_regexp.in: New test.
24443 * Makefile.util.def: Rule for new test.
24445 * grub-core/commands/regexp.c: New option -s to update environment
24446 variables with regexp matches.
24448 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24450 * include/grub/file.h (grub_file): New member not_easly_seekable.
24451 (grub_file_seekable): New inline function.
24452 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24454 (grub_gzio_open): Set not_easly_seekable.
24455 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24456 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24458 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24460 Support for options to appear multiple times on cmdline.
24462 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24463 * grub-core/commands/extcmd.c: Support for repeatable option.
24464 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24465 repeatable option support.
24467 Refactor menuentry into a regular command.
24469 * grub-core/commands/menuentry.c: New file, menuentry command
24471 * grub-core/Makefile.core.def: Rule update for normal.mod.
24472 * grub-core/normal/main.c: Moved menuentry creation to
24473 grub-core/commands/menuentry.c.
24474 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24475 (grub_menu_execute_entry_real): Removed.
24476 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24478 (grub_script_execute_menuentry): Removed.
24479 * grub-core/script/parser.y (menuentry): Removed.
24480 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24481 * grub-core/script/yylex.l (menuentry): Removed.
24482 * include/grub/menu.h (grub_menu_init): New prototype.
24483 (grub_menu_fini): New prototype.
24484 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24485 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24486 (grub_script_execute_sourcecode): New prototype.
24488 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24490 "return" command for GRUB script functions.
24492 * tests/grub_script_return.in: New test.
24493 * Makefile.util.def: Rules for new test.
24495 * grub-core/script/execute.c (grub_script_return): New function.
24496 * grub-core/script/main.c: Register/unregister return commaond.
24497 * include/grub/script_sh.h (grub_script_return): New prototype.
24499 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24501 "setparams" command to update positional parameters.
24503 * tests/grub_script_setparams.in: New test.
24504 * Makefile.util.def: Rules for new test.
24506 * grub-core/script/argv.c (grub_script_argv_make): New function.
24507 * grub-core/script/execute.c (replace_scope): New function.
24508 (grub_script_setparams): New function.
24509 * grub-core/script/lexer.c: Remove unused variables.
24510 * grub-core/script/main.c: Register/unregister setparams command.
24511 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24512 (grub_script_setparams): New prototype.
24514 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24516 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24519 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24521 Support for passing block of commands as an argument to extcmds.
24523 * Makefile.util.def: Rules for new test.
24524 * tests/grub_script_blockarg.in: New test.
24525 * grub-core/tests/test_blockarg.c: New file, block argument
24526 command used in the test.
24528 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24529 (grub_register_extcmd_prio): New function prototype.
24530 (grub_extcmd_dispatcher): New function prototype.
24531 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24533 * include/grub/script_sh.h (struct grub_script): New members
24534 `children', `next_siblings' and `refcnt' for block arguments and
24535 reference counting.
24536 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24537 (grub_script_arg): New member `script' for block argument.
24538 (grub_script_argv): New member `script' for block argument.
24539 (grub_parser_param): New member `scripts' for block argument.
24540 (grub_script_mem_free): New extern function prototype.
24541 (grub_script_ref): New function prototype.
24542 (grub_script_unref): New function prototype.
24544 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24545 extcmd form to support block arguments.
24546 * grub-core/script/argv.c: Block arguments support.
24547 * grub-core/script/execute.c: Likewise.
24548 * grub-core/script/lexer.c: Likewise.
24549 * grub-core/script/main.c: Likewise.
24550 * grub-core/script/script.c: Likewise.
24551 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24554 * grub-core/commands/acpi.c: Update extcmd implementations with
24555 grub_extcmd_context_t.
24556 * grub-core/commands/cat.c: Likewise.
24557 * grub-core/commands/echo.c: Likewise.
24558 * grub-core/commands/extcmd.c: Likewise.
24559 * grub-core/commands/hashsum.c: Likewise.
24560 * grub-core/commands/hdparm.c: Likewise.
24561 * grub-core/commands/help.c: Likewise.
24562 * grub-core/commands/hexdump.c: Likewise.
24563 * grub-core/commands/i386/cpuid.c: Likewise.
24564 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24565 * grub-core/commands/i386/pc/halt.c: Likewise.
24566 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24567 * grub-core/commands/iorw.c: Likewise.
24568 * grub-core/commands/keystatus.c: Likewise.
24569 * grub-core/commands/loadenv.c: Likewise.
24570 * grub-core/commands/ls.c: Likewise.
24571 * grub-core/commands/lspci.c: Likewise.
24572 * grub-core/commands/memrw.c: Likewise.
24573 * grub-core/commands/probe.c: Likewise.
24574 * grub-core/commands/search_wrap.c: Likewise.
24575 * grub-core/commands/setpci.c: Likewise.
24576 * grub-core/commands/sleep.c: Likewise.
24577 * grub-core/disk/loopback.c: Likewise.
24578 * grub-core/hello/hello.c: Likewise.
24579 * grub-core/loader/i386/bsd.c: Likewise.
24580 * grub-core/loader/xnu.c: Likewise.
24581 * grub-core/term/gfxterm.c: Likewise.
24582 * grub-core/term/serial.c: Likewise.
24583 * grub-core/tests/lib/functional_test.c: Likewise.
24585 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24587 Multi-line quoted strings support.
24589 * grub-core/script/lexer.c (append_newline): Removed.
24590 (grub_script_lexer_yywrap): Refactored.
24591 (grub_script_lexer_init): Refactored.
24592 * grub-core/script/yylex.l (yywrap): New function.
24593 (grub_lexer_resplit): New function.
24594 (grub_lexer_unput): New function.
24595 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24597 * tests/grub_script_echo1.in: Added few more testcases.
24599 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24601 * grub-core/kern/misc.c: Don't add abort alias in utils.
24602 Reported by: echoline.
24604 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24606 Add missing files into "make dist" tarball for other platforms.
24608 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24609 * conf/Makefile.common (dist_noinst_DATA): New variable.
24610 * conf/Makefile.extra-dist: Added missing make dist files.
24611 * grub-core/Makefile.core.def: Likewise.
24613 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24615 Compress grub_prefix.
24617 * grub-core/boot/i386/pc/lnxboot.S: Use
24618 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24619 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24620 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24621 GRUB_MACHINE_PREFIX_END. All users updated.
24622 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24623 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24625 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24626 * util/grub-mkimage.c (image_target_desc): Change data_end to
24627 prefix_end. All users updated.
24629 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24631 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24633 (grub_openbsd_boot): Likewise.
24634 (grub_netbsd_boot): Likewise.
24635 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24636 (grub_xnu_boot): Likewise.
24638 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24640 * configure.ac: Clean LIBS variable after tests.
24642 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24644 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24646 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24648 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24649 echo if libdevmapper will be used.
24651 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24653 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24654 constant for the same file.
24656 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24658 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24660 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24662 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24665 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24667 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24668 required by the boot protocol.
24670 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24671 ebp and edi members.
24672 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24673 state.ebp and state.edi.
24674 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24675 %ebp and %edi according to grub_relocator32_ebp and
24676 grub_relocator32_edi respectively.
24677 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24680 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24682 Add i386-pc-pxe image target.
24684 * util/grub-mkimage.c (image_target_desc): New enum value
24686 (image_targets): New target i386-pc-pxe.
24687 (generate_image): Handle i386-pc-pxe image.
24689 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24693 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24694 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24696 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24697 (grub_pxe_pxenv): Correct type.
24699 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24701 * NEWS: Document most of the important changes since 1.98.
24703 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24705 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24706 generated manual page) a little.
24708 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24710 * docs/grub.texi: Add myself as an author.
24712 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24714 * Makefile.util.def (libgrub.a): Add missing sunpc.
24715 Reported by: Seth Goldberg.
24717 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24719 Interrupt wrapping and code simplifications.
24721 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24722 x86_noieee1275 which are functionaly equivalent in this case.
24723 (grub-install): Make source on each platform explicit. Enable on
24725 * gentpl.py (x86_efi_pc): Removed group.
24726 (x86_noefi): Likewise.
24727 (i386_noefi): Likewise.
24728 (x86_noieee1275): Likewise.
24729 (i386_noieee1275): Likewise.
24730 (i386_noefi_noieee1275): Likewise.
24731 (i386_pc_qemu_coreboot): Likewise.
24732 (i386_coreboot_multiboot): Likewise.
24733 (i386_pc_coreboot_multiboot_qemu): Likewise.
24734 (x86_noefi_mips): Likewise.
24735 (noieee1275): Likewise.
24736 (ieee1275_mips): Likewise.
24737 (noemu_noieee1275): Likewise.
24740 (videoinkernel): Likewise.
24741 (videomodules): Likewise.
24742 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24743 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24744 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24745 include/grub/loader.h, include/grub/msdos_partition.h,
24746 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24747 include/grub/machine/console.h, include/grub/machine/vga.h,
24748 include/grub/machine/vbe.h, include/grub/machine/init.h,
24749 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24750 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24751 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24752 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24753 * grub-core/Makefile.core.def (kernel): Explicit the source for
24754 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24755 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24756 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24757 Use videoinkernel tag.
24758 (usb): Enable on all usb.
24759 (usbserial_common): Likewise.
24760 (usbserial_pl2303): Likewise.
24761 (usbserial_ftdi): Likewise.
24762 (uhci): Enable on all x86.
24763 (ohci): Enable on all pci.
24764 (cmostest): Enable on all CMOS.
24765 (acpi): Include commands/acpi.c on all platforms.
24766 (halt): Add relevant lib/*/halt.c.
24767 (hdparm): Enable on all pci.
24769 (usbtest): Enable on all usb.
24770 (ata): Enable on all pci.
24771 (ata_pthru): Likewise.
24772 (usbms): Enable on all usb.
24773 (usb_keyboard): Likewise.
24774 (font): Use tag videomodules.
24776 (datetime): Use tag cmos. Enable on all noemu.
24777 (mmap): Use tags common and x86.
24778 (gfxterm): Use tag videomodules.
24779 (bitmap): Likewise.
24780 (bitmap_scale): Likewise.
24781 (video_fb): Likewise.
24783 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24784 adjust padding accordingly. All users updated.
24785 (grub_ohci_transaction): Fix bad format specification.
24786 (GRUB_MOD_INIT): Add asserts for struct size.
24787 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24788 (grub_alloc_td): Likewise.
24789 (grub_free_queue): Likewise.
24790 (grub_uhci_transfer): Likewise.
24791 (grub_uhci_transaction): Fix bad format specification.
24792 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24793 (grub_usb_bulk_readwrite): Likewise.
24794 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24795 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24797 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24799 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24800 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24801 Transformed into C.
24802 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24803 Moved from here ...
24804 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24805 ... here. Transformed into C. Made static.
24806 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24807 Moved from here ...
24808 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24809 ... here. Transformed into C. Made static.
24810 * grub-core/kern/i386/pc/startup.S
24811 (grub_biosdisk_check_int13_extensions): Moved from here ...
24812 * grub-core/disk/i386/pc/biosdisk.c
24813 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24815 * grub-core/kern/i386/pc/startup.S
24816 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24817 * grub-core/disk/i386/pc/biosdisk.c
24818 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24819 Transformed into C. Made static.
24820 * grub-core/kern/i386/pc/startup.S
24821 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24822 * grub-core/disk/i386/pc/biosdisk.c
24823 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24824 Transformed into C. Made static.
24825 * grub-core/kern/i386/pc/startup.S
24826 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24827 * grub-core/disk/i386/pc/biosdisk.c
24828 (grub_biosdisk_get_diskinfo_standard): ... here.
24829 Transformed into C. Made static.
24830 * grub-core/kern/i386/pc/startup.S
24831 (grub_biosdisk_get_num_floppies): Moved from here ...
24832 * grub-core/disk/i386/pc/biosdisk.c
24833 (grub_biosdisk_get_num_floppies): ... here.
24834 Transformed into C. Made static.
24835 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24837 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24838 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24839 Transformed into C. Made static.
24840 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24841 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24842 Transformed into C. Made static.
24843 * grub-core/kern/i386/ieee1275/init.c: Removed.
24844 * grub-core/kern/i386/misc.S: Likewise.
24845 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24846 Splitted from here ...
24847 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24848 Transformed into C. Made static. All users updated.
24849 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24850 Transformed into C. Made static. All users updated.
24851 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24853 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24854 Transformed into C. Made static. All users updated.
24855 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24857 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24858 Transformed into C. Made static. All users updated.
24859 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24860 Removed (replaced by C version).
24861 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24863 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24864 Transformed into C. Made static.
24865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24868 ... here. Transformed into C.
24869 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24871 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24872 ... here. Transformed into C.
24873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24876 ... here. Transformed into C. Made static.
24877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24880 ... here. Transformed into C.
24881 * grub-core/kern/i386/pc/startup.S
24882 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24883 * grub-core/video/i386/pc/vbe.c
24884 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24888 ... here. Transformed into C.
24889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24892 ... here. Transformed into C.
24893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24896 ... here. Transformed into C.
24897 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24899 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24900 ... here. Transformed into C.
24901 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24903 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24904 ... here. Transformed into C. Made static.
24905 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24907 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24908 ... here. Transformed into C. Made static.
24909 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24911 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24912 ... here. Transformed into C. Made static.
24913 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24914 pxe_rm_entry as third argument.
24915 (grub_bios_interrupt): New function.
24916 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24917 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24918 of calling grub_stop.
24919 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24920 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24921 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24922 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24923 * grub-core/lib/i386/halt.c: Moved from here ...
24924 * grub-core/lib/i386/halt.c: ... here.
24925 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24926 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24927 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24929 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24930 * include/grub/i386/coreboot/init.h: Removed.
24931 * include/grub/i386/multiboot/init.h: Likewise.
24932 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24933 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24934 * include/grub/i386/pc/int.h: New file.
24935 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24936 (grub_pxe_scan): Removed.
24937 (grub_pxe_call): Update prototype.
24938 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24940 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24941 * include/grub/i386/qemu/init.h: Removed.
24942 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24944 (grub_halt): Likewise.
24945 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24946 (grub_reboot): Likewise.
24947 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24948 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24949 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24951 2010-08-30 Robert Millan <rmh@gnu.org>
24953 * NEWS: Document addition of ZFS support in `grub-install' and
24956 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24958 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24961 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24963 Remove leftover embedding of font objects.
24965 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24966 * util/grub-install.in (font): Removed.
24967 * util/grub-mkimage.c (generate_image): Remove font support. All users
24970 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24972 Remove leftover embedding of font objects.
24974 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24975 * util/grub-install.in (font): Removed.
24976 * util/grub-mkimage.c (generate_image): Remove font support. All users
24979 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24981 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24982 Reported by: Ian Turner
24984 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24986 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24987 timeout to avoid indefinite boot stalling.
24989 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24991 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24992 (grub_env_write_color_highlight): Likewise.
24994 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24996 * grub-core/normal/term.c (print_more): Return to normal and not
24997 to standard state after printing "---MORE---".
24999 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25001 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25002 Mask out the bit 0x80 since it has other meaning that specifiing color.
25004 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25006 New relocator. Allows for more kernel support and more straightforward
25009 * Makefile.am (BOOTTARGET): New variable.
25010 (QEMU32): Likewise.
25011 (linux.init.x86_64): New target.
25012 (linux.init.i386): Likewise.
25013 (multiboot.elf): Likewise.
25014 (kfreebsd.elf): Likewise.
25015 (kfreebsd.aout): Likewise.
25016 (pc-chainloader.elf): Likewise.
25017 (pc-chainloader.bin): Likewise.
25018 (ntldr.elf): Likewise.
25019 (ntldr.bin): Likewise.
25020 (multiboot2.elf): Likewise.
25021 (kfreebsd.init.x86_64): Likewise.
25022 (kfreebsd.init.i386): Likewise.
25023 (knetbsd.init.i386): Likewise.
25024 (kopenbsd.init.i386): Likewise.
25025 (knetbsd.init.x86_64): Likewise.
25026 (kopenbsd.init.x86_64): Likewise.
25027 (linux-initramfs.i386): Likewise.
25028 (linux-initramfs.x86_64): Likewise.
25029 (kfreebsd-mfsroot.i386.img): Likewise.
25030 (knetbsd.image.i386): Likewise.
25031 (kopenbsd.image.i386): Likewise.
25032 (kopenbsd.image.x86_64): Likewise.
25033 (knetbsd.miniroot-image.i386.img): Likewise.
25034 (kfreebsd-mfsroot.x86_64.img): Likewise.
25035 (knetbsd.image.x86_64): Likewise.
25036 (knetbsd.miniroot-image.x86_64.img): Likewise.
25037 (kfreebsd-mfsroot.i386.gz): Likewise.
25038 (bootcheck-kfreebsd-i386): Likewise.
25039 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25040 (bootcheck-kfreebsd-x86_64): Likewise.
25041 (knetbsd.miniroot-image.i386.gz): Likewise.
25042 (bootcheck-knetbsd-i386): Likewise.
25043 (bootcheck-kopenbsd-i386): Likewise.
25044 (bootcheck-kopenbsd-x86_64): Likewise.
25045 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25046 (bootcheck-knetbsd-x86_64): Likewise.
25047 (bootcheck-linux-i386): Likewise.
25048 (bootcheck-linux-x86_64): Likewise.
25049 (bootcheck-linux16-i386): Likewise.
25050 (bootcheck-linux16-x86_64): Likewise.
25051 (bootcheck-multiboot): Likewise.
25052 (bootcheck-multiboot2): Likewise.
25053 (bootcheck-kfreebsd-aout): Likewise.
25054 (bootcheck-pc-chainloader): Likewise.
25055 (bootcheck-ntldr): Likewise.
25056 (CLEANFILES): Add new targets.
25057 (BOOTCHECKS): New variable.
25058 (.PHONY): Add bootchecks.
25059 (SUCCESSFUL_BOOT_STRING): New variable.
25060 (BOOTCHECK_TIMEOUT): Likewise.
25061 (bootcheck): New target
25062 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25063 * configure.ac: Correct efiemu excuse.
25064 * docs/grub.texi (Supported kernels): New chapter.
25065 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25066 include/grub/mm_private.h. Simplify inclusion of
25067 include/grub/boot.h, include/grub/loader.h
25068 and include/grub/msdos_partition.h
25069 (KERNEL_HEADER_FILES) [i386_coreboot]:
25070 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25071 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25072 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25073 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25074 include/grub/machine/loader.h.
25075 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25076 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25078 (pci.mod): Enable on i386-multiboot.
25079 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25080 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25082 (relocator.mod): Rewritten.
25083 (aout.mod): Enable on all x86.
25084 (bsd.mod): Likewise.
25085 (ntldr.mod): New module.
25086 (linux.mod): Use loader/i386/linux.c on all x86.
25087 (xnu.mod): Enable on all x86.
25088 (vga_text.mod): disable on EFI and QEMU.
25089 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25090 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25091 * grub-core/efiemu/loadcore.c: Likewise.
25092 * grub-core/efiemu/main.c: Likewise.
25093 (grub_efiemu_exit_boot_services): Removed.
25094 (grub_efiemu_finish_boot_services): Likewise.
25095 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25097 * grub-core/efiemu/i386/nocfgtables.c: New file.
25098 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25099 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25100 (grub_efi_finish_boot_services): Moved from here ...
25101 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25102 Fille finish memory map and related data.
25103 (finish_mmap_buf): New variable.
25104 (grub_efi_uintn_t finish_mmap_size): Likewise.
25105 (grub_efi_uintn_t finish_key): Likewise.
25106 (grub_efi_uintn_t finish_desc_size): Likewise.
25107 (grub_efi_uint32_t finish_desc_version): Likewise.
25108 (grub_efi_is_finished): Likewise.
25109 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25111 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25112 (grub_elf64_phdr_iterate): Likewise.
25113 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25114 (grub_os_area_size): Likewise.
25115 (grub_machine_init): Don't reserve os area.
25116 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25117 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25118 * grub-core/kern/i386/loader.S: Removed.
25119 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25120 (grub_os_area_size): Likewise.
25121 (grub_machine_init): Don't reserve os area.
25122 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25123 Don't call grub_dl_unload_all.
25124 Don't include loader.S.
25125 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25126 Declare the memory after _end as available.
25127 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25128 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25129 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25130 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25131 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25132 * include/grub/mm_private.h (grub_mm_header): ... here.
25133 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25134 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25135 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25136 (grub_mm_region): ..here. Removed addr. Added pre_size.
25138 * grub-core/kern/mm.c (base): Renamed to ...
25139 (grub_mm_base): ... this. Made global.
25140 (grub_real_malloc): Alloc from end of region.
25141 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25142 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25143 * grub-core/kern/powerpc/cache_flush.S: ... here.
25144 * grub-core/lib/efi/relocator.c: New file.
25145 * grub-core/lib/i386/relocator.c: Rewritten.
25146 * grub-core/lib/i386/relocator16.S: New file.
25147 * grub-core/lib/i386/relocator32.S: Likewise.
25148 * grub-core/lib/i386/relocator64.S: Likewise.
25149 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25150 * grub-core/lib/i386/relocator_common.S: New file.
25151 * grub-core/lib/ieee1275/relocator.c: Likewise.
25152 * grub-core/lib/mips/relocator.c: Rewritten.
25153 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25154 stylistic adjustments.
25155 * grub-core/lib/powerpc/relocator.c: New file.
25156 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25157 * grub-core/lib/relocator.c: Rewritten.
25158 * grub-core/lib/x86_64/relocator_asm.S: New file.
25159 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25160 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25161 (bsd_tag): New struct.
25162 (tags): New variable.
25163 (tags_last): Likewise.
25164 (netbsd_module): New struct.
25165 (netbsd_mods): New variable.
25166 (netbsd_mods_last): Likewise.
25167 (openbsd_opts): New parameter "serial".
25168 (OPENBSD_SERIAL_ARG): New definition.
25169 (netbsd_opts): New parameter "serial".
25170 (NETBSD_SERIAL_ARG): New definition.
25171 (grub_freebsd_add_meta): Reorganised into ...
25172 (grub_bsd_add_meta): ...this. All users updated.
25173 (grub_freebsd_add_mmap): Reorganised into ...
25174 (generate_e820_mmap): ...this...
25175 (grub_bsd_add_mmap): ...and this. All users updated.
25176 (grub_freebsd_list_modules): Use tags.
25177 (grub_netbsd_add_meta_module): New function.
25178 (grub_netbsd_list_modules): Likewise.
25179 (grub_freebsd_boot): Use relocator and finish EFI.
25180 (grub_openbsd_boot): Likewise.
25181 (grub_netbsd_setup_video): New function.
25182 (grub_netbsd_add_modules): Likewise.
25183 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25185 (grub_bsd_unload): Unload tags.
25186 (grub_bsd_load_aout): Use relocator.
25187 (grub_bsd_elf32_size_hook): New function.
25188 (grub_bsd_elf32_hook): Use relocator.
25189 (grub_bsd_elf64_size_hook): New function.
25190 (grub_bsd_elf64_hook): Use relocator.
25191 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25192 (grub_bsd_load): Zero-out openbsd_ramdisk.
25193 (grub_bsd_load): Use relocator.
25194 (grub_cmd_openbsd): Support serial.
25195 (grub_cmd_netbsd): Support modules.
25196 (grub_cmd_freebsd_module): Use relocator.
25197 (grub_netbsd_module_load): New function.
25198 (grub_cmd_netbsd_module): Likewise.
25199 (grub_cmd_openbsd_ramdisk): Likewise.
25200 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25202 (GRUB_MOD_FINI): Unregister new commands.
25203 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25204 (grub_freebsd_load_elfmodule_obj): Use relocator.
25205 (grub_freebsd_load_elfmodule): Likewise.
25206 (grub_freebsd_load_elf_meta): Likewise.
25207 (grub_netbsd_load_elf_meta): New function.
25208 (grub_openbsd_find_ramdisk): Likewise.
25209 * grub-core/loader/i386/bsd_helper.S: Removed.
25210 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25211 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25212 * grub-core/loader/i386/efi/linux.c: Likewise.
25213 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25214 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25215 (DEFAULT_VIDEO_MODE): Likewise.
25216 (real_mode_target): New variable.
25217 (prot_mode_target): Likewise.
25218 (initrd_mem_target): Likewise.
25219 (relocator): Likewise.
25220 (efi_mmap_buf): Likewise.
25221 (efi_mmap_size): Likewise.
25222 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25223 (free_pages): Use relocator.
25224 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25225 (grub_linux_setup_video): Return error.
25226 (grub_linux_trampoline_start): Removed.
25227 (grub_linux_trampoline_end): Likewise.
25228 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25229 andd video parameters depending on firmware.
25230 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25231 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25232 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25233 (grub_cmd_initrd): Use relocator.
25234 * grub-core/loader/i386/linux_trampoline.S: Removed.
25235 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25236 (elf_sec_entsize): Likewise.
25237 (elf_sec_shstrndx): Likewise.
25238 (elf_sections): Likewise.
25239 (grub_multiboot_load): Use relocator.
25240 (grub_multiboot_get_mbi_size): Account for sections.
25241 (grub_multiboot_make_mbi): Use relocator and support sections.
25242 (grub_multiboot_add_elfsyms): New function.
25243 (grub_multiboot_free_mbi): Free sections.
25244 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25245 (grub_linux_real_target): Likewise.
25246 (grub_linux_real_chunk): Likewise.
25247 (grub_linux16_prot_size): Likewise.
25248 (grub_linux16_boot): Use relocator.
25249 (grub_linux_unload): Unload relocator.
25250 (grub_cmd_linux): Use relocator.
25251 (grub_cmd_initrd): Likewise.
25252 * grub-core/loader/i386/pc/ntldr.c: New file.
25253 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25254 Don't try to guess CPU frequency.
25255 (grub_xnu_set_video): Stretch bitmap.
25256 (grub_xnu_boot): Use relocator.
25257 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25258 (grub_linux_unload): Free relocator.
25259 (grub_linux_load32): Use relocator.
25260 (grub_linux_load64): Likewise.
25261 (grub_cmd_initrd): Likewise.
25262 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25263 (grub_multiboot_unload): Unload relocator.
25264 (grub_cmd_multiboot): Use relocator.
25265 (grub_cmd_module): Likewise.
25266 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25267 Use relocator and support sections.
25268 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25269 (elf_sec_entsize): Likewise.
25270 (elf_sec_shstrndx): Likewise.
25271 (elf_sections): Likewise.
25272 (grub_multiboot_load): Use relocator.
25273 (grub_multiboot_get_mbi_size): Account for sections.
25274 (grub_multiboot_make_mbi): Use relocator and support sections.
25275 (grub_multiboot_add_elfsyms): New function.
25276 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25277 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25278 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25279 Prototype changed. All users updated.
25280 (grub_xnu_align_heap): Simplified.
25281 (grub_xnu_writetree_toheap): Likewise.
25282 (grub_xnu_unload): Unload relocator.
25283 (grub_cmd_xnu_kernel): Use relocator.
25284 (grub_cmd_xnu_kernel64): Likewise.
25285 (grub_xnu_register_memory): Simplified.
25286 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25287 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25289 (grub_console_checkkey): Likewise.
25290 (grub_console_getkey): Likewise.
25291 (grub_console_getwh): Likewise.
25292 (grub_console_getxy): Likewise.
25293 (grub_console_gotoxy): Likewise.
25294 (grub_console_cls): Likewise.
25295 (grub_console_setcolorstate): Likewise.
25296 (grub_console_setcursor): Likewise.
25297 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25298 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25299 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25300 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25301 * grub-core/tests/boot/kernel-8086.S: Likewise.
25302 * grub-core/tests/boot/kernel-i386.S: Likewise.
25303 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25304 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25305 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25306 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25307 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25308 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25309 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25310 * grub-core/tests/boot/linux.cfg: Likewise.
25311 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25312 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25313 * grub-core/tests/boot/linux16.cfg: Likewise.
25314 * grub-core/tests/boot/multiboot.cfg: Likewise.
25315 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25316 * grub-core/tests/boot/ntldr.cfg: Likewise.
25317 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25318 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25319 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25321 * include/grub/dl.h (grub_dl_unload_all): Removed.
25322 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25323 (grub_efi_finish_boot_services): Change prototype.
25324 (grub_efi_is_finished): New variable.
25325 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25327 (grub_efiemu_finish_boot_services): Removed.
25328 (grub_machine_efiemu_init_tables): New prototype.
25329 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25330 (grub_elf64_phdr_iterate): Likewise.
25331 * include/grub/i386/bsd.h: Include relocator.h.
25332 (freebsd_tag_header): New struct.
25333 (grub_openbsd_bios_mmap): Removed.
25334 (grub_unix_real_boot): Removed.
25335 (grub_freebsd_load_elfmodule32): Changed prototype.
25336 (grub_freebsd_load_elfmodule_obj64): Likewise.
25337 (grub_freebsd_load_elf_meta32): Likewise.
25338 (grub_freebsd_load_elf_meta64): Likewise.
25339 (grub_freebsd_add_meta): Removed.
25340 (grub_netbsd_load_elf_meta32): New prototype.
25341 (grub_netbsd_load_elf_meta64): Likewise.
25342 (grub_bsd_add_meta): Likewise.
25343 (grub_openbsd_ramdisk_descriptor): New struct.
25344 (grub_openbsd_find_ramdisk32): New prototype.
25345 (grub_openbsd_find_ramdisk64): Likewise.
25346 * include/grub/i386/coreboot/loader.h: Removed.
25347 * include/grub/i386/efi/loader.h: Likewise.
25348 * include/grub/i386/ieee1275/loader.h: Likewise.
25349 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25351 * include/grub/i386/loader.h: Removed.
25352 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25354 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25355 (grub_phys_addr_t): New type.
25356 (grub_vtop): New inline function.
25357 (grub_map_memory): Likewise.
25358 (grub_unmap_memory): Likewise.
25359 * include/grub/i386/multiboot/loader.h: Removed.
25360 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25361 (NETBSD_BTINFO_CONSOLE): New definition.
25362 (NETBSD_BTINFO_SYMTAB): Likewise.
25363 (NETBSD_BTINFO_MODULES): Likewise.
25364 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25365 (grub_netbsd_bootinfo): New struct.
25366 (grub_netbsd_btinfo_common): Use explicit bitsize.
25367 (grub_netbsd_btinfo_mmap_entry): Removed.
25368 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25369 (grub_netbsd_btinfo_bootdisk): New struct.
25370 (grub_netbsd_btinfo_symtab): Likewise.
25371 (grub_netbsd_btinfo_serial): Likewise.
25372 (grub_netbsd_btinfo_modules): Likewise.
25373 (grub_netbsd_btinfo_framebuf): Likewise.
25374 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25375 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25377 (grub_openbsd_bootargs): Use explicit bitsize.
25378 (grub_openbsd_bootarg_console): New struct.
25379 (GRUB_OPENBSD_COM_MAJOR): New definition.
25380 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25381 * include/grub/i386/pc/efiemu.h: Removed.
25382 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25383 * include/grub/i386/qemu/loader.h: Removed.
25384 * include/grub/i386/relocator.h: Rewritten.
25385 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25386 * include/grub/mips/memory.h: New file.
25387 * include/grub/mips/multiboot.h: Rewritten.
25388 * include/grub/mips/relocator.h: Rewritten.
25389 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25390 (grub_vtop): New function.
25391 (grub_map_memory): Likewise.
25392 (grub_unmap_memory): Likewise.
25393 * include/grub/misc.h (ALIGN_DOWN): New definition.
25394 * include/grub/mm.h (grub_mm_check_real): New proto.
25395 (GRUB_MM_CHECK): New definition.
25396 * include/grub/mm_private.h: New file.
25397 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25398 (grub_multiboot_get_mbi_size): Removed.
25399 (grub_multiboot_make_mbi): Change prottype.
25400 (grub_multiboot_set_accepts_video): New proto.
25401 (grub_multiboot_add_elfsyms): Likewise.
25402 (grub_multiboot_payload_eip): New variable.
25403 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25405 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25407 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25408 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25409 * include/grub/powerpc/ieee1275/loader.h: Removed.
25410 * include/grub/powerpc/memory.h: New file.
25411 * include/grub/powerpc/relocator.h: Likewise.
25412 * include/grub/relocator.h: Likewise.
25413 * include/grub/relocator_private.h: Likewise.
25414 * include/grub/sparc64/ieee1275/loader.h: Removed.
25415 * include/grub/x86_64/memory.h: New file.
25416 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25417 (grub_xnu_heap_malloc): Likewise.
25418 (grub_xnu_heap_real_start): Removed.
25419 (grub_xnu_heap_start): Likewise.
25420 (grub_xnu_relocator): New variable.
25421 (grub_xnu_heap_target_start): Likewise.
25422 * tests/util/grub-shell.in: Support non-pc.
25423 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25425 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25427 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25429 (grub_bidi_logical_to_visual): Check that malloc succeded.
25430 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25432 (grub_xputs_normal): Likewise.
25434 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25436 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25439 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25441 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25443 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25445 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25447 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25449 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25452 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25454 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25456 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25458 * grub-core/normal/term.c (print_more): Fix a memory leak.
25459 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25460 (grub_xputs_normal): Likewise.
25462 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25464 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25465 the begining of the string
25467 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25469 * grub-core/script/script.c (grub_script_parse): Free parsed on
25472 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25474 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25477 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25479 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25482 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25484 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25485 (scroll_up): Fix a memory leak.
25487 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25489 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25492 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25494 Handle USB pendrives exposed as floppies.
25496 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25498 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25499 Check for partitions on all devices.
25501 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25503 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25504 (readkey): Likewise.
25506 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25508 Multiple variable names support to "export" command.
25510 * normal/context.c (grub_cmd_export): "export" command supports
25511 multiple variable names.
25513 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25515 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25516 --target=drive output to Mach device name.
25518 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25520 New Automake based build system for GRUB.
25522 * ABOUT-NLS: New file.
25523 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25524 in Makefile.util.def file.
25525 * Makefile.util.def: New file. Autogen build definitions file for
25527 * conf/Makefile.common: New file. Common variables for GRUB host
25528 utils and target modules.
25529 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25530 * docs/Makefile.am: New file. Automake file for docs.
25531 * gentpl.py: New file. Python script to generate Autogen
25533 * grub-core/Makefile.am: New file. GRUB target modules' rules
25534 that doesn't fit in Makefile.core.def file.
25535 * grub-core/Makefile.core.def: New file. Autogen build
25536 definitions file for GRUB target modules.
25537 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25538 specific setjmp.S file.
25539 * po/Makefile.am: New file.
25541 * .bzrignore: New ignores.
25542 * INSTALL: New requirements, without Ruby.
25543 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25544 * autogen.sh: Updated to invoke autogen as necessary.
25545 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25546 and defines for Automake conditionals.
25547 * geninit.sh: Refactoring.
25549 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25551 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25554 * include/grub/test.h: Fix functional test modules' naming.
25555 * grub-core/tests/example_functional_test.c: Fix test module name.
25557 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25558 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25559 * util/grub-editenv.c: Likewise.
25560 * util/grub-fstest.c: Likewise.
25561 * util/grub-mkdevicemap.c: Likewise.
25562 * util/grub-mkfont.c: Likewise.
25563 * util/grub-mkimage.c: Likewise.
25564 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25565 * util/grub-probe.c: Likewise.
25566 * util/grub-script-check.c: Likewise.
25567 * util/i386/pc/grub-setup.c: Likewise.
25568 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25570 * tests/util/grub-shell.in: Fix override directory path.
25571 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25572 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25574 * util/lvm.c: Update #includes.
25575 * util/raid.c: Likewise.
25576 * util/resolve.c: Likewise.
25577 * grub-core/bus/emu/pci.c: Likewise.
25578 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25579 * grub-core/lib/posix_wrap/string.h: Likewise.
25580 * grub-core/kern/emu/main.c: Likewise.
25582 * grub-core/gensymlist.sh: New file. Script for generating kernel
25584 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25586 * grub-core/gentrigtables.c: Fix unused variable warnings.
25588 * Makefile.in: Removed.
25589 * conf/any-emu.rmk: Removed.
25590 * conf/common.rmk: Removed.
25591 * conf/i386-coreboot.rmk: Removed.
25592 * conf/i386-efi.rmk: Removed.
25593 * conf/i386-ieee1275.rmk: Removed.
25594 * conf/i386-multiboot.rmk: Removed.
25595 * conf/i386-pc.rmk: Removed.
25596 * conf/i386-qemu.rmk: Removed.
25597 * conf/i386.rmk: Removed.
25598 * conf/mips-yeeloong.rmk: Removed.
25599 * conf/mips.rmk: Removed.
25600 * conf/powerpc-ieee1275.rmk: Removed.
25601 * conf/sparc64-ieee1275.rmk: Removed.
25602 * conf/tests.rmk: Removed.
25603 * conf/x86-efi.rmk: Removed.
25604 * conf/x86_64-efi.rmk: Removed.
25605 * gendistlist.sh: Removed.
25606 * geninitheader.sh: Removed.
25607 * genkernsyms.sh.in: Removed.
25608 * genmk.rb: Removed.
25609 * gensymlist.sh.in: Removed.
25610 * mkinstalldirs: Removed.
25612 * grub-core/boot: ... to here.
25614 * grub-core/bus: ... to here.
25615 * commands: Moved ...
25616 * grub-core/commands: ... to here.
25618 * grub-core/disk: ... to here.
25619 * efiemu: Moved ...
25620 * grub-core/efiemu: ... to here.
25622 * grub-core/font: ... to here.
25624 * grub-core/fs: ... to here.
25625 * gencmdlist.sh: Moved ...
25626 * grub-core/gencmdlist.sh: ... to here.
25627 * genemuinit.sh: Moved ...
25628 * grub-core/genemuinit.sh: ... to here.
25629 * genemuinitheader.sh: Moved ...
25630 * grub-core/genemuinitheader.sh: ... to here.
25631 * genfslist.sh: Moved ...
25632 * grub-core/genfslist.sh: ... to here.
25633 * genhandlerlist.sh: Moved ...
25634 * grub-core/genhandlerlist.sh: ... to here.
25635 * genmoddep.awk: Moved ...
25636 * grub-core/genmoddep.awk: ... to here.
25637 * genmodsrc.sh: Moved ...
25638 * grub-core/genmodsrc.sh: ... to here.
25639 * genpartmaplist.sh: Moved ...
25640 * grub-core/genpartmaplist.sh: ... to here.
25641 * genparttoollist.sh: Moved ...
25642 * grub-core/genparttoollist.sh: ... to here.
25643 * genterminallist.sh: Moved ...
25644 * grub-core/genterminallist.sh: ... to here.
25645 * gentrigtables.c: Moved ...
25646 * grub-core/gentrigtables.c: ... to here.
25647 * genvideolist.sh: Moved ...
25648 * grub-core/genvideolist.sh: ... to here.
25649 * gettext: Moved ...
25650 * grub-core/gettext: ... to here.
25651 * gfxmenu: Moved ...
25652 * grub-core/gfxmenu: ... to here.
25653 * gnulib: Moved ...
25654 * grub-core/gnulib: ... to here.
25656 * grub-core/hello: ... to here.
25658 * grub-core/hook: ... to here.
25660 * grub-core/io: ... to here.
25662 * grub-core/kern: ... to here.
25664 * grub-core/lib: ... to here.
25665 * loader: Moved ...
25666 * grub-core/loader: ... to here.
25668 * grub-core/mmap: ... to here.
25669 * normal: Moved ...
25670 * grub-core/normal: ... to here.
25671 * partmap: Moved ...
25672 * grub-core/partmap: ... to here.
25673 * parttool: Moved ...
25674 * grub-core/parttool: ... to here.
25675 * script: Moved ...
25676 * grub-core/script: ... to here.
25678 * grub-core/term: ... to here
25679 * tests/example_functional_test.c: Moved ...
25680 * grub-core/tests/example_functional_test.c: ... to here.
25681 * tests/lib/functional_test.c: Moved ...
25682 * grub-core/tests/lib/functional_test.c: ... to here.
25683 * tests/lib/test.c: Moved ...
25684 * grub-core/tests/lib/test.c: ... to here.
25686 * grub-core/video: ... to here.
25688 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25690 Replace --enable-grub-emu-modules with grub-emu-lite.
25692 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25695 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25696 * kern/emu/full.c: New file. For grub-emu specific initialization.
25697 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25698 * kern/emu/main.c: Call initialization function grub_emu_init.
25700 * Makefile.in: Include grub-emu-lite in install.
25701 * commands/parttool.c: Use grub_no_autoload to differentiate
25702 between grub-emu and grub-emu-lite.
25703 * include/grub/misc.h: New variable grub_no_autoload.
25705 * conf/any-emu.rmk: New rules for grub-emu-lite.
25706 * configure.ac: Remove --enable-grub-emu-modules.
25707 * genmk.rb: Cleanup unnecessary rules.
25708 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25710 * normal/main.c: Don't load list files on grub-emu-lite.
25711 * util/misc.c (grub_arch_sync_caches): Removed.
25713 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25715 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25716 grub-mkimage rather than grub-mkelfimage.
25717 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25719 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25721 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25722 a key after CapsLock or NumLock. It's just a qemu bug.
25724 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25726 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25727 needed by libusb wrapper.
25729 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25731 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25733 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25735 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25736 --nounzip is passed.
25738 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25740 USB hotunplugging and USB serial support.
25742 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25743 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25744 (grub_uhci_transfer): Respect timeout and set *actual.
25745 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25746 non-standard length.
25747 (grub_usb_device_attach): Autoload modules.
25748 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25749 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25750 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25752 (grub_usb_add_hub): Fill nports and children.
25753 (attach_root_port): Receive hub instead of controller.
25754 All users updated. Fill hub->devices.
25755 (grub_usb_root_hub): Allocate hub->devices.
25756 (detach_device): New function.
25757 (poll_nonroot_hub): Fill children and detach devices.
25758 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25759 actual arguments. All users updated.
25760 (grub_usb_bulk_read_extended): New function.
25761 * bus/usb/serial/common.c: New file.
25762 * bus/usb/serial/ftdi.c: Likewise.
25763 * bus/usb/serial/pl2303.c: Likewise.
25764 * commands/terminal.c (handle_command): Support wildcard.
25765 * commands/usbtest.c: Output "Unknown" instead of empty string.
25766 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25767 (usbserial_common_mod_SOURCES): New variable.
25768 (usbserial_common_mod_CFLAGS): Likewise.
25769 (usbserial_common_mod_LDFLAGS): Likewise.
25770 (pkglib_MODULES): Add usbserial_pl2303.mod.
25771 (usbserial_pl2303_mod_SOURCES): New variable.
25772 (usbserial_pl2303_mod_CFLAGS): Likewise.
25773 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25774 (pkglib_MODULES): Add usbserial_ftdi.mod.
25775 (usbserial_ftdi_mod_SOURCES): New variable.
25776 (usbserial_ftdi_mod_CFLAGS): Likewise.
25777 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25778 (pkglib_MODULES): Add serial.mod.
25779 (serial_mod_SOURCES): New variable.
25780 (serial_mod_CFLAGS): Likewise.
25781 (serial_mod_LDFLAGS): Likewise.
25782 * conf/i386-pc.rmk: Likewise.
25783 * conf/mips-yeeloong.rmk: Likewise.
25784 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25785 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25786 * disk/usbms.c (first_available_slot): New variable.
25787 (grub_usbms_attach): Don't reuse free slots due to potential cache
25789 * include/grub/serial.h: Moved to ..
25790 * include/grub/ns8250.h: ...this.
25791 * include/grub/serial.h: New file.
25792 * include/grub/term.h (grub_term_poll_usb): New variable.
25793 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25794 readkey. All users updated.
25795 (grub_terminfo_output_state): Pass term to put.
25796 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25797 (grub_usb_controller_dev): Add timeout and actual arguments to
25798 transfer. All users updated.
25799 (grub_usb_interface): New field detach_data.
25800 (grub_usb_device): New fields children and nports.
25801 (grub_usb_ep_type_t): New type.
25802 (grub_usb_get_ep_type): New function.
25803 (grub_usb_bulk_read_extended): Likewise.
25804 * include/grub/usbdesc.h (grub_usb_desc): New type.
25805 * include/grub/usbserial.h: New file.
25806 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25807 * kern/term.c (grub_term_poll_usb): New variable.
25808 (grub_getkey): Call grub_term_poll_usb if set.
25809 (grub_checkkey): Likewise.
25810 (grub_getkeystatus): Likewise.
25811 * term/serial.c: Moved controller-specific parts to ...
25812 * term/ns8250.c: ... here.
25813 * term/serial.c: Mostly rewritten.
25814 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25817 2010-08-20 Robert Millan <rmh@gnu.org>
25819 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25820 a separate module and maybe other interesting combinations.
25822 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25823 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25824 (kfreebsd_entry): Add generic filesystem module load routine.
25825 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25827 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25829 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25830 "numcenter" (I misunderstood the purpose of this entry).
25831 * docs/grub.texi (sendkey): Likewise.
25833 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25835 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25836 status flag options; simply omitting the option is equivalent and
25837 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25838 (keysym_table): Rename "num5numlock" to "numlock".
25839 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25840 can uniformly say that only the last of multiple `sendkey'
25841 invocations has any effect.
25842 * docs/grub.texi (sendkey): New section.
25844 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25846 * commands/i386/pc/sendkey.c (options): Fix three typos.
25848 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25850 Implement sendkey support.
25852 * commands/i386/pc/sendkey.c: New file.
25853 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25854 (sendkey_mod_SOURCES): New variable.
25855 (sendkey_mod_CFLAGS): Likewise.
25856 (sendkey_mod_LDFLAGS): Likewise.
25858 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25860 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25861 fix warnings from Autoconf.
25863 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25865 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25866 to avoid false positives with some assemblers that output things
25867 like "someprefix_func" as part of their output.
25869 2010-08-15 Robert Millan <rmh@gnu.org>
25871 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25873 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25874 grub_get_libzfs_handle() errors.
25876 2010-08-14 Robert Millan <rmh@gnu.org>
25878 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25879 filesystem is not ZFS.
25881 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25883 Fix for misspelled color names defaulting to black/black (bug
25884 reported by Doug Nazar)
25886 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25887 status to prototype.
25888 * normal/color.c (grub_parse_color_name_pair): Return failure
25890 (grub_env_write_color_normal): Ignore bad color names.
25891 (grub_env_write_color_highlight): Likewise.
25892 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25894 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25896 "shift" command support to GRUB script.
25898 * include/grub/script_sh.h (grub_script_shift): New prototype.
25899 * script/execute.c (grub_script_shift): New function.
25900 * script/main.c (grub_script_init): Register shift command.
25901 (grub_script_fini): Unregister shift command.
25902 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25904 * tests/grub_script_shift.in: New testcase.
25905 * conf/tests.rmk: Rules for new testcase.
25907 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25909 "continue" command support to GRUB script.
25911 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25912 (grub_script_break): Continue support.
25913 * script/main.c (grub_script_init): Register continue command.
25914 (grub_script_fini): Unregister continue command.
25916 * tests/grub_script_continue.in: New testcase.
25917 * conf/tests.rmk: Rules for new testcase.
25919 2010-08-12 BVK Chaitanya <bvk@dbook>
25921 "break" command support to GRUB script.
25923 * conf/common.rmk: Rule updates to grub-script-check.
25924 * include/grub/misc.h (grub_min): New function.
25925 * include/grub/script_sh.h (grub_script_init): New prototype.
25926 (grub_script_fini): New prototype.
25927 (grub_script_break): New prototype.
25928 * script/main.c (grub_script_init): New function.
25929 (grub_script_fini): New function.
25930 * script/execute.c (grub_script_break): New function.
25931 * normal/main.c: Calls to grub_script_{init,fini}.
25932 * util/grub-script-check.c (grub_script_break): New function.
25934 * tests/grub_script_break.in: New testcase.
25935 * conf/tests.rmk: Rules for new test case.
25937 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25939 Function parameters support to GRUB script.
25941 * script/yylex.l (VARIABLE): Regular expression update.
25942 * script/function.c (grub_script_function_call): Moved ...
25943 * script/execute.c (grub_script_function_call): ... to here.
25944 (grub_script_execute_arglist_to_argv): Removed.
25945 (grub_script_arglist_to_argv): New function.
25946 * script/argv.c: New file.
25947 (grub_script_argv_free): New function.
25948 (grub_script_argv_next): Likewise.
25949 (grub_script_argv_append): Likewise.
25950 (grub_script_argv_split_append): Likewise.
25951 * include/grub/script_sh.h (grub_script_argv): New struct.
25952 (grub_script_argv_free): New function.
25953 (grub_script_argv_next): Likewise.
25954 (grub_script_argv_append): Likewise.
25955 (grub_script_argv_split_append): Likewise.
25957 * conf/common.rmk (normal.mod): New source script/argv.c.
25959 * tests/grub_script_echo1.in: More tests.
25960 * tests/grub_script_vars1.in: Likewise.
25961 * tests/grub_script_functions.in: New test case.
25962 * conf/tests.rmk: Rules for new testcase.
25964 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25966 Remove grub_script_cmdblock struct.
25968 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25969 * script/parser.y: Likewise.
25970 * script/execute.c: Rename cmdblock suffix to cmdlist.
25971 * script/script.c: Likewise.
25972 * util/grub-script-check.c: Likewise.
25974 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25976 * .bzrignore: add grub-macho2img
25978 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25980 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25982 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25984 Remove the dump of sm712 initialisation sequence.
25986 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25987 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25988 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25989 (GRUB_VGA_CR_*): Added many registers.
25990 (GRUB_VGA_SR_*): Likewise.
25991 (GRUB_VGA_GR_*): Likewise.
25992 (grub_vga_write_arx): New function.
25993 (grub_video_hw_config): New struct.
25994 (grub_vga_set_geometry): New function.
25995 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25996 GRUB_PCI_CLASS_SUBCLASS_VGA.
25997 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25998 * video/sm712.c (grub_sm712_write_reg): New function
25999 (grub_sm712_read_reg): Likewise.
26000 (grub_sm712_sr_write): Likewise.
26001 (grub_sm712_gr_write): Likewise.
26002 (grub_sm712_cr_write): Likewise.
26003 (grub_sm712_write_arx): Likewise.
26004 (grub_sm712_cr_shadow_write): Likewise.
26005 (grub_sm712_write_dda_lookup): Likewise.
26006 (grub_video_sm712_setup): Initialise the video rather then
26007 blindly replay the dump.
26008 (main) [TEST]: Add a routine to be able to compile as standalone for
26010 * video/sm712_init.c (sm712_init): Removed.
26011 (sm712_sr_seq1): New array.
26012 (sm712_sr_seq2): Likewise.
26014 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26016 * include/grub/vga.h: Add missing grub/pci.h include.
26018 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26020 * util/grub-macho2img.c (main): fix typo
26022 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26024 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26025 (grub_vga_gr_read): Likewise.
26026 (grub_vga_cr_write): Likewise.
26027 (grub_vga_cr_read): Likewise.
26028 (grub_vga_sr_write): Likewise.
26029 (grub_vga_sr_read): Likewise.
26030 (grub_vga_palette_read): Likewise.
26031 (grub_vga_palette_write): Likewise.
26032 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26033 (grub_sm712_sr_read): New function.
26034 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26035 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26037 2010-08-09 Robert Millan <rmh@gnu.org>
26039 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26040 out unused variables on non-ZFS build.
26042 2010-08-08 Robert Millan <rmh@gnu.org>
26044 Fix path generation for sub-filesystems in ZFS.
26046 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26049 2010-08-08 Robert Millan <rmh@gnu.org>
26051 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26053 2010-08-08 Robert Millan <rmh@gnu.org>
26055 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26056 exist, issue a proper error message (rely on `ls' for translated
26059 2010-08-08 Robert Millan <rmh@gnu.org>
26061 Fix grub-probe invocation.
26063 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26065 2010-08-04 Robert Millan <rmh@gnu.org>
26067 * configure.ac: Remove checks for getfsstat() and getmntany().
26068 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26069 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26070 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26071 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26072 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26074 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26075 via find_mount_point_from_dir() and getfsstat() / getmntany().
26077 2010-08-04 Robert Millan <rmh@gnu.org>
26079 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26080 (grub_find_zpool_from_mount_point): Merge into ...
26081 (grub_find_zpool_from_dir): ... this.
26082 * kern/emu/misc.c: Likewise.
26085 (grub_make_system_path_relative_to_its_root): Replace
26086 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26087 with grub_find_zpool_from_dir().
26088 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26090 2010-08-04 Robert Millan <rmh@gnu.org>
26092 Support OpenSolaris in ZFS device resolution.
26094 * configure.ac: Check for getmntany().
26095 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26096 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26099 2010-08-03 Robert Millan <rmh@gnu.org>
26101 Fix grub-emu build.
26103 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26104 * include/grub/emu/misc.h: ... here.
26106 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26107 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26109 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26110 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26111 (grub_get_libzfs_handle): Move to ...
26112 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26113 (grub_get_libzfs_handle): ... here.
26115 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26117 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26118 as command name case.
26120 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26122 * disk/raid.c (insert_array): Select unique numbers for named arrays
26123 as well, for use as keys in the disk cache.
26125 2010-08-01 Robert Millan <rmh@gnu.org>
26127 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26128 kFreeBSD device name, except on ZFS where the filesystem label is
26130 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26131 `/boot/zfs/zpool.cache'.
26132 Set mountfrom kernel variable using ${kfreebsd_device}.
26134 2010-08-01 Robert Millan <rmh@gnu.org>
26136 Make it even harder to use uninitialized `libzfs_handle' (and
26137 make the interface a bit simpler).
26139 * include/grub/util/misc.h (grub_util_init_libzfs)
26140 (libzfs_handle): Remove.
26141 (grub_get_libzfs_handle): New prototype.
26143 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26145 (grub_util_init_libzfs): Remove.
26146 (grub_get_libzfs_handle): New function.
26148 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26149 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26150 accessing `libzfs_handle' directly.
26152 2010-08-01 Robert Millan <rmh@gnu.org>
26154 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26155 (grub_find_zpool_from_mount_point): New function prototypes.
26157 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26158 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26160 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26161 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26162 `static' attribute.
26164 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26165 finding zpool from mount point into ...
26166 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26168 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26169 requested path is part of a ZFS pool, use
26170 grub_find_zpool_from_mount_point() to detect its filesystem name,
26171 and generate a path with `/fsname@path' syntax.
26173 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26175 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26176 (void) rather than () so that this is a proper prototype.
26178 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26180 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26182 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26184 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26185 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26187 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26189 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26191 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26193 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26195 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26197 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26198 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26199 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26200 disable gfxpayload.
26201 (Shell-like scripting): Add real content.
26202 (Serial terminal): Suggest `terminal_input serial; terminal_output
26203 serial' rather than putting the two commands on separate lines,
26204 since console input will be inoperative after the first command.
26205 (menuentry): Document --class, --users, and --hotkey options.
26206 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26207 Vladimir Serbinenko).
26209 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26210 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26212 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26214 2010-08-01 Robert Millan <rmh@gnu.org>
26216 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26217 (grub_find_zpool_from_mount_point): New function prototypes.
26219 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26220 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26222 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26223 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26224 `static' attribute.
26226 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26227 finding zpool from mount point into ...
26228 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26230 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26231 requested path is part of a ZFS pool, use
26232 grub_find_zpool_from_mount_point() to detect its filesystem name,
26233 and generate a path with `/fsname@path' syntax.
26235 2010-08-01 Robert Millan <rmh@gnu.org>
26237 Prevent accidental use of uninitialized libzfs_handle.
26239 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26240 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26241 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26243 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26245 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26246 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26248 2010-08-01 Robert Millan <rmh@gnu.org>
26250 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26252 2010-07-31 Robert Millan <rmh@gnu.org>
26254 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26256 2010-07-31 Robert Millan <rmh@gnu.org>
26258 * kern/emu/misc.c: Add missing license header.
26260 2010-07-31 Robert Millan <rmh@gnu.org>
26262 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26264 * include/grub/util/libnvpair.h: Include `<config.h>'.
26265 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26266 declaring libnvpair prototypes ourselves.
26267 * include/grub/util/libzfs.h: Include `<config.h>'.
26268 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26269 declaring libzfs prototypes ourselves.
26271 (libzfs_handle): Moved to ...
26272 * include/grub/util/misc.h (libzfs_handle): ... here.
26273 Include `<grub/util/libzfs.h>'.
26275 2010-07-30 Robert Millan <rmh@gnu.org>
26277 * include/grub/emu/misc.h: Add missing license header.
26279 2010-07-30 Robert Millan <rmh@gnu.org>
26281 Enable `grub-probe -t device' resolution on ZFS.
26283 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26284 * include/grub/util/libnvpair.h: New file.
26285 * include/grub/util/libzfs.h: New file.
26287 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26288 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26289 `<grub/util/libnvpair.h>'.
26290 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26292 (find_mount_point_from_dir): New static function.
26293 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26295 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26296 find_root_device_from_libzfs() before ressorting to find_root_device().
26298 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26300 * util/misc.c: Include `<grub/util/libzfs.h>'.
26301 (grub_util_init_libzfs): New function.
26302 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26303 [HAVE_LIBZFS] (fini_libzfs): New static function.
26304 (grub_util_init_libzfs): New function.
26305 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26307 2010-07-30 Robert Millan <rmh@gnu.org>
26309 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26310 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26311 `warn_unused_result' attribute.
26312 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26313 (grub_xasprintf, grub_xvasprintf): Likewise.
26314 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26316 2010-07-29 Robert Millan <rmh@gnu.org>
26318 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26319 (probe): Handle `PRINT_FS_LABEL'.
26320 (main): Handle `-t fs_label'.
26322 2010-07-29 Robert Millan <rmh@gnu.org>
26324 * configure.ac: Remove grub-mkisofs checks.
26326 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26328 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26329 Reported by: Lennart Sorensen.
26331 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26333 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26334 prior to terminal_input/terminal_output separation. It's been over 1.5
26335 years and those versions weren't widely deployed.
26337 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26339 * disk/raid.c (insert_array): Don't count named arrays when looking
26340 for unused array numbers.
26341 Reported and tested by: Michael Guntsche.
26343 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26345 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26346 implementation of this so that grub-emu links again, with a note
26347 that this should support hotplugging in the future.
26349 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26351 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26353 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26355 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26357 (grub_loopback_close): Remove empty function.
26358 (grub_loopback_dev): Remove close method.
26360 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26362 Disable EFI cursor when the EFI console becomes inactive.
26364 * term/efi/console.c (grub_efi_console_init): New function.
26365 (grub_efi_console_fini): New function.
26366 (grub_console_term_output): Register init and fini methods.
26368 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26370 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26373 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26375 * disk/loopback.c (grub_loopback): Replace filename with file.
26376 (delete_loopback): Handle new semantics.
26377 (grub_cmd_loopback): Likewise.
26378 (grub_loopback_iterate): Likewise.
26379 (grub_loopback_close): Likewise.
26381 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26383 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26385 Reported by: Tito Keitel.
26387 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26389 * docs/grub.texi (Naming convention): Document new naming convention.
26391 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26392 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26394 Generate device.map in something closer to the old ordering.
26396 * util/deviceiter.c (struct device): New declaration.
26397 (compare_file_names): Rename to ...
26398 (compare_devices): ... this. Sort by kernel name in preference to
26399 the stable by-id name, but keep the latter as a fallback comparison.
26400 Update header comment.
26401 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26402 of `struct device' rather than of plain file names.
26404 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26406 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26409 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26411 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26413 (setv1table): Likewise.
26415 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26417 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26418 removing the homehost if present.
26419 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26420 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26421 removing the homehost if present.
26422 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26424 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26426 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26427 parameter. Set its pointer target to 0.
26428 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26429 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26430 `data_offset' value from the superblock for 1.x metadata.
26431 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26432 data on the device.
26433 (insert_array): Record the start sector of data on the device.
26434 (grub_raid_register): Pass start_sector parameters to
26435 grub_raid_list->detect and insert_array.
26436 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26438 (struct grub_raid): Add start_sector parameter to `detect'.
26440 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26441 __attribute__ ((packed)), leaving a comment.
26442 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26443 (grub_mdraid_detect_09): ... here and ...
26444 (grub_mdraid_detect_1x): ... here.
26446 2010-07-20 Peter Henn <peter.henn@web.de>
26448 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26449 chunk size and disk size, which are already given as sector counts
26450 as distinct from the 0.90 units. Fetch the correct device number
26451 from the role table instead of using the table index.
26453 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26455 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26456 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26457 (WriteMostly1): New macro.
26458 Set array->name to NULL for metadata format 0.90. Add support for
26459 metadata 1.x. Fix some comments.
26460 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26462 * util/getroot.c (grub_util_get_grub_dev): Add support for
26463 /dev/md/name style devices.
26465 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26467 * .bzrignore: Ignore 20_linux_xen.
26469 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26471 * util/import_unicode.py: Remove unnecessary imports.
26473 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26475 Hotplugging and USB hub support.
26477 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26478 (grub_ohci): Likewise.
26479 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26480 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26481 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26482 (GRUB_OHCI_CTRL_EDS): Likewise.
26483 (GRUB_OHCI_BULK_EDS): Likewise.
26484 (GRUB_OHCI_TDS): Likewise.
26485 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26486 (grub_ohci_ed_phys2virt): New function.
26487 (grub_ohci_virt_to_phys): Likewise.
26488 (grub_ohci_td_phys2virt): Likewise.
26489 (grub_ohci_td_virt2phys): Likewise.
26490 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26492 (grub_ohci_find_ed): New function.
26493 (grub_ohci_alloc_td): Likewise.
26494 (grub_ohci_free_td): Likewise.
26495 (grub_ohci_free_tds): Likewise.
26496 (grub_ohci_transfer): Use previously allocated memory.
26497 (grub_ohci_portstatus): Reset status changed bit.
26498 (grub_ohci_detect_dev): Supply status changed.
26499 (grub_ohci_fini_hw): Free memory.
26500 (grub_ohci_restore_hw): Reallocate memory.
26501 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26502 Reset status change.
26503 (grub_uhci_detect_dev): Supply status_change.
26504 * bus/usb/usb.c (attach_hooks): New var.
26505 (grub_usb_device_attach): New function.
26506 (grub_usb_register_attach_hook_class): Likewise.
26507 (grub_usb_unregister_attach_hook_class): Likewise.
26508 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26509 (grub_usb_add_hub): Reset connection changed bit.
26510 (attach_root_port): New function.
26511 (grub_usb_root_hub): Likewise.
26512 (poll_nonroot_hub): Likewise.
26513 (grub_usb_poll_devices): Likewise.
26514 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26515 * disk/usbms.c (grub_usbms_open): Use device hooks.
26516 (grub_usbms_iterate) :Poll devices.
26517 (grub_usbms_finddevs): Split into ...
26518 (grub_usbms_attach): ... this ...
26519 (grub_usbms_attach): ... and this.
26520 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26522 (grub_usb_interface): New fields attached and detach_hook.
26523 (grub_usb_attach_hook_class): New type.
26524 (grub_usb_attach_desc): New struct.
26525 (grub_usb_register_attach_hook_class): New function.
26526 (grub_usb_unregister_attach_hook_class): Likewise.
26527 (grub_usb_poll_devices): Likewise.
26528 (grub_usb_device_attach): Likewise.
26529 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26530 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26532 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26534 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26535 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26536 delta determination style. Works with most NetBSD partitions too.
26538 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26540 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26541 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26543 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26545 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26547 2010-07-14 Anton Blanchard <anton@samba.org>
26549 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26552 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26554 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26556 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26558 * kern/partition.c (grub_partition_check_containment): New function to
26559 check that a partition is physically contained in a parent. Since
26560 offsets are relative (and non-negative), this reduces to checking that
26561 the partition ends before its parent.
26562 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26563 (grub_partition_iterate): Likewise.
26564 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26566 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26567 partitions that start before their parent, and add debug printfs.
26569 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26571 * Makefile.in (.SUFFIX): Spell correctly, as ...
26572 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26573 bare module name without `.mod', e.g. `test') tried to invoke a
26576 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26578 * README: Point to the Info manual.
26580 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26582 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26583 2nd superblock position from partition size.
26585 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26587 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26588 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26589 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26592 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26594 Restructure SCSI .id handling.
26595 Reported and tested by: Aleš Nesrsta.
26597 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26598 (grub_atapi_dev): Changed .name to "ata". New field .id.
26599 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26600 (grub_usbms_dev): New field .id.
26601 * disk/scsi.c (grub_scsi_iterate): Generate name.
26602 (grub_scsi_open): Parse name.
26603 * include/grub/scsi.h (grub_make_scsi_id): New function.
26604 (grub_scsi_dev): Change iterate and open to number instead of naming
26605 busses. All users updated.
26606 (grub_scsi): Remove name. Add .bus.
26608 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26610 * commands/help.c (grub_cmd_help): Fix a typo.
26612 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26614 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26615 Reported and tested by: Colin Watson.
26617 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26619 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26622 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26624 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26626 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26628 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26631 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26633 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26634 and disk/raid6_recover.c.
26635 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26636 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26638 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26640 * term/gfxterm.c (repaint_schedulded): Rename to ...
26641 (repaint_scheduled): ... this. Update all callers.
26642 (repaint_was_schedulded): Rename to ...
26643 (repaint_was_scheduled): ... this. Update all callers.
26645 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26647 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26648 which we expect to be handled by upper layers.
26650 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26652 * bus/usb/usbhub.c: #include time.h header.
26654 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26656 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26657 entry_name also for entries without stat blocks (e.g. ".."); fixes
26658 corruption of the first entry in a directory.
26660 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26662 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26663 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26664 doesn't work otherwise.
26666 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26668 * docs/grub.texi (Features): Update list of supported file systems.
26669 (GNU/Linux): Update for GRUB 2.
26670 (Serial terminal): Remove mention of --disable-serial, which was a
26671 GRUB Legacy configure option. Update instructions to use
26672 `terminal_input' and `terminal_output' rather than `terminal'.
26673 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26674 configuration' and `Installing GRUB using grub-install'.
26675 (Menu entry editor): Update for GRUB 2.
26676 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26677 Document new -a, -u, and -v options.
26678 (initrd): New section.
26679 (initrd16): New section.
26680 (linux): New section.
26681 (linux16): New section.
26682 (search): The `var' argument to `--set' is optional.
26683 (GRUB only offers a rescue shell): Go into a little more detail on
26686 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26688 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26690 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26692 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26693 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26695 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26697 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26698 install_prefix, in line with install_dos_part and install_bsd_part.
26699 Add new prefix variable, which is copied to install_prefix after
26700 comparing core.img in memory with the one read from disk in the
26701 no-embedding case, and use that rather than overwriting
26702 install_prefix immediately when installing to a partition.
26703 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26706 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26708 * configure.ac: Avoid == in test command, it's not portable.
26709 * util/grub.d/30_os-prober.in: Likewise.
26711 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26713 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26715 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26717 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26718 multiple (top-level) partmaps.
26720 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26722 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26723 Reported by: Tino Keitel.
26725 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26727 Bidi and diacritics support.
26729 * Makefile.in (widthspec.bin): New target.
26730 (widthspec.h): Likewise.
26731 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26732 * autogen.sh: Generate unidata.c.
26733 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26734 * commands/ls.c (grub_ls_list_devices): Likewise.
26735 (grub_ls_list_files): Likewise.
26736 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26737 (grub_mini_cmd_lsmod): Likewise.
26738 * commands/read.c: Likewise.
26739 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26740 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26741 * lib/arg.c (grub_arg_show_help): Likewise.
26742 * lib/crypto.c (grub_password_get): Likewise.
26743 * normal/auth.c (grub_username_get): Likewise.
26744 * normal/misc.c (grub_normal_print_device_info): Likewise.
26745 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26746 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26747 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26748 (normal/charset.c_DEPENDENCIES): New variable.
26749 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26750 (pkglib_MODULES): Remove charset.mod.
26751 (charset_mod_SOURCES): Removed.
26752 (charset_mod_CFLAGS): Likewise.
26753 (charset_mod_LDFLAGS): Likewise.
26754 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26755 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26757 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26758 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26759 (kernel_img_HEADERS): Add terminfo.h.
26760 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26761 Fill ->font. Reverse ascii bitmaps.
26762 (grub_font_get_xheight): New function.
26763 * font/font.c (grub_font_get_string_width): Moved from here ...
26764 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26765 * font/font.c (grub_font_draw_string): Moved from here ...
26766 * gfxmenu/font.c (grub_font_draw_string): ... here.
26767 * font/font.c (grub_font_dup_glyph): New function.
26768 (grub_font_blit_glyph): Likewise.
26769 (grub_font_blit_glyph_mirror): Likewise.
26770 (blit_comb): Likewise.
26771 (grub_font_construct_dry_run): Likewise.
26772 (grub_font_get_constructed_device_width): Likewise.
26773 (grub_font_construct_glyph): Likewise.
26774 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26775 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26776 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26777 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26778 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26779 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26780 (grub_font_get_xheight): New proto.
26781 (grub_font_get_constructed_device_width): Likewise.
26782 (grub_font_construct_glyph): Likewise.
26783 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26784 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26785 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26786 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26787 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26788 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26789 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26790 (grub_console_getcharwidth): Likewise.
26791 * include/grub/misc.h (grub_xputs): New proto.
26792 (grub_puts): Inlined.
26793 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26794 (grub_normal_get_line_counter): Removed.
26795 (grub_install_newline_hook): Likewise.
26796 (grub_normal_get_char_counter): New proto.
26797 (grub_normal_reset_more): Likewise.
26798 (grub_xputs_normal): Likewise.
26799 * include/grub/powerpc/ieee1275/console.h: Removed.
26800 * include/grub/sparc64/ieee1275/console.h: Likewise.
26801 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26802 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26803 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26804 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26805 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26806 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26807 (grub_term_input): Pass reference to self. All users updated.
26808 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26809 Pass reference to self. New fields normal_color, highlight_color and
26810 data. All users updated.
26811 (grub_putchar): Removed.
26812 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26813 (grub_unicode_estimate_width): New function.
26814 (grub_term_getcharwidth): Add defaults.
26815 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26816 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26817 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26818 (grub_cls): Remove EXPORT_FUNC.
26819 (grub_setcolorstate): Inline.
26820 (grub_newline_hook): Removed.
26821 * include/grub/terminfo.h: Rewritten. All users updated.
26822 * include/grub/unicode.h: New file.
26823 * include/grub/video.h (grub_video_signed_rect): New type.
26824 * kern/emu/console.c (grub_console_highlight_color): Removed.
26825 (grub_console_normal_color): Likewise.
26826 (grub_console_standard_color): Made static.
26827 (grub_ncurses_putchar): Remove mapping.
26828 (grub_ncurses_getcharwidth): Removed.
26829 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26830 (grub_ncurses_setcolor): Removed.
26831 (grub_ncurses_getcolor): Likewise.
26832 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26833 (grub_console_putchar): ... this.
26834 (grub_console_putchar): Handle argument difference.
26835 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26836 console_init_early and console_init_lately.
26837 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26838 * kern/misc.c (grub_puts): Removed.
26839 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26840 (grub_vsnprintf_real): Remove str = NULL support.
26841 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26842 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26843 * kern/term.c (grub_putcode): Renamed to ...
26844 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26845 (grub_putchar): Removed.
26846 (grub_xputs_dumb): New function.
26847 (grub_xputs): New variable.
26848 * lib/charset.c: Move from here ...
26849 * normal/charset.c: ... to here.
26850 (grub_ucs4_to_utf8): New function.
26851 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26852 (join_types): New variable.
26853 (unpack_join): New function.
26854 (bidi_types): New variable.
26855 (unpack_bidi): New function.
26856 (get_bidi_type): Likewise.
26857 (get_join_type): Likewise.
26858 (is_mirrored): Likewise.
26859 (grub_unicode_get_comb_type): Likewise.
26860 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26861 (is_type_after): Likewise.
26862 (grub_unicode_aglomerate_comb): Likewise.
26863 (bidi_line_wrap): Likewise.
26864 (grub_bidi_line_logical_to_visual): Likewise.
26865 (grub_bidi_logical_to_visual): Likewise.
26866 (grub_unicode_mirror_code): Likewise.
26867 (grub_unicode_shape_code): Likewise.
26868 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26869 Don't use grub_putchar.
26870 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26871 (grub_normal_reader_init): Likewise.
26872 (grub_xputs_saved): New variable.
26873 (GRUB_MOD_INIT): Set grub_xputs.
26874 (GRUB_MOD_FINI): Restore grub_xputs.
26875 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26876 (menu_init): Avoid printing gfxmenu error.
26877 (show_menu): Use grub_normal_get_char_counter.
26878 * normal/menu_entry.c (update_screen): Fix out-of-array.
26879 (complete): Avoid NULL dereferencing.
26880 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26881 * normal/menu_text.c (print_spaces): Removed.
26882 (grub_print_ucs4): Likewise.
26883 (grub_print_message_indented): Use grub_print_ucs4.
26884 (print_message): Use grub_putcode.
26885 (print_entry): Hanlde diacritics.
26886 * normal/term.c (term_state): New type.
26887 (grub_more_lines): Removed.
26888 (term_states): New variable.
26889 (grub_normal_line_counter): Renamed to ..
26890 (grub_normal_char_counter): ...this. All users updated.
26891 (grub_normal_get_line_counter): Renamed to ...
26892 (grub_normal_get_char_counter): ... this.
26893 (grub_normal_reset_more): New function.
26894 (process_newline): Removed.
26895 (print_more): New function.
26896 (grub_install_newline_hook): Removed.
26897 (map_code): New function.
26898 (grub_puts_terminal): Use grub_print_ucs4.
26899 (putglyph): New function.
26900 (putcode_real): Likewise.
26901 (grub_putcode): Use putcode_real.
26902 (get_maxwidth): New function.
26903 (get_startwidth): Likewise.
26904 (print_ucs4_terminal): Likewise.
26905 (find_term_state): Likewise.
26906 (put_glyphs_terminal): Likewise.
26907 (print_backlog): Likewise.
26908 (print_ucs4_real): Likewise.
26909 (grub_print_ucs4): Likewise.
26910 (grub_xputs_normal): Likewise.
26911 * term/efi/console.c (grub_console_putchar): Output diacritics.
26912 (grub_console_getcharwidth): Removed.
26913 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26914 * term/gfxterm.c (clear_char): Free chars.
26915 (scroll_up): Avoid leaking memory.
26916 (grub_gfxterm_putchar): Support diacritics.
26917 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26918 * term/i386/pc/console.c (grub_console_term_output): Declare as
26919 GRUB_TERM_CODE_TYPE_VGA.
26920 * term/i386/pc/vga.c (grub_vga_term): Declare as
26921 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26922 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26923 GRUB_TERM_CODE_TYPE_VGA.
26924 * term/i386/vga_common.c (map_char): Removed.
26925 (grub_console_putchar): Likewise.
26926 (grub_console_getcharwidth): Likewise.
26927 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26928 (colors): Reordered to match terminfo.
26929 (grub_ofconsole_normal_color): Removed.
26930 (grub_ofconsole_writeesc): Likewise.
26931 (grub_ofconsole_highlight_color): Likewise.
26932 (grub_ofconsole_getcharwidth): Likewise.
26933 (grub_ofconsole_setcolorstate): Likewise.
26934 (grub_ofconsole_setcolor): Likewise.
26935 (grub_ofconsole_getcolor): Likewise.
26936 (grub_ofconsole_readkey): Renamed to ...
26937 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26939 (grub_ofconsole_checkkey): Removed.
26940 (grub_ofconsole_getkey): Likewise.
26941 (grub_ofconsole_getxy): Likewise.
26942 (grub_ofconsole_gotoxy): Likewise.
26943 (grub_ofconsole_cls): Likewise.
26944 (grub_ofconsole_refresh): Likewise.
26945 (grub_ofconsole_terminfo_input): New struct.
26946 (grub_ofconsole_terminfo_output): Likewise.
26947 (grub_ofconsole_term_input): Use terminfo.
26948 (grub_ofconsole_term_output): Likewise.
26949 (grub_console_init): Split into ...
26950 (grub_console_init_early): ...this and ...
26951 (grub_console_init_lately): ...this. Use terminfo.
26952 (grub_ofconsole_putchar): Renamed to ...
26953 (put): ... this. Remove mapping.
26954 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26955 * term/serial.c: Simplify using terminfo.
26958 (keep_track): Likewise.
26959 (registered): Likewise.
26960 (input_buf): Likewise.
26961 (npending): Likewise.
26962 (serial_translate_key_sequence): Likewise.
26963 (fill_input_buf): Likewise.
26964 (grub_serial_checkkey): Likewise.
26965 (grub_serial_getkey): Likewise.
26966 (grub_serial_getxy): Likewise.
26967 (grub_serial_gotoxy): Likewise.
26968 (grub_serial_putchar): Likewise.
26969 (grub_serial_cls): Likewise.
26970 (grub_serial_setcolorstate): Likewise.
26971 (grub_serial_setcursor): Likewise.
26972 (serial_hw_init): Use serial_hw_fetch.
26973 (grub_serial_terminfo_input): New variable.
26974 (grub_serial_terminfo_output): Likewise.
26975 (grub_serial_term_input): Use terminfo.
26976 (grub_serial_term_output): Likewise.
26977 * term/terminfo.c (putstr): Use put.
26978 (grub_terminfo_all_free): New function
26979 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26980 (grub_terminfo_output_register): New function.
26981 (grub_terminfo_output_unregister): Likewise.
26982 (grub_terminfo_getxy): Likewise.
26983 (grub_terminfo_readkey): Likewise.
26984 (grub_terminfo_checkkey): Likewise.
26985 (grub_terminfo_getkey): Likewise.
26986 (grub_terminfo_input_init): Likewise.
26987 (print_terminfo): Likewise.
26988 (grub_cmd_terminfo): Handle encoding.
26989 (grub_terminfo_gotoxy): Track position.
26990 (grub_terminfo_cls): Likewise.
26991 (grub_terminfo_putchar): Likewise.
26992 (grub_terminfo_setcolorstate): Handle colors
26993 (grub_terminfo_cursor_on): This ...
26994 (grub_terminfo_cursor_off): ... and this merged into ...
26995 (grub_terminfo_setcursor): ... this.
26996 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26997 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26998 * unicode/BidiMirroring.txt: Likewise.
26999 * unicode/UnicodeData.txt: Likewise.
27000 * unicode/COPYING: Likewise.
27001 * util/grub-editenv.c (grub_putchar): Removed.
27002 (grub_xputs_real): New function.
27003 (grub_xputs): New variable.
27004 * util/grub-fstest.c (grub_putchar): Removed.
27005 (grub_xputs_real): New function.
27006 (grub_xputs): New variable.
27007 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27008 (grub_xputs_real): New function.
27009 (grub_xputs): New variable.
27010 * util/grub-probe.c (grub_putchar): Removed.
27011 (grub_xputs_real): New function.
27012 (grub_xputs): New variable.
27013 * util/grub-script-check.c (grub_putchar): Removed.
27014 (grub_xputs_real): New function.
27015 (grub_xputs): New variable.
27016 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27017 (grub_xputs_real): New function.
27018 (grub_xputs): New variable.
27019 * util/import_unicode.py: New file.
27020 * util/grub-mkfont.c (ft_errmsgs): New array.
27021 (grub_glyph_info): Make bitmap a pointer.
27022 (file_formats): New type WIDTH_SPEC.
27023 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27024 (options): Add width-spec.
27026 (add_char): Renamed to ...
27027 (add_glyph): ... this.
27028 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27029 (glyph_replace): New type.
27030 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27031 (add_char): New function.
27032 (add_subst): Likewise.
27033 (process_cursive): Likewise.
27034 (add_font): Handle GSUB.
27035 (write_font_width_spec): New function.
27036 (main): Sort glyphs.
27037 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27038 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27039 * kern/term.c (grub_cls): Moved from here...
27040 * normal/term.c (grub_cls): ... here.
27042 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27044 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27045 suitable for using within the format argument of printf when
27046 converting grub_size_t.
27047 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27048 "x" to convert grub_size_t arguments.
27050 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27052 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27054 (list_get_minimal_size): Take selection box into account.
27056 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27058 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27061 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27063 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27064 devices when iterating over /dev/disk/by-id; they will be handled
27065 later if appropriate, which they aren't always (e.g. LVM).
27067 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27069 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27070 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27072 (grub_halt): Likewise.
27073 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27075 (grub_halt): Don't return, even if all of shut-down, power-off, and
27078 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27080 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27081 arguments, not three.
27083 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27085 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27086 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27087 LVM-on-RAID is handled correctly.
27089 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27091 * docs/grub.texi (Changes from GRUB Legacy): New section.
27092 (Future): Fix typo.
27094 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27096 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27097 grub.d/README accidentally ends up executable for one reason or
27098 another. Ignore it.
27100 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27102 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27103 (gpt_partition_map_iterate): Support non-512B sectors.
27105 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27107 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27108 Tested by: Seth Goldberg.
27110 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27112 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27113 Properly align mbi.
27114 Reported by: Seth Goldberg.
27116 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27118 * util/grub-mkrescue.in: Avoid module duplication.
27120 2010-07-01 Sean Finney <seanius@seanius.net>
27122 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27124 2010-07-01 Sean Finney <seanius@seanius.net>
27126 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27128 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27130 * disk/lvm.c (grub_lvm_checkvalue): New function.
27131 (grub_lvm_check_flag): Likewise.
27133 2010-07-01 Robert Millan <rmh@gnu.org>
27135 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27136 Support 'p' as partition separator on kernel of FreeBSD (used
27138 (grub_util_biosdisk_get_grub_dev): Likewise.
27140 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27142 Yeeloong firmware port.
27144 * boot/mips/yeeloong/fwstart.S: New file.
27145 * bus/cs5536.c (gpiodump): New const.
27146 (set_io_space): New function.
27147 (set_iod): Likewise.
27148 (set_p2d): Likewise.
27149 (grub_cs5536_init_geode): Likewise.
27150 * commands/mips/yeeloong/lsspd.c: New file.
27151 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27152 (serial_mod_SOURCES): New variable.
27153 (serial_mod_CFLAGS): Likewise.
27154 (serial_mod_LDFLAGS): Likewise.
27155 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27156 term/terminfo.c and term/tparm.c.
27157 (pkglib_IMAGES): Add fwstart.img.
27158 (fwstart_img_SOURCES): New variable.
27159 (fwstart_img_CFLAGS): Likewise.
27160 (fwstart_img_ASFLAGS): Likewise.
27161 (fwstart_img_LDFLAGS): Likewise.
27162 (fwstart_img_FORMAT): Likewise.
27163 (pkglib_MODULES): Add lsspd.mod.
27164 (lsspd_mod_SOURCES): New variable.
27165 (lsspd_mod_CFLAGS): Likewise.
27166 (lsspd_mod_LDFLAGS): Likewise.
27167 (pkglib_MODULES): Add halt.mod.
27168 (halt_mod_SOURCES): New variable.
27169 (halt_mod_CFLAGS): Likewise.
27170 (halt_mod_LDFLAGS): Likewise.
27171 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27172 (serial_mod_SOURCES): Removed.
27173 (serial_mod_CFLAGS): Likewise.
27174 (serial_mod_LDFLAGS): Likewise.
27175 * disk/ata.c (check_device): New function.
27176 (grub_ata_device_initialize): Use check_device.
27177 (grub_ata_iterate): Recheck devices.
27178 (grub_ata_open): Likewise.
27179 (grub_atapi_iterate): Likewise.
27180 (grub_atapi_open): Likewise.
27181 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27182 (GRUB_ATA_CH1_PORT1): Likewise.
27183 (GRUB_ATA_CH0_PORT2): Likewise.
27184 (GRUB_ATA_CH1_PORT2): Likewise.
27185 * include/grub/mips/loongson.h: New file.
27186 * include/grub/mips/yeeloong/ec.h: Likewise.
27187 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27188 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27189 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27190 * include/grub/misc.h (grub_halt): Declare as noreturn.
27191 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27192 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27193 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27194 (UART_ENABLE_DTRRTS): Likewise.
27195 (UART_ENABLE_MODEM): Removed.
27196 (UART_ENABLE_OUT2): New const.
27197 * include/grub/term.h (grub_term_register_input_active): New function.
27198 (grub_term_register_output_active): Likewise.
27199 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27201 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27202 (init_pci): New function.
27203 (grub_machine_init): Execute platform init when firmware. Init serial.
27204 (grub_halt): Implement.
27205 (grub_exit): Likewise.
27206 (grub_reboot): Likewise.
27207 * term/serial.c (serial_hw_init): Update macros.
27208 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27209 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27210 (image_targets): New target mipsel-yeeloong-flash.
27211 (generate_image): Support IMAGE_YEELOONG_FLASH.
27212 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27213 (grub_video_sm712_setup): Init card.
27214 (grub_video_sm712_set_palette): Removed.
27215 * video/sm712_init.c: New file.
27217 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27219 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27220 PATH when running help2man and then run it on the unadorned
27221 executable names, rather than passing $(builddir)/* paths to
27222 help2man. This avoids the build directory ending up in generated
27225 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27227 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27228 to avoid accidents when debugging with 'sh -x'.
27229 * util/grub-mkrescue.in: Likewise.
27230 * util/grub.d/00_header.in: Likewise.
27231 * util/grub.d/10_hurd.in: Likewise.
27232 * util/grub.d/10_kfreebsd.in: Likewise.
27233 * util/grub.d/10_linux.in: Likewise.
27234 * util/grub.d/10_netbsd.in: Likewise.
27235 * util/grub.d/10_windows.in: Likewise.
27236 * util/grub.d/20_linux_xen.in: Likewise.
27237 * util/grub.d/30_os-prober.in: Likewise.
27238 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27240 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27242 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27243 last character in the buffer.
27244 Reported by: Vladimir Serbinenko.
27246 2010-06-29 Robert Millan <rmh@gnu.org>
27248 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27249 (Command-line and menu entry commands): Document `badram' command.
27251 2010-06-28 Robert Millan <rmh@gnu.org>
27253 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27254 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27255 command using ${GRUB_BADRAM} as parameter.
27257 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27259 * docs/grub.texi (Device map): New section.
27260 (Themes): New section (stub).
27261 * Makefile.in (docs/grub.info): The info documentation now builds
27262 without errors. Make sure it stays that way.
27264 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27266 Use normal parser for menu entries.
27267 Reported by: Thomas Frauendorfer
27269 * include/grub/parser.h (grub_parser_execute): Don't export.
27270 * normal/menu.c (grub_menu_execute_entry_real): New function.
27271 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27273 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27275 * docs/grub.texi (Embedded configuration): New section (replacing
27276 old "Preset Menu" stub).
27277 (Images): New section.
27278 (configfile): Note that any menu entries defined in `file' are shown
27281 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27283 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27285 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27287 * util/grub-install.in: Add --debug-image= option.
27289 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27291 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27294 * util/deviceiter.c (check_device): Rename to ...
27295 (check_device_readable_unique): ... this. Update all callers.
27296 Maintain and check a list of which devices (by canonicalized name)
27297 have already been seen.
27298 (clear_seen_devices): New function.
27299 (compare_file_names) [__linux__]: New function.
27300 (grub_util_iterate_devices): Clear the list of seen devices on exit
27301 and (just in case) on entry.
27302 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27303 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27304 seen-devices list, superseded by general code in check_device.
27306 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27308 * commands/cat.c (options): New variable.
27309 (grub_cmd_cat): Parse options. If the --dos option is given, print
27310 DOS-style "\r\n" line endings as simple newlines (Debian bug
27312 (GRUB_MOD_INIT): Use extcmd.
27313 (GRUB_MOD_FINI): Likewise.
27314 * docs/grub.texi (cat): Document --dos.
27316 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27318 XEN with Linux grub-mkconfig support.
27320 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27321 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27322 GRUB_CMDLINE_XEN_DEFAULT.
27323 * util/grub.d/20_linux_xen.in: New file.
27325 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27327 Initialise VGA video on qemu ourselves.
27329 * boot/i386/qemu/boot.S: Don't call 0xc000.
27330 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27331 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27332 (kernel_img_HEADERS): Add pci.h.
27333 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27334 * configure.ac: Force unifont on qemu and yeeloong.
27335 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27336 (grub_vga_palette_write): Use correct register.
27337 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27338 Call grub_qemu_init_cirrus.
27339 * kern/i386/qemu/init.c: New file.
27340 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27342 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27344 2010-06-26 Pavel Roskin <proski@gnu.org>
27346 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27349 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27351 * docs/grub.texi (Simple configuration): Explain that
27352 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27353 set to `true' to disable their respective recovery entries, not
27356 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27358 Make the `source' command slightly faster.
27360 * normal/main.c (grub_normal_execute): Don't re-read list files when
27363 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27365 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27366 field position and mask size to red fields from mode_info, not
27368 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27369 Remove redundant tag->common.framebuffer_type assignment.
27370 Reported by: Seth Goldberg.
27372 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27374 Sync up other versions of the Linux loader with Robert Millan's
27375 change of 2010-01-09, "Make loader output a bit more user-friendly".
27377 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27379 (grub_cmd_linux): Likewise.
27380 (grub_cmd_initrd): Likewise.
27381 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27382 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27384 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27386 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27387 larger than MEMORY_MAP_SIZE.
27389 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27391 Fix parallel build.
27393 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27395 * script/parser.y: #include grub_script.tab.h header.
27397 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27399 Support >3GiB and <16MiB RAM in i386-qemu.
27401 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27402 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27403 (grub_lower_mem): Removed.
27404 (grub_upper_mem): Likewise.
27405 (mem_size): Made static.
27406 (above_4g): New variable.
27407 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27408 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27411 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27413 Cirrus 5446 and Bochs video cards support.
27415 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27417 (video_cirrus_mod_SOURCES): New variable.
27418 (video_cirrus_mod_CFLAGS): Likewise.
27419 (video_cirrus_mod_LDFLAGS): Likewise.
27420 (video_bochs_mod_SOURCES): Likewise.
27421 (video_bochs_mod_CFLAGS): Likewise.
27422 (video_bochs_mod_LDFLAGS): Likewise.
27423 * include/grub/vga.h: New file.
27424 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27425 (grub_video_fb_set_page_t): New type.
27426 (grub_video_fb_setup): New prototype.
27427 (grub_video_fb_swap_buffers): Likewise.
27428 (grub_video_fb_get_info_and_fini): Likewise.
27429 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27430 (CRTC_DATA_PORT): Likewise.
27431 (CRTC_CURSOR): Likewise.
27432 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27433 (CRTC_CURSOR_ADDR_LOW): Likewise.
27434 (CRTC_CURSOR_DISABLE): Likewise.
27435 (update_cursor): Use grub_vga_cr_write.
27436 (grub_vga_text_setcursor): Likewise.
27437 * video/bochs.c: New file.
27438 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27439 (palette): Likewise.
27440 (palette_size): Likewise.
27441 (framebuffer): New variable.
27442 (grub_video_fb_init): Use 'framebuffer'.
27443 (grub_video_fb_fini): Likewise.
27444 (grub_video_fb_get_info): Likewise.
27445 (grub_video_fb_get_palette): Likewise.
27446 (grub_video_fb_set_palette): Likewise.
27447 (grub_video_fb_set_viewport): Likewise.
27448 (grub_video_fb_get_viewport): Likewise.
27449 (grub_video_fb_map_color): Likewise.
27450 (grub_video_fb_map_rgb): Likewise.
27451 (grub_video_fb_map_rgba): Likewise.
27452 (grub_video_fb_unmap_color): Likewise.
27453 (grub_video_fb_unmap_color_int): Likewise.
27454 (grub_video_fb_fill_rect): Likewise.
27455 (grub_video_fb_blit_bitmap): Likewise.
27456 (grub_video_fb_blit_render_target): Likewise.
27457 (grub_video_fb_scroll): Likewise.
27458 (grub_video_fb_create_render_target): Likewise.
27459 (grub_video_fb_doublebuf_blit_init): Likewise.
27460 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27461 (doublebuf_pageflipping_update_screen): New function.
27462 (doublebuf_pageflipping_init): Likewise.
27463 (grub_video_fb_setup): Likewise.
27464 (grub_video_fb_swap_buffers): Likewise.
27465 (grub_video_fb_get_info_and_fini): Likewise.
27466 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27468 (doublebuf_pageflipping_commit): Restructured into ...
27469 (doublebuf_pageflipping_set_page): ... this.
27470 (doublebuf_pageflipping_update_screen): Removed.
27471 (doublebuf_pageflipping_init): Likewise.
27472 (double_buffering_init): Likewise.
27473 (grub_video_vbe_setup): Use grub_video_fb_setup.
27474 (grub_video_vbe_swap_buffers): Removed.
27475 (grub_video_vbe_set_active_render_target): Likewise.
27476 (grub_video_vbe_get_active_render_target): Likewise.
27477 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27478 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27479 grub_video_fb_set_active_render_target and
27480 grub_video_fb_get_active_render_target.
27481 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27482 (SEQUENCER_DATA_PORT): Likewise.
27483 (MAP_MASK_REGISTER): Likewise.
27484 (CRTC_ADDR_PORT): Likewise.
27485 (CRTC_DATA_PORT): Likewise.
27486 (START_ADDR_HIGH_REGISTER): Likewise.
27487 (START_ADDR_LOW_REGISTER): Likewise.
27488 (GRAPHICS_ADDR_PORT): Likewise.
27489 (GRAPHICS_DATA_PORT): Likewise.
27490 (READ_MAP_REGISTER): Likewise.
27491 (INPUT_STATUS1_REGISTER): Likewise.
27492 (INPUT_STATUS1_VERTR_BIT): Likewise.
27493 (get_map_mask): Use grub_vga_sr_read.
27494 (set_map_mask): Use grub_vga_sr_write.
27495 (set_read_map): Use grub_vga_gr_write.
27496 (set_start_address): Use grub_vga_cr_write.
27497 * video/sm712.c (framebuffer): Remove leftover fields.
27499 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27501 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27502 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27503 instead. Replace the gfxterm backend check with a check that
27504 ${GRUB_PREFIX}/video.lst is non-empty.
27505 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27507 (load_video): New generated function. Call it before loading
27508 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27509 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27510 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27511 * docs/grub.texi (Simple configuration): Document
27512 GRUB_VIDEO_BACKEND.
27514 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27516 Use video functions in linux and xnu loaders.
27518 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27519 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27520 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27521 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27522 loader/i386/pc/linux.c.
27523 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27524 (find_line_len): Removed.
27525 (find_framebuf): Likewise.
27526 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27527 * loader/i386/efi/xnu.c: Removed.
27528 * loader/i386/pc/xnu.c: Moved from here...
27529 * loader/i386/xnu.c: ...here.
27531 Enable priorities in video drivers.
27533 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27534 (grub_video_adapter): New field prio.
27535 (grub_video_register): Respect prio when inserting.
27536 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27537 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27538 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27539 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27540 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27541 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27542 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27546 * include/grub/video.h (grub_video_driver_id_t): New value
27547 GRUB_VIDEO_DRIVER_SDL.
27548 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27550 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27552 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27553 argument to printf.
27554 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27556 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27558 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27559 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27561 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27563 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27564 directly, and recommend grub-install instead.
27565 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27567 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27569 Fix i386-pc prefix handling with nested partitions (Debian bug
27570 #585068). Note that the case where the core image is booted using
27571 multiboot and relocated from its original location still requires
27574 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27575 with "(,", fill the boot drive in between those two characters, but
27576 expect that a full partition specification including partition map
27578 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27579 specified, write a prefix without the drive name but including a
27580 full partition specification.
27582 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27584 * util/grub-mkconfig.in: Ignore non-option arguments, for
27585 compatibility with older versions (before 2010-06-12) which did the
27586 same. In particular, this makes it easier to ship an update-grub
27587 wrapper which is compatible with that used with GRUB Legacy (Debian
27590 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27592 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27593 for manual page generation.
27595 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27597 * po/POTFILES: Remove leftover commands/handler.c.
27599 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27601 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27602 left this script non-functional.
27604 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27606 * docs/man/grub-emu.h2m: New file.
27608 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27610 * docs/grub.texi (Commands): Document reduced command set in rescue
27612 (cpuid): New section.
27614 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27616 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27617 new partition naming style.
27618 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27620 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27622 Add "-o grub.iso" like cmdline options support.
27624 * util/grub-install.in: Improve cmdline option parsing.
27625 * util/grub-mkconfig.in: Likewise.
27626 * util/grub-mkrescue.in: Likewise.
27627 * util/grub-reboot.in: Likewise.
27628 * util/grub-set-default.in: Likewise.
27629 * util/i386/efi/grub-install.in: Likewise.
27630 * util/ieee1275/grub-install.in: Likewise.
27631 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27633 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27635 * .bzrignore: Ignore 41_custom.
27637 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27639 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27641 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27643 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27644 prototype declarations.
27646 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27647 generating fs, partmap, and video lists.
27648 * include/grub/fs.h (grub_fs_register): Omit prototype if
27649 GRUB_LST_GENERATOR is defined.
27650 * include/grub/partition.h (grub_partition_map_register): Likewise.
27651 * include/grub/video.h (grub_video_register): Likewise.
27653 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27655 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27657 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27659 * util/grub-mkrescue.in: Support --xorriso argument.
27661 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27663 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27664 Suggested by: Thomas Schmitt.
27666 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27668 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27669 Suggested by: Thomas Schmitt.
27671 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27673 custom.cfg support.
27675 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27676 * util/grub.d/41_custom.in: New file.
27678 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27680 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27681 been merged back into normal.
27683 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27685 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27686 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27688 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27690 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27691 when generating manual pages.
27692 * docs/man/grub-bin2h.h2m: New file.
27693 * docs/man/grub-editenv.h2m: New file.
27694 * docs/man/grub-fstest.h2m: New file.
27695 * docs/man/grub-install.h2m: New file.
27696 * docs/man/grub-macho2img.h2m: New file.
27697 * docs/man/grub-mkconfig.h2m: New file.
27698 * docs/man/grub-mkdevicemap.h2m: New file.
27699 * docs/man/grub-mkfont.h2m: New file.
27700 * docs/man/grub-mkimage.h2m: New file.
27701 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27702 * docs/man/grub-mkrelpath.h2m: New file.
27703 * docs/man/grub-mkrescue.h2m: New file.
27704 * docs/man/grub-ofpathname.h2m: New file.
27705 * docs/man/grub-pe2elf.h2m: New file.
27706 * docs/man/grub-probe.h2m: New file.
27707 * docs/man/grub-reboot.h2m: New file.
27708 * docs/man/grub-script-check.h2m: New file.
27709 * docs/man/grub-set-default.h2m: New file.
27710 * docs/man/grub-setup.h2m: New file.
27712 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27714 Use FOR_* macros instead of *_iterate whenever possible.
27716 * commands/handler.c: Removed.
27717 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27718 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27719 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27720 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27721 (grub_probe_SOURCES): Remove kern/parser.c.
27722 (util/grub-script-check.c_DEPENDENCIES): Removed.
27723 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27724 and grub_script_check_init.c.
27725 (grub_script_check_init.lst): Removed.
27726 (grub_script_check_init.h): Likewise.
27727 (grub_script_check_init.c): Likewise.
27728 (pkglib_MODULES): Remove handler.mod and sh.mod.
27729 (handler_mod_SOURCES): Removed.
27730 (handler_mod_CFLAGS): Likewise.
27731 (handler_mod_LDFLAGS): Likewise.
27732 (normal_mod_SOURCES): Remove normal/handler.c.
27733 Add script/main.c, script/script.c, script/execute.c,
27734 script/function.c, script/lexer.c, grub_script.tab.c
27735 and grub_script.yy.c.
27736 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27737 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27738 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27739 (grub_setup_SOURCES): Remove kern/parser.c.
27740 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27741 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27742 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27744 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27745 (grub_setup_SOURCES): Remove kern/parser.c.
27746 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27747 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27748 * include/grub/command.h (grub_command_iterate): Removed.
27749 (FOR_COMMANDS): New macro.
27750 * include/grub/dl.h (grub_dl): New member next.
27751 (grub_dl_iterate): Removed.
27752 (grub_dl_head): New variable declaration.
27753 (FOR_DL_MODULES): New macro.
27754 * include/grub/fs.h: Include list.h.
27755 (grub_fs): Make next first element.
27756 (grub_fs_list): New variable declaration.
27757 (grub_fs_register): Make inline.
27758 (grub_fs_unregister): Likewise.
27759 (grub_fs_iterate): Removed.
27760 (FOR_FILESYSTEMS): New macro.
27761 * include/grub/handler.h: Removed.
27762 * include/grub/list.h (grub_list_hook_t): Removed.
27763 (grub_list_test_t): Likewise.
27764 (grub_list_pop): Likewise.
27765 (grub_list_iterate): Likewise.
27766 (grub_list_insert): Likewise.
27767 (FOR_LIST_ELEMENTS): New macro.
27768 * include/grub/parser.h (grub_parser_class): Removed.
27769 (grub_parser_register): Likewise.
27770 (grub_parser_unregister): Likewise.
27771 (grub_parser_get_current): Likewise.
27772 (grub_parser_set_current): Likewise.
27773 (grub_register_rescue_parser): Likewise.
27774 (grub_rescue_parse_line): New function.
27775 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27776 * include/grub/script_sh.h (grub_script_function_list): New variable
27778 (FOR_SCRIPT_FUNCTIONS): New macro.
27779 (grub_script_function_iterate): Removed.
27780 (grub_normal_parse_line): New prototype.
27781 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27782 (FOR_DISABLED_TERM_INPUTS): Likewise.
27783 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27784 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27785 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27787 (grub_video_register): Inline.
27788 (grub_video_unregister): Likewise.
27789 (grub_video_adapter_list): New variable declaration.
27790 (grub_video_iterate): Removed.
27791 (FOR_VIDEO_ADAPTERS): New macro.
27792 * kern/dl.c (grub_dl_list): Removed. All users updated.
27793 (grub_dl_iterate): Removed.
27794 * kern/fs.c (grub_fs_list): Make global.
27795 (grub_fs_register): Removed.
27796 (grub_fs_unregister): Likewise.
27797 (grub_fs_iterate): Likewise.
27798 * kern/handler.c: Removed.
27799 * kern/list.c (grub_list_pop): Removed.
27800 (grub_list_iterate): Likewise.
27801 (grub_list_insert): Likewise.
27802 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27803 (grub_prio_list_insert): Don't use grub_list_insert.
27804 * kern/main.c (grub_register_rescue_parser): Don't call
27805 grub_register_rescue_parser.
27806 * kern/parser.c (grub_parser_class): Removed.
27807 (grub_parser_execute): Use grub_rescue_parse_line.
27808 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27809 (grub_rescue_parser): Removed.
27810 (grub_register_rescue_parser): Likewise.
27811 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27812 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27813 (grub_auth_check_authentication): Likewise.
27814 * normal/completion.c (iterate_command): Removed.
27815 (grub_normal_do_completion): Use FOR_COMMANDS.
27816 * normal/handler.c: Removed.
27817 * normal/main.c (read_config_file): Remove parser changing.
27818 (grub_normal_execute): Don't call read_handler_list.
27819 (grub_normal_read_line_real): Statically allocate prompt.
27820 (grub_cmdline_run): Use grub_normal_parse_line.
27821 (GRUB_MOD_FINI): Don't call free_handler_list.
27822 * normal/menu_entry.c (run): Likewise.
27823 * script/function.c (grub_script_function_list): Make global.
27824 (grub_script_function_iterate): Removed.
27825 * script/main.c (grub_normal_parse_line): Make global.
27826 (grub_sh_parser): Removed.
27827 (GRUB_MOD_INIT): Likewise.
27828 (GRUB_MOD_FINI): Likewise.
27829 * tests/lib/functional_test.c (grub_functional_test): Use
27831 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27832 (grub_test_run): Use FOR_LIST_ELEMENTS.
27833 * tests/lib/unit_test.c (main): Likewise.
27834 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27836 * util/grub-fstest.c (grub_term_input_class): Removed.
27837 (grub_term_output_class): Likewise.
27838 * util/grub-probe.c: Likewise.
27839 * util/i386/pc/grub-setup.c: Likewise.
27840 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27841 * util/grub-script-check.c (main): Don't call grub_init_all and
27843 * video/video.c (grub_video_adapter_list): Make global.
27844 (grub_video_register): Removed.
27845 (grub_video_unregister): Likewise.
27846 (grub_video_iterate): Likewise.
27848 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27850 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27851 reported by Henrique Ferreiro.
27853 2010-06-09 Robert Millan <rmh@gnu.org>
27855 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27856 ones, when both are available.
27858 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27860 Make --version uniform and avoid hard-coded program name.
27862 * util/grub-mkimage.c (main): Use `program_name' instead of
27864 * util/i386/pc/grub-setup.c (main): Likewise.
27865 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27866 * util/grub-install.in: Save the basename of $0 in $self, and use the
27867 latter in informational messages. Use the same format for --version
27868 as the binary programs.
27869 * util/grub-mkconfig.in: Likewise.
27870 * util/grub-mkrescue.in: Likewise.
27871 * util/grub-reboot.in: Likewise.
27872 * util/grub-set-default.in: Likewise.
27873 * util/i386/efi/grub-install.in: Likewise.
27874 * util/ieee1275/grub-install.in: Likewise.
27875 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27877 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27879 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27880 embedding area. Use <= instead of == when checking for non-emptiness.
27882 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27884 * configure.ac: Add `.' to the directories searched for unifont.
27886 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27888 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27891 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27893 * docs/grub.texi (History): Expand to cover GRUB 2.
27894 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27895 commands, not `terminal'.
27896 (serial): Likewise.
27897 (terminal_input): New section.
27898 (terminal_output): New section.
27899 (uppermem): New section (stub).
27900 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27902 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27904 * docs/grub.texi (Security): Menu entries are unrestricted by
27905 default, not restricted to superusers as I had previously thought.
27906 Reword to account for this.
27908 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27910 * kern/emu/misc.c (device_mapper_null_log): New function.
27911 (grub_device_mapper_supported): New function.
27912 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27914 * kern/emu/hostdisk.c (find_partition_start): Check whether
27915 device-mapper is supported before trying to use it.
27916 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27918 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27920 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27921 (File name syntax): Likewise.
27922 (help): --all is no longer supported in GRUB 2. Be more precise
27923 about pattern matching.
27925 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27927 * normal/completion.c (grub_normal_do_completion): When completing
27928 arguments to "set" and the current word contains an equals sign,
27929 skip to after the equals sign before starting completion.
27931 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27933 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27935 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27937 * docs/grub.texi (Network): New section.
27938 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27939 `(nd)' as in GRUB Legacy.
27940 (pxe_unload): New section.
27942 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27944 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27945 in the rescue shell, so recommend using `set' instead. Thanks,
27948 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27950 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27951 (password): New section.
27952 (password_pbkdf2): New section.
27953 (search): New section.
27954 (Security): New section.
27955 (Troubleshooting): New section, currently very incomplete.
27956 (Invoking grub-mkpasswd-pbkdf2): New section.
27957 (Internals): New section, currently very incomplete.
27959 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27961 * util/grub.d/00_header.in: Add some more quoting (of
27962 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27964 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27966 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27968 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27969 to `count', fixing variable shadowing that broke the -c option.
27971 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27973 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27974 in case they contain spaces.
27976 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27978 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27979 "part_" to partmap module names, in line with grub-install.
27980 Reported by: Jindřich Makovička (Debian bug #584426).
27982 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27984 * util/grub-mkimage.c: Make target-related error messages slightly
27985 more helpful; -O talks about "format". Explicitly point to the use
27986 of -O if no target is specified.
27987 Reported by: Didier Raboud (Debian bug #584415).
27989 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27991 * INSTALL: Document several build requirements for optional features
27992 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27994 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27996 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27997 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27998 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28000 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28002 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28003 Thanks to Jordan Uggla for spotting this.
28005 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28007 Finally make USB usable.
28009 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28010 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28011 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28012 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28013 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28014 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28015 (GRUB_OHCI_FSMPS): Likewise.
28016 (GRUB_OHCI_PERIODIC_START): Likewise.
28017 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28018 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28019 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28020 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28021 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28022 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28023 (grub_ohci_transaction): Likewise.
28024 (grub_ohci_transfer): Improve condition detection algorithms.
28025 Handle toggle property. Program the transactions correctly.
28026 Improve error handling. Various important fixups.
28027 (grub_ohci_portstatus): Put register writes in right order.
28028 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28029 (grub_uhci_transfer): Don't show "failed" message on success.
28030 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28032 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28033 determine its size.
28034 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28035 before initialization is completed. Use IN direction for empty
28036 transfers. Use last_trans and compute toggle.
28037 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28038 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28039 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28040 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28041 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28042 (grub_usb_device): Increase toggle to 256.
28043 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28044 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28045 GRUB_USBMS_SUBCLASS_SFF8070.
28046 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28047 (grub_scsi_inquiry): New member page and alloc_length.
28048 (grub_scsi_request_sense): New structure.
28049 (grub_scsi_request_sense_data): Likewise.
28050 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28052 * disk/scsi.c (grub_scsi_request_sense): New function.
28053 (grub_scsi_test_unit_ready): Likewise.
28054 (grub_scsi_inquiry): Fill new fields.
28055 (grub_scsi_read_capacity): Likewise.
28056 (grub_scsi_read10): Add request sense at the end.
28057 (grub_scsi_read12): Likewise.
28058 (grub_scsi_write10): Likewise.
28059 (grub_scsi_write12): Likewise.
28060 (grub_scsi_open): Add Test Unit Ready.
28061 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28062 Support additional subclasses. Con't clear halt yet. Activate the
28063 proper config. Calculate LUNs correctly.
28064 (grub_usbms_transfer): Various important fixups.
28066 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28068 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28069 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28070 (grub_ohci_fini_hw): New function.
28071 (grub_ohci_restore_hw): Likewise.
28072 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28073 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28074 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28076 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28078 Dedicated DMA allocations.
28080 * bus/pci.c (grub_memalign_dma32): New function
28081 (grub_dma_free): Likewise.
28082 (grub_dma_get_virt): Likewise.
28083 (grub_dma_get_phys): Likewise.
28084 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28085 (grub_ohci_pci_iter): Use dma32_alloc.
28086 (grub_ohci_transfer): Likewise.
28087 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28088 (grub_usb_bulk_readwrite): Likewise.
28089 * include/grub/pci.h: Add declarations.
28091 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28095 * bus/cs5536.c: New file.
28096 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28097 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28098 (cs5536_mod_SOURCES): New variable.
28099 (cs5536_mod_CFLAGS): Likewise.
28100 (cs5536_mod_LDFLAGS): Likewise.
28101 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28103 (kernel_img_SOURCES): Add bus/cs5536.c.
28104 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28106 (usb_mod_SOURCES): New variable.
28107 (usb_mod_CFLAGS): New variable.
28108 (usb_mod_LDFLAGS): New variable.
28109 (usbtest_mod_SOURCES): New variable.
28110 (usbtest_mod_CFLAGS): New variable.
28111 (usbtest_mod_LDFLAGS): New variable.
28112 (ohci_mod_SOURCES): New variable.
28113 (ohci_mod_CFLAGS): New variable.
28114 (ohci_mod_LDFLAGS): New variable.
28115 (usbms_mod_SOURCES): New variable.
28116 (usbms_mod_CFLAGS): New variable.
28117 (usbms_mod_LDFLAGS): New variable.
28118 (usb_keyboard_mod_SOURCES): New variable.
28119 (usb_keyboard_mod_CFLAGS): New variable.
28120 (usb_keyboard_mod_LDFLAGS): New variable.
28121 * include/grub/smbus.h: New file.
28122 * include/grub/cs5536.h: New file.
28124 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28126 * util/grub.d/00_header.in: Add safety check to make sure that
28127 ${locale_dir} exists before trying to probe it.
28129 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28131 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28132 per the GNU Coding Standards; this is now too obscure to be worth
28135 (chainloader): Remove cross-reference to `SCO UnixWare'.
28137 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28139 * docs/grub.texi (Chain-loading): New section.
28140 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28141 adjusted for GRUB 2.
28142 (SCO UnixWare): Likewise.
28144 (chainloader): Add reference to `Block list syntax'.
28145 (drivemap): New section.
28146 (parttool): New section.
28148 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28150 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28152 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28153 (Installing GRUB using grub-install): Remove reference to the grub
28154 shell; mention `grub-mkimage' and `grub-setup' instead.
28155 (Invoking grub-install): Likewise.
28156 (Interface): Add reference to `Menu entry editor'.
28157 (serial): Remove `--device' option.
28159 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28161 * docs/grub.texi (Configuration): New section, documenting
28162 configuration file generation using grub-mkconfig. I've left a slot
28163 for documenting the full shell scripting format but have not yet
28164 started on writing that up.
28165 (Invoking grub-mkconfig): New section.
28167 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28169 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28170 (GNU GRUB manual): Likewise.
28171 (General commands): Update description of `terminfo' for GRUB 2.
28173 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28175 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28176 (GRUB_MOD_INIT): Fix capitalisation.
28177 * docs/grub.texi (Command-line and menu entry commands): Document
28178 gettext and gptsync commands.
28180 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28182 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28183 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28185 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28187 Add btrfs probing support, currently only in the single-device case.
28189 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28191 (grub_guess_root_device): Call find_root_device_from_mountinfo
28192 before looking in /dev.
28194 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28196 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28197 GRUB_DISK_SIZE_UNKNOWN.
28198 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28200 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28202 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28203 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28204 corrupted or not synced properly.
28206 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28208 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28209 Reported by: Seth Goldberg.
28211 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28213 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28215 Reported by: Seth Goldberg.
28217 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28219 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28220 Reported by: Seth Goldberg.
28222 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28224 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28225 64-bit address as signed on MIPS.
28227 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28229 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28230 to the empty string.
28232 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28234 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28236 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28237 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28238 * kern/misc.c (__enable_execute_stack): Disable on
28241 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28243 Make grub-probe work with symbolic links under /dev/mapper as well
28244 as with real block devices. The Linux world seems to be (at best)
28245 in transition here, and GRUB shouldn't get caught in the middle.
28247 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28250 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28252 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28253 input files (in which case exit zero).
28255 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28257 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28258 return NULL for various reasons even if it has a maximum-length
28259 buffer: for example, there might be a symlink loop, or the path
28260 might exceed PATH_MAX. If this happens, return NULL.
28262 2010-05-27 Robert Millan <rmh@gnu.org>
28264 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28265 partmap module to handle cross-partmap setups.
28266 Reported by Orestes Mas. Gràcies!
28268 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28270 * util/grub-mkrescue.in: Initialise override_dir rather than
28271 assuming that it's unset or empty in the environment.
28273 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28275 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28276 variable index into p_index to suppress a warning with -Wshadow.
28278 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28280 * INSTALL: Added flex >= 2.5.35 requirement.
28282 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28284 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28286 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28290 * commands/i386/cmostest.c: New file.
28291 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28292 (cmostest_mod_SOURCES): New variable.
28293 (cmostest_mod_CFLAGS): Likewise.
28294 (cmostest_mod_LDFLAGS): Likewise.
28295 * conf/i386-pc.rmk: Likewise.
28296 * docs/grub.texi (Vendor power-on keys): New section.
28297 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28298 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28299 and GRUB_BUTTON_CMOS_ADDRESS.
28300 * util/grub.d/00_header.in: Handle powering-on by separate button.
28302 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28304 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28305 Removed drawing_scrollbar argument. All users updated
28307 Reported by Jo Shields
28309 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28311 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28312 buffer since gfxterm handles double repaint.
28314 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28316 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28317 * term/gfxterm.c (real_scroll): Likewise.
28319 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28321 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28322 before calling BIOS.
28324 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28326 * include/grub/i18n.h: Always enable grub_gettext.
28328 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28330 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28331 partition naming style.
28333 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28335 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28336 not the first option.
28338 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28340 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28342 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28344 * util/misc.c: Move inclusion of <limits.h> to ...
28345 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28347 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28349 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28350 Fix merge error in NetBSD code.
28351 (find_partition_start) [__NetBSD__]: Likewise.
28353 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28355 Fix grub-mkrescue usage unit testing.
28357 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28359 2010-05-18 Christian Franke <franke@computer.org>
28361 * util/grub.d/10_windows.in: Use path names instead of
28362 drive letters to prevent warning from Cygwin 1.7.
28363 Add drivemap command to menuentry if needed.
28365 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28367 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28368 gnumach and gnumach.gz.
28370 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28372 * include/grub/i18n.h (gettext): Inline instead of using #define.
28373 (grub_gettext): Likewise.
28376 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28378 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28379 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28380 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28381 (main): Add a slash after pkglibdirroot.
28383 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28385 * util/grub-install.in: Add missing "in" keyword.
28387 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28389 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28390 Reported by: Seth Goldberg.
28392 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28394 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28396 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28398 * configure.ac: Check for Linux device-mapper support.
28400 * util/hostdisk.c (device_is_mapped): New function.
28401 (find_partition_start): New function, partly broken out from
28402 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28403 device-mapper support added.
28404 (linux_find_partition): Use find_partition_start.
28405 (convert_system_partition_to_system_disk): Add `st' argument.
28406 Support Linux /dev/mapper/* devices if device-mapper support is
28407 available; only DM-RAID devices are understood at present.
28408 (find_system_device): Add `st' argument. Pass it to
28409 convert_system_partition_to_system_disk.
28410 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28411 find_system_device and convert_system_partition_to_system_disk. Use
28412 find_partition_start.
28414 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28415 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28416 * util/deviceiter.c [__linux__]: Define MINOR.
28417 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28418 * util/mkdevicemap.c (grub_putchar): New function.
28419 (grub_getkey): New function.
28420 (grub_refresh): New function.
28421 (main): Set debug=all if -v -v is used.
28423 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28425 Fix build with non-GNU libcs.
28427 * util/misc.c (canonicalize_file_name): Move to ...
28428 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28429 grub_make_system_path_relative_to_its_root.
28431 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28433 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28434 we handle finding grub-mkimage. Default to finding grub-mkimage in
28435 ${bindir} with program_transform_name applied, and provide a
28436 --grub-mkimage option to override this.
28438 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28440 Remove grub-mkisofs.
28442 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28443 (grub_mkisofs_SOURCES): Removed.
28444 (grub_mkisofs_CFLAGS): Removed.
28445 * util/mkisofs/defaults.h: Removed.
28446 * util/mkisofs/eltorito.c: Likewise.
28447 * util/mkisofs/exclude.h: Likewise.
28448 * util/mkisofs/hash.c: Likewise.
28449 * util/mkisofs/include/: Likewise.
28450 * util/mkisofs/include/fctldefs.h: Likewise.
28451 * util/mkisofs/include/mconfig.h: Likewise.
28452 * util/mkisofs/include/prototyp.h: Likewise.
28453 * util/mkisofs/include/statdefs.h: Likewise.
28454 * util/mkisofs/iso9660.h: Likewise.
28455 * util/mkisofs/joliet.c: Likewise.
28456 * util/mkisofs/match.c: Likewise.
28457 * util/mkisofs/match.h: Likewise.
28458 * util/mkisofs/mkisofs.c: Likewise.
28459 * util/mkisofs/mkisofs.h: Likewise.
28460 * util/mkisofs/msdos_partition.h: Likewise.
28461 * util/mkisofs/multi.c: Likewise.
28462 * util/mkisofs/name.c: Likewise.
28463 * util/mkisofs/rock.c: Likewise.
28464 * util/mkisofs/tree.c: Likewise.
28465 * util/mkisofs/write.c: Likewise.
28467 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28469 Unify grub-mkimage accross platforms.
28471 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28472 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28473 (grub_mkelfimage_SOURCES): Removed.
28474 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28475 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28476 (bin_UTILITIES): Add grub-mkimage.
28477 (grub_mkimage_SOURCES): New variable.
28478 (kernel_img_HEADERS): Remove machine/kernel.h.
28479 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28480 (pkglib_PROGRAMS): Add kernel.img.
28481 (kernel_img_HEADERS): Add machine/kernel.h.
28482 (kernel_img_FORMAT): Removed.
28483 (bin_UTILITIES): Remove grub-mkimage.
28484 (grub_mkimage_SOURCES): Removed.
28485 (grub_mkimage_CFLAGS): Likewise.
28486 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28487 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28488 (pkglib_PROGRAMS): Add kernel.img.
28489 (bin_UTILITIES): Remove grub-mkimage.
28490 (grub_mkimage_SOURCES): Removed.
28491 (grub_mkimage_CFLAGS): Likewise.
28492 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28493 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28494 (pkglib_PROGRAMS): Add kernel.img.
28495 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28496 (pkglib_PROGRAMS): Add kernel.img.
28497 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28498 (grub_mkimage_SOURCES): Removed.
28499 (grub_mkimage_CFLAGS): Likewise.
28500 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28501 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28502 (pkglib_PROGRAMS): Add kernel.img.
28503 (bin_UTILITIES): Remove grub-mkimage.
28504 (grub_mkimage_SOURCES): Removed.
28505 (grub_mkimage_CFLAGS): Likewise.
28506 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28507 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28508 (grub_mkimage_SOURCES): Removed.
28509 (grub_mkimage_CFLAGS): Likewise.
28510 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28511 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28512 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28513 (grub_pe32_optional_header): ... this.
28514 (grub_pe64_optional_header): ... and this. All users updated.
28515 (GRUB_PE32_PE32_MAGIC): Split into ..
28516 (GRUB_PE32_PE32_MAGIC): .. this.
28517 (GRUB_PE32_PE64_MAGIC): .. and this.
28518 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28519 * include/grub/elf.h (PT_GNU_STACK): New definition.
28520 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28521 * include/grub/i386/efi/kernel.h: Likewise.
28522 * include/grub/i386/kernel.h: Likewise.
28523 * include/grub/i386/pc/kernel.h: Likewise.
28524 * include/grub/i386/qemu/boot.h: Likewise.
28525 * include/grub/mips/kernel.h: Likewise.
28526 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28527 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28528 * include/grub/powerpc/kernel.h: Likewise.
28529 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28530 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28531 * include/grub/sparc64/kernel.h: Likewise.
28532 * include/grub/x86_64/efi/kernel.h: Likewise.
28533 * include/grub/x86_64/kernel.h: Likewise.
28534 * include/grub/offsets.h: New file.
28535 * include/grub/kernel.h (grub_module_info): Split into ...
28536 (grub_module_info32): ... this.
28537 (grub_module_info64): ... and this.
28538 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28539 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28540 (grub_boot_blocklist): Moved from here ...
28541 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28542 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28543 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28544 * include/grub/types.h (grub_target_to_host16): Removed.
28545 (grub_target_to_host32): Likewise.
28546 (grub_target_to_host64): Likewise.
28547 (grub_host_to_target16): Likewise.
28548 (grub_host_to_target32): Likewise.
28549 (grub_host_to_target64): Likewise.
28550 (grub_host_to_target_addr): Likewise.
28552 Support grub-mkrescue for efi, coreboot and qemu.
28554 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28555 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28556 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28557 * util/grub-mkrawimage.c: Moved from here ...
28558 * util/grub-mkimage.c: ... here. All users updated.
28559 (ALIGN_ADDR): Use image_target.
28560 (TARGET_NO_FIELD): New const.
28561 (image_target_desc): New type.
28562 (image_targets): New array.
28563 (grub_target_to_host64): Use image_target.
28564 (grub_target_to_host32): Likewise.
28565 (grub_target_to_host16): Likewise.
28566 (grub_host_to_target64): Likewise.
28567 (grub_host_to_target32): Likewise.
28568 (grub_host_to_target16): Likewise.
28569 (grub_host_to_target_addr): Likewise.
28570 (generate_image): Handle multiimage.
28571 (main): Require -O parameter. All users updated.
28572 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28573 util/efi/grub-mkimage.c
28574 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28575 New option --rom-directory.
28577 * util/i386/efi/grub-mkimage.c: Removed.
28578 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28579 (grub_target_to_host32): Likewise.
28580 (grub_target_to_host64): Likewise.
28581 (grub_host_to_target16): Likewise.
28582 (grub_host_to_target32): Likewise.
28583 (grub_host_to_target64): Likewise.
28584 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28585 (grub_target_to_host32): Likewise.
28586 (grub_target_to_host64): Likewise.
28587 (grub_host_to_target16): Likewise.
28588 (grub_host_to_target32): Likewise.
28589 (grub_host_to_target64): Likewise.
28591 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28593 Source tree is reorganized for emu build.
28595 * include/grub/util/console.h: Move from here...
28596 * include/grub/emu/console.h: ...to here.
28597 * include/grub/util/getroot.h: Move from here...
28598 * include/grub/emu/getroot.h: ...to here.
28599 * include/grub/util/hostdisk.h: Move from here...
28600 * include/grub/emu/hostdisk.h: ...to here.
28601 * util/console.c: Move from here...
28602 * kern/emu/console.c: ...to here.
28603 * util/getroot.c: Move from here...
28604 * kern/emu/getroot.c: ...to here.
28605 * util/grub-emu.c: Move from here...
28606 * kern/emu/main.c: ...to here.
28607 * util/hostdisk.c: Move from here...
28608 * kern/emu/hostdisk.c: ...to here.
28609 * util/hostfs.c: Move from here...
28610 * kern/emu/hostfs.c: ...to here.
28611 * util/mm.c: Move from here...
28612 * kern/emu/mm.c: ...to here.
28613 * util/pci.c: Move from here...
28614 * bus/emu/pci.c: ...to here.
28615 * util/sdl.c: Move from here...
28616 * video/emu/sdl.c: ...to here.
28617 * util/time.c: Move from here...
28618 * kern/emu/time.c: ...to here.
28619 * util/usb.c: Move from here...
28620 * bus/usb/emu/usb.c: ...to here.
28622 * include/grub/emu/misc.h: New header for grub-emu functions.
28623 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28625 * conf/any-emu.rmk: Rule updates for above renames.
28626 * conf/common.rmk: Likewise.
28627 * conf/i386-pc.rmk: Likewise.
28628 * conf/i386-qemu.rmk: Likewise.
28629 * conf/mips.rmk: Likewise.
28630 * conf/sparc64-ieee1275.rmk: Likewise.
28631 * conf/x86-efi.rmk: Likewise.
28633 * disk/lvm.h: #include updates for above renames.
28634 * util/grub-mkrelpath.c: Likewise.
28635 * util/grub-probe.c: Likewise.
28636 * util/i386/pc/grub-setup.c: Likewise.
28637 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28638 * kern/emu/console.c: Likewise.
28639 * kern/emu/getroot.c: Likewise.
28640 * kern/emu/hostdisk.c: Likewise.
28641 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28643 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28644 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28645 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28646 * util/misc.c: Remove grub-emu functions.
28648 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28651 Reported by: Thorsten Grützmacher.
28653 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28655 (circprog_set_property): Register and unregister timeout hook.
28656 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28657 (label_destroy): Free template. and unregister hook.
28658 (label_set_state): New function.
28659 (label_set_property): Handle templates and hooks.
28660 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28662 (progress_bar_set_property): Register and unregister timeout hook.
28663 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28664 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28665 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28666 (update_timeout_visit): Removed.
28667 (update_timeouts): New function.
28668 (redraw_timeouts): Likewise.
28669 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28670 (grub_gfxmenu_clear_timeout): Likewise.
28671 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28672 (grub_gfxmenu_timeout_notify): Likewise.
28673 (grub_gfxmenu_timeout_notifications): New external variable.
28674 (grub_gfxmenu_timeout_register): New function.
28675 (grub_gfxmenu_timeout_unregister): Likewise.
28677 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28679 Transform (broken) vga terminal into (working) vga video driver.
28681 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28682 video/i386/pc/vga.c.
28683 * include/grub/video.h (grub_video_driver_id):
28684 Add GRUB_VIDEO_DRIVER_VGA.
28685 * term/i386/pc/vga.c: Renamed to ...
28686 * video/i386/pc/vga.c: ...this
28687 (DEBUG_VGA): Removed.
28688 (CHAR_WIDTH): Likewise.
28689 (CHAR_HEIGHT): Likewise.
28690 (TEXT_WIDTH): Likewise.
28691 (TEXT_HEIGHT): Likewise.
28692 (DEFAULT_FG_COLOR): Likewise.
28693 (DEFAULT_BG_COLOR): Likewise.
28694 (colored_char): Likewise.
28697 (cursor_state): Likewise.
28698 (fg_color): Likewise.
28699 (bg_color): Likewise.
28700 (text_buf): Likewise.
28703 (framebuffer): New variable.
28704 (set_read_map): Disabled.
28705 (setup): New variable.
28706 (is_target): Likewise.
28707 (grub_vga_mod_init): Likewise.
28708 (grub_vga_mod_fini): Likewise.
28709 (check_vga_mem): Likewise.
28710 (write_char): Likewise.
28711 (write_cursor): Likewise.
28712 (scroll_up): Likewise.
28713 (grub_vga_putchar): Likewise.
28714 (grub_vga_getcharwidth): Likewise.
28715 (grub_vga_getwh): Likewise.
28716 (grub_vga_getxy): Likewise.
28717 (grub_vga_gotoxy): Likewise.
28718 (grub_vga_cls): Likewise.
28719 (grub_vga_setcolorstate): Likewise.
28720 (grub_vga_setcursor): Likewise.
28721 (grub_video_vga_init): New function.
28722 (grub_video_vga_setup): Likewise.
28723 (grub_video_vga_fini): Likewise.
28724 (update_target): Likewise.
28725 (grub_video_vga_blit_bitmap): Likewise.
28726 (grub_video_vga_blit_render_target): Likewise.
28727 (grub_video_vga_set_active_render_target): Likewise.
28728 (grub_video_vga_get_active_render_target): Likewise.
28729 (grub_video_vga_swap_buffers): Likewise.
28730 (grub_video_vga_set_palette): Likewise.
28731 (grub_video_vga_get_info_and_fini): Likewise.
28732 (grub_vga_term): Removed.
28733 (grub_video_vga_adapter): New variable.
28734 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28735 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28737 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28739 * video/readers/jpeg.c: Indented.
28741 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28743 Various jpeg cleanups.
28745 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28746 (grub_jpeg_decode_quan_table): Use sizeof.
28747 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28749 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28751 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28752 tables. Ignore non-last ac bit.
28753 (grub_jpeg_decode_quan_table): Likewise.
28755 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28757 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28758 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28759 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28760 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28761 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28762 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28764 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28766 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28769 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28771 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28773 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28775 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28778 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28780 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28783 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28785 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28788 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28790 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28792 2010-05-01 Christian Franke <franke@computer.org>
28794 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28795 Remove broken Cygwin path conversion.
28796 * util/misc.c: [__CYGWIN__] Add include and define.
28797 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28799 (make_system_path_relative_to_its_root): Simplify loop, replace early
28801 [__CYGWIN__] Add conversion to win32 path.
28802 Include "/" case in trailing slash removal.
28804 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28806 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28807 Reported by: Seth Goldberg
28809 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28811 * commands/help.c (grub_cmd_help): Fix a typo.
28812 Reported by: Seth Goldberg
28814 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28816 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28818 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28819 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28820 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28821 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28822 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28823 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28824 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28825 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28826 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28827 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28828 * normal/context.c (GRUB_MOD_INIT): Likewise.
28829 * normal/main.c (GRUB_MOD_INIT): Likewise.
28830 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28831 * term/serial.c (GRUB_MOD_INIT): Likewise.
28832 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28834 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28836 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28839 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28841 * commands/iorw.c: New file.
28842 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28843 (iorw_mod_SOURCES): New variable.
28844 (iorw_mod_CFLAGS): Likewise.
28845 (iorw_mod_LDFLAGS): Likewise.
28847 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28851 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28852 * normal/main.c (hotkey_aliases): New variable.
28853 (grub_normal_add_menu_entry): Parse "--hotkey".
28854 * normal/menu_text.c (run_menu): Handle hotkeys.
28856 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28858 * kern/i386/coreboot/init.c (grub_machine_init): Call
28859 grub_machine_mmap_init on qemu.
28861 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28863 * boot/i386/qemu/boot.S: Add a missing .code16.
28865 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28867 Use LBIO on coreboot.
28869 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28870 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28871 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28873 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28874 grub_machine_mmap_init on coreboot.
28875 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28876 GRUB_LINUXBIOS_MEMBER_LINK.
28877 (grub_machine_mmap_iterate): Fix declaration.
28878 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28880 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28882 Split coreboot and multiboot ports.
28884 * conf/i386-multiboot.rmk: New file.
28885 * configure.ac: Add multiboot port.
28886 * include/grub/i386/multiboot/boot.h: New file.
28887 * include/grub/i386/multiboot/console.h: Likewise.
28888 * include/grub/i386/multiboot/init.h: Likewise.
28889 * include/grub/i386/multiboot/kernel.h: Likewise.
28890 * include/grub/i386/multiboot/loader.h: Likewise.
28891 * include/grub/i386/multiboot/memory.h: Likewise.
28892 * include/grub/i386/multiboot/serial.h: Likewise.
28893 * include/grub/i386/multiboot/time.h: Likewise.
28894 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28895 * loader/multiboot.c: Likewise.
28896 * loader/multiboot_mbi2.c: Likewise.
28897 * util/grub-mkrescue.in: Generate multiboot rescue.
28899 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28901 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28903 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28905 Merge handling of input and output terminals. Fix a hang.
28907 * commands/terminal.c (abstract_terminal): New struct.
28908 (handle_command): New function. Based on grub_cmd_terminal_input.
28909 (grub_cmd_terminal_input): Use handle_command.
28910 (grub_cmd_terminal_output): Use handle_command.
28912 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28914 Fix comment handling.
28916 * tests/grub_script_comments.in: New testcase.
28917 * conf/tests.rmk: Rules for new testcase.
28918 * script/yylex.l: Updated flex rules.
28920 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28922 * docs/grub.texi (play): Document that zero pitches produce rests.
28923 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28926 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28928 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28931 2010-04-26 Christian Franke <franke@computer.org>
28933 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28934 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28935 (grub_get_prefix): Remove function.
28936 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28937 make_system_path_relative_to_its_root ().
28938 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28940 2010-04-24 Christian Franke <franke@computer.org>
28942 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28943 (kernel_img_LDFLAGS): Remove -static-libgcc.
28945 2010-04-24 Christian Franke <franke@computer.org>
28947 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28948 and CHECK_END_SYMBOL if grub-emu is built.
28949 Unset TARGET_OBJ2ELF if grub-emu is built
28950 without module support.
28952 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28956 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28957 (grub_fstest_SOURCES): Likewise.
28958 (pkglib_MODULES): Add nilfs2.mod.
28959 (nilfs2_mod_SOURCES): New variable.
28960 (nilfs2_mod_CFLAGS): Likewise.
28961 (nilfs2_mod_LDFLAGS): Likewise.
28962 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28963 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28964 * fs/nilfs2.c: New file.
28966 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28968 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28971 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28973 Add grub-mkconfig support for NetBSD.
28975 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28976 * util/grub-mkconfig.in: export new NetBSD specific variables.
28977 * po/POTFILES-shell: added 10_netbsd.in.
28978 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28980 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28982 Fix emu build with grub-emu-pci and grub-emu-modules.
28984 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28986 * include/grub/libpciaccess.h: New file.
28987 * conf/any-emu.rmk: Update kernel headers for emu build.
28989 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28991 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28993 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28995 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28997 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28999 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29000 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29001 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29002 util/ieee1275/ofpath.c.
29003 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29004 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29005 * include/grub/sparc64/ieee1275/boot.h
29006 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29007 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29008 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29009 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29011 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29012 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29013 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29016 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29018 * util/grub-mkconfig.in: Corrected two == equality tests.
29019 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29020 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29021 expect a number appended to it.
29022 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29023 expects a number appended to it.
29025 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29027 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29029 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29031 * util/hostdisk.c (make_device_name): Change to new partition naming.
29033 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29035 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29037 2010-04-17 Christian Franke <franke@computer.org>
29039 * Makefile.in: Add missing localedir setting.
29041 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29043 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29044 mistake in r2156. Noticed by Anthony Fok.
29046 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29048 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29050 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29052 Fix a spurious, uninitialized variable warning.
29054 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29055 Initialize variable, shdr.
29056 (grub_freebsd_load_elfmodule): Likewise.
29057 (grub_freebsd_load_elf_meta): Likewise.
29059 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29061 Fix for escaped dollar in double quoted strings.
29063 * script/yylex.l: Updated flex rules.
29064 * conf/tests.rmk: Rule for new testcase.
29065 * tests/grub_script_dollar.in: New testcase.
29067 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29068 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29070 Enclose all translated strings in grub.cfg in single quotes, and
29071 escape them appropriately (Ubuntu bug #552921).
29073 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29074 * util/grub.d/10_hurd.in: Use it.
29075 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29076 * util/grub.d/10_linux.in (linux_entry): Likewise.
29078 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29080 Fix cygwin compilation.
29082 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29083 * include/grub/misc.h (__register_frame_info)
29084 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29085 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29086 * kern/misc.c (__register_frame_info)
29087 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29088 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29090 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29092 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29094 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29096 Unify libgcc processing.
29098 * Makefile.in (kernel_img_LDFLAGS): New variable.
29099 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29100 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29102 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29103 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29104 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29105 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29106 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29107 overwriting. Remove -lgcc and -static-libgcc
29108 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29109 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29110 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29111 (kernel_img_LDFLAGS): Append instead of overwriting.
29112 Remove -lgcc and -static-libgcc
29113 * conf/sparc64-ieee1275.rmk: Likewise.
29114 * include/grub/powerpc/libgcc.h: Move to ...
29115 * include/grub/libgcc.h: .. this.
29116 * include/grub/libgcc.h: Don't export most of the function on x86.
29117 (__bswapsi2): New export.
29118 (__bswapdi2): Likewise.
29119 * include/grub/mips/libgcc.h: Removed.
29120 * include/grub/sparc64/libgcc.h: Likewise.
29122 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29124 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29125 disk_info_msg (conflicts with gettexting into languages with cases).
29127 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29129 Add grub-probe support for NetBSD.
29131 * util/getroot.c (find_root_device): Convert block device to
29132 character device on NetBSD.
29133 * util/probe.c (probe): Require character device on NetBSD.
29134 * util/hostdisk.c: NetBSD specific headers.
29135 (configure_device_driver): new function to tune device driver
29136 parameters (currently only for NetBSD floppy driver).
29137 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29138 via disklabel ioctl).
29139 (open_device): call configure_device_driver on NetBSD.
29140 (convert_system_partition_to_system_disk): NetBSD specific code.
29141 (device_is_wholedisk): Likewise.
29142 (grub_util_biosdisk_get_grub_dev): Likewise.
29143 (make_device_name): Fixed a typo in bsd_part_str.
29144 * configure.ac: check for opendisk() and getrawpartition() on
29145 NetBSD and set LIBUTIL.
29146 * Makefile.in: add LIBUTIL to LIBS.
29148 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29152 * util/grub-script-check.c: Better help message.
29154 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29158 * configure.ac: Flex version check.
29159 * conf/common.rmk: Add -Wno-error to sh.mod.
29160 * script/yylex.l: Remove all #pragma.
29162 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29164 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29166 Reported by: Seth Goldberg.
29168 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29170 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29171 Rename "module" to "module2".
29172 Reported by: Seth Goldberg.
29174 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29176 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29178 Reported by: Seth Goldberg.
29180 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29182 * lib/posix_wrap/locale.h: Add missing file.
29183 Reported by: Seth Goldberg.
29185 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29187 grub-emu module load support.
29189 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29190 NO_DYNAMIC_MODULES switched to this.
29191 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29192 (CFLAGS): Likewise.
29193 * conf/any-emu.rmk: Generate symlist.
29194 (kernel_img_HEADERS): Add util/datetime.h.
29195 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29196 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29197 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29198 kern/$(target_cpu)/cache.S.
29199 * configure.ac (grub-emu-modules): New option.
29200 * genmk.rb: Handle multiple source lists.
29201 * include/grub/sdl.h: New file.
29202 * include/grub/libusb.h: Likewise.
29203 * util/grub-emu.c (main): Hanle (host) root.
29204 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29205 GRUB_ERR_UNKNOWN_DEVICE.
29206 * util/misc.c: Move mm functions to ...
29207 * util/mm.c: ... here. All users updated.
29209 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29211 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29212 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29214 (maintainer-clean): Remove libgcrypt-grub.
29216 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29218 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29220 2010-04-09 EFI Coder <eficoder@hotmail.com>
29222 * normal/menu_text.c (print_message): Clean up the message and show
29223 the Fn information when on EFI
29224 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29226 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29228 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29230 * normal/crypto.c (read_crypto_list): Likewise.
29231 * normal/dyncmd.c (read_command_list): Likewise.
29232 * normal/term.c (read_terminal_list): Likewise.
29233 * normal/main.c (read_lists): Use explicit prefix.
29234 (read_lists_hook): Use read_lists.
29235 (grub_normal_execute): Likewise.
29237 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29239 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29240 Reported by: Thomas Schmitt.
29241 Add -no-emul-boot to grub-mkisofs parameters.
29243 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29245 * font/font.c: Indented.
29247 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29249 Elif support to GRUB script (by Deepak Vankadaru).
29251 * tests/grub_script_if.in: New testcase.
29252 * conf/tests.rmk: Rule for new testcase.
29253 * script/parser.y: Grammar rules for elif.
29255 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29257 While and until loops support to GRUB script.
29259 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29260 (grub_script_create_cmdwhile): New function prototype.
29261 (grub_script_execute_cmdwhile): New function prototype.
29262 * script/execute.c (grub_script_execute_cmdwhile): New function.
29263 * script/parser.y (command): New commands.
29264 (whilecmd): New grammar rule.
29265 (untilcmd): New grammar rule.
29266 * script/script.c (grub_script_create_cmdwhile): New function.
29267 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29270 * tests/grub_script_while1.in: New testcase.
29271 * conf/tests.rmk: Rule for new testcase.
29273 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29275 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29278 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29280 GRUB_BACKGROUND support.
29282 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29283 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29285 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29287 Load fonts and modules for gfxmenu in grub-mkconfig.
29288 Idea by: Mario Vazquez
29290 * util/grub.d/00_header.in: Load pf2 and image modules.
29292 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29294 grub-mkconfig multiple terminal support.
29296 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29297 * util/grub.d/00_header.in: Likewise.
29299 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29301 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29302 we use cd $(srcdir).
29304 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29306 * util/grub.d/10_linux.in: Only use the first word of
29307 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29308 spaces in GRUB_DISTRIBUTOR.
29309 * util/grub.d/10_kfreebsd.in: Likewise.
29310 * util/grub.d/10_hurd.in: Likewise.
29312 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29314 Fix unit testing framework for Qemu 0.12.
29316 * tests/util/grub-shell.in: Remove -serial stdio option.
29318 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29320 POSIX header file wrappers.
29322 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29324 * lib/posix_wrap/ctype.h: Likewise.
29325 * lib/posix_wrap/errno.h: Likewise.
29326 * lib/posix_wrap/langinfo.h: Likewise.
29327 * lib/posix_wrap/limits.h: Likewise.
29328 * lib/posix_wrap/localcharset.h: Likewise.
29329 * lib/posix_wrap/stdint.h: Likewise.
29330 * lib/posix_wrap/stdio.h: Likewise.
29331 * lib/posix_wrap/stdlib.h: Likewise.
29332 * lib/posix_wrap/string.h: Likewise.
29333 * lib/posix_wrap/sys/types.h: Likewise.
29334 * lib/posix_wrap/unistd.h: Likewise.
29335 * lib/posix_wrap/wchar.h: Likewise.
29336 * lib/posix_wrap/wctype.h: Likewise.
29337 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29338 (grub_script.yy.h): Likewise.
29339 * script/yylex.l: Remove POSIX emulation #defines.
29340 * Makefile.in (POSIX_CFLAGS): New variable.
29341 (GNULIB_UTIL_CFLAGS): Likewise.
29345 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29346 (regexp_mod_SOURCES): New variable.
29347 (regexp_mod_CFLAGS): Likewise.
29348 (regexp_mod_LDFLAGS): Likewise.
29349 * commands/regexp.c: New file.
29350 * gnulib/regcomp.c: New file. Imported from gnulib.
29351 * gnulib/regex.c: Likewise.
29352 * gnulib/regex_internal.c: Likewise.
29353 * gnulib/regex_internal.h: Likewise.
29354 * gnulib/regexec.c: Likewise.
29355 * gnulib/regex.h: Likewise.
29357 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29359 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29360 unsupported video mode types.
29362 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29364 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29366 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29368 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29369 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29371 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29373 Remove unused grub_vga_get_font.
29375 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29376 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29378 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29380 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29381 * include/grub/misc.h: Likewise.
29383 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29385 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29386 for which failure is fatal.
29388 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29390 * util/grub-install.in: Use mkdir -p to create grub directory.
29391 * util/i386/efi/grub-install.in: Likewise.
29392 * util/ieee1275/grub-install.in: Likewise.
29394 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29396 * Makefile.in (LEX): new variable.
29398 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29400 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29401 `=' and added double quotes on operands of this equality test.
29403 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29405 * Makefile.in (uninstall): Remove a leftover debug echo.
29406 Reported by: Grégoire Sutre
29408 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29410 MIPS multiboot2 support.
29412 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29413 (multiboot2_mod_SOURCES): New variable.
29414 (multiboot2_mod_CFLAGS): Likewise.
29415 (multiboot2_mod_LDFLAGS): Likewise.
29416 (multiboot2_mod_ASFLAGS): Likewise.
29417 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29419 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29420 (MULTIBOOT_MBI_REGISTER): Likewise.
29421 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29422 (MULTIBOOT_ELF32_MACHINE): Likewise.
29423 (MULTIBOOT_ELF64_MACHINE): Likewise.
29424 * include/grub/mips/multiboot.h: New file.
29425 * include/grub/video.h (grub_video_driver_id): New type
29426 GRUB_VIDEO_DRIVER_SM712.
29427 (grub_video_get_info_and_fini): Export.
29428 (grub_video_get_palette): Likewise.
29429 (grub_video_get_driver_id): Likewise.
29430 * include/multiboot2.h: Resynced with spec.
29431 * loader/i386/multiboot.c: Moved from here ...
29432 * loader/multiboot.c: ... here. All users updated.
29433 (grub_multiboot_boot): Use platform-specific macros.
29434 * loader/i386/multiboot_elfxx.c: Moved from here ...
29435 * loader/multiboot_elfxx.c: ... here. All users updated.
29436 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29437 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29438 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29440 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29442 Import gnulib argp module.
29444 * gnulib/argp-ba.c: New file.
29445 * gnulib/argp-eexst.c: Likewise.
29446 * gnulib/argp-fmtstream.c: Likewise.
29447 * gnulib/argp-fmtstream.h: Likewise.
29448 * gnulib/argp-fs-xinl.c: Likewise.
29449 * gnulib/argp-help.c: Likewise.
29450 * gnulib/argp-namefrob.h: Likewise.
29451 * gnulib/argp-parse.c: Likewise.
29452 * gnulib/argp-pin.c: Likewise.
29453 * gnulib/argp-pv.c: Likewise.
29454 * gnulib/argp-pvh.c: Likewise.
29455 * gnulib/argp-version-etc.c: Likewise.
29456 * gnulib/argp-version-etc.h: Likewise.
29457 * gnulib/argp-xinl.c: Likewise.
29458 * gnulib/argp.h: Likewise.
29460 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29462 * kern/device.c (grub_device_iterate): Clear errors after failed
29465 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29467 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29468 returned by firmware.
29470 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29472 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29473 compilation on coreboot and qemu
29475 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29477 * include/multiboot2.h: Resync with spec.
29479 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29481 Multiboot2 tag support
29483 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29484 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29485 Remove loader/multiboot_loader.c.
29486 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29487 (grub_multiboot2_real_boot): Likewise.
29488 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29489 (grub_get_multiboot_mmap_count): New proto.
29490 (grub_fill_multiboot_mmap): Likewise.
29491 (grub_multiboot_set_video_mode): Likewise.
29492 (grub_multiboot_set_console): Likewise.
29493 (grub_multiboot_load): Likewise.
29494 (grub_multiboot_load_elf): Likewise.
29495 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29496 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29497 * include/multiboot.h: Resynced with specification.
29498 * include/multiboot2.h: Resynced with specification.
29499 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29500 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29501 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29502 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29504 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29505 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29506 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29508 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29510 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29511 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29513 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29514 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29515 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29517 * loader/i386/multiboot_mbi2.c: New file.
29519 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29521 Resync with gnulib.
29523 * Makefile.in (GNULIB_CFLAGS): New variable.
29524 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29525 (grub_script_check_CFLAGS): New variable.
29526 * gnulib/alloca.h: Resync with gnulib.
29527 * gnulib/error.c: Likewise.
29528 * gnulib/error.h: Likewise.
29529 * gnulib/fnmatch.c: Likewise.
29530 * gnulib/fnmatch_loop.c: Likewise.
29531 * gnulib/getdelim.c: Likewise.
29532 * gnulib/getline.c: Likewise.
29533 * gnulib/getopt.c: Likewise.
29534 * gnulib/getopt1.c: Likewise.
29535 * gnulib/getopt_int.h: Likewise.
29536 * gnulib/gettext.h: Likewise.
29537 * gnulib/progname.c: Likewise.
29538 * gnulib/progname.h: Likewise.
29540 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29542 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29543 which is the case with --disabled-nls.
29545 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29546 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29547 * util/misc.c: Likewise.
29548 * util/mkisofs/mkisofs.c: Likewise.
29549 * util/mkisofs/mkisofs.h: Likewise.
29551 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29553 Simplify Apple CC support.
29555 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29556 Add 0 byte at the end not to have a symbol with empty target.
29557 * mmap/i386/pc/mmap_helper.S: Likewise.
29558 * genmk.rb: Ignore errors 2030 and 2050.
29559 * kern/i386/pc/startup.S: Use LOCAL when possible.
29561 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29563 Testcase and the fix for final semicolon on cmdline.
29565 * tests/grub_script_final_semicolon.in: New testcase.
29566 * conf/tests.rmk: Rules for the new testcase.
29567 * script/parser.y: Grammar fix.
29569 2010-03-26 BVK Chaitanya <bvk@localhost>
29571 Blank lines testcase for GRUB script.
29573 * tests/grub_script_blanklines.in: New testcase.
29574 * conf/tests.rmk: Rules for the new testcase.
29576 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29578 Don't use __FILE__.
29580 * genmk.rb: Add -DGRUB_FILE to all C targets.
29581 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29582 * include/grub/list.h: Likewise.
29583 * include/grub/misc.h: Likewise.
29584 * include/grub/mm.h: Likewise.
29585 * include/grub/test.h: Likewise.
29586 * kern/mm.c: Likewise.
29587 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29589 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29591 Sunpc partitions support.
29593 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29594 (grub_fstest_SOURCES): Likewise.
29595 (pkglib_MODULES): Add part_sunpc.mod.
29596 (part_sunpc_mod_SOURCES): New variable.
29597 (part_sunpc_mod_CFLAGS): Likewise.
29598 (part_sunpc_mod_LDFLAGS): Likewise.
29599 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29600 * partmap/sunpc.c: New file.
29602 2010-03-26 BVK Chaitanya <bvk@localhost>
29604 For loop support to GRUB script.
29606 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29607 (grub_script_create_cmdfor): New function prototype.
29608 (grub_script_execute_cmdfor): New function prototype.
29609 * script/execute.c (grub_script_execute_cmdfor): New function.
29610 * script/parser.y (command): New for command.
29611 (forcmd): New grammar rule.
29612 * script/script.c (grub_script_create_cmdfor): New function.
29613 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29615 * tests/grub_script_for1.in: New testcase.
29616 * conf/tests.rmk: Rules for new testcase.
29618 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29622 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29623 'partition' is NULL, grub_partition_get_start already does that.
29624 * commands/loadenv.c (check_blocklists): Likewise.
29625 (write_blocklists): Likewise.
29626 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29627 (grub_fstest_SOURCES): Likewise.
29628 (pkglib_MODULES): Add part_bsd.mod.
29629 (part_bsd_mod_SOURCES): New variable.
29630 (part_bsd_mod_CFLAGS): Likewise.
29631 (part_bsd_mod_LDFLAGS): Likewise.
29632 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29633 (grub_emu_SOURCES): Likewise.
29634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29635 * include/grub/bsdlabel.h: New file.
29636 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29638 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29639 (grub_partition_map_list): New variable.
29640 (grub_partition_map_register): Inline.
29641 (grub_partition_map_unregister): Likewise.
29642 (FOR_PARTITION_MAPS): New macro.
29643 (grub_partition_map_iterate): Removed.
29644 (grub_partition_get_start): Handle nested partitions.
29645 * include/grub/msdos_partition.h: Remove bsd-related entries.
29646 (grub_pc_partition): Remove.
29647 * kern/disk.c (grub_disk_close): Free partition data.
29648 (grub_disk_adjust_range): Handle nested partitions.
29649 * kern/partition.c (grub_partition_map_probe): New function.
29650 (grub_partition_probe): Parse name to number, handle subpartitions.
29651 (get_partmap): New function.
29652 (grub_partition_iterate): Handle subpartitions.
29653 (grub_partition_get_name): Likewise.
29654 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29655 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29656 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29657 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29659 (acorn_partition_map_probe): Remove.
29660 (acorn_partition_map_get_name): Likewise.
29661 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29663 Set 'index' to 0 since there can be only one partition entry per sector.
29664 (amiga_partition_map_probe): Remove.
29665 (amiga_partition_map_get_name): Likewise.
29666 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29668 Set 'offset' and 'index' to real positions of partitions.
29669 (apple_partition_map_probe): Remove.
29670 (apple_partition_map_get_name): Likewise.
29671 * partmap/bsdlabel.c: New file.
29672 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29674 Allocate 'data' so it can be correctly freed.
29675 Set 'index' to offset inside sector.
29676 (gpt_partition_map_probe): Remove.
29677 (gpt_partition_map_get_name): Likewise.
29678 * partmap/msdos.c (grub_partition_parse): Remove.
29679 (pc_partition_map_iterate): Don't force raw access.
29681 Make 'ext_offset' a local variable.
29682 (pc_partition_map_probe): Remove.
29683 (pc_partition_map_get_name): Remove.
29684 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29686 (sun_partition_map_probe): Remove.
29687 (sun_partition_map_get_name): Likewise.
29688 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29689 (grub_pcpart_type): Likewise.
29690 * util/hostdisk.c (open_device): Handle new numbering scheme.
29691 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29692 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29693 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29694 * util/grub-install.in: Insert all subpartition modules.
29695 * util/ieee1275/grub-install.in: Likewise.
29697 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29699 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29702 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29704 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29706 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29708 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29709 match where 'make install' puts them.
29710 * util/i386/efi/grub-install.in: Likewise.
29712 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29714 * .bzrignore: Add gentrigtables, grub-script-check,
29715 grub_script_check_init.c, grub_script_check_init.h, and
29718 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29720 * kern/parser.c: Indented.
29722 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29724 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29726 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29728 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29729 alpha_mask_size == 0 case.
29731 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29733 GRUB shell lexer and parser improvements.
29735 * conf/any-emu.rmk: Build rule updates.
29736 * conf/common.rmk: Likewise.
29737 * conf/i386-coreboot.rmk: Likewise.
29738 * conf/i386-efi.rmk: Likewise.
29739 * conf/i386-ieee1275.rmk: Likewise.
29740 * conf/i386-pc.rmk: Likewise.
29741 * conf/powerpc-ieee1275.rmk: Likewise.
29742 * conf/x86_64-efi.rmk: Likewise.
29744 * configure.ac: Configure check for flex.
29746 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29748 (grub_lexer_param): Struct member updates.
29749 (grub_parser_param): Likewise.
29750 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29751 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29752 (grub_script_lexer_init): Prototype update.
29753 (grub_script_lexer_record_start): Likewise.
29754 (grub_script_lexer_record_stop): Likewise.
29755 (grub_script_lexer_yywrap): New function prototype.
29756 (grub_script_lexer_fini): Likewise.
29757 (grub_script_execute_argument_to_string): Removed by...
29758 (grub_script_execute_argument_to_argv): ...better version.
29760 * script/execute.c (ROUND_UPTO): New macro.
29761 (grub_script_execute_cmdline): Out of memory fixes.
29762 (grub_script_execute_menuentry): Likewise.
29763 (grub_script_execute_argument_to_string): Removed. Update all
29765 (grub_script_execute_argument_to_argv): ...better version.
29766 * script/function.c (grub_script_function_create): Use
29767 grub_script_execute_argument_to_argv instead of
29768 grub_script_execute_argument_to_string.
29770 * script/lexer.c (check_varstate): Removed.
29771 (check_textstate): Removed.
29772 (grub_script_lexer_record_start): Likewise.
29773 (grub_script_lexer_record_stop): Likewise.
29774 (recordchar): Replaced with...
29775 (grub_script_lexer_record): ...new function.
29776 (nextchar): Removed.
29777 (grub_script_lexer_init): Rewritten.
29778 (grub_script_yylex): Rewritten.
29779 (append_newline): New function.
29780 (grub_script_lexer_yywrap): New function.
29781 (grub_script_lexer_fini): New function.
29782 (grub_script_yyerror): Sets error flag.
29784 * script/yylex.l: New file.
29785 (grub_lexer_yyfree): Wrapper for flex yyffre.
29786 (grub_lexer_yyalloc): Likewise.
29787 (grub_lexer_yyrealloc): Likewise.
29788 * script/parser.y: Refactored.
29790 * script/script.c (grub_script_arg_add): Out of memory fixes.
29791 (grub_script_add_arglist): Likewise.
29792 (grub_script_create_cmdline): Likewise.
29793 (grub_script_create_cmdmenu): Likewise.
29794 (grub_script_add_cmd): Likewise.
29795 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29796 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29799 * tests/grub_script_echo1.in: New testcase.
29800 * tests/grub_script_vars1.in: New testcase.
29801 * tests/grub_script_echo_keywords.in: New testcase.
29803 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29805 Remove some redundancy in build system.
29807 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29808 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29809 (TARGET_LDFLAGS): Add -nostdlib.
29810 (TARGET_IMG_LDFLAGS): Likewise.
29811 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29812 anything since mmap isn't available.
29813 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29815 (pkglib_MODULES): Remove reboot.mod.
29816 (reboot_mod_SOURCES): Removed.
29817 (reboot_mod_CFLAGS): Likewise.
29818 (reboot_mod_LDFLAGS): Likewise.
29819 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29820 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29821 (DEFSYMFILES): Add kernel_syms.lst.
29822 (kernel_img_HEADERS): Add common headers.
29823 (symlist.c): New target.
29824 (kernel_syms.lst): Likewise.
29825 (pkglib_MODULES): Add memdisk.mod.
29826 (memdisk_mod_SOURCES): New variable.
29827 (memdisk_mod_CFLAGS): Likewise.
29828 (memdisk_mod_LDFLAGS): Likewise.
29829 (pkglib_MODULES): Add reboot.mod.
29830 (reboot_mod_SOURCES): New variable.
29831 (reboot_mod_CFLAGS): Likewise.
29832 (reboot_mod_LDFLAGS): Likewise.
29833 (pkglib_MODULES): Add date.mod.
29834 (date_mod_SOURCES): New variable.
29835 (date_mod_CFLAGS): Likewise.
29836 (date_mod_LDFLAGS): Likewise.
29837 (pkglib_MODULES): Add datehook.mod.
29838 (datehook_mod_SOURCES): New variable.
29839 (datehook_mod_CFLAGS): Likewise.
29840 (datehook_mod_LDFLAGS): Likewise.
29841 (pkglib_MODULES): Add lsmmap.mod.
29842 (lsmmap_mod_SOURCES): New variable.
29843 (lsmmap_mod_CFLAGS): Likewise.
29844 (lsmmap_mod_LDFLAGS): Likewise.
29845 (pkglib_MODULES): Add boot.mod.
29846 (boot_mod_SOURCES): New variable.
29847 (boot_mod_CFLAGS): Likewise.
29848 (boot_mod_LDFLAGS): Likewise.
29849 * conf/i386-coreboot.rmk: Removed redundant parts.
29850 * conf/i386-ieee1275.rmk: Likewise.
29851 * conf/i386-pc.rmk: Likewise.
29852 * conf/mips-yeeloong.rmk: Likewise.
29853 * conf/mips.rmk: Likewise.
29854 * conf/powerpc-ieee1275.rmk: Likewise.
29855 * conf/sparc64-ieee1275.rmk: Likewise.
29856 * conf/x86_64-efi.rmk: Likewise.
29857 * conf/i386-coreboot.rmk: Moved qemu parts ..
29858 * conf/i386-qemu.rmk: ... here
29859 * conf/i386-efi.rmk: Moved common parts to...
29860 * conf/x86-efi.rmk: ... here.
29861 * conf/i386.rmk: Added modules common to all x86 variants.
29862 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29863 * disk/memdisk.c: Remove grub/machine/kernel.h.
29864 * gensymlist.sh.in: Include symbol.h.
29865 * hook/datehook.c: Correct module name.
29866 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29867 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29868 * include/grub/i386/efi/serial.h: New file.
29869 * include/grub/x86_64/efi/serial.h: Likewise.
29870 * util/time.c: Likewise.
29871 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29873 2010-03-14 Colin King <colin.king@ubuntu.com>
29874 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29876 Shrink the pre-partition-table part of boot.img by eight bytes.
29878 * boot/i386/pc/boot.S (ERR): New macro.
29879 (chs_mode): Use ERR.
29880 (geometry_error): Likewise.
29881 (hd_probe_error): Remove. This is only used once, so we wrwite
29883 (read_error): Instead of printing read_error_string, just set up
29884 %si and fall through to ...
29885 (error_message): ... this new function, also used by ERR.
29887 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29889 Speed up consecutive hostdisk operations on the same device.
29891 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29892 (grub_util_biosdisk_open): Initialise disk->data.
29893 (struct linux_partition_cache): New structure.
29894 (linux_find_partition): Cache partition start positions; these are
29895 expensive to compute on every read and write.
29896 (open_device): Cache open file descriptor in disk->data, so that we
29897 don't have to reopen it and flush the buffer cache for consecutive
29898 operations on the same device.
29899 (grub_util_biosdisk_close): New function.
29900 (grub_util_biosdisk_dev): Set `close' member.
29902 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29903 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29904 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29905 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29906 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29908 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29910 Compile parts of grub-emu as modules.
29912 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29913 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29914 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29915 (all-local): Add $(GRUB_EMU).
29916 (install-local): Install $(GRUB_EMU).
29917 (uninstall): Uninstall $(GRUB_EMU).
29918 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29919 * kern/dl.c: Likewise.
29920 * commands/sleep.c: Not include machine/time.h.
29921 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29922 (COMMON_CFLAGS): Likewise.
29923 (sbin_UTILITIES): Remove grub-emu.
29924 (grub_emu_SOURCES): Removed.
29925 (kernel_img_RELOCATABLE): New variable.
29926 (pkglib_PROGRAMS): Add kernel.img.
29927 (kernel_img_SOURCES): New variable
29928 (kernel_img_CFLAGS): Likewise.
29929 (kernel_img_LDFLAGS): Likewise.
29930 (TARGET_NO_STRIP): Likewise.
29931 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29932 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29933 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29934 (grub-emu): New target.
29935 (GRUB_EMU): New variable.
29936 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29937 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29938 * loader/xnu.c: Likewise.
29939 * include/grub/pci.h: Likewise.
29940 * genemuinit.sh: New file.
29941 * genemuinitheader.sh: Likewise.
29942 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29943 Support TARGET_NO_DYNAMIC_MODULES.
29944 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29945 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29946 * disk/loopback.c: Likewise.
29947 * font/font_cmd.c: Likewise.
29948 * partmap/acorn.c: Likewise.
29949 * partmap/amiga.c: Likewise.
29950 * partmap/apple.c: Likewise.
29951 * partmap/gpt.c: Likewise.
29952 * partmap/msdos.c: Likewise.
29953 * partmap/sun.c: Likewise.
29954 * parttool/msdospart.c: Likewise.
29955 * term/gfxterm.c: Likewise.
29956 * video/bitmap.c: Likewise.
29957 * video/readers/jpeg.c: Likewise.
29958 * video/readers/png.c: Likewise.
29959 * video/readers/tga.c: Likewise.
29960 * video/video.c: Likewise.
29961 * util/grub-emu.c (read_command_list): Removed.
29962 (main): Don't call util_init_nls.
29963 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29964 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29966 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29968 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29969 date.mod, datehook.mod.
29970 (datetime_mod_SOURCES): New variable.
29971 (datetime_mod_CFLAGS): Likewise.
29972 (datetime_mod_LDFLAGS): Likewise.
29973 (date_mod_SOURCES): Likewise.
29974 (date_mod_CFLAGS): Likewise.
29975 (date_mod_LDFLAGS): Likewise.
29976 (datehook_mod_SOURCES): Likewise.
29977 (datehook_mod_CFLAGS): Likewise.
29978 (datehook_mod_LDFLAGS): Likewise.
29979 * conf/sparc64-ieee1275.rmk: Likewise.
29980 * lib/ieee1275/datetime.c: New file.
29982 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29984 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29985 (ieee1275_fb_mod_SOURCES): New variable.
29986 (ieee1275_fb_mod_CFLAGS): Likewise.
29987 (ieee1275_fb_mod_LDFLAGS): Likewise.
29988 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29990 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29991 (HEAP_MAX_ADDR): Likewise.
29992 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29994 Correct stop condition.
29995 (grub_ieee1275_devices_iterate): New function.
29996 * video/ieee1275.c: New file.
29998 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30000 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30002 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30004 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30005 SCRATCH_PAD_DISKBOOT as scratch.
30006 (bootit): Pass Openfirmware pointer in %o4.
30007 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30009 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30010 with util/grub-mkrawimage.c.
30011 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30012 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30013 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30014 (grub_aout_load) [GRUB_UTIL]: Likewise.
30015 * include/grub/kernel.h (grub_modules_get_end): New proto.
30016 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30017 (SCRATCH_PAD_BOOT): New definition.
30018 (SCRATCH_PAD_DISKBOOT): Likewise.
30019 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30020 * include/grub/sparc64/ieee1275/ieee1275.h
30021 (grub_ieee1275_original_stack): New variable
30022 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30024 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30025 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30026 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30027 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30028 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30029 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30030 (grub_platform_image_format_t): New type.
30031 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30032 * kern/main.c (grub_modules_get_end)
30033 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30034 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30035 (codestart): Switch stacks.
30036 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30038 (grub_heap_init): Use grub_modules_get_end.
30039 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30041 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30043 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30045 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30047 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30049 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30051 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30054 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30056 * genmoddep.awk: Output all missing symbols and not only first.
30058 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30060 * NEWS: Put the date of 1.98 release.
30062 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30064 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30067 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30069 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30070 completition in the middle of string.
30072 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30074 * util/grub-mkrescue.in: Use mktemp with explicit template.
30076 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30078 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30080 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30082 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30085 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30087 Fix FreeBSD compilation.
30089 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30090 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30092 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30094 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30096 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30098 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30100 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30102 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30104 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30106 Support relative image path in theme file.
30108 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30109 (image_set_property): Handle theme_dir and relative path.
30111 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30113 * configure.ac: Alias amd64 to x86_64.
30115 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30117 * NEWS: mention multiboot on EFI.
30119 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30121 * kern/main.c (grub_load_modules): Handle errors from init functions of
30124 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30126 * normal/autofs.c (autoload_fs_module): Handle errors.
30128 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30130 Disable linux.mod on qemu-mips since it's not functional and leads
30131 to compilation failure.
30133 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30134 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30135 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30136 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30137 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30138 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30139 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30140 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30141 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30142 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30143 Reported by: BVK Chaitanya
30145 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30147 * INSTALL: Add gettext as a dependency and add qemu to a new section
30148 "Prerequisites for make-check".
30150 2010-03-04 Christian Franke <franke@computer.org>
30152 * util/grub-pe2elf.c: Add missing include "progname.h".
30154 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30156 * normal/crypto.c (read_crypto_list): Fix a typo.
30157 Reported by: Seth Goldberg.
30159 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30161 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30162 Reported by: Seth Goldberg.
30164 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30166 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30169 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30171 * genmk.rb: Remove terminal*.lst in make clean.
30172 Reported by: Seth Goldberg.
30174 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30176 * util/i386/efi/grub-install.in: Copy gettext files.
30178 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30180 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30182 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30184 Wait for user entry basing on presence of output rather than on errors.
30186 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30187 (grub_install_newline_hook): Likewise.
30188 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30189 * normal/menu.c (show_menu): Check line_counter to determine presence
30191 * normal/term.c (grub_normal_line_counter): New variable.
30192 (grub_normal_get_line_counter): New function.
30193 (grub_install_newline_hook): Likewise.
30195 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30197 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30199 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30201 * configure.ac: Update version to 1.98.
30203 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30205 * util/grub.d/10_linux.in (linux_entry): Don't default to
30206 gfxpayload=keep if Linux doesn't support video handover.
30208 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30210 Don't compile video modules on yeeloong since video subsystem is part
30213 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30214 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30215 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30216 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30217 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30218 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30219 * include/grub/bitmap_scale.h: Likewise.
30220 * include/grub/bufio.h: Likewise.
30221 * include/grub/font.h: Likewise.
30222 * include/grub/gfxterm.h: Likewise.
30223 * include/grub/video.h: Likewise.
30224 * include/grub/vbe.h: Don't include video_fb.h.
30225 * video/i386/pc/vbe.c: Include video_fb.h.
30226 * commands/i386/pc/vbetest.c: Include video.h.
30228 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30230 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30231 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30232 default entry if GRUB_SAVEDEFAULT=true. This allows using
30233 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30234 saving a new default on every boot.
30236 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30238 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30239 * normal/term.c (read_terminal_list): Likewise.
30240 * normal/main.c (grub_normal_init_page): Likewise.
30241 (grub_normal_read_line_real): Likewise.
30243 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30245 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30247 Reported by: Seth Goldberg.
30249 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30251 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30252 duplicate declaration of `start'.
30254 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30256 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30258 Reported by: Georgy Buranov
30260 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30262 * util/grub-mkrawimage.c (usage): Change string formatting to
30265 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30267 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30270 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30272 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30273 Reported by: Michael Suchanek.
30275 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30277 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30278 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30280 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30282 Remove any reference to non-free fonts.
30284 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30285 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30286 uses non-free components.
30287 * font/font.c (grub_font_get_name): Remove example name.
30288 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30289 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30290 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30291 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30293 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30295 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30297 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30299 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30301 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30303 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30305 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30307 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30309 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30311 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30312 * docs/grub.texi (Command-line and menu entry commands): Document play
30315 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30317 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30318 parse arguments as inline tempo and notes. Move code for playing notes
30320 (play): ... new function.
30322 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30324 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30325 grub_uint16_t instead of short.
30326 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30327 disk from little endian to cpu endianness.
30329 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30331 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30332 GRUB_TICKS_PER_SECOND instead of 120.
30334 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30336 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30337 escape sequence after \e.
30339 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30341 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30342 non-ASCII characters.
30344 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30346 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30347 set root in single quotes to prevent \, from being unescaped.
30349 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30351 Prevent unknown commands from stopping menuentry execution.
30353 * script/execute.c (grub_script_execute_cmdline): Print error after
30356 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30358 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30359 Reported by: Pavel Pisa.
30361 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30363 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30365 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30367 Merge grub_ieee1275_map_physical into grub_map and rename to
30370 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30371 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30373 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30374 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30376 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30378 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30380 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30381 opening and not after.
30383 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30385 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30388 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30390 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30391 (alloc_phys): Use ALIGN_UP instead of align_addr.
30393 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30395 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30397 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30399 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30401 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30403 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30406 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30408 Fix over-4GiB seek on sparc64.
30410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30411 Replace pos_i and pos_lo with pos. All users updated.
30412 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30414 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30416 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30419 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30421 * util/grub-mkrawimage.c (main): Call set_program_name.
30423 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30425 Properly align 64-bit targets.
30427 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30428 (generate_image): Use ALIGN_ADDR.
30430 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30432 Properly create cross-endian images.
30434 * include/grub/types.h (grub_host_to_target_addr): New macro
30435 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30437 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30439 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30441 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30443 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30445 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30446 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30447 (grub_linux_boot): Divide by 64K when on VESA.
30449 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30451 Support GRUB_GFXPAYLOAD_LINUX.
30453 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30454 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30456 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30458 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30459 to show messages instead of discarding them.
30460 Process errors after executing command and not before. Keep old method
30463 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30465 * configure.ac: Check for ft2build.h.
30467 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30469 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30471 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30473 * genkernsyms.sh.in: Use TARGET_CC.
30475 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30479 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30481 * include/grub/multiboot2.h: Remove leftover file.
30482 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30483 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30485 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30487 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30489 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30491 Fix warnings in grub-emu when compiling with maximum warning options.
30493 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30494 (grub_arch_modules_addr): Return 0 and not NULL.
30495 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30496 (xstrdup): Use newstr instead of dup.
30497 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30498 of disk to dsk to avoid shadowing.
30499 (find_free_slot): Fix prototype.
30500 * util/getroot.c (grub_util_is_dmraid): Make static.
30501 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30502 Add missing prototype.
30503 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30505 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30507 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30510 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30512 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30515 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30517 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30518 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30519 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30520 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30521 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30522 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30524 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30526 * include/grub/err.h (grub_err_printf): Don't export.
30528 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30530 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30532 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30534 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30535 * kern/misc.c (grub_gettext_dummy): Make static.
30537 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30539 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30541 * kern/term.c (grub_putchar): Likewise.
30543 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30545 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30546 buggy hook call and memory leak.
30548 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30550 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30552 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30554 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30556 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30558 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30560 Return grub_errno on allocation error.
30562 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30564 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30566 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30568 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30569 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30571 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30573 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30575 (grub_pxefs_open): Likewise.
30577 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30579 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30580 * util/grub.d/10_kfreebsd.in: Likewise.
30581 * util/grub.d/10_linux.in: Likewise.
30583 2010-02-06 Colin D Bennett <colin@gibibit.com>
30585 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30586 (gfxmenu_mod_SOURCES): New variable.
30587 (gfxmenu_mod_CFLAGS): Likewise.
30588 (gfxmenu_mod_LDFLAGS): Likewise.
30589 * include/grub/term.h (grub_term_set_current_output): Declare
30591 * docs/gfxmenu-theme-example.txt: New file.
30592 * gfxmenu/gfxmenu.c: Likewise.
30593 * gfxmenu/gui_box.c: Likewise.
30594 * gfxmenu/gui_canvas.c: Likewise.
30595 * gfxmenu/gui_circular_progress.c: Likewise.
30596 * gfxmenu/gui_image.c: Likewise.
30597 * gfxmenu/gui_label.c: Likewise.
30598 * gfxmenu/gui_list.c: Likewise.
30599 * gfxmenu/gui_progress_bar.c: Likewise.
30600 * gfxmenu/gui_string_util.c: Likewise.
30601 * gfxmenu/gui_util.c: Likewise.
30602 * gfxmenu/icon_manager.c: Likewise.
30603 * gfxmenu/model.c: Likewise.
30604 * gfxmenu/named_colors.c: Likewise.
30605 * gfxmenu/theme_loader.c: Likewise.
30606 * gfxmenu/view.c: Likewise.
30607 * gfxmenu/widget-box.c: Likewise.
30608 * include/grub/gfxmenu_model.h: Likewise.
30609 * include/grub/gfxmenu_view.h: Likewise.
30610 * include/grub/gfxwidgets.h: Likewise.
30611 * include/grub/gui.h: Likewise.
30612 * include/grub/gui_string_util.h: Likewise.
30613 * include/grub/icon_manager.h: Likewise.
30615 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30617 Agglomerate scrolling in gfxterm.
30619 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30620 (grub_virtual_screen_setup): Initialise 'total_screen'.
30621 (write_char): Split to ...
30622 (paint_char): ... this ...
30623 (write_char): ... and this.
30624 (paint_char): Handle delayed scrolling.
30625 (draw_cursor): Likewise.
30626 (scroll_up): Split to ...
30627 (real_scroll): ... this ...
30628 (scroll_up): ... and this.
30629 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30631 (grub_gfxterm_refresh): Call real_scroll.
30633 2010-02-06 Colin D Bennett <colin@gibibit.com>
30635 * include/grub/misc.h (grub_iscntrl): New inline function.
30636 (grub_isalnum): Likewise.
30637 (grub_strtol): Likewise.
30639 2010-02-06 Colin D Bennett <colin@gibibit.com>
30641 * normal/menu_text.c (get_entry_number): Move from here ...
30642 * normal/menu.c (get_entry_number): ... moved here.
30643 * include/grub/menu.h (grub_menu_get_default_entry_index):
30645 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30646 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30647 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30648 (grub_menu_viewer_should_return): Likewise.
30649 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30650 * normal/menu_text.c (run_menu): Enable menu switching.
30651 * normal/menu_viewer.c (should_return): New variable.
30652 (menu_viewer_changed): Likewise.
30653 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30654 (grub_menu_viewer_should_return): New function.
30655 (menuviewer_write_hook): Likewise.
30656 (grub_menu_viewer_init): Likewise.
30658 2010-02-06 Colin D Bennet <colin@gibibit.com>
30659 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30661 Support for gfxterm in a window.
30663 * include/grub/gfxterm.h: New file.
30664 * include/grub/video.h (struct grub_video_rect): New declaration.
30665 (grub_video_rect_t): Likewise.
30666 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30667 (refcount): New variable.
30668 (render_target): Likewise.
30669 (window): Likewise.
30670 (repaint_callback): Likewise.
30671 (grub_virtual_screen_setup): Use 'render_target'.
30672 (init_window): New function.
30673 (grub_gfxterm_init_window): Likewise.
30674 (grub_gfxterm_init): Check reference counter.
30676 (destroy_window): New function.
30677 (grub_gfxterm_destroy_window): Likewise.
30678 (grub_gfxterm_fini): Check reference counter.
30679 Use destroy_window.
30680 (redraw_screen_rect): Restore viewport.
30681 Use 'render_target' and 'window'.
30682 Call 'repaint_callback'.
30683 (write_char): Use 'render_target'.
30684 (draw_cursor): Likewise.
30685 (scroll_up): Restore viewport.
30686 Use 'render_target' and 'window'.
30687 Call 'repaint_callback'.
30688 (grub_gfxterm_cls): Likewise.
30689 (grub_gfxterm_refresh): Use 'window'.
30690 (grub_gfxterm_set_repaint_callback): New function.
30691 (grub_gfxterm_background_image_cmd): Use 'window'.
30692 (grub_gfxterm_get_term): New function.
30693 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30695 2010-02-06 Colin D Bennett <colin@gibibit.com>
30697 Bitmap scaling support.
30699 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30700 (bitmap_scale_mod_SOURCES): New variable.
30701 (bitmap_scale_mod_CFLAGS): Likewise.
30702 (bitmap_scale_mod_LDFLAGS): Likewise.
30703 * include/grub/bitmap_scale.h: New file.
30704 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30705 (background_image_cmd_options): New variable.
30706 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30707 (cmd): Rename and change type to ...
30708 (background_image_cmd_handle): ... this. All users updated.
30709 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30710 * video/bitmap_scale.c: New file.
30712 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30716 * Makefile.in (LIBSDL): New variable.
30717 (enable_grub_emu_sdl): Likewise.
30718 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30719 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30720 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30721 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30722 * util/sdl.c: New file.
30724 2010-02-06 Colin D Bennett <colin@gibibit.com>
30725 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30727 Double buffering support.
30729 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30730 * include/grub/video.h: Update comment.
30731 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30733 (grub_video_fb_doublebuf_blit_init): New prototype.
30734 * term/gfxterm.c (scroll_up): Support double buffering.
30735 (grub_gfxterm_refresh): Likewise.
30736 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30737 (grub_video_fb_doublebuf_blit_init): Likewise.
30738 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30739 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30740 'displayed_page', 'render_page' and 'update_screen'.
30741 (grub_video_vbe_fini): Free offscreen buffer.
30742 (doublebuf_pageflipping_commit): New function.
30743 (doublebuf_pageflipping_update_screen): Likewise.
30744 (doublebuf_pageflipping_init): Likewise.
30745 (double_buffering_init): Likewise.
30746 (grub_video_vbe_setup): Enable doublebuffering.
30747 (grub_video_vbe_swap_buffers): Implement.
30748 (grub_video_vbe_set_active_render_target): Handle double buffering.
30749 (grub_video_vbe_get_active_render_target): Likewise.
30750 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30751 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30752 (grub_video_vbe_enable_double_buffering): Likewise.
30753 (grub_video_vbe_swap_buffers): Use update_screen.
30754 (grub_video_set_mode): Use double buffering.
30756 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30758 * maintainance/gentrigtables.py: Remove.
30759 * lib/trig.c: Likewise.
30761 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30763 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30765 (trigtables.c): New rule.
30766 (gentrigtables): Likewise.
30767 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30769 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30771 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30774 2010-02-06 Colin D Bennet <colin@gibibit.com>
30776 Trigonometry support.
30778 * include/grub/trig.h: New file.
30779 * lib/trig.c: Likewise.
30780 * maintainance/gentrigtables.py: Likewise.
30781 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30782 (trig_mod_SOURCES): New variable.
30783 (trig_mod_CFLAGS): Likewise.
30784 (trig_mod_LDFLAGS): Likewise.
30786 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30788 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30791 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30793 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30796 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30798 * util/hostdisk.c (open_device): Don't use partition device when reading
30799 before the partition.
30800 (grub_util_biosdisk_read): Don't read from partition and before the
30801 partition in single operation.
30802 (grub_util_biosdisk_write): Don't write to partition and before the
30803 partition in single operation.
30805 2010-02-03 Torsten Landschoff <torsten@debian.org>
30807 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30810 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30812 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30814 (grub_biosdisk_write): Refuse to write to CDROM.
30816 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30818 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30820 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30822 * font/font.c (find_glyph): Check that bmp_idx is available before
30824 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30825 with (font == NULL).
30827 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30829 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30831 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30833 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30834 * util/grub-script-check.c (getline): Fix empty lines case.
30836 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30838 * Makefile.in (check): Exit with fail status when one of the tests
30840 * tests/example_functional_test.c (example_test): Fix reversed assert.
30841 * tests/example_unit_test.c (example_test): Likewise.
30843 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30845 * util/grub.d/10_linux.in: This script does not use any of the
30846 contents of gettext.sh, only the external command `gettext', so stop
30847 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30848 the same prefix as GRUB.)
30849 * util/grub.d/10_kfreebsd.in: Likewise.
30851 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30853 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30856 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30858 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30861 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30863 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30864 having a 4KiB and not 32KiB buffer size.
30866 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30868 * util/hostfs.c: Include `<errno.h>'.
30869 (grub_hostfs_read): Handle errors from fseeko() and fread().
30871 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30873 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30874 loop when using read hooks on files whose size isn't sector-aligned.
30876 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30878 Remove unused parameter.
30880 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30881 (grub_iso9660_open): Remove initialization of `data->length'.
30883 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30885 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30886 memleak conditions.
30888 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30890 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30891 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30893 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30895 * util/bin2h.c (usage): Fix warning (space after backslash).
30897 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30899 * font/font.c: Include `grub/fontformat.h.
30900 Remove font file format constants.
30901 (grub_font_load): Use the new macros.
30902 * include/grub/fontformat.h: New file.
30903 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30904 (write_font_pf2): Use the new macros.
30906 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30908 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30911 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30913 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30915 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30916 (_start): Macroify `0x7F'.
30918 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30919 (make_install_device): Use "(pxe)" as fallback prefix when booting
30922 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30924 * configure.ac: Reset LIBS after check for libgcc symbols.
30926 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30928 * util/hostdisk.c (open_device): Add trailing newline to debug
30931 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30933 * configure.ac: Check for `limits.h'.
30934 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30936 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30938 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30939 capitalize error strings.
30941 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30943 * util/grub.d/10_hurd.in: Add a recovery mode.
30945 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30947 * configure.ac: Check for libgcc symbols with -nostdlib.
30949 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30951 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30953 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30955 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30956 stack since heap may be unavailable at that point.
30957 (grub_ofconsole_gotoxy): Likewise.
30959 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30961 * configure.ac: Check for _restgpr_14_x.
30962 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30963 and _savegpr_* prototypes.
30965 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30967 Use generic grub_reboot() for i386-efi.
30969 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30970 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30971 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30973 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30975 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30976 presence of "prefix" variable as it breaks when normal.mod is
30979 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30981 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30982 stack since heap is unavailable at that point.
30984 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30986 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30987 (grub_freebsd_bootinfo): Rewritten.
30988 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30990 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30992 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30994 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30996 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30999 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31001 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31002 around for handling "/" to the correct fix. Fix a memory leak. Use
31003 xstrdup instead of strdup.
31005 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31007 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31009 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31011 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31013 * font/font.c (struct grub_font): New member 'bmp_idx'.
31014 (font_init): Initialise 'bmp_idx'.
31015 (load_font_index): Fill 'bmp_idx'.
31016 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31018 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31020 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31023 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31025 Move context handling out of the kernel.
31027 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31028 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31029 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31030 * conf/i386-efi.rmk: Likewise.
31031 * conf/i386-ieee1275.rmk: Likewise.
31032 * conf/i386-pc.rmk: Likewise.
31033 * conf/powerpc-ieee1275.rmk: Likewise.
31034 * conf/sparc64-ieee1275.rmk: Likewise.
31035 * conf/x86_64-efi.rmk: Likewise.
31036 * include/grub/env.h: Include grub/menu.h.
31037 (grub_env_var_type): Removed.
31038 (grub_env_var): Replaced field 'type' with 'global'.
31039 (grub_env_find): New prototype.
31040 (grub_env_context_open): Remove EXPORT_FUNC.
31041 (grub_env_context_close): Likewise.
31042 (grub_env_export): Likewise.
31043 (grub_env_set_data_slot): Removed.
31044 (grub_env_get_data_slot): Likewise.
31045 (grub_env_unset_data_slot): Likewise.
31046 (grub_env_unset_menu): New prototype.
31047 (grub_env_set_menu): Likewise.
31048 (grub_env_get_menu): Likewise.
31049 * include/grub/env_private.h: New file.
31050 * include/grub/normal.h (grub_context_init): New prototype.
31051 (grub_context_fini): Likewise.
31052 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31053 * normal/context.c (grub_cmd_export): ... to here.
31054 * kern/env.c: Include env_private.h.
31055 (HASHSZ): Moved to include/grub/env_private.h.
31056 (grub_env_context): Likewise.
31057 (grub_env_sorted_var): Likewise.
31058 (current_context): Renamed from this ...
31059 (grub_current_context): ...to this. 'static' removed. All users updated.
31060 (grub_env_find): Removed 'static'.
31061 (grub_env_context_open): Moved to normal/context.c.
31062 (grub_env_context_close): Likewise.
31063 (grub_env_export): Likewise.
31064 (mangle_data_slot_name): Removed.
31065 (grub_env_set_data_slot): Likewise.
31066 (grub_env_get_data_slot): Likewise.
31067 (grub_env_unset_data_slot): Likewise.
31068 * kern/main.c (grub_set_root_dev): Don't export root.
31069 It will be done later.
31070 (grub_main): Don't export prefix.
31071 It will be done later.
31072 * normal/context.c: New file.
31073 * normal/main.c (free_menu): Use grub_env_unset_menu.
31074 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31075 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31076 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31077 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31083 * commands/setpci.c: New file.
31084 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31085 (setpci_mod_SOURCES): New variable.
31086 (setpci_mod_CFLAGS): Likewise.
31087 (setpci_mod_LDFLAGS): Likewise.
31089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31091 Byte-addressable PCI configuration space.
31093 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31095 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31096 GRUB_PCI_REG_CACHELINE.
31097 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31098 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31099 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31100 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31101 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31102 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31103 grub_pci_make_address.
31104 (lock_rom_area): Likewise.
31105 * commands/lspci.c (grub_lspci_iter): Use macroses
31106 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31107 of grub_pci_make_address.
31108 * disk/ata.c (grub_ata_pciinit): Likewise.
31109 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31110 (GRUB_PCI_REG_VENDOR): Likewise.
31111 (GRUB_PCI_REG_DEVICE): Likewise.
31112 (GRUB_PCI_REG_COMMAND): Likewise.
31113 (GRUB_PCI_REG_STATUS): Likewise.
31114 (GRUB_PCI_REG_REVISION): Likewise.
31115 (GRUB_PCI_REG_CLASS): Likewise.
31116 (GRUB_PCI_REG_CACHELINE): Likewise.
31117 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31118 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31119 (GRUB_PCI_REG_BIST): Likewise.
31120 (GRUB_PCI_REG_ADDRESSES): Likewise.
31121 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31122 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31123 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31124 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31125 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31126 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31127 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31128 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31129 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31130 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31131 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31132 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31133 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31134 (GRUB_PCI_REG_MIN_GNT): Likewise.
31135 (GRUB_PCI_REG_MAX_LAT): Likewise.
31136 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31137 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31138 * video/efi_uga.c (find_framebuf): Likewise.
31139 * video/sm712.c (grub_video_sm712_setup): Likewise.
31140 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31143 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31145 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31146 can be reliably determined to be supported.
31148 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31150 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31151 that VESA is supported.
31152 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31155 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31157 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31159 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31161 * util/misc.c (make_system_path_relative_to_its_root): Work around
31162 special-casing of "/", as previous incarnation of this routine did.
31164 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31166 Fix any-emu compilation.
31168 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31169 * grub_bin2h_SOURCES: New variable.
31171 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31173 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31175 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31177 * util/grub.d/00_header.in: Fix handling of locale_dir.
31179 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31181 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31182 as possible unifont location (Gentoo).
31183 Reported by: Alexander Brüning
31185 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31187 Don't try to generate lists for kernel.img.
31189 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31190 (pkglib_MODULES): Remove kernel.img.
31191 (kernel_img_EXPORTS): Removed.
31192 (kernel_img_RELOCATABLE): New variable.
31193 * conf/x86_64-efi.rmk: Likewise.
31194 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31196 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31198 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31199 grub_xasprintf or grub_snprintf.
31200 (grub_vsprintf): Likewise.
31201 (grub_snprintf): New proto.
31202 (grub_vsnprintf): Likewise.
31203 (grub_xasprintf): Likewise.
31204 (grub_xvasprintf): Likewise.
31205 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31206 (grub_sprintf): Removed.
31207 (grub_vsnprintf): New function.
31208 (grub_snprintf): Likewise.
31209 (grub_xvasprintf): Likewise.
31210 (grub_xasprintf): Likewise.
31211 (grub_vsprintf): Renamed to ...
31212 (grub_vsnprintf_real): ...this. New argument max_len.
31214 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31216 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31217 fix grub-script-check warning.
31219 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31221 * include/grub/font.h (grub_font_load): Fix prototype.
31223 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31225 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31227 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31229 * include/grub/x86_64/at_keyboard.h: New file.
31231 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31233 * loader/mips/linux.c: Include missing grub/i18n.h.
31235 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31237 * normal/menu.c (notify_execution_failure): Clarify error message.
31239 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31241 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31242 return value (and revert all return statements). Update users.
31244 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31246 * kern/device.c (grub_device_iterate): Allocate new part_ent
31247 structure based on sizeof (*p) rather than sizeof (p->next), to
31248 account for structure padding.
31250 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31251 disk is NULL, which might happen for LVM physical volumes with no
31254 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31256 * loader/mips/linux.c (grub_cmd_initrd)
31257 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31259 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31261 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31262 (grub_video_video_init, grub_video_bitmap_init)
31263 (grub_font_manager_init, grub_term_gfxterm_init)
31264 (grub_at_keyboard_init): New extern declarations.
31265 (grub_machine_init): Initialize gfxterm and at_keyboard.
31267 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31269 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31270 `gfxterm.mod' into core image.
31272 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31273 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31274 (kernel_img_FORMAT): Copy to ...
31276 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31277 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31278 (kernel_img_FORMAT): ... here, and ...
31280 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31281 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31282 (kernel_img_FORMAT): ... here.
31284 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31285 and input (at_keyboard) terminals in kernel.
31286 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31288 (pkglib_MODULES): Remove `pci.mod'.
31289 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31290 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31291 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31292 (at_keyboard_mod_LDFLAGS): Remove variables.
31294 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31296 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31298 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31300 * include/grub/mips/libgcc.h: Only export symbols for functions
31301 that libgcc provides.
31303 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31307 * bus/bonito.c: New file.
31308 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31309 GRUB_PCI_NUM_DEVICES.
31310 * term/i386/pc/serial.c: Move to ...
31311 * term/serial.c: ... here. All users updated.
31312 * util/i386/pc/grub-mkimage.c: Move to ...
31313 * util/grub-mkrawimage.c: ... here. All users updated.
31314 * term/i386/pc/at_keyboard.c: Move to ...
31315 * term/at_keyboard.c: ... here. All users updated.
31316 * conf/mips-qemu-mips.rmk: New file.
31317 * conf/mips-yeeloong.rmk: Likewise.
31318 * conf/mips.rmk: Likewise.
31319 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31321 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31323 (grub_ata_pciinit): Support CS5536.
31324 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31325 * font/font_cmd.c (loadfont_command): Open file before passing it to
31327 (pseudo_file_read): New function.
31328 (pseudo_file_close): Likewise.
31329 (pseudo_fs): New structure.
31330 (load_font_module): New function.
31331 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31332 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31333 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31334 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31335 * include/grub/i386/at_keyboard.h: Split into ...
31336 * include/grub/at_keyboard.h: ... this ...
31337 * include/grub/i386/at_keyboard.h: ... and this.
31338 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31340 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31342 (grub_elf64_size): Likewise.
31343 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31345 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31346 * include/grub/i386/coreboot/serial.h: Rewritten.
31347 * include/grub/i386/ieee1275/serial.h: Include
31348 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31349 * include/grub/i386/pc/serial.h: Moved from here ...
31350 * include/grub/serial.h: ... to here. All users updated.
31351 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31352 (GRUB_PCI_NUM_BUS): Likewise.
31353 (GRUB_PCI_NUM_DEVICES): Likewise.
31354 (grub_pci_device_map_range): Add missing volatile keyword.
31355 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31356 * include/grub/mips/at_keyboard.h: New file.
31357 * include/grub/mips/cache.h: Likewise.
31358 * include/grub/mips/io.h: Likewise.
31359 * include/grub/mips/kernel.h: Likewise.
31360 * include/grub/mips/libgcc.h: Likewise.
31361 * include/grub/mips/pci.h: Likewise.
31362 * include/grub/mips/qemu-mips/boot.h: Likewise.
31363 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31364 * include/grub/mips/qemu-mips/loader.h: Likewise.
31365 * include/grub/mips/qemu-mips/memory.h: Likewise.
31366 * include/grub/mips/qemu-mips/serial.h: Likewise.
31367 * include/grub/mips/qemu-mips/time.h: Likewise.
31368 * include/grub/mips/relocator.h: Likewise.
31369 * include/grub/mips/time.h: Likewise.
31370 * include/grub/mips/types.h: Likewise.
31371 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31372 * include/grub/mips/yeeloong/boot.h: Likewise.
31373 * include/grub/mips/yeeloong/kernel.h: Likewise.
31374 * include/grub/mips/yeeloong/loader.h: Likewise.
31375 * include/grub/mips/yeeloong/memory.h: Likewise.
31376 * include/grub/mips/yeeloong/pci.h: Likewise.
31377 * include/grub/mips/yeeloong/serial.h: Likewise.
31378 * include/grub/mips/yeeloong/time.h: Likewise.
31379 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31380 * kern/elf.c (grub_elf32_size): New parameter. All users
31382 (grub_elf64_size): Likewise.
31383 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31384 Load modules before saying "Welcome to GRUB!".
31385 Call grub_refresh after saying "Welcome to GRUB!".
31386 * kern/mips/cache.S: New file.
31387 * kern/mips/cache_flush.S: Likewise.
31388 * kern/mips/dl.c: Likewise.
31389 * kern/mips/init.c: Likewise.
31390 * kern/mips/qemu-mips/init.c: Likewise.
31391 * kern/mips/startup.S: Likewise.
31392 * kern/mips/yeeloong/init.c: Likewise.
31393 * kern/term.c (grub_putcode): Handle NULL terminal.
31394 (grub_getcharwidth): Likewise.
31395 (grub_getkey): Likewise.
31396 (grub_checkkey): Likewise.
31397 (grub_getkeystatus): Likewise.
31398 (grub_getxy): Likewise.
31399 (grub_getwh): Likewise.
31400 (grub_gotoxy): Likewise.
31401 (grub_cls): Likewise.
31402 (grub_setcolorstate): Likewise.
31403 (grub_setcolor): Likewise.
31404 (grub_getcolor): Likewise.
31405 (grub_refresh): Likewise.
31406 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31407 (write_jump): Add hatch nop.
31408 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31409 * lib/mips/setjmp.S: New file.
31410 * loader/mips/linux.c: Likewise.
31411 * term/i386/pc/at_keyboard.c: Move from here ...
31412 * term/at_keyboard.c: ... to here.
31413 * term/i386/pc/serial.c: Moved from here ...
31414 * term/serial.c: ... to here. All users updated.
31415 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31416 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31417 (serial_translate_key_sequence): Avoid deadlock.
31418 (grub_serial_getkey): Handle backspace.
31419 (grub_serial_putchar): Fix newline handling.
31420 * util/i386/pc/grub-mkimage.c: Move from here ...
31421 * util/grub-mkrawimage.c: ... to here. All users updated.
31422 (generate_image): New parameters 'font_path' and 'format'.
31423 Support embedding font.
31424 Use grub_host_to_target* instead of grub_cpu_to_le*.
31425 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31426 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31427 (options): New option "--font".
31429 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31430 (main): Handle "--font".
31431 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31432 (grub_virtual_screen_setup): Set bg_color_display.
31433 (redraw_screen_rect): Use bg_color_display instead of incorrect
31435 (grub_gfxterm_cls): Likewise.
31436 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31437 Support embedding config file.
31438 (add_segments): Likewise.
31439 (options): New option "--config".
31440 (main): Handle "--config".
31441 * video/sm712.c: New file.
31443 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31445 Fix parallel builds.
31447 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31448 font.c depend on ascii.h).
31450 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31452 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31454 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31456 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31457 By default: disabled.
31458 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31461 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31463 * font/font.c: Update copyright years.
31464 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31466 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31468 * font/font.c: Include `ascii.h'.
31469 (ASCII_BITMAP_SIZE): New macro.
31470 (ascii_font_glyph): Define.
31471 (ascii_glyph_lookup): New function.
31472 (grub_font_get_string_width): Change comment. If glyph not found, use
31473 ascii_glyph_lookup.
31474 (grub_font_get_glyph_with_fallback): If glyph not available returns
31475 ascii_glyph_lookup.
31476 * util/grub-mkfont.c (file_formats): New enum.
31477 (options): Add `ascii-bitmaps' new option.
31478 (usage): Add `asii-bitmaps' new option.
31479 (write_font_ascii_bitmap): New function.
31480 (write_font): Rename to ...
31481 (write_font_p2): ... this. Remove print_glyphs call.
31482 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31483 used. Call print_glyphs.
31484 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31486 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31488 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31489 (grub_bin2h_SOURCES): New variable.
31490 * util/bin2h.c: New file.
31492 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31494 * include/multiboot.h: Resynced with spec.
31495 * include/multiboot2.h: Likewise.
31496 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31497 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31499 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31501 * include/grub/term.h (grub_term_register_input,
31502 grub_term_register_output): Check return of terminal init()
31503 routines, and abort if errors are raised.
31505 * commands/terminal.c: Update copyright year.
31507 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31509 * commands/terminal.c (grub_cmd_terminal_input)
31510 (grub_cmd_terminal_output): Check return of terminal init()
31511 routines, and abort if errors are raised.
31513 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31515 * include/grub/i386/bsd.h: Fix include pathes.
31517 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31519 Add missing *BSD copyright headers.
31521 * include/grub/aout.h: Add BSD licence.
31522 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31523 * include/grub/i386/freebsd_linker.h: ... here,
31524 * include/grub/i386/freebsd_reboot.h: ... here,
31525 * include/grub/i386/netbsd_bootinfo.h: ... here,
31526 * include/grub/i386/netbsd_reboot.h: ... here,
31527 * include/grub/i386/openbsd_bootarg.h: ... here,
31528 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31529 licence to each file.
31531 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31533 * acinclude.m4: Remove `nop' assembly instruction; it's not
31534 implemented by all architectures.
31536 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31538 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31539 ELILO. This is no longer necessary.
31541 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31543 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31545 * util/grub-script-check.c: grub-script-check tool.
31546 * conf/common.rmk: Make rules for grub-script-check.
31548 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31550 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31551 spotting it back in 2008. Shame on me for forgetting he did.
31553 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31555 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31557 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31558 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31559 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31560 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31561 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31562 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31564 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31566 * include/grub/test.h: Add license header.
31567 * tests/example_functional_test.c: Likewise.
31568 * tests/example_unit_test.c: Likewise.
31569 * tests/lib/functional_test.c: Likewise.
31570 * tests/lib/test.c: Likewise.
31571 * tests/lib/unit_test.c: Likewise.
31573 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31575 Use flag-based instead of hook-based video mode selection and "auto"
31578 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31579 (grub_video_set_mode): Changed prototype. All users updated.
31580 (grub_video_check_mode_flag): New inline function.
31581 * video/video.c (parse_modespec): New function.
31582 (grub_video_set_mode): Parse flags and keywords.
31584 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31586 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31589 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31591 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31593 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31595 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31597 * util/grub-emu.c (usage): Likewise.
31598 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31599 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31600 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31601 * util/i386/pc/grub-setup.c (usage): Likewise.
31603 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31605 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31607 (grub_util_info): Likewise.
31608 (grub_util_error): Likewise.
31609 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31610 and/or new lines in `grub_util_warna', `grub_util_info',
31611 `grub_util_error' calls.
31612 * util/getroot.c: Likewise.
31613 * util/grub-editenv.c: Likewise.
31614 * util/grub-emu.c: Likewise.
31615 * util/grub-fstest.c: Likewise.
31616 * util/grub-mkdevicemap.c: Likewise.
31617 * util/grub-mkfont.c: Likewise.
31618 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31619 * util/grub-mkrelpath.c: Likewise.
31620 * util/grub-pe2elf.c: Likewise.
31621 * util/grub-probe.c: Likewise.
31622 * util/hostdisk.c: Likewise.
31623 * util/i386/efi/grub-mkimage.c: Likewise.
31624 * util/i386/pc/grub-mkimage.c: Likewise.
31625 * util/i386/pc/grub-setup.c: Likewise.
31626 * util/ieee1275/ofpath.c: Likewise.
31627 * util/mkisofs/eltorito.c: Likewise.
31628 * util/mkisofs/rock.c: Likewise.
31629 * util/mkisofs/write.c: Likewise.
31630 * util/raid.c: Likewise.
31631 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31632 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31634 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31636 Enable multiboot on non-pc.
31638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31639 multiboot.mod and multiboot2.mod to ...
31640 * conf/i386.rmk (pkglib_MODULES): ... here.
31641 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31643 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31644 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31646 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31647 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31649 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31650 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31652 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31653 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31655 (ata_mod_SOURCES): Removed.
31656 (ata_mod_CFLAGS): Likewise.
31657 (ata_mod_LDFLAGS): Likewise.
31658 (relocator_mod_SOURCES): Removed.
31659 (relocator_mod_CFLAGS): Likewise.
31660 (relocator_mod_ASFLAGS): Likewise.
31661 (relocator_mod_LDFLAGS): Likewise.
31663 * include/grub/x86_64/multiboot.h: New file.
31664 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31667 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31669 Video multiboot support.
31671 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31673 * include/multiboot.h: Resynced with multiboot specification.
31674 * include/multiboot2.h: Likewise.
31675 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31676 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31677 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31678 (HAS_VGA_TEXT): Likewise.
31679 (accepts_video): New variable.
31680 (grub_multiboot_set_accepts_video): New function.
31681 (grub_multiboot_get_mbi_size): Account for video structures.
31682 (set_video_mode): New function.
31683 (retrieve_video_parameters): Likewise.
31684 (grub_multiboot_make_mbi): Fill video fields.
31686 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31690 * include/grub/video.h (grub_video_driver_id): New type.
31691 (grub_video_adapter): New member 'id'. All users updated.
31692 (grub_video_get_driver_id): New proto.
31693 * video/video.c (grub_video_get_driver_id): New function.
31695 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31697 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31700 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31702 * normal/cmdline.c (print_completion): Gettextizze.
31704 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31706 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31708 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31710 * gettext/gettext.c (grub_gettext_translate): Push and pop
31712 (grub_gettext_delete_list): Change comment style.
31713 * kern/err.c (grub_error): Gettextizze.
31714 (grub_fatal): Gettextizze.
31716 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31718 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31719 (grub_linux16_real_boot): ... this.
31720 * kern/i386/loader.S: Likewise.
31721 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31722 (grub_linux16_boot): New function. Switches to text mode and calls
31723 grub_linux16_real_boot().
31725 * loader/i386/bsd.c: Include `<grub/video.h>'.
31726 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31727 text mode before calling grub_unix_real_boot().
31729 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31730 (grub_multiboot_boot): Switch to text mode before calling
31731 grub_relocator32_boot().
31733 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31734 (grub_chainloader_boot): Switch to text mode before calling
31735 grub_chainloader_real_boot().
31737 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31738 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31740 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31743 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31744 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31746 * util/grub.d/00_header.in: Define a "savedefault" function for use
31748 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31750 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31751 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31753 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31754 saved_entry if boot_once is unset.
31755 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31756 previous saved entry (i.e. grub-reboot).
31758 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31760 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31762 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31764 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31766 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31768 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31770 * util/grub-reboot.in: Fix --version output.
31771 * util/grub-set-default.in: Likewise.
31773 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31775 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31778 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31780 * util/grub.d/00_header.in: Quote the value assigned to `default',
31781 in case it contains spaces.
31783 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31785 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31786 `save_default_entry' call from the macosx case to the linux case.
31788 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31789 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31791 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31792 in `chosen' environment variable.
31793 * normal/menu_text.c (get_entry_number): Check if the variable
31794 matches the title of a menu entry.
31795 (run_menu): Pass menu to get_entry_number.
31797 * util/grub-reboot.in: New file.
31798 * util/grub-set-default.in: New file.
31799 * conf/common.rmk (grub-reboot): New utility.
31800 (grub-set-default): New utility.
31802 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31803 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31804 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31805 move it to `saved_entry' for the next boot. Load environment on
31807 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31808 * util/grub.d/10_hurd.in: Likewise.
31809 * util/grub.d/10_linux.in (linux_entry): Likewise.
31810 * util/grub.d/10_windows.in: Likewise.
31811 * util/grub.d/30_os-prober.in: Likewise.
31813 * util/grub-install.in: Create environment block.
31814 * util/i386/efi/grub-install.in: Likewise.
31815 * util/ieee1275/grub-install.in: Likewise.
31816 * util/sparc64/ieee1275/grub-install.in: Likewise.
31818 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31820 Unit testing framework for GRUB.
31822 * Makefile.in: Test framework build rules for 'make check'.
31823 * conf/tests.rmk: Build rules for individual tests and framework.
31825 * include/grub/test.h: Header file for whitebox tests.
31826 * tests/lib/functional_test.c: Framework support for whitebox
31828 * tests/lib/test.c: Common whitebox testing code for unit and
31830 * tests/lib/unit_test.c: Framework support for whitebox unit
31833 * tests/util/grub-shell-tester.in: Support utility for grub-script
31835 * tests/util/grub-shell.in: Utility to execute grub-script
31836 commands in a Qemu instance.
31838 * tests/example_functional_test.c: Example whitebox functional
31840 * tests/example_grub_script_test.in: Example grub-script test.
31841 * tests/example_scripted_test.in: Example scripted test.
31842 * tests/example_unit_test.c: Example whitebox unit test.
31844 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31846 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31847 Add loader/i386/multiboot_mbi.c.
31848 (multiboot2_mod_SOURCES): Likewise.
31849 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31850 (multiboot2_mod_SOURCES): Likewise.
31851 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31852 (grub_multiboot_make_mbi): Likewise.
31853 (grub_multiboot_free_mbi): Likewise.
31854 (grub_multiboot_init_mbi): Likewise.
31855 (grub_multiboot_add_module): Likewise.
31856 (grub_multiboot_set_bootdev): Likewise.
31857 * loader/i386/multiboot.c (mbi): Removed.
31858 (mbi_dest): Likewise.
31859 (alloc_mbi): New variable.
31860 (grub_multiboot_payload_size): Removed. All users updated.
31861 (grub_multiboot_pure_size): New variable.
31862 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31863 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31864 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31865 (grub_fill_multiboot_mmap): Likewise.
31866 (grub_multiboot_get_bootdev): Likewise.
31867 (grub_multiboot): Use multiboot_mbi functions.
31868 * loader/i386/multiboot_mbi.c: New file.
31870 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31872 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31873 it would result in module crash.
31875 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31877 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31878 (grub_ofconsole_getwh): Split to ...
31879 (grub_ofconsole_getwh): ... this.
31880 (grub_ofconsole_dimensions): ...and this.
31881 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31883 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31885 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31887 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31889 * loader/i386/pc/multiboot2.c: Removed stalled file.
31891 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31893 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31894 Reported by: Grégoire Sutre
31896 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31898 * util/misc.c (canonicalize_file_name): New function.
31899 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31900 instead of realpath().
31902 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31904 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31905 and make it clearer that it's optional. Based on confusion
31908 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31910 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31911 in premature implicit newline.
31913 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31915 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31916 which resulted in garbled command line at the end of screen.
31918 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31920 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31921 initialization with similar approach as with other Linux loaders.
31923 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31925 Fix i386-ieee1275 build.
31927 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31928 and grub_term_height() for video_{width,height} initialization.
31930 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31932 Fix grub-emu build.
31934 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31936 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31937 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31939 Support for multiple terminals.
31941 * Makefile.in (pkglib_DATA): terminal.lst.
31942 (terminal.lst): New target.
31943 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31944 (GRUB_MOD_INIT(handler)): Likewise.
31945 (GRUB_MOD_FINI(handler)): Likewise.
31946 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31947 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31948 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31949 (grub_cmd_sleep): Use grub_term_save_pos.
31950 * commands/terminal.c: New file.
31951 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31952 commands/terminal.c and lib/charset.c.
31953 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31954 (pkglib_MODULES): Add terminal.mod.
31955 (terminal_mod_SOURCES): New variable.
31956 (terminal_mod_CFLAGS): Likewise.
31957 (terminal_mod_LDFLAGS): Likewise.
31958 * genhandlerlist.sh: Don't handle terminals.
31959 * genmk.rb: Generate terminal-*.lst.
31960 * genterminallist.sh: New file.
31961 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31962 (grub_is_valid_utf8): Likewise.
31963 (grub_utf8_to_ucs4_alloc): Likewise.
31964 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31965 (grub_menu_register_viewer): Changed argument.
31966 (grub_menu_try_text): New proto.
31967 (grub_gfxmenu_try_hook): New declaration.
31968 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31969 (grub_menu_init_page): Additional argument term.
31970 (grub_normal_init_page): Likewise.
31971 (grub_cmdline_get): Arguments simplified.
31972 (grub_utf8_to_ucs4_alloc): Removed.
31973 (grub_print_ucs4): Additional argument term.
31974 (grub_getstringwidth): Likewise.
31975 (grub_print_message_indented): Likewise.
31976 (grub_menu_text_register_instances): New proto.
31977 (grub_show_menu): Likewise.
31978 (read_terminal_list): Likewise.
31979 (grub_set_more): Likewise.
31980 * include/grub/parser.h: Include handler.h.
31981 * include/grub/reader.h: Rewritten.
31982 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31983 (GRUB_TERM_WIDTH): Changed to function.
31984 (GRUB_TERM_HEIGHT): Likewise.
31985 (GRUB_TERM_BORDER_WIDTH): Likewise.
31986 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31987 (GRUB_TERM_NUM_ENTRIES): Likewise.
31988 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31989 (GRUB_TERM_CURSOR_X): Likewise.
31990 (grub_term_input_class): Likewise.
31991 (grub_term_output_class): Likewise.
31992 (grub_term_outputs_disabled): New declaration.
31993 (grub_term_inputs_disabled): Likewise.
31994 (grub_term_outputs): Likewise.
31995 (grub_term_inputs): Likewise.
31996 (grub_term_register_input): Rewritten.
31997 (grub_term_register_output): Likewise.
31998 (grub_term_unregister_input): Likewise.
31999 (grub_term_unregister_output): Likewise.
32000 (FOR_ACTIVE_TERM_INPUTS): New macro.
32001 (FOR_DISABLED_TERM_INPUTS): Likewise.
32002 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32003 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32004 * include/grub/terminfo.h: Add oterm argument to all protypes.
32005 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32006 Use grub_rescue_run.
32007 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32009 * kern/reader.c: Removed. All users updated.
32010 * kern/rescue_reader.c (grub_rescue_init): Removed.
32011 (grub_rescue_reader): Likewise.
32012 (grub_register_rescue_reader): Likewise.
32013 (grub_rescue_run): New function based on kern/reader.c.
32014 * kern/term.c: Adapted for multiterm.
32015 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32016 (grub_is_valid_utf8): Likewise.
32017 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32018 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32020 * loader/i386/linux.c (grub_linux_boot): Likewise.
32021 * normal/auth.c (grub_username_get): New function.
32022 (grub_auth_check_authentication): Use grub_username_get.
32023 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32024 * normal/color.c: Adapt for multiterm.
32025 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32026 (grub_normal_init_page): Additional argument term.
32027 (read_lists): Call read_terminal_lists.
32028 (grub_enter_normal_mode): Call grub_cmdline_run.
32029 Handle grub_normal_exit_level.
32030 (grub_cmd_normal): Make reentrant.
32031 (grub_cmd_normal_exit): New function.
32032 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32033 * normal/menu.c: Adapt for multiterm.
32034 * normal/menu_entry.c: Likewise.
32035 * normal/menu_text.c: Likewise.
32036 * normal/menu_viewer.c: Removed. All users updated.
32037 * normal/term.c: New file.
32038 * util/console.c: Change order of includes to workaround a bug in
32040 * term/terminfo.c: New argument oterm on all exported functions.
32042 * util/grub-editenv.c (grub_term_input_class): Removed.
32043 (grub_term_output_class): Likewise.
32045 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32047 Make loader output a bit more user-friendly.
32049 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32050 is being loaded. Likewise for the Hurd.
32052 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32053 that kernel of FreeBSD ${version} is being loaded.
32055 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32057 (grub_cmd_initrd): Likewise.
32058 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32059 that Linux ${version} is being loaded. Likewise for initrd.
32061 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32063 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32065 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32067 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32068 (GRUB_MOD_INIT): Gettextizze.
32069 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32070 (GRUB_MOD_INIT): Gettextizze.
32071 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32072 (grub_cmd_linux): Capitalise Linux.
32073 (GRUB_MOD_INIT): Gettextizze.
32074 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32075 (grub_cmd_linux): Capitalise Linux.
32076 (GRUB_MOD_INIT): Gettextizze.
32077 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32078 (grub_cmd_linux): Capitalise Linux.
32079 (GRUB_MOD_INIT): Gettextizze.
32080 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32081 (GRUB_MOD_INIT): Gettextizze.
32082 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32083 (grub_cmd_linux): Capitalise Linux.
32084 (GRUB_MOD_INIT): Gettextizze.
32085 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32086 (grub_cpu_xnu_init): Gettextizze.
32087 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32088 (GRUB_MOD_INIT): Gettextizze.
32089 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32090 (GRUB_MOD_INIT): Gettextizze.
32091 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32092 (grub_linux_load64): Capitalise Linux.
32093 (GRUB_MOD_INIT): Gettextizze.
32094 * loader/xnu.c: Include `<grub/i18n.h>'.
32095 (GRUB_MOD_INIT): Gettextizze.
32096 * po/POTFILES: Add `loader/efi/appleloader.c',
32097 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32098 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32099 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32100 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32101 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32102 and `loader/xnu.c'.
32104 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32106 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32108 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32110 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32111 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32112 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32114 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32116 Reset Multiboot 2 support. New loader implements the draft in
32117 /branches/multiboot2 and shares as much code as possible with the
32118 production Multiboot 1 implementation.
32120 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32121 * loader/multiboot2.c: Likewise.
32122 * loader/i386/multiboot_helper.S: Likewise.
32123 * include/multiboot2.h: Replace with latest version from the draft
32124 in /branches/multiboot2.
32126 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32127 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32128 and `loader/multiboot2.c'.
32129 (pkglib_MODULES): Add `multiboot2.mod'.
32130 (multiboot2_mod_SOURCES): New variable.
32131 (multiboot2_mod_LDFLAGS): Likewise.
32132 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32134 * conf/i386-pc.rmk: Likewise.
32136 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32137 (multiboot_mod_SOURCES): Remove variable.
32138 (multiboot_mod_LDFLAGS): Likewise.
32139 (multiboot_mod_CFLAGS): Likewise.
32141 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32142 `<multiboot2.h>' instead of `<multiboot.h>'.
32143 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32144 (MULTIBOOT_HEADER_MAGIC): New macros.
32146 * loader/multiboot_loader.c (module_version_status): Remove variable.
32147 (find_multi_boot2_header): Remove function.
32148 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32149 logic. Always check for the Multiboot version we're compiling for.
32150 (grub_cmd_module_loader): Likewise.
32151 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32152 command instead of `multiboot'.
32154 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32156 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32157 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32160 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32161 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32163 Fix breakage introduced with previous commit.
32165 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32167 * normal/handler.c (read_handler_list): Revert part of previous commit
32168 affecting this file.
32169 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32170 (grub_normal_execute): ... here.
32172 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32174 Merge prefix-redefinition-fix branch.
32176 * normal/autofs.c (read_fs_list): Make function capable of being
32177 run multiple times, gracefuly replacing the previous data
32179 * normal/dyncmd.c (read_command_list): Likewise.
32180 * normal/handler.c (read_handler_list): Likewise.
32181 * normal/main.c (read_lists): New function. Calls all the
32182 list reading functions.
32183 (grub_normal_execute): Use read_lists() instead of calling all
32184 list reading functions explicitly. Register read_lists() as a
32185 variable hook attached to ${prefix}.
32187 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32189 Merge crypto branch.
32191 * Makefile.in (pkglib_DATA): Add crypto.lst.
32192 (crypto.lst): New target.
32193 * commands/hashsum.c: New file.
32194 * commands/password.c (check_password): Use grub_crypto_memcmp.
32195 * commands/password_pbkdf2.c: New file.
32196 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32197 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32198 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32199 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32200 -I$(srcdir)/lib/libgcrypt_wrap.
32201 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32202 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32203 password_pbkdf2.mod.
32204 (crypto_mod_SOURCES): New variable.
32205 (crypto_mod_CFLAGS): Likewise.
32206 (crypto_mod_LDFLAGS): Likewise.
32207 (hashsum_mod_SOURCES): New variable.
32208 (hashsum_mod_CFLAGS): Likewise.
32209 (hashsum_mod_LDFLAGS): Likewise.
32210 (pbkdf2_mod_SOURCES): New variable.
32211 (pbkdf2_mod_CFLAGS): Likewise.
32212 (pbkdf2_mod_LDFLAGS): Likewise.
32213 (password_pbkdf2_mod_SOURCES): New variable.
32214 (password_pbkdf2_mod_CFLAGS): Likewise.
32215 (password_pbkdf2_mod_LDFLAGS): Likewise.
32216 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32217 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32218 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32219 Include conf/gcry.rmk.
32220 * include/grub/auth.h: Rewritten.
32221 * include/grub/crypto.h: New file.
32222 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32223 * include/grub/normal.h (read_crypto_list): New prototype.
32224 * lib/crypto.c: New file.
32225 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32226 * lib/pbkdf2.c: Likewise.
32227 * normal/auth.c (grub_auth_strcmp): Removed.
32228 (grub_iswordseparator): Likewise.
32229 (grub_auth_strword): Likewise.
32230 (is_authenticated): Use grub_strword.
32231 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32232 and grub_strword. Pass entered password to authentication callback.
32233 * normal/crypto.c: New file.
32234 * normal/main.c: Call read_crypto_list.
32235 * util/grub-mkpasswd-pbkdf2.c: New file.
32236 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32238 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32240 Fix descent and ascent calculation.
32242 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32243 (options): New option "asce".
32245 (add_char): Ignore invalid glyphs for descent calculation.
32246 Calculate ascent from actual content.
32247 (print_glyphs): Use 'asce'.
32248 (write_font): Likewise. Allow ascent override.
32249 (main): Handle "asce" option.
32251 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32253 * kern/err.c: Include `<grub/i18n.h>'.
32254 (grub_print_error): Add full stop. Gettextizze.
32255 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32256 (grub_bsd_load_elf): Capitalise ELF.
32257 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32258 (grub_cmd_freebsd_module): Likewise.
32259 (grub_cmd_freebsd_module_elf): Likewise.
32260 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32262 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32264 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32265 * commands/search_file.c (HELP_MESSAGE): New macro.
32266 * commands/search_label.c (HELP_MESSAGE): Likewise.
32267 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32268 * po/POTFILES: Add `commands/search_file.c',
32269 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32270 `commands/search.c'.
32272 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32274 * config.rpath: Update from Gnulib.
32276 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32278 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32280 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32282 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32284 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32286 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32287 arguments to fread so that we get a return value in bytes, rather
32288 than something that will normally be rounded down to 0.
32289 Adjust error handling to avoid producing garbage when size_t is not
32290 the same size as long long.
32292 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32294 * util/mkisofs/write.c (padblock_write): Check return value of
32297 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32299 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32302 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32304 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32306 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32307 instead of manual alignment.
32308 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32309 verbose). Avoid attempts to read past end of the device
32310 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32311 but GRUB_DISK_CACHE_SIZE may exceed that).
32313 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32315 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32316 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32319 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32321 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32323 (grub_efi_piwg_device_path): New structure
32324 (grub_efi_piwg_device_path_t): New type.
32325 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32326 (devpath_1): Transform to a structure. All users updated.
32327 (devpath_2): Likewise.
32328 (devpath_3): Likewise.
32329 (devpath_4): Likewise.
32330 (devpath_5): Likewise.
32332 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32334 * loader/efi/appleloader.c: Restored. Update all users.
32336 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32338 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32340 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32341 (struct boot_blocklist): Move from here ...
32342 * include/grub/i386/pc/boot.h [ASM_FILE]
32343 (struct grub_boot_blocklist): ... to here. Update all users.
32344 (setup): Only initialize `start' member of `first_block'
32345 structure. Add assert() calls to verify the other members.
32347 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32348 (generate_image): Fix broken blocklist length initialization.
32349 Add assert() call to verify blocklist `segment' field.
32351 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32353 * loader/efi/appleloader.c: Remove. Update all users.
32355 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32357 * boot/i386/pc/boot.S: Update copyright year.
32358 * boot/i386/pc/cdboot.S: Likewise.
32359 * boot/i386/pc/diskboot.S: Likewise.
32360 * boot/i386/pc/lnxboot.S: Likewise.
32361 * boot/i386/pc/pxeboot.S: Likewise.
32362 * bus/pci.c: Likewise.
32363 * commands/cmp.c: Likewise.
32364 * commands/help.c: Likewise.
32365 * commands/hexdump.c: Likewise.
32366 * commands/i386/pc/halt.c: Likewise.
32367 * commands/i386/pc/play.c: Likewise.
32368 * commands/i386/pc/vbeinfo.c: Likewise.
32369 * commands/ls.c: Likewise.
32370 * commands/test.c: Likewise.
32371 * disk/dmraid_nvidia.c: Likewise.
32372 * disk/i386/pc/biosdisk.c: Likewise.
32373 * disk/ieee1275/nand.c: Likewise.
32374 * disk/ieee1275/ofdisk.c: Likewise.
32375 * disk/lvm.c: Likewise.
32376 * disk/raid.c: Likewise.
32377 * disk/raid6_recover.c: Likewise.
32378 * disk/scsi.c: Likewise.
32379 * fs/affs.c: Likewise.
32380 * fs/cpio.c: Likewise.
32381 * fs/ext2.c: Likewise.
32382 * fs/hfs.c: Likewise.
32383 * fs/iso9660.c: Likewise.
32384 * fs/ntfs.c: Likewise.
32385 * fs/sfs.c: Likewise.
32386 * fs/udf.c: Likewise.
32387 * fs/ufs.c: Likewise.
32388 * fs/xfs.c: Likewise.
32389 * gencmdlist.sh: Likewise.
32390 * genmk.rb: Likewise.
32391 * include/grub/disk.h: Likewise.
32392 * include/grub/efi/api.h: Likewise.
32393 * include/grub/efi/efi.h: Likewise.
32394 * include/grub/efi/pe32.h: Likewise.
32395 * include/grub/elf.h: Likewise.
32396 * include/grub/fs.h: Likewise.
32397 * include/grub/i386/at_keyboard.h: Likewise.
32398 * include/grub/i386/pc/memory.h: Likewise.
32399 * include/grub/i386/pc/vbe.h: Likewise.
32400 * include/grub/i386/pci.h: Likewise.
32401 * include/grub/i386/tsc.h: Likewise.
32402 * include/grub/ieee1275/ieee1275.h: Likewise.
32403 * include/grub/ntfs.h: Likewise.
32404 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32405 * include/grub/sparc64/libgcc.h: Likewise.
32406 * include/grub/symbol.h: Likewise.
32407 * include/grub/types.h: Likewise.
32408 * include/multiboot2.h: Likewise.
32409 * io/gzio.c: Likewise.
32410 * kern/device.c: Likewise.
32411 * kern/disk.c: Likewise.
32412 * kern/efi/efi.c: Likewise.
32413 * kern/efi/mm.c: Likewise.
32414 * kern/elf.c: Likewise.
32415 * kern/file.c: Likewise.
32416 * kern/i386/dl.c: Likewise.
32417 * kern/i386/pc/init.c: Likewise.
32418 * kern/i386/pc/startup.S: Likewise.
32419 * kern/ieee1275/ieee1275.c: Likewise.
32420 * kern/ieee1275/init.c: Likewise.
32421 * kern/main.c: Likewise.
32422 * kern/mm.c: Likewise.
32423 * kern/powerpc/dl.c: Likewise.
32424 * kern/sparc64/dl.c: Likewise.
32425 * kern/x86_64/dl.c: Likewise.
32426 * lib/hexdump.c: Likewise.
32427 * loader/efi/appleloader.c: Likewise.
32428 * loader/i386/ieee1275/linux.c: Likewise.
32429 * loader/i386/pc/chainloader.c: Likewise.
32430 * loader/i386/pc/linux.c: Likewise.
32431 * loader/i386/pc/multiboot2.c: Likewise.
32432 * loader/ieee1275/multiboot2.c: Likewise.
32433 * loader/multiboot2.c: Likewise.
32434 * loader/multiboot_loader.c: Likewise.
32435 * loader/powerpc/ieee1275/linux.c: Likewise.
32436 * normal/completion.c: Likewise.
32437 * normal/menu_entry.c: Likewise.
32438 * partmap/apple.c: Likewise.
32439 * util/grub.d/10_hurd.in: Likewise.
32440 * util/hostfs.c: Likewise.
32441 * video/readers/png.c: Likewise.
32443 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32445 * include/grub/misc.h (GNUC_PREREQ): New macro.
32446 (ATTRIBUTE_ERROR): New macro.
32447 * include/grub/list.h (grub_bad_type_cast_real): Use
32450 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32452 * normal/menu_text.c (print_message): Change messages.
32454 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32456 * normal/menu_entry.c (store_completion): Gettextizze.
32458 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32460 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32462 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32464 * po/POTFILES: Sort correctly.
32466 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32468 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32469 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32470 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32472 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32473 summary. Gettextizze the strings.
32474 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32475 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32476 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32478 (GRUB_MOD_INIT): Remove command name from summary.
32479 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32481 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32482 * term/i386/pc/serial.c (options): Add full stops.
32483 (GRUB_MOD_INIT): Remove command name from the summary.
32485 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32487 * commands/acpi.c: Gettextizze help strings and/or options. Include
32488 `grub/i18n.h' if needed.
32489 * commands/blocklist.c: Likewise.
32490 * commands/boot.c: Likewise.
32491 * commands/cat.c: Likewise.
32492 * commands/cmp.c: Likewise.
32493 * commands/configfile.c: Likewise.
32494 * commands/crc.c: Likewise.
32495 * commands/date.c: Likewise.
32496 * commands/echo.c: Likewise.
32497 * commands/efi/fixvideo.c: Likewise.
32498 * commands/efi/loadbios.c: Likewise.
32499 * commands/gptsync.c: Likewise.
32500 * commands/halt.c: Likewise.
32501 * commands/handler.c: Likewise.
32502 * commands/hdparm.c: Likewise.
32503 * commands/hexdump.c: Likewise.
32504 * commands/i386/cpuid.c: Likewise.
32505 * commands/i386/pc/drivemap.c: Likewise.
32506 * commands/i386/pc/halt.c: Likewise.
32507 * commands/i386/pc/pxecmd.c: Likewise.
32508 * commands/i386/pc/vbeinfo.c: Likewise.
32509 * commands/i386/pc/vbetest.c: Likewise.
32510 * commands/ieee1275/suspend.c: Likewise.
32511 * commands/keystatus.c: Likewise.
32512 * commands/loadenv.c: Likewise.
32513 * commands/ls.c: Likewise.
32514 * commands/lsmmap.c: Likewise.
32515 * commands/lspci.c: Likewise.
32516 * commands/memrw.c: Likewise.
32517 * commands/minicmd.c: Likewise.
32518 * commands/parttool.c: Likewise.
32519 * commands/password.c: Likewise.
32520 * commands/probe.c: Likewise.
32521 * commands/read.c: Likewise.
32522 * commands/reboot.c: Likewise.
32523 * commands/search.c: Likewise.
32524 * commands/sleep.c: Likewise.
32525 * commands/test.c: Likewise.
32526 * commands/true.c: Likewise.
32527 * commands/usbtest.c: Likewise.
32528 * commands/videotest.c: Likewise.
32529 * commands/xnu_uuid.c: Likewise.
32530 * disk/loopback.c: Likewise.
32531 * hello/hello.c: Likewise.
32532 * loader/i386/bsd.c: Likewise.
32533 * term/i386/pc/serial.c: Likewise.
32534 * po/POTFILES: Add new files.
32536 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32538 * term/i386/pc/at_keyboard.c
32539 (keyboard_controller_wait_untill_ready): Rename to ...
32540 (keyboard_controller_wait_until_ready): ... this. Update all users.
32542 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32544 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32545 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32546 string using string width.
32547 * normal/menu_text.c (grub_print_message_indented): Use
32548 grub_print_spaces and not print_spaces.
32549 (print_timeout): Likewise.
32550 (print_spaces): Move to...
32551 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32553 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32555 Import from Gnulib.
32557 * gnulib/getdelim.c: New file.
32558 * gnulib/getline.c: Likewise.
32560 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32562 * include/grub/list.h (grub_assert_fail): Removed.
32563 (grub_bad_type_cast_real): New function.
32564 (grub_bad_type_cast): New macro.
32565 (GRUB_AS_LIST): Use grub_bad_type_cast.
32566 (GRUB_AS_LIST_P): Likewise.
32567 (GRUB_AS_NAMED_LIST): Likewise.
32568 (GRUB_AS_NAMED_LIST_P): Likewise.
32569 (GRUB_AS_PRIO_LIST): Likewise.
32570 (GRUB_AS_PRIO_LIST_P): Likewise.
32571 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32573 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32575 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32578 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32580 * configure.ac: Check for TARGET_CFLAGS initialization before we
32581 initialize it ourselves (sigh).
32582 Move a few modifications to TARGET_CFLAGS to be unconditional
32583 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32586 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32587 * term/i386/pc/at_keyboard.c
32588 (keyboard_controller_wait_untill_ready): Likewise.
32589 (keyboard_controller_led): Rename `led_status' paramter to avoid
32592 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32594 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32597 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32599 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32601 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32603 * normal/menu_text.c (grub_print_message_indented): Prevent
32604 past-the-end-of-array dereference.
32606 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32608 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32609 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32611 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32613 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32614 * normal/main.c (grub_normal_read_line): Remove a space from the
32617 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32619 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32620 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32621 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32622 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32623 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32624 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32625 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32627 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32629 * video/readers/jpeg.c (cmd): Declare.
32630 (grub_cmd_jpegtest): Use `grub_command_t' type.
32631 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32633 (GRUB_MOD_FINI): Use `cmd' to unregister.
32634 * video/readers/png.c (cmd): Declare.
32635 (grub_cmd_pngtest): Use `grub_command_t' type.
32636 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32638 (GRUB_MOD_FINI): Use `cmd' to unregister.
32639 * video/readers/tga.c (cmd): Declare.
32640 (grub_cmd_tgatest): Use `grub_command_t' type.
32641 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32643 (GRUB_MOD_FINI): Use `cmd' to unregister.
32645 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32647 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32649 * kern/corecmd.c (grub_register_core_commands): Likewise.
32650 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32651 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32652 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32653 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32654 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32655 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32656 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32657 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32658 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32659 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32660 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32661 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32662 * normal/handler.c (insert_handler): Likewise.
32663 * normal/main.c (GRUB_MOD_INIT): Likewise.
32664 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32666 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32668 * commands/help.c (grub_cmd_help): Print the command name before the
32670 (GRUB_MOD_INIT): Remove command name from the summary.
32671 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32673 * lib/arg.c (find_long): Print the command name before the summary.
32674 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32676 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32677 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32678 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32679 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32680 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32681 * commands/date.c (GRUB_MOD_INIT): Likewise.
32682 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32683 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32684 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32685 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32686 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32687 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32688 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32689 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32690 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32691 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32692 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32693 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32694 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32695 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32696 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32697 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32698 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32699 * commands/password.c (GRUB_MOD_INIT): Likewise.
32700 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32701 * commands/read.c (GRUB_MOD_INIT): Likewise.
32702 * commands/search.c (GRUB_MOD_INIT): Likewise.
32703 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32704 * commands/test.c (GRUB_MOD_INIT): Likewise.
32705 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32706 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32707 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32708 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32709 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32710 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32711 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32712 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32713 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32714 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32715 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32716 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32717 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32718 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32720 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32722 Use search command for preliminar UUID search.
32724 * commands/search.c: Split into ...
32725 * commands/search_wrap.c: ...this
32726 * commands/search.c: ...and this.
32727 * commands/search_file.c: New file.
32728 * commands/search_label.c: New file.
32729 * commands/search_uuid.c: New file.
32730 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32731 Add commands/search_wrap.c, commands/search_file.c,
32732 commands/search_label.c and commands/search_uuid.c.
32733 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32734 (search_mod_SOURCES): Set to commands/search_wrap.c.
32735 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32737 (search_fs_file_mod_SOURCES): New variable.
32738 (search_fs_file_mod_CFLAGS): Likewise.
32739 (search_fs_file_mod_LDFLAGS): Likewise.
32740 (search_label_mod_SOURCES): Likewise.
32741 (search_label_mod_CFLAGS): Likewise.
32742 (search_label_mod_LDFLAGS): Likewise.
32743 (search_fs_uuid_mod_SOURCES): New variable.
32744 (search_fs_uuid_mod_CFLAGS): Likewise.
32745 (search_fs_uuid_mod_LDFLAGS): Likewise.
32746 (fs_file_mod_SOURCES): Removed.
32747 (fs_file_mod_CFLAGS): Likewise.
32748 (fs_file_mod_LDFLAGS): Likewise.
32749 (fs_uuid_mod_SOURCES): Removed.
32750 (fs_uuid_mod_CFLAGS): Likewise.
32751 (fs_uuid_mod_LDFLAGS): Likewise.
32752 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32753 Set to util/grub-install.in.
32754 * disk/fs_file.c: Removed.
32755 * disk/fs_uuid.c: Likewise.
32756 * include/grub/search.h: New file.
32757 * util/grub-install.in: Handle sparc64.
32758 Create and use load.cfg.
32759 * util/sparc64/ieee1275/grub-install.in: Removed.
32761 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32763 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32764 Ignore return status if CF is cleared.
32765 (grub_biosdisk_get_diskinfo_standard): Likewise.
32767 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32769 * term/i386/pc/at_keyboard.c
32770 (keyboard_controller_wait_untill_ready): New function.
32771 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32772 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32773 for keyboard polling, rather than duplicate the same loop. This
32774 saves a few bytes in code size.
32776 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32778 Support for (pxe[:server[:gateway]]) syntax and
32779 use environment variable for PXE.
32781 * commands/i386/pc/pxecmd.c (options): Removed.
32782 (print_ip): Removed.
32783 (grub_cmd_pxe): Removed
32784 (grub_cmd_pxe_unload): New function.
32785 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32786 (grub_pxe_your_ip): Made static.
32787 (grub_pxe_default_server_ip): Likewise.
32788 (grub_pxe_default_gateway_ip): Likewise.
32789 (grub_pxe_blksize): Likewise.
32790 (parse_ip): New function.
32791 (grub_pxe_open): Support server and gateway specification.
32792 (grub_pxe_close): Free disk->data.
32793 (grub_pxefs_open): Use disk->data.
32794 (grub_pxefs_read): Likewise.
32795 (grub_env_write_readonly): New function.
32796 (set_mac_env): Likewise.
32797 (set_env_limn_ro): Likewise.
32798 (parse_dhcp_vendor): Likewise.
32799 (grub_pxe_detect): Set the environment variables.
32800 (set_ip_env): New function.
32801 (write_ip_env): Likewise.
32802 (grub_env_write_pxe_default_server): Likewise.
32803 (grub_env_write_pxe_default_gateway): Likewise.
32804 (grub_env_write_pxe_blocksize): Likewise.
32805 (GRUB_MOD_INIT(pxe)): Set environment variables.
32806 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32807 (grub_pxe_mac_addr_t): ... this. All users updated.
32808 (grub_pxe_your_ip): Removed.
32809 (grub_pxe_server_ip): Likewise.
32810 (grub_pxe_gateway_ip): Likewise.
32811 (grub_pxe_blksize): Likewise.
32813 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32815 * commands/help.c: Include `<grub/i18n.h>'.
32816 (grub_cmd_help): Gettextizze.
32817 (GRUB_MOD_INIT): Likewise.
32818 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32819 (GRUB_MOD_INIT): Gettextizze.
32820 * commands/search.c: Include `<grub/i18n.h>'.
32821 (options): Gettextizze.
32822 (GRUB_MOD_INIT): Gettextizze.
32823 * lib/arg.c: Include `<grub/i18n.h>'.
32824 (help_options): Gettextizze.
32825 (find_long): Likewise.
32826 (grub_arg_show_help): Likewise.
32827 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32828 (read_command_list): Gettextizze.
32829 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32830 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32832 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32834 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32835 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32836 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32837 (led_status): New variable.
32838 (keyboard_controller_led): New function.
32839 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32840 update led status for caps lock, num lock and scroll lock.
32842 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32844 * util/hostdisk.c (open_device): Fix a comment.
32846 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32848 * util/grub-install.in (host_os): New variable.
32849 * util/i386/efi/grub-install.in (host_os): Likewise.
32851 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32853 * util/mkisofs/write.c (padblock_write): Abort when given an
32854 excedingly large embed image, instead of silently truncating it.
32856 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32858 * include/multiboot.h: Indentation fixes.
32860 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32862 * include/multiboot.h (struct multiboot_aout_symbol_table)
32863 (struct multiboot_elf_section_header_table): New structure
32864 declarations (stolen from GRUB Legacy).
32865 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32868 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32869 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32872 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32874 * include/multiboot.h: Make comments src2texi-friendly.
32876 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32878 For consistency with [multiboot]/docs/boot.S.
32880 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32881 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32882 (MULTIBOOT_MAGIC2): Rename from this ...
32883 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32885 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32887 * include/multiboot.h: Remove `<grub/types.h>'.
32888 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32889 types. Update all users.
32891 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32893 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32894 `couldn't' and `can not' by `cannot'.
32895 * commands/i386/pc/drivemap.c: Likewise.
32896 * disk/ata.c: Likewise.
32897 * disk/ieee1275/nand.c: Likewise.
32898 * fs/affs.c: Likewise.
32899 * fs/fat.c: Likewise.
32900 * fs/hfs.c: Likewise.
32901 * fs/hfsplus.c: Likewise.
32902 * fs/iso9660.c: Likewise.
32903 * fs/jfs.c: Likewise.
32904 * fs/minix.c: Likewise.
32905 * fs/reiserfs.c: Likewise.
32906 * fs/sfs.c: Likewise.
32907 * fs/udf.c: Likewise.
32908 * fs/ufs.c: Likewise.
32909 * fs/xfs.c: Likewise.
32910 * loader/powerpc/ieee1275/linux.c: Likewise.
32911 * loader/sparc64/ieee1275/linux.c: Likewise.
32912 * util/grub-probe.c: Likewise.
32913 * util/misc.c: Likewise.
32915 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32917 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32919 * commands/acpi.c: Likewise.
32920 * commands/blocklist.c: Likewise.
32921 * commands/efi/loadbios.c: Likewise.
32922 * commands/i386/pc/drivemap.c: Likewise.
32923 * commands/loadenv.c: Likewise.
32924 * commands/memrw.c: Likewise.
32925 * commands/password.c: Likewise.
32926 * commands/videotest.c: Likewise.
32927 * disk/ata.c: Likewise.
32928 * disk/ata_pthru.c: Likewise.
32929 * disk/dmraid_nvidia.c: Likewise.
32930 * disk/ieee1275/nand.c: Likewise.
32931 * disk/ieee1275/ofdisk.c: Likewise.
32932 * disk/loopback.c: Likewise.
32933 * disk/lvm.c: Likewise.
32934 * disk/mdraid_linux.c: Likewise.
32935 * disk/raid.c: Likewise.
32936 * disk/raid6_recover.c: Likewise.
32937 * disk/scsi.c: Likewise.
32938 * efiemu/main.c: Likewise.
32939 * efiemu/mm.c: Likewise.
32940 * efiemu/pnvram.c: Likewise.
32941 * efiemu/symbols.c: Likewise.
32942 * font/font.c: Likewise.
32943 * fs/cpio.c: Likewise.
32944 * fs/hfsplus.c: Likewise.
32945 * fs/iso9660.c: Likewise.
32946 * fs/jfs.c: Likewise.
32947 * fs/minix.c: Likewise.
32948 * fs/ntfs.c: Likewise.
32949 * fs/ntfscomp.c: Likewise.
32950 * fs/reiserfs.c: Likewise.
32951 * fs/ufs.c: Likewise.
32952 * fs/xfs.c: Likewise.
32953 * gettext/gettext.c: Likewise.
32954 * include/grub/auth.h: Likewise.
32955 * kern/elf.c: Likewise.
32956 * kern/file.c: Likewise.
32957 * kern/ieee1275/init.c: Likewise.
32958 * kern/ieee1275/mmap.c: Likewise.
32959 * kern/ieee1275/openfw.c: Likewise.
32960 * kern/powerpc/dl.c: Likewise.
32961 * kern/sparc64/dl.c: Likewise.
32962 * lib/arg.c: Likewise.
32963 * loader/i386/bsd.c: Likewise.
32964 * loader/i386/bsdXX.c: Likewise.
32965 * loader/i386/efi/linux.c: Likewise.
32966 * loader/i386/efi/xnu.c: Likewise.
32967 * loader/i386/ieee1275/linux.c: Likewise.
32968 * loader/i386/linux.c: Likewise.
32969 * loader/i386/multiboot.c: Likewise.
32970 * loader/i386/pc/linux.c: Likewise.
32971 * loader/i386/pc/multiboot2.c: Likewise.
32972 * loader/i386/xnu.c: Likewise.
32973 * loader/ieee1275/multiboot2.c: Likewise.
32974 * loader/macho.c: Likewise.
32975 * loader/machoXX.c: Likewise.
32976 * loader/multiboot2.c: Likewise.
32977 * loader/multiboot_loader.c: Likewise.
32978 * loader/powerpc/ieee1275/linux.c: Likewise.
32979 * loader/sparc64/ieee1275/linux.c: Likewise.
32980 * loader/xnu.c: Likewise.
32981 * loader/xnu_resume.c: Likewise.
32982 * mmap/i386/pc/mmap.c: Likewise.
32983 * normal/menu_viewer.c: Likewise.
32984 * partmap/acorn.c: Likewise.
32985 * partmap/amiga.c: Likewise.
32986 * partmap/apple.c: Likewise.
32987 * script/lexer.c: Likewise.
32988 * term/gfxterm.c: Likewise.
32989 * term/i386/pc/serial.c: Likewise.
32990 * term/i386/pc/vga.c: Likewise.
32991 * term/ieee1275/ofconsole.c: Likewise.
32992 * term/terminfo.c: Likewise.
32993 * video/bitmap.c: Likewise.
32994 * video/efi_gop.c: Likewise.
32995 * video/efi_uga.c: Likewise.
32996 * video/fb/video_fb.c: Likewise.
32997 * video/i386/pc/vbe.c: Likewise.
32998 * video/readers/tga.c: Likewise.
32999 * video/video.c: Likewise.
33001 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33003 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33004 * commands/lspci.c: Likewise.
33005 * commands/probe.c: Likewise.
33006 * commands/xnu_uuid.c: Likewise.
33007 * conf/i386-coreboot.rmk: Likewise.
33008 * conf/i386-efi.rmk: Likewise.
33009 * conf/i386-ieee1275.rmk: Likewise.
33010 * conf/i386-pc.rmk: Likewise.
33011 * conf/powerpc-ieee1275.rmk: Likewise.
33012 * conf/sparc64-ieee1275.rmk: Likewise.
33013 * conf/x86_64-efi.rmk: Likewise.
33014 * fs/i386/pc/pxe.c: Likewise.
33015 * gettext/gettext.c: Likewise.
33016 * include/grub/efi/graphics_output.h: Likewise.
33017 * include/grub/i386/pc/memory.h: Likewise.
33018 * kern/env.c: Likewise.
33019 * kern/i386/qemu/startup.S: Likewise.
33020 * lib/i386/pc/biosnum.c: Likewise.
33021 * lib/i386/relocator.c: Likewise.
33022 * lib/i386/relocator_asm.S: Likewise.
33023 * lib/relocator.c: Likewise.
33024 * loader/i386/bsd.c: Likewise.
33025 * loader/i386/multiboot.c: Likewise.
33026 * loader/i386/pc/chainloader.c: Likewise.
33027 * loader/i386/xnu.c: Likewise.
33028 * loader/xnu.c: Likewise.
33029 * normal/main.c: Likewise.
33030 * normal/menu_text.c: Likewise.
33031 * util/getroot.c: Likewise.
33032 * util/grub-mkconfig_lib.in: Likewise.
33033 * util/grub.d/00_header.in: Likewise.
33034 * util/i386/pc/grub-mkimage.c: Likewise.
33035 * util/mkisofs/eltorito.c: Likewise.
33036 * util/mkisofs/exclude.h: Likewise.
33037 * util/mkisofs/hash.c: Likewise.
33038 * util/mkisofs/iso9660.h: Likewise.
33039 * util/mkisofs/joliet.c: Likewise.
33040 * util/mkisofs/mkisofs.c: Likewise.
33041 * util/mkisofs/mkisofs.h: Likewise.
33042 * util/mkisofs/multi.c: Likewise.
33043 * util/mkisofs/name.c: Likewise.
33044 * util/mkisofs/rock.c: Likewise.
33045 * util/mkisofs/tree.c: Likewise.
33046 * util/mkisofs/write.c: Likewise.
33047 * video/efi_gop.c: Likewise.
33049 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33051 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33054 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33056 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33057 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33059 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33061 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33062 (GRUB_MOD_INIT(memrw)): Update help line.
33064 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33066 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33067 Use grub_extcmd_t. All users updated.
33068 (options): New variable.
33069 (grub_cmd_read): Restructure for readability. Support "-v" option.
33070 (grub_cmd_write): Restructure for readability.
33072 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33074 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33076 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33078 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33079 with the actual contents of the correspondending make variable.
33080 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33081 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33082 specifying `*.lst' and `efiemu??.o'
33084 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33086 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33087 after function name.
33088 Noticed by Rene Engelhard <rene@debian.org>.
33090 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33092 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33093 (options): New variable.
33094 (iospace): Likewise.
33095 (grub_lspci_iter): List IO spaces if "-i" was given.
33096 (grub_cmd_lspci): Parse options.
33097 (GRUB_MOD_INIT(lspci)): Use extcmd.
33098 (GRUB_MOD_FINI(lspci)): Likewise.
33100 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33102 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33103 `function' keyword.
33104 Patch by Tony Mancill <tmancill@debian.org>.
33106 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33108 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33109 (grub_uhci_portstatus): Likewise.
33110 (grub_uhci_portstatus): Add necessary delay.
33111 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33113 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33115 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33116 (GRUB_MOD_INIT): Likewise.
33117 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33118 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33119 * commands/echo.c (options): Fix capitalizations and/or full stops.
33120 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33121 (enable_rom_area): Likewise.
33122 (GRUB_MOD_INIT): Likewise.
33123 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33124 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33125 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33126 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33127 * commands/hexdump.c (options): Likewise.
33128 * commands/i386/cpuid.c (options): Likewise.
33129 (GRUB_MOD_INIT): Likewise.
33130 * commands/i386/pc/drivemap.c (options): Likewise.
33131 (GRUB_MOD_INIT): Likewise.
33132 * commands/i386/pc/halt (options): Likewise.
33133 (GRUB_MOD_INIT): Likewise.
33134 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33135 * commands/i386/pc/pxecmd.c (options): Likewise.
33136 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33137 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33138 * commands/keystatus.c (options): Likewise.
33139 (GRUB_MOD_INIT): Likewise.
33140 * commands/loadenv.c (options): Likewise.
33141 * commands/ls.c (options): Likewise.
33142 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33143 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33144 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33145 * commands/parttool.c (helpmsg): Likewise.
33146 * commands/probe.c (options): Likewise.
33147 * commands/read.c (GRUB_MOD_INIT): Likewise.
33148 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33149 * commands/search.c (options): Likewise.
33150 * commands/sleep.c (options): Likewise.
33151 * commands/test.c (GRUB_MOD_INIT): Likewise.
33152 * commands/true.c (GRUB_MOD_INIT): Likewise.
33153 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33154 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33155 * lib/arg.c (help_options): Likewise.
33156 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33158 * po/POTFILES: Add `commands/loadenv.c'.
33160 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33162 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33163 instead of specifying them explicit.
33165 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33167 * NEWS: Add grub-probe support for GNU/Hurd.
33169 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33171 * NEWS: gettext was added after 1.97.
33173 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33175 * util/mkisofs/msdos_partition.h: New file (based on
33176 include/grub/msdos_partition.h).
33177 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33178 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33179 (ld_options, main): Recognize --protective-msdos-label.
33180 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33181 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33182 (padblock_write): If `use_protective_msdos_label' is set, patch a
33183 protective DOS-style label in the output image.
33185 * util/grub-mkrescue.in: Use --protective-msdos-label.
33187 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33189 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33192 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33194 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33196 (ld_options, main): Recognize `--embedded-boot'.
33197 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33199 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33200 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33201 (padblock_write): Likewise. Rewrite to support embedded boot image.
33203 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33204 for BIOS-based disk boot instead of only ElTorito.
33206 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33208 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33209 build (not needed for bootstrap).
33211 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33213 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33214 from i386-pc build (not needed for bootstrap).
33215 Rewrite a pair of strings.
33217 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33219 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33221 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33223 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33225 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33227 * kern/env.c (grub_env_context_open): Mark exported variable for
33230 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33232 * kern/env.c (grub_env_export): Create nonexistent variables before
33235 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33237 * include/grub/auth.h: Include `<grub/i18n.h>'.
33238 (GRUB_GET_PASSWORD): Gettextizze string.
33239 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33241 (grub_utf8_to_ucs4_alloc): Fix indentation.
33242 (grub_print_ucs4): Likewise.
33243 (grub_getstringwidth): Likewise.
33244 (print_message_indented): New declaration.
33245 * normal/auth.c: Include `<grub/i18n.h>'.
33246 (grub_auth_check_authentication): Gettexttize string.
33247 * normal/cmdline.c: Include `<grub/i18n.h>'.
33248 (grub_cmdline_get): Gettextizze.
33249 * normal/color.c: Include `<grub/i18n.h>'.
33250 (grub_parse_color_name_pair): Gettexttize strings.
33251 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33252 string (use `print_message_indented').
33253 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33254 `include/grub/normal.h'.
33255 (print_message_indented): Renamed to ...
33256 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33257 used in normal/main.c).
33258 (print_message): Use `grub_print_message_indented' instead of
33259 `print_message_indented'.
33260 (print_timeout): Likewise.
33261 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33262 (grub_normal_print_device_info): Gettexttize strings.
33263 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33265 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33267 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33268 of arguments. Return number of tokens and not arguments. All users
33271 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33273 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33274 non-MSDOS paritions.
33276 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33278 * include/grub/types.h (UNUSED): Removed since it conflicts with
33279 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33280 Reported by Grégoire Sutre.
33282 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33284 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33285 (grub_print_ucs4_alloc): Likewise.
33286 (grub_getstringwidth): Likewise.
33287 * normal/main.c (grub_normal_init_page): Gettextize version string.
33288 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33289 (getstringwidth): Renamed to ...
33290 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33291 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33292 (grub_print_ucs4): Remove `static' qualifer (now used in
33294 * po/POTFILES: Add normal/main.c.
33296 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33298 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33299 (print_message_indented): Add `margin_left' and `margin_right'
33301 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33303 (print_timeout): Use `print_message_indented' to print the message.
33304 Deletes `second_stage' parameter.
33305 (run_menu): Update `print_timeout' calls.
33307 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33309 Fix console palette on OpenFirmware.
33311 * term/ieee1275/ofconsole.c (MAX): Removed.
33312 (colors): Redone based on VGA palette.
33313 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33314 colors are supported.
33315 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33317 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33319 Fix potential EfiEmu double prepare.
33321 * efiemu/main.c (prepared): New variable
33322 (grub_efiemu_unload): Set prepare to '0'.
33323 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33325 set_virtual_address_map support.
33327 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33329 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33331 (grub_efiemu_crc32): Likewise.
33332 (grub_efiemu_crc64): Likewise.
33333 (grub_efiemu_set_virtual_address_map): Likewise.
33334 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33336 (grub_autoefi_set_virtual_address_map): Likewise.
33337 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33338 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33339 Restructure flow to accomodate it.
33340 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33341 (grub_efiemu_crc): Recompute CRC32.
33342 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33343 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33344 * efiemu/symbols.c (relocated_handle): New variable.
33345 (grub_efiemu_free_syms): Free relocated_handle.
33346 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33347 (grub_efiemu_write_sym_markers): New function.
33348 (grub_efiemu_set_virtual_address_map): Likewise.
33350 Newer XNU parameters.
33352 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33353 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33354 (grub_xnu_fill_devicetree): New prototype.
33355 (grub_xnu_heap_real_start): New variable.
33356 * loader/xnu.c (get_name_ptr): New function.
33357 (grub_xnu_load_driver): Fill namelen and name.
33359 64-bit xnu support.
33361 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33362 and 'loader/macho64.c'.
33363 * conf/i386-pc.rmk: Likewise.
33364 * conf/x86_64-efi.rmk: Likewise.
33365 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33366 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33367 * include/grub/macho.h (grub_macho_segment64): New structure.
33368 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33369 (grub_macho_size32): ... to this.
33370 (grub_macho32_get_entry_point): Renamed from ...
33371 (grub_macho_get_entry_point32): ... to this.
33372 (grub_macho_contains_macho64): New prototype.
33373 (grub_macho_size64): Likewise.
33374 (grub_macho_get_entry_point64): Likewise.
33375 (grub_macho32_load): Renamed from ...
33376 (grub_macho_load32): ... to this.
33377 (grub_macho32_filesize): Renamed from ...
33378 (grub_macho_filesize32): ... to this.
33379 (grub_macho32_readfile): Renamed from ...
33380 (grub_macho_readfile32): ... to this.
33381 (grub_macho_filesize64): New prototype.
33382 (grub_macho_readfile64): Likewise.
33383 (grub_macho_parse32): Likewise.
33384 (grub_macho_parse64): Likewise.
33385 * loader/macho.c: Split into ...
33386 * loader/machoXX.c: ... and this. Replace 32 with XX.
33387 * loader/macho32.c: New file.
33388 * loader/macho64.c: Likewise.
33389 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33390 (grub_cmd_xnu_kernel): Make 32-bit only.
33391 (grub_cmd_xnu_kernel64): New function.
33392 (grub_xnu_load_driver): Support Mach-O 64.
33393 (grub_cmd_xnu_mkext): Likewise.
33394 * util/grub.d/30_os-prober.in (osx_entry): New function.
33395 Generate entries for 64-bit boot too.
33397 Eliminate ad-hoc tree format in XNU and EfiEmu.
33399 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33400 * efiemu/pnvram.c: Rewritten to use environment variables.
33403 Inline utf16_to_utf8.
33405 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33406 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33408 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33410 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33411 * commands/usbtest.c (grub_usb_get_string): ... move here.
33412 (usb_print_str): Fix error handling.
33413 * include/grub/usb.h (grub_usb_get_string): Remove.
33415 UTF-8 to UTF-16 transformation.
33417 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33418 (charset_mod_SOURCES): New variable.
33419 (charset_mod_CFLAGS): Likewise.
33420 (charset_mod_LDFLAGS): Likewise.
33421 * include/grub/utf.h: New file.
33422 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33424 Support for device properties.
33426 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33427 (grub_xnu_devprop_device_header): Likewise.
33428 (grub_xnu_devprop_device_descriptor): Likewise.
33429 (grub_xnu_devprop_add_device): New prototype.
33430 (grub_xnu_devprop_remove_device): Likewise.
33431 (grub_xnu_devprop_remove_property): Likewise.
33432 (grub_xnu_devprop_add_property_utf8): Likewise.
33433 (grub_xnu_devprop_add_property_utf16): Likewise.
33434 (grub_cpu_xnu_init): Likewise.
33435 (grub_cpu_xnu_fini): Likewise.
33436 (grub_cpu_xnu_unload): Likewise.
33437 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33438 (property_descriptor): Likewise.
33439 (devices): New variable.
33440 (grub_xnu_devprop_remove_property): New function.
33441 (grub_xnu_devprop_add_device): Likewise.
33442 (grub_xnu_devprop_remove_device): Likewise.
33443 (grub_xnu_devprop_add_property): Likewise.
33444 (grub_xnu_devprop_add_property_utf8): Likewise.
33445 (grub_xnu_devprop_add_property_utf16): Likewise.
33446 (hextoval): Likewise.
33447 (grub_cpu_xnu_fill_devprop): Likewise.
33448 (grub_cmd_devprop_load): Likewise.
33449 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33450 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33451 (cmd_devprop_load): New variable.
33452 (grub_cpu_xnu_init): New function.
33453 (grub_cpu_xnu_fini): Likewise.
33454 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33455 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33456 (grub_cmd_xnu_devtree): Likewise.
33457 (hextoval): New function.
33458 (unescape): Likewise.
33459 (grub_xnu_fill_devicetree): Likewise.
33461 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33462 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33464 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33466 Workaround for broken ATI VBE.
33468 * video/i386/pc/vbe.c (last_set_mode): New variable.
33469 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33470 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33471 (grub_video_vbe_setup): Don't check for reserved flag.
33473 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33475 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33476 the `find' command.
33478 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33480 UUID support for HFS.
33482 * fs/hfs.c (grub_hfs_uuid): New function.
33483 (grub_hfs_fs): New value .uuid.
33484 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33486 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33488 Fix a segfault with parsing unknown long options.
33490 * util/grub-mkrelpath.c (options): Zero terminate it.
33492 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33494 * include/grub/misc.h (grub_puts): New declaration.
33495 (grub_puts_): Likewise.
33496 * kern/misc.c (grub_puts): New definition.
33497 (grub_puts_): Likewise.
33499 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33501 * util/grub-probe.c (probe): Improve error message.
33503 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33505 * loader/i386/multiboot_elfxx.c
33506 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33509 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33511 Relocator framework
33513 * loader/i386/xnu_helper.S: Removed. All users updated.
33514 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33515 (relocator_mod_SOURCES): New variable.
33516 (relocator_mod_CFLAGS): Likewise.
33517 (relocator_mod_LDFLAGS): Likewise.
33518 (relocator_mod_ASFLAGS): Likewise.
33519 * conf/x86_64.rmk: Likewise.
33520 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33521 (grub_multiboot_payload_entry_offset): Likewise.
33522 (grub_multiboot_forward_relocator): Likewise.
33523 (grub_multiboot_forward_relocator_end): Likewise.
33524 (grub_multiboot_backward_relocator): Likewise.
33525 (grub_multiboot_backward_relocator_end): Likewise.
33526 (grub_multiboot_payload_eip): New variable.
33527 (grub_multiboot_payload_orig): Likewise.
33528 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33529 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33530 * include/grub/i386/memory.h
33531 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33532 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33533 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33534 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33535 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33536 * include/grub/i386/relocator.h: New file.
33537 * include/grub/x86_64/relocator.h: Likewise.
33538 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33539 (XNU_RELOCATOR): New macro.
33540 (grub_xnu_launcher_start): Remove.
33541 (grub_xnu_launcher_end): Likewise.
33542 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33543 (grub_xnu_heap_real_start): Remove.
33544 (grub_xnu_heap_start): Change to void *. All users updated.
33545 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33546 * lib/i386/relocator.c: New file.
33547 * lib/i386/relocator_asm.S: Likewise.
33548 * lib/i386/relocator_backward.S: Likewise.
33549 * lib/mips/relocator.c: Likewise.
33550 * lib/mips/relocator_asm.S: Likewise.
33551 * lib/relocator.c: Likewise.
33552 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33554 (playground): Likewise.
33555 (grub_multiboot_payload_orig): New variable.
33556 (grub_multiboot_payload_dest): Likewise.
33557 (grub_multiboot_payload_size): Likewise.
33558 (grub_multiboot_payload_eip): Likewise.
33559 (grub_multiboot_payload_esp): Likewise.
33560 (grub_multiboot_boot): Use grub_relocator32_boot.
33561 (grub_multiboot_unload): Free relocators.
33562 (grub_multiboot): Setup stack. Use relocators.
33563 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33564 (grub_multiboot_load_elfXX): Use relocators.
33565 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33566 (grub_multiboot_payload_size): Likewise.
33567 (grub_multiboot_payload_dest): Likewise.
33568 (grub_multiboot_payload_entry_offset): Likewise.
33569 (grub_multiboot_forward_relocator): Likewise.
33570 (grub_multiboot_backward_relocator): Likewise.
33571 (grub_multiboot_real_boot): Likewise.
33572 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33573 (grub_xnu_entry_point): Likewise.
33574 (grub_xnu_arg1): Likewise.
33575 (grub_xnu_stack): Likewise.
33576 (grub_xnu_launch): Removed.
33577 (grub_xnu_boot_resume): New function.
33578 (grub_xnu_boot): Use relocators.
33579 * loader/i386/xnu_helper.S: Removed.
33580 * loader/xnu.c (grub_xnu_heap_start): New variable.
33581 (grub_xnu_heap_size): Likewise.
33582 (grub_xnu_heap_malloc): Use relocators.
33583 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33585 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33587 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33590 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33592 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33593 GRUB_ERR_NONE before calling grub_env_set.
33595 2009-12-12 Robert Millan <rmh@aybabtu.com>
33597 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33598 * genmk.rb (video): New variable.
33599 (CLEANFILES, VIDEOFILES): Add #{video}.
33600 (#{video}): New target rule.
33601 * genvideolist.sh: New file.
33602 * Makefile.in (pkglib_DATA): Add video.lst.
33603 (video.lst): New target rule.
33604 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33606 * util/grub.d/30_os-prober.in: Replace `vbe' with
33607 ${GRUB_VIDEO_BACKEND}.
33609 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33611 * THANKS: Add David Miller.
33613 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33615 libpciaccess support.
33617 * Makefile.in (LIBPCIACCESS): New variable.
33618 (enable_grub_emu_pci): Likewise.
33619 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33620 util/pci.c and commands/lspci.c.
33621 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33622 * configure.ac (grub-emu-pci): New option.
33623 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33624 (grub_pci_device_unmap_range): Likewise.
33625 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33626 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33627 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33628 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33629 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33630 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33631 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33632 * include/grub/pciutils.h: New file.
33633 * util/pci.c: Likewise.
33635 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33637 * util/misc.c: Don't include <errno.h> twice.
33639 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33641 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33642 name in an error message.
33643 (grub_biosdisk_rw): Likewise.
33645 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33647 Eliminate NTFS 4Gib barrier.
33649 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33650 (read_run_data): Likewise.
33651 (grub_ntfs_read_run_list): Likewise.
33652 (grub_ntfs_read_block): Likewise.
33653 (grub_ntfs_iterate_dir): Likewise.
33654 (read_mft): Likewise.
33655 (read_data): Likewise.
33657 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33658 to avoid 64-bit division
33659 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33660 (grub_ntfs_rlst): Use grub_disk_addr_t.
33662 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33664 Eliminate grub-fstest 4Gib barrier.
33666 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33667 (read_file): Fix error reporting.
33669 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33671 Eliminate hexdump 4Gib barrier.
33673 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33674 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33676 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33678 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33681 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33683 Remove miscellaneous files in distclean target.
33685 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33687 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33689 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33690 if they're already set. This resolves the conflict between my
33691 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33692 fixing the --grub-probe option again.
33693 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33694 change on 2009-10-06, so that we now once again source
33695 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33697 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33699 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33700 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33701 `util/devicemap.c'.
33703 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33705 * include/grub/misc.h (grub_printf_): New declaration.
33706 * kern/misc.c (grub_printf_): New definition.
33707 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33708 instead of `grub_printf' and `_'.
33709 * normal/menu_entry.c (store_completion): Likewise.
33711 (grub_menu_entry_run): Likewise.
33712 * normal/menu_text.c (grub_wait_after_message): Likewise.
33713 (notify_booting): Likewise.
33714 (notify_fallback): Likewise.
33715 (notify_execution_failure): Likewise.
33717 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33719 * configure.ac: Check for vasprintf.
33720 * util/misc.c (asprintf): Move allocation from here ...
33721 (vasprintf): ... to here. New function.
33722 (xasprintf): New function.
33723 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33725 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33726 * util/grub-mkfont.c (write_font): Likewise.
33727 * util/grub-probe.c (probe): Likewise.
33728 * util/hostdisk.c (make_device_name): Likewise.
33730 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33732 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33733 anything even prefixed with 'cdrom' as a cdrom.
33735 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33737 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33740 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33742 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33743 grub_gettext_msg_list.
33744 (grub_gettext_gettranslation_from_position): Return const char *
33746 (grub_gettext_translate): Add the translated strings into a list,
33747 returns from the list if existing there.
33748 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33749 (grub_gettext_delete_list): Delete the list.
33750 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33751 lang environment variable is changed.
33752 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33754 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33756 Rename kernel.mod to kernel.img.
33758 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33759 (kernel_mod_EXPORTS): Rename to ...
33760 (kernel_img_EXPORTS): ... this.
33761 (kernel_mod_SOURCES): Rename to ...
33762 (kernel_img_SOURCES): ... this.
33763 (kernel_mod_HEADERS): Rename to ...
33764 (kernel_img_HEADERS): ... this. All users updated.
33765 (kernel_mod_CFLAGS): Rename to ...
33766 (kernel_img_CFLAGS): ... this.
33767 (kernel_mod_ASFLAGS): Rename to ...
33768 (kernel_img_ASFLAGS): ... this.
33769 (kernel_mod_LDFLAGS): Rename to ...
33770 (kernel_img_LDFLAGS): ... this.
33771 * conf/x86_64-efi.rmk: Likewise.
33772 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33773 (read_kernel_image): ... this. All users updated.
33774 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33776 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33778 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33779 (print_spaces): New function.
33780 (grub_print_ucs4): New function.
33781 (getstringwidth): New function.
33782 (print_message_indented): New function.
33783 (print_message): Gettexttize strings using print_message_indented.
33784 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33786 (get_entry_number): Gettextize and uses dynamic terminal width.
33787 (notify_booting, notify_fallback, notify_execution_failure):
33789 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33792 (grub_menu_entry_run): Likewise.
33793 * PO/POTFILES: Add normal/menu_entry.c.
33795 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33797 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33799 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33801 * util/grub-install.in: Install gettext .mo files.
33802 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33804 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33806 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33809 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33811 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33812 non-firmware-dependant one in realmode.S takes precedence.
33814 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33816 * commands/halt.c: Replace misc arch-specific headers with
33818 * commands/reboot.c: Likewise.
33819 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33821 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33822 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33823 (kernel_img_SOURCES): ... to here.
33825 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33826 * include/grub/i386/pc/init.h: Likewise.
33827 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33828 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33830 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33832 * include/grub/i386/halt.h: Remove.
33833 * include/grub/i386/reboot.h: Likewise.
33835 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33837 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33839 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33840 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33841 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33843 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33844 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33845 (usage): Add missing comma in printf.
33847 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33849 Use the same reboot approach on i386 coreboot and qemu as we do on
33852 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33853 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33854 * kern/i386/reboot.c: Remove.
33855 * include/grub/i386/reboot.h (grub_reboot): Export function.
33856 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33857 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33858 0xf000:0xfff0 instead of 0xffff:0x0000.
33859 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33860 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33862 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33864 Fix $srcdir != $objdir build.
33866 * Makefile.in (po/%.po): Rewrite as ...
33867 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33869 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33871 Fix GNU/Hurd grub-install crash.
33872 * util/grub-probe.c (probe): Try to access `path' only when it is not
33875 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33877 Correct module naming.
33879 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33880 (GRUB_MOD_INIT(efi_uga)): ... to this
33881 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33882 (GRUB_MOD_FINI(efi_uga)): ... to this
33883 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33884 (GRUB_MOD_INIT(efi_gop)): ... to this
33885 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33886 (GRUB_MOD_FINI(efi_gop)): ... to this
33888 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33890 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33892 (usage): Translate `arg' strings using gettext().
33893 Thanks to Jordi Mallach for the suggestion.
33895 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33897 GOP support. Based on patch from Bean
33898 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33900 * video/efi_gop.c: New file.
33901 * include/grub/efi/graphics_output.h: Likewise.
33902 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33903 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33905 * conf/x86_64-efi.rmk: Likewise.
33907 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33909 Rename efi_fb to efi_uga.
33911 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33913 (efi_fb_mod_SOURCES): Rename this ...
33914 (efi_uga_mod_SOURCES): ... to this.
33915 (efi_fb_mod_CFLAGS): Rename this ...
33916 (efi_uga_mod_CFLAGS): ... to this.
33917 (efi_fb_mod_LDFLAGS): Rename this ...
33918 (efi_uga_mod_LDFLAGS): ... to this.
33919 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33921 (efi_fb_mod_SOURCES): Rename this ...
33922 (efi_uga_mod_SOURCES): ... to this.
33923 (efi_fb_mod_CFLAGS): Rename this ...
33924 (efi_uga_mod_CFLAGS): ... to this.
33925 (efi_fb_mod_LDFLAGS): Rename this ...
33926 (efi_uga_mod_LDFLAGS): ... to this.
33927 * video/efi_fb.c: Move this ...
33928 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33930 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33932 * po/README: New file. Explain our PO file workflow.
33934 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33936 * po/ChangeLog: Remove. Move relevant entries back to ...
33937 * ChangeLog: ... here.
33938 * po/ca.po: Remove (now handled by TLP).
33939 * po/id.po: Likewise.
33940 * po/zh_CN.po: Likewise.
33941 * Makefile.in (LINGUAS): Initialize in a way that supports
33944 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33946 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33947 reliing on po/LINGUAS.
33948 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33949 (po/%.po): ... this.
33951 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33953 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33954 (main): Use `program_name' instead of nonexistent `progname'.
33956 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33958 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33959 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33961 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33963 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33965 * conf/i386-efi.rmk: Likewise.
33966 * conf/i386-ieee1275.rmk: Likewise.
33967 * conf/powerpc-ieee1275.rmk: Likewise.
33968 * conf/sparc64-ieee1275.rmk: Likewise.
33969 * conf/x86_64-efi.rmk: Likewise.
33971 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33973 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33975 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33977 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33979 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33981 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33982 (grub_mkdevicemap_SOURCES): New variable.
33983 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33984 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33985 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33986 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33987 (grub_mkdevicemap_SOURCES): Remove.
33988 * conf/i386-efi.rmk: Likewise.
33989 * conf/i386-ieee1275.rmk: Likewise.
33990 * conf/i386-pc.rmk: Likewise.
33991 * conf/powerpc-ieee1275.rmk: Likewise.
33992 * conf/sparc64-ieee1275.rmk: Likewise.
33993 * conf/x86_64-efi.rmk: Likewise.
33994 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33995 (usage): Fix strings to use `program_name'.
33996 (main): Initialize gettext.
33997 * util/grub-editenv.c: Likewise.
33998 * util/grub-emu.c: Likewise.
33999 * util/grub-fstest.c: Likewise.
34000 * util/grub-mkdevicemap.c: Likewise.
34001 * util/grub-mkfont.c: Likewise.
34002 * util/grub-mkrelpath.c: Likewise.
34003 * util/grub-pe2elf.c: Likewise.
34004 * util/grub-probe.c: Likewise.
34005 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34006 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34007 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34009 * util/misc.c: Include `"progname.h"'.
34010 (progname): Remove variable.
34011 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34013 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34015 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34016 printf and print a newline after the menuentry header line.
34017 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34019 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34021 autoconf >= 2.60 support $(localedir).
34023 * INSTALL: Note that autoconf 2.60 is required.
34024 * configure.ac (AC_PREREQ): Bump to 2.60.
34025 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34026 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34028 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34030 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34033 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34035 * normal/main.c (grub_normal_read_line): Fix off-by-one
34038 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34040 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34041 "parser.grub" in grub_command_execute() call.
34043 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34045 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34046 * conf/i386-efi.rmk: Likewise.
34047 * conf/i386-ieee1275.rmk: Likewise.
34048 * conf/i386-pc.rmk: Likewise.
34049 * conf/powerpc-ieee1275.rmk: Likewise.
34050 * conf/sparc64-ieee1275.rmk: Likewise.
34051 * conf/x86_64-efi.rmk: Likewise.
34052 * gettext/gettex.c: Include <grub/i18n.h>.
34053 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34055 * include/grub/i18n.h: ... to here
34056 * include/grub/i18n.h: ... to here.
34057 * kern/misc.c: Include <grub/i18n.h>
34058 (grub_gettext_dummy): Move above user.
34060 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34062 * util/Makefile.in (install-local): Convert a `for' into a normal
34065 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34067 * autogen.sh: Add automake call.
34068 * config.guess: Remove.
34069 * config.sub: Likewise.
34070 * install-sh: Likewise.
34072 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34074 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34076 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34078 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34079 function to a normal shell `for'.
34081 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34083 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34085 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34087 * util/grub-mkrelpath.c: New file.
34088 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34089 (grub_mkrelpath_SOURCES): New variable.
34090 * include/grub/util/misc.h: New function prototype.
34091 * util/misc.c (make_system_path_relative_to_its_root): New function.
34093 * util/grub-mkconfig_lib.in (bindir): New variable.
34094 (grub_mkrelpath): Likewise.
34095 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34097 * util/probe.c (probe): Make the file path relative to its root.
34098 Change a info message to use the GRUB path. Enable again the
34099 check if we can read the file with GRUB facilities.
34101 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34104 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34106 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34109 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34111 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34114 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34116 * util/getroot.c (grub_util_is_dmraid): New function.
34117 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34118 devices as normal ones, not as LVM.
34120 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34122 * conf/common.rmk: Add grub-gettext_lib target and updates
34123 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34125 * gettext/gettext.c: New file. (Reads mo files).
34126 * include/grub/file.h (grub_file_pread): New prototype.
34127 * include/grub/i18n.h (_): New prototype.
34128 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34130 * kern/misc.c (grub_gettext_dummy): New function.
34131 * normal/menu_text.c: Include <grub/i18n.h>.
34132 * normal/menu_text.c (print_timeout): Gettexttize string.
34133 * normal/menu_text.c (print_message): Gettexttize string.
34134 * po/POTFILES: Add `normal/menu_text.c'.
34135 * po/ca.po: Add new translations.
34136 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34137 gettext module and defines locale_dir and lang in grub.cfg.
34138 * NEWS: Add gettext support.
34140 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34142 * util/hostdisk.c: Include `<grub/i18n.h>'.
34143 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34144 (make_device_name): Rewrite using asprintf.
34145 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34146 (find_system_device): If a device is not found, generate one just
34147 by reusing the OS path name.
34148 (read_device_map): Make it permissible for device.map not to exist.
34150 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34152 * script/sh/execute.c: Move from here ...
34153 * script/execute.c: ... to here. Update all users.
34154 * script/sh/function.c: Move from here ...
34155 * script/function.c: ... to here. Update all users.
34156 * script/sh/lexer.c: Move from here ...
34157 * script/lexer.c: ... to here. Update all users.
34158 * script/sh/main.c: Move from here ...
34159 * script/main.c: ... to here. Update all users.
34160 * script/sh/parser.y: Move from here ...
34161 * script/parser.y: ... to here. Update all users.
34162 * script/sh/script.c: Move from here ...
34163 * script/script.c: ... to here. Update all users.
34165 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34167 * configure.ac: Detect all `emu' platforms. Define
34168 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34169 --enable-grub-emu logic. Disable include/grub/machine
34170 symlink on `emu' platforms.
34172 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34173 * gensymlist.sh.in: Likewise.
34175 * include/grub/i386/coreboot/machine.h: Remove file.
34176 * include/grub/i386/efi/machine.h: Likewise.
34177 * include/grub/i386/ieee1275/machine.h: Likewise.
34178 * include/grub/i386/pc/machine.h: Likewise.
34179 * include/grub/i386/qemu/machine.h: Likewise.
34180 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34181 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34182 * include/grub/x86_64/efi/machine.h: Likewise.
34184 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34185 * commands/halt.c: Likewise.
34186 * commands/reboot.c: Likewise.
34187 * include/grub/autoefi.h: Likewise.
34188 * include/grub/i386/at_keyboard.h: Likewise.
34189 * include/grub/i386/kernel.h: Likewise.
34190 * include/grub/i386/loader.h: Likewise.
34191 * include/grub/i386/pc/memory.h: Likewise.
34192 * kern/dl.c: Likewise.
34193 * kern/i386/coreboot/init.c: Likewise.
34194 * loader/i386/bsd.c: Likewise.
34195 * loader/i386/linux.c: Likewise.
34196 * loader/multiboot_loader.c: Likewise.
34197 * term/i386/pc/serial.c: Likewise.
34198 * term/usb_keyboard.c: Likewise.
34200 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34201 `<grub/machine/machine.h>'
34202 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34203 * util/misc.c: Remove `<grub/machine/machine.h>' and
34204 `<grub/machine/time.h>'.
34206 * Makefile.in (enable_grub_emu): Remove variable.
34207 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34209 * conf/any-emu.rmk: New file.
34210 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34211 (grub_emu_init.c): Move from here ...
34212 * conf/any-emu.rmk: ... to here.
34214 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34215 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34216 * conf/any-emu.rmk: ... to here.
34218 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34220 * include/grub/parser.h (grub_parser_register): Document need
34221 of `name' parameter.
34222 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34223 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34226 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34228 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34230 * include/grub/i18n.h (N_): New macro.
34231 * util/mkisofs/mkisofs.h: Likewise.
34232 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34234 (usage): Use gettext() to translate help strings when printing them.
34236 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34238 Based on patch from Bean
34239 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34241 * video/efi_fb.c: New file.
34242 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34243 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34245 * conf/x86_64-efi.rmk: Likewise.
34247 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34249 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34250 * util/i386/pc/grub-setup.c: Likewise.
34252 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34254 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34256 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34257 file_get_storage_info to implement grub_guess_root_device.
34259 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34261 * Makefile.in (target): Use make's builtin $(shell) function
34262 instead of calling directly $(SHELL) to create the locale directories,
34263 inside the $(foreach) function.
34265 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34267 * util/grub-mkrescue.in: Print an error and usage if output option
34268 has not been given.
34270 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34272 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34273 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34274 root and /boot are on different devices.
34276 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34278 Fix build for srcdir != objdir.
34280 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34281 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34283 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34284 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34285 reference for input.
34287 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34289 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34290 or hardlinking it). Remove -J option, Joliet is not compatible with
34291 multiple source directories.
34293 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34294 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34296 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34297 (process_input_dir): New function. Process an arbitrary input
34299 Misc adjustments to support both "override mode" and system-wide mode.
34301 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34303 * configure.ac (UNIFONT_BDF): Rename to ...
34304 (FONT_SOURCE): ... this. Update all users.
34306 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34308 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34309 to the list of unifont files to look for.
34311 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34313 Patch from Joe Auricchio <jauricchio@gmail.com>
34314 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34315 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34316 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34318 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34320 * Makefile.in (install-local): Add a missing backslash.
34322 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34324 * include/grub/x86_64/io.h: New file.
34326 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34328 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34329 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34330 Include `"progname.h"'.
34331 (main): Initialize gettext.
34332 * util/i386/pc/grub-setup.c: Gettexttize.
34333 * util/i386/pc/grub-mkimage.c: Likewise.
34335 * Makefile.in (po/*.po): Redefine as ...
34336 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34338 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34340 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34342 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34343 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34344 (program_name): Remove.
34345 (main): Initialize gettext support.
34346 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34347 Include `<libintl.h>'.
34350 * util/mkisofs/eltorito.c: Gettexttize.
34351 * util/mkisofs/joliet.c: Likewise.
34352 * util/mkisofs/mkisofs.c: Likewise.
34353 * util/mkisofs/multi.c: Likewise.
34354 * util/mkisofs/rock.c: Likewise.
34355 * util/mkisofs/tree.c: Likewise.
34356 * util/mkisofs/write.c: Likewise.
34358 * po/POTFILES: Update with new files.
34360 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34362 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34363 * util/mkisofs/iso9660.h: Likewise.
34364 * util/mkisofs/joliet.c: Likewise.
34365 * util/mkisofs/mkisofs.c: Likewise.
34366 * util/mkisofs/mkisofs.h: Likewise.
34367 * util/mkisofs/rock.c: Likewise.
34368 * util/mkisofs/tree.c: Likewise.
34369 * util/mkisofs/write.c: Likewise.
34371 * util/mkisofs/eltorito.c (rcsid): Remove.
34372 * util/mkisofs/hash.c: Likewise.
34373 * util/mkisofs/joliet.c: Likewise.
34374 * util/mkisofs/name.c: Likewise.
34375 * util/mkisofs/rock.c: Likewise.
34376 * util/mkisofs/tree.c: Likewise.
34377 * util/mkisofs/write.c: Likewise.
34379 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34381 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34382 instead of static allocation.
34383 * util/mkisofs/match.h: Likewise.
34385 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34387 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34388 and `util/grub.d/10_linux.in'.
34389 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34390 translatable Shell files.
34392 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34394 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34396 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34398 * INSTALL: Document Automake is needed for bootstrap.
34399 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34400 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34401 Add gettext initialization.
34402 (kfreebsd_entry): Make menuentry output translatable.
34404 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34406 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34407 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34408 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34409 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34410 (LINGUAS): Auto-generate using `po/LINGUAS'.
34411 * po/LINGUAS: New file.
34413 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34415 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34417 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34418 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34419 bindtextdomain() calls for gettext initialization.
34421 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34423 * gnulib/progname.c: New file (imported from Gnulib).
34424 * gnulib/progname.h: Likewise.
34425 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34426 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34427 (usage): Replace `progname' with `program_name'.
34428 (main): Use set_program_name() for program name initialization.
34430 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34432 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34434 * Makefile.in (CPPFLAGS): ... to here.
34436 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34438 * aclocal.m4: Move from here ...
34439 * acinclude.m4: ... to here.
34440 * autogen.sh: Add call to `aclocal'.
34441 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34443 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34445 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34446 (LINGUAS): New variable.
34447 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34448 (install-local): Install MO files.
34449 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34450 * include/grub/i18n.h: New file.
34451 * po/POTFILES: New file.
34452 * po/ca.po: New file.
34453 * util/grub.d/10_linux.in (bindir): New variable.
34454 Add gettext initialization.
34455 (linux_entry): Make menuentry output translatable.
34456 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34457 (usage): Make --help output translatable.
34458 (main): Initialize gettext.
34460 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34462 * import_gcry.py: New file (written by Vladimir with minor
34464 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34466 * INSTALL: Document that Python is required for bootstrap.
34468 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34470 Import ciphers from libgcrypt 1.4.4.
34472 * lib/libgcrypt/cipher/ChangeLog
34473 * lib/libgcrypt/cipher/ac.c
34474 * lib/libgcrypt/cipher/arcfour.c
34475 * lib/libgcrypt/cipher/bithelp.h
34476 * lib/libgcrypt/cipher/blowfish.c
34477 * lib/libgcrypt/cipher/camellia-glue.c
34478 * lib/libgcrypt/cipher/camellia.c
34479 * lib/libgcrypt/cipher/camellia.h
34480 * lib/libgcrypt/cipher/cast5.c
34481 * lib/libgcrypt/cipher/cipher.c
34482 * lib/libgcrypt/cipher/crc.c
34483 * lib/libgcrypt/cipher/des.c
34484 * lib/libgcrypt/cipher/dsa.c
34485 * lib/libgcrypt/cipher/ecc.c
34486 * lib/libgcrypt/cipher/elgamal.c
34487 * lib/libgcrypt/cipher/hash-common.c
34488 * lib/libgcrypt/cipher/hash-common.h
34489 * lib/libgcrypt/cipher/hmac-tests.c
34490 * lib/libgcrypt/cipher/md.c
34491 * lib/libgcrypt/cipher/md4.c
34492 * lib/libgcrypt/cipher/md5.c
34493 * lib/libgcrypt/cipher/primegen.c
34494 * lib/libgcrypt/cipher/pubkey.c
34495 * lib/libgcrypt/cipher/rfc2268.c
34496 * lib/libgcrypt/cipher/rijndael-tables.h
34497 * lib/libgcrypt/cipher/rijndael.c
34498 * lib/libgcrypt/cipher/rmd.h
34499 * lib/libgcrypt/cipher/rmd160.c
34500 * lib/libgcrypt/cipher/rsa.c
34501 * lib/libgcrypt/cipher/seed.c
34502 * lib/libgcrypt/cipher/serpent.c
34503 * lib/libgcrypt/cipher/sha1.c
34504 * lib/libgcrypt/cipher/sha256.c
34505 * lib/libgcrypt/cipher/sha512.c
34506 * lib/libgcrypt/cipher/tiger.c
34507 * lib/libgcrypt/cipher/twofish.c
34508 * lib/libgcrypt/cipher/whirlpool.c
34510 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34512 Fix build for systems without error().
34514 * gnulib/error.c: New file (imported from Gnulib).
34515 * gnulib/error.h: Likewise.
34516 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34517 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34518 (this variable is now used by error()).
34520 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34522 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34523 instead of relying that char is signed.
34525 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34527 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34528 blocksize different from specified.
34529 (grub_pxefs_read): Likewise.
34531 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34533 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34535 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34536 (grub_ata_readwrite): Likewise. Update 2 format strings.
34537 (grub_atapi_read): Likewise.
34539 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34540 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34541 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34542 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34543 (ata_mod_LDFLAGS): Move from here ...
34544 * conf/i386.rmk: ... to here ...
34545 * conf/x86_64-efi.rmk: ... and here.
34546 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34547 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34549 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34551 Relicense multiboot.h, with RMS' blessing.
34553 * include/multiboot.h: Change to X11 license.
34555 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34557 Support --version in grub-mkisofs.
34559 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34560 (OPTION_VERSION): New macro.
34561 (ld_options): Recognize --version.
34562 (usage): Move `program_name' from here ...
34563 (program_name): ... to here. Add `static' qualifier.
34564 (main): Recognize `OPTION_VERSION'.
34566 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34568 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34569 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34571 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34573 Fix help2man generation for mkisofs.
34575 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34576 (usage): Send output to stdout (rather than stderr).
34578 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34580 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34581 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34582 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34583 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34584 (bin_SCRIPTS): Add `grub-mkfloppy'.
34585 (grub_mkfloppy_SOURCES): New variable.
34587 * util/grub-mkrescue.in: New file.
34588 * util/i386/pc/grub-mkfloppy.in: New file.
34590 * util/i386/coreboot/grub-mkrescue.in: Remove.
34591 * util/i386/pc/grub-mkrescue.in: Remove.
34593 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34595 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34597 * include/multiboot.h (struct multiboot_header): ... to here. Update
34599 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34601 * include/multiboot.h (struct multiboot_info): ... to here. Update
34603 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34605 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34607 * include/grub/multiboot.h (struct grub_mod_list): Move
34609 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34612 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34614 * include/multiboot2.h (multiboot_word): Rename from this ...
34615 (multiboot2_word): ... to this. Update all users.
34616 (multiboot_header): Rename from this ...
34617 (multiboot2_header): ... to this. Update all users.
34618 (multiboot_tag_header): Rename from this ...
34619 (multiboot2_tag_header): ... to this. Update all users.
34620 (multiboot_tag_start): Rename from this ...
34621 (multiboot2_tag_start): ... to this. Update all users.
34622 (multiboot_tag_name): Rename from this ...
34623 (multiboot2_tag_name): ... to this. Update all users.
34624 (multiboot_tag_module): Rename from this ...
34625 (multiboot2_tag_module): ... to this. Update all users.
34626 (multiboot_tag_memory): Rename from this ...
34627 (multiboot2_tag_memory): ... to this. Update all users.
34628 (multiboot_tag_unused): Rename from this ...
34629 (multiboot2_tag_unused): ... to this. Update all users.
34630 (multiboot_tag_end): Rename from this ...
34631 (multiboot2_tag_end): ... to this. Update all users.
34633 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34635 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34636 this platform we should support Multiboot1 first.
34638 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34639 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34640 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34642 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34644 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34645 of write calls (converting them to fwrite() if they aren't already).
34646 (get_torito_desc): Likewise.
34647 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34649 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34651 * util/i386/pc/grub-install.in: Move from here ...
34652 * util/grub-install.in: ... to here. Update all users.
34654 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34656 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34658 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34660 Support for El Torito without floppy emulation.
34662 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34663 (init_boot_catalog): Improve error handling.
34664 (get_torito_desc): Don't use floppy emulation unless requested by
34665 user. Patch boot information table when requested via
34666 `-boot-info-table'.
34667 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34668 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34669 (use_boot_info_table): New variables.
34670 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34671 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34672 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34673 `--eltorito-emul-floppy'.
34674 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34675 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34676 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34677 (use_boot_info_table, get_731): New prototypes.
34678 * util/mkisofs/write.c (get_731): New function.
34680 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34682 Fix the generation of the man page.
34684 * util/pc/i386/grub-install.in: Source
34685 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34687 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34689 Large file support for grub-mkisofs.
34691 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34692 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34693 (session_start): Upgrade type to `uint64_t'. Update all users.
34694 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34695 (struct directory_entry): Upgrade type of `starting_block' and
34696 `size' to `uint64_t'. Update all users.
34697 (struct deferred): Remove unused structure.
34698 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34700 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34701 file is larger than `UINT32_MAX'.
34702 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34703 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34705 (struct deferred_write): Upgrade type of `extent' and `size' to
34706 `uint64_t'. Update all users.
34707 (last_extent_written): Upgrade type to `uint64_t'. Update all
34709 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34710 Update all users. Upgrade type of `remain' to `int64_t' and
34711 `use' to `size_t'. Use error() to handle fread() errors.
34712 (write_files): Rely on write_one_file() rather than calling
34713 xfwrite() directly.
34715 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34717 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34719 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34721 * util/mkisofs/fnmatch.c: Remove.
34722 * util/mkisofs/getopt1.c: Likewise.
34723 * util/mkisofs/getopt.c: Likewise.
34724 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34725 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34726 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34727 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34728 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34730 * configure.ac: Detect `mingw32msvc' host_os.
34731 Check for lstat(), getuid() and getgid().
34733 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34734 instances of `u_char' with `uint8_t'.
34736 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34737 [!HAVE_GETUID] (getuid): New function (stub).
34738 [!HAVE_GETGID] (getgid): Likewise.
34739 [!HAVE_LSTAT] (lstat): Likewise.
34740 [!S_IROTH] (S_IROTH): New macro (dummy).
34741 [!S_IRGRP] (S_IRGRP): Likewise.
34743 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34745 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34746 conditional expression).
34748 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34750 Import from Gnulib.
34752 * gnulib/fnmatch.c: New file.
34753 * gnulib/fnmatch.h: Likewise.
34754 * gnulib/fnmatch_loop.c: Likewise.
34755 * gnulib/getopt.c: Likewise.
34756 * gnulib/getopt.h: Likewise.
34757 * gnulib/getopt1.c: Likewise.
34758 * gnulib/getopt_int.h: Likewise.
34759 * gnulib/gettext.h: Likewise.
34761 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34763 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34764 * normal/handler.c (read_handler_list): Likewise.
34766 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34770 * kern/command.c (grub_register_command_prio): Use
34771 grub_zalloc() instead of explicitly zeroing data.
34772 * kern/list.c: Include `<grub/mm.h>'.
34773 (grub_named_list_find): Replace `0' with `NULL'.
34774 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34775 (fs_module_list): Change type to `grub_named_list_t'. Update all
34777 * normal/dyncmd.c (read_command_list): Add space between function
34778 call and parenthesis.
34779 * normal/handler.c (read_handler_list): Likewise.
34781 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34783 * normal/auth.c (punishment_delay): Moved from here ...
34784 (grub_auth_strcmp): ... to here (inside function).
34786 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34788 * include/grub/list.h (struct grub_named_list): Remove `const'
34789 qualifier from `name'.
34790 (struct grub_prio_list): Likewise.
34792 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34794 * normal/auth.c: Include `<grub/time.h>'.
34795 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34797 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34799 * normal/auth.c (punishment_delay): New variable.
34800 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34801 (grub_auth_check_authentication): Punish failed login attempts with
34802 an incremental (2^N) delay.
34804 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34806 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34807 path with $(srcdir).
34809 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34811 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34813 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34815 * util/i386/coreboot/grub-mkrescue.in: New file.
34816 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34819 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34820 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34821 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34823 * util/mkisofs/defaults.h: New file.
34824 * util/mkisofs/eltorito.c: Likewise.
34825 * util/mkisofs/exclude.h: Likewise.
34826 * util/mkisofs/fnmatch.c: Likewise.
34827 * util/mkisofs/getopt.c: Likewise.
34828 * util/mkisofs/getopt1.c: Likewise.
34829 * util/mkisofs/hash.c: Likewise.
34830 * util/mkisofs/include/fctldefs.h: Likewise.
34831 * util/mkisofs/include/mconfig.h: Likewise.
34832 * util/mkisofs/include/prototyp.h: Likewise.
34833 * util/mkisofs/include/statdefs.h: Likewise.
34834 * util/mkisofs/iso9660.h: Likewise.
34835 * util/mkisofs/joliet.c: Likewise.
34836 * util/mkisofs/match.c: Likewise.
34837 * util/mkisofs/match.h: Likewise.
34838 * util/mkisofs/mkisofs.c: Likewise.
34839 * util/mkisofs/mkisofs.h: Likewise.
34840 * util/mkisofs/multi.c: Likewise.
34841 * util/mkisofs/name.c: Likewise.
34842 * util/mkisofs/rock.c: Likewise.
34843 * util/mkisofs/tree.c: Likewise.
34844 * util/mkisofs/write.c: Likewise.
34846 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34848 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34851 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34853 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34854 `grub-mkimage' (and use $0 when possible).
34856 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34858 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34859 error message for excessively large memory map.
34861 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34863 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34866 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34868 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34869 message for coreboot users.
34871 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34873 Fix build with GNU gold.
34875 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34876 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34877 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34879 * aclocal.m4: Likewise.
34881 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34883 * configure.ac (AC_PREREQ): Bump to 2.59d.
34884 * INSTALL: Make it more clear when Autoconf and Ruby are
34885 needed and when to run `./autogen.sh'.
34887 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34889 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34892 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34894 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34896 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34898 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34899 giving it to GNU Mach.
34901 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34903 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34904 GNU partition number to get internal GRUB partition number.
34906 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34908 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34909 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34911 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34913 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34914 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34917 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34919 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34921 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34925 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34926 `-isystem=$(srcdir)/include'.
34928 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34930 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34931 checked (grub-install doesn't currently rely on it).
34933 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34937 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34938 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34939 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34940 * conf/i386-ieee1275.rmk: Likewise.
34941 * conf/i386-pc.rmk: Likewise.
34942 * conf/powerpc-ieee1275.rmk: Likewise.
34943 * conf/sparc64-ieee1275.rmk: Likewise.
34944 * conf/x86_64-efi.rmk: Likewise.
34946 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34948 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34950 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34952 * include/grub/misc.h: Stop checking for APPLE_CC.
34954 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34956 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34957 doesn't cause an infinite call loop.
34959 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34961 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34964 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34966 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34968 * Makefile.in: Likewise.
34970 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34972 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34974 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34976 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34978 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34980 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34982 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34984 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34986 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34988 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34990 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34991 in $(MAKEINFO) invocation. This makes it clear in output that
34992 errors are being ignored.
34994 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34996 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34998 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34999 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35000 * conf/i386-ieee1275.rmk: Likewise.
35001 * conf/i386-pc.rmk: Likewise.
35002 * conf/powerpc-ieee1275.rmk: Likewise.
35003 * conf/sparc64-ieee1275.rmk: Likewise.
35004 * conf/x86_64-efi.rmk: Likewise.
35006 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35008 * util/grub-editenv.c (main): If only a command is given, use
35009 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35010 (usage): FILENAME is now optional and has a default.
35012 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35014 Improve grub-mkconfig performance when there are several menu
35015 entries on a single filesystem.
35017 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35018 prepare_grub_to_access_device.
35019 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35020 * util/grub.d/30_os-prober.in: Likewise.
35022 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35024 * util/grub.d/10_freebsd.in: Remove.
35025 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35026 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35028 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35030 * docs/grub.cfg: Fix example usage of *BSD loaders.
35032 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35034 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35035 grub_util_error() call.
35037 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35039 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35040 `reserved_first_sector' member.
35041 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35042 `reserved_first_sector' to 1.
35043 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35044 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35045 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35046 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35047 filesystems which begin at first sector.
35048 (options): New option --skip-fs-probe.
35049 (main): Handle --skip-fs-probe and pass it to setup().
35051 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35053 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35054 (memset): Fix function prototype.
35056 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35057 2009-10-25 Vasily Averin <vvs@parallels.com>
35059 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35060 `dirent.direntlen == 0'.
35062 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35064 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35066 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35068 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35070 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35071 `__trampoline_setup' and `__ucmpdi2'.
35072 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35073 that libgcc provides.
35075 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35077 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35078 * include/grub/sparc64/libgcc.h (memset): Likewise.
35079 * include/grub/misc.h (memset, memcmp): New function prototypes.
35081 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35083 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35085 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35087 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35089 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35090 * docs/grub.cfg: Compensate for recent change in multiboot
35091 loader (since 2009-08-14 it won't pass filename to payload).
35092 * util/grub.d/10_hurd.in: Likewise.
35094 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35096 * config.guess: Update to latest version from config git
35098 * config.sub: Likewise.
35100 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35102 Fix build on sparc64.
35104 * configure.ac: Perform checks for libgcc symbols before
35105 adding `-nostdlib' to LDFLAGS.
35107 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35109 Let user specify OpenBSD root device.
35111 * loader/i386/bsd.c (openbsd_root): New variable.
35112 (openbsd_opts): New option 'root'.
35113 (OPENBSD_ROOT_ARG): New macro.
35114 (grub_openbsd_boot): Use 'openbsd_root'.
35115 (grub_cmd_openbsd): Fill 'openbsd_root'.
35117 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35119 * NEWS: Misc adjustments.
35121 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35123 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35125 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35127 * configure.ac: Bump version to 1.97.
35129 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35131 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35132 -mno-3dnow on x86 architectures. Some toolchains enable these
35133 features by default, but they rely on registers that aren't enabled
35134 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35136 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35138 Make entry text a bit more readable.
35140 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35142 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35144 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35146 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35148 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35151 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35153 * configure.ac: Add missing dollar.
35155 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35157 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35159 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35160 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35162 * include/grub/sparc64/libgcc.h: Likewise. Use
35163 preprocessor conditionals.
35165 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35167 * conf/common.rmk (grub-dumpbios): Remove rule.
35168 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35169 * util/grub-dumpbios.in: Remove file.
35171 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35173 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35174 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35176 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35177 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35180 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35181 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35182 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35183 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35186 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35188 * term/tparm.c: Switch to GPLv3.
35190 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35192 * include/grub/i386/cpuid.h: Add header protection.
35194 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35196 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35198 * include/grub/i386/cpuid.h: New file.
35199 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35200 (has_longmode): Rename to ...
35201 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35202 `static' attribute.
35203 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35204 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35205 on a CPU that doesn't implement AMD64 instruction set.
35207 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35209 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35210 that version.texi is rebuilt on version number changes.
35212 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35214 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35217 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35219 * util/i386/pc/grub-install.in: Source
35220 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35221 that the --grub-probe option will work.
35222 * util/sparc64/ieee1275/grub-install.in: Likewise.
35224 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35226 * configure.ac: Bump version to 1.97~beta4.
35228 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35230 Resync grub-mkdevicemap in x86_64-efi.
35232 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35233 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35234 `util/devicemap.c'.
35236 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35238 * util/grub-editenv.c (create_envblk_file): Write new block with a
35239 .new suffix and then rename it into place, to ensure atomic
35242 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35244 Do not automatically install headers.
35246 * Makefile.in (include_DATA): Remove. Update all users.
35248 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35250 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35251 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35253 * util/osdetect.lua: Remove.
35254 * script/lua/lauxlib.c: Likewise.
35255 * script/lua/ldebug.c: Likewise.
35256 * script/lua/grub_main.c: Likewise.
35257 * script/lua/lauxlib.h: Likewise.
35258 * script/lua/ldebug.h: Likewise.
35259 * script/lua/ltablib.c: Likewise.
35260 * script/lua/liolib.c: Likewise.
35261 * script/lua/lstrlib.c: Likewise.
35262 * script/lua/lualib.h: Likewise.
35263 * script/lua/ldo.c: Likewise.
35264 * script/lua/ldump.c: Likewise.
35265 * script/lua/ldo.h: Likewise.
35266 * script/lua/loslib.c: Likewise.
35267 * script/lua/lundump.c: Likewise.
35268 * script/lua/grub_lib.c: Likewise.
35269 * script/lua/ldblib.c: Likewise.
35270 * script/lua/lundump.h: Likewise.
35271 * script/lua/lmem.c: Likewise.
35272 * script/lua/grub_lib.h: Likewise.
35273 * script/lua/lmathlib.c: Likewise.
35274 * script/lua/lstate.c: Likewise.
35275 * script/lua/ltm.c: Likewise.
35276 * script/lua/lvm.c: Likewise.
35277 * script/lua/lmem.h: Likewise.
35278 * script/lua/lstate.h: Likewise.
35279 * script/lua/ltm.h: Likewise.
35280 * script/lua/ltable.c: Likewise.
35281 * script/lua/lvm.h: Likewise.
35282 * script/lua/llex.c: Likewise.
35283 * script/lua/lgc.c: Likewise.
35284 * script/lua/grub_lua.h: Likewise.
35285 * script/lua/loadlib.c: Likewise.
35286 * script/lua/lfunc.c: Likewise.
35287 * script/lua/lopcodes.c: Likewise.
35288 * script/lua/lparser.c: Likewise.
35289 * script/lua/ltable.h: Likewise.
35290 * script/lua/llex.h: Likewise.
35291 * script/lua/lgc.h: Likewise.
35292 * script/lua/lfunc.h: Likewise.
35293 * script/lua/lbaselib.c: Likewise.
35294 * script/lua/lopcodes.h: Likewise.
35295 * script/lua/lparser.h: Likewise.
35296 * script/lua/lzio.c: Likewise.
35297 * script/lua/linit.c: Likewise.
35298 * script/lua/lobject.c: Likewise.
35299 * script/lua/llimits.h: Likewise.
35300 * script/lua/lstring.c: Likewise.
35301 * script/lua/lzio.h: Likewise.
35302 * script/lua/lapi.c: Likewise.
35303 * script/lua/lcode.c: Likewise.
35304 * script/lua/lua.h: Likewise.
35305 * script/lua/lobject.h: Likewise.
35306 * script/lua/lstring.h: Likewise.
35307 * script/lua/lapi.h: Likewise.
35308 * script/lua/lcode.h: Likewise.
35309 * script/lua/luaconf.h: Likewise.
35311 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35313 * docs/grub.texi (Command-line and menu entry commands): Document
35314 date and echo commands.
35316 2009-09-24 Pavel Roskin <proski@gnu.org>
35318 * include/grub/kernel.h (struct grub_module_header): Remove
35319 `grub_module_header_types'. Make `type' unsigned. Make `size'
35320 32-bit on all platforms.
35321 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35322 8-bit field. Use grub_host_to_target32() for `size'.
35323 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35324 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35325 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35327 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35329 Fix "lost keypress" bug in at_keyboard.
35331 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35332 Checks for readyness of input buffer (without flushing it).
35333 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35334 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35336 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35338 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35339 size check within GRUB_MACHINE_PCBIOS section.
35341 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35343 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35345 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35346 KEYBOARD_ISREADY check.
35347 (grub_at_keyboard_checkkey): Rename to ...
35348 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35349 Remove gratuitous cast.
35351 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35353 * configure.ac: Call AC_PROG_MKDIR_P.
35354 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35355 version.texi in $(builddir) rather than $(srcdir).
35356 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35357 to makeinfo's @include search path.
35359 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35361 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35363 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35365 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35368 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35370 Build info documentation. Some code borrowed from Automake.
35372 * configure.ac: Check for makeinfo.
35373 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35374 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35376 (MOSTLYCLEANFILES): Add vti.tmp.
35377 (docs/version.texi, docs/stamp-vti): Update automatically.
35378 (docs/grub.info): Build info documentation. Use --force and ignore
35380 (all-local): Add $(INFOS).
35381 (install-local): Install info files.
35382 (uninstall): Uninstall info files.
35383 * docs/version.texi: Remove from revision control. This file is
35384 automatically generated on build now.
35385 * gendistlist.sh: Add `*.info'.
35387 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35389 * kern/term.c: Fix indentation.
35391 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35393 * util/hostdisk.c: Fix a comment.
35395 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35397 Fix regression introduced in r2539.
35399 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35402 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35404 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35405 os-prober. Under normal operation, it does not print anything to
35406 stderr; if it does, we need to debug it, and throwing away stderr
35407 makes that excessively difficult.
35409 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35411 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35413 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35415 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35416 AC_LANG_PROGRAM from autoconf.
35417 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35418 prototypes (fixes warning).
35420 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35421 `--disable-werror' was used.
35423 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35425 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35426 uninitialized `lastaddr'.
35428 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35430 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35432 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35434 * commands/test.c (get_fileinfo): Return immediately if
35435 grub_fs_probe fails.
35437 2009-09-14 José Martínez <xosemp@gmail.com>
35439 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35441 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35443 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35446 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35448 * configure.ac: Remove --enable-grub-pe2elf. Only build
35449 grub-pe2elf when needed by the build system itself.
35450 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35452 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35454 * configure.ac: Bump version to 1.97~beta3.
35455 * docs/version.texi: Likewise.
35457 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35459 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35460 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35462 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35463 (grub_linux_setup_video): ... to here (with some adjustments).
35465 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35467 Fix memory corruption issue (spotted by Colin Watson).
35469 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35470 causing returned size to be stored in an incorrect memory location.
35471 Fix use of uninitialized value when storing the returned size.
35473 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35475 Change clean rules to properly remove files
35477 * genmk.rb: add new clean rules
35478 * Makefile.in (clean): add the new targets
35479 (mostlyclean): likewise
35481 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35483 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35485 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35486 non-resident files.
35488 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35490 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35491 part of bug #27349.
35493 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35495 * util/grub-mkconfig.in: Make the created config mode 400 and
35496 print a warning if it fails.
35498 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35500 * util/grub.d/40_custom.in: Ask user to type custom entries below
35501 comment, rather than below 'exec tail' line.
35503 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35505 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35506 visible in grub.cfg.
35508 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35510 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35513 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35515 * docs/grub.cfg: Add an example menu entry for memtest86+.
35517 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35519 * config.guess: Update to latest version from config git.
35520 * config.sub: Likewise.
35522 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35524 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35525 unknown-command case. Fixes bug #27320.
35527 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35529 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35530 `help' if the command exists.
35532 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35534 * INSTALL: Require GCC 4.1.3 or later.
35536 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35538 * Makefile.in (RMKFILES): add i386-qemu.rmk
35539 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35540 $(srcdir)/stamp-h.in
35542 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35544 * util/grub-probe.c (probe): Comment out buggy codepath, which
35545 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35546 should be re-enabled after 1.97.
35548 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35550 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35553 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35555 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35556 unnecessary calls to grub_error.
35558 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35560 * NEWS: Mention `keystatus' and Unicode fonts.
35562 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35564 * configure.ac: Bump version to 1.97~beta2.
35565 * docs/version.texi: Likewise.
35567 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35569 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35570 containing unwind information in some cases where it previously did
35571 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35572 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35575 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35577 Embedding loadenv module into grub-emu
35579 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35581 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35582 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35583 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35585 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35586 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35588 2009-09-03 Magnus Granberg <zorry@ume.nu>
35590 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35591 include -fPIE in the default specs.
35592 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35595 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35597 * INSTALL: Note that GNU Bison 2.3 or later is required.
35599 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35601 * kern/i386/pc/startup.S: Fix typo.
35603 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35605 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35608 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35610 * docs/grub.texi (Naming convention): Describe one-based partition
35612 (Device syntax): Likewise.
35613 (File name syntax): Likewise.
35614 (Block list syntax): Likewise.
35615 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35617 (File name syntax): Likewise.
35618 (Command-line and menu entry commands): Document acpi, blocklist,
35619 crc, export, insmod, keystatus, ls, set, and unset commands.
35621 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35623 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35624 to avoid implying that only one of --shift, --ctrl, or --alt may be
35627 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35629 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35630 rather than comparing against S_IFREG, which will almost never work.
35632 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35634 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35635 (write_blocklists): Likewise.
35637 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35639 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35640 argument to grub_printf.
35642 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35644 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35647 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35649 * kern/file.c (grub_file_read): Spelling fix
35651 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35653 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35654 loading of headers in some cases.
35656 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35658 * configure.ac: Bump version to 1.97~beta1.
35659 * docs/version.texi: Likewise.
35661 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35663 * include/grub/i386/xnu.h: Add license header.
35664 include grub/err.h explicitly.
35666 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35668 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35669 to `ufs' in the vfs.root.mountfrom kernel parameter.
35671 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35673 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35675 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35676 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35678 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35679 `ARRAY_SIZE' macro.
35681 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35683 * kern/file.c (grub_file_read): Check offset.
35684 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35685 * fs/jfs.c (grub_jfs_read_file): Likewise.
35686 * fs/ntfs.c (grub_ntfs_read): Likewise.
35687 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35688 * fs/minix.c (grub_minix_read_file): Correct offset check.
35689 * fs/ufs.c (grub_ufs_read_file): Likewise.
35691 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35693 * term/i386/pc/console.c (bios_data_area): Cast
35694 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35696 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35698 1-bit optimised blitters.
35700 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35702 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35703 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35704 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35705 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35706 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35707 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35708 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35710 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35711 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35712 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35713 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35714 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35715 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35716 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35718 * video/video.c (grub_video_get_blit_format): Return
35719 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35721 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35723 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35724 the first argument to grub_printf.
35726 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35727 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35729 Add `getkeystatus' terminal method. Add a new `keystatus' command
35732 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35733 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35734 modifier key bitmasks.
35735 (struct grub_term_input): Add `getkeystatus' member.
35736 (grub_getkeystatus): Add prototype.
35737 * kern/term.c (grub_getkeystatus): New function.
35739 * include/grub/i386/pc/memory.h
35740 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35741 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35743 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35744 (grub_console_term_input): Set `getkeystatus' member.
35745 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35747 (grub_usb_keyboard_getreport): Likewise.
35748 (grub_usb_keyboard_checkkey): Likewise.
35749 (grub_usb_keyboard_getkeystatus): New function.
35750 (grub_usb_keyboard_term): Set `getkeystatus' member.
35752 * commands/keystatus.c: New file.
35753 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35754 (keystatus_mod_SOURCES): New variable.
35755 (keystatus_mod_CFLAGS): Likewise.
35756 (keystatus_mod_LDFLAGS): Likewise.
35757 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35758 commands/keystatus.c.
35759 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35760 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35761 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35763 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35764 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35766 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35768 Split befs.mod and afs.mod into *_be.mod and *.mod
35770 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35771 (grub_fstest_SOURCES): Likewise.
35772 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35773 (afs_be_mod_SOURCES): New variable.
35774 (afs_be_mod_CFLAGS): Likewise.
35775 (afs_be_mod_LDFLAGS): Likewise.
35776 (befs_be_mod_SOURCES): Likewise.
35777 (befs_be_mod_CFLAGS): Likewise.
35778 (befs_be_mod_LDFLAGS): Likewise.
35779 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35780 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35781 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35782 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35783 (grub_emu_SOURCES): Likewise.
35784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35785 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35786 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35787 * fs/afs_be.c: New file.
35788 * fs/befs_be.c: New file.
35789 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35790 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35791 (U16): Replaced with ...
35792 (grub_afs_to_cpu16): ...this. All users updated.
35793 (U32): Replaced with ...
35794 (grub_afs_to_cpu32): ...this. All users updated.
35795 (U64): Replaced with ...
35796 (grub_afs_to_cpu64): ...this. All users updated.
35797 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35798 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35799 (grub_afs_validate_sblock): Check only one endianness.
35800 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35801 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35802 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35803 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35804 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35805 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35806 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35807 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35809 2009-08-26 Bean <bean123ch@gmail.com>
35811 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35813 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35814 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35815 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35817 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35819 NetBSD memory map support.
35821 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35822 (grub_netbsd_btinfo_mmap_header): New structure.
35823 (grub_netbsd_btinfo_mmap_entry): Likewise.
35824 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35826 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35828 Enable bsd.mod on coreboot.
35830 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35831 (bsd_mod_SOURCES): New variable.
35832 (bsd_mod_CFLAGS): Likewise.
35833 (bsd_mod_LDFLAGS): Likewise.
35834 (bsd_mod_ASFLAGS): Likewise.
35835 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35836 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35838 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35840 Cleanup NetBSD root support.
35842 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35843 grub_bsd_get_device.
35846 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35848 * util/grub.d/00_header.in: Move check for the video backend of
35849 gfxterm from here ...
35850 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35851 a suitable video backend.
35853 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35855 Fix breakage in grub-setup.
35857 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35858 "msdos_partition_map".
35860 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35862 Fix breakage in normal/auth.c.
35864 * normal/auth.c (grub_iswordseparator): New function.
35866 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35868 Authentication support.
35870 * commands/password.c: New file.
35871 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35872 (password_mod_SOURCES): New variable.
35873 (password_mod_CFLAGS): Likewise.
35874 (password_mod_LDFLAGS): Likewise.
35875 (normal_mod_SOURCES): Add normal/auth.c.
35876 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35878 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35879 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35880 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35882 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35883 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35884 * include/grub/auth.h: New file.
35885 * include/grub/err.h (grub_err_t): New enum value
35886 GRUB_ERR_ACCESS_DENIED.
35887 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35889 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35890 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35892 * normal/auth.c: New file.
35893 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35894 (grub_cmdline_run): Don't allow to go to command line without
35896 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35897 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35898 menuentry without superuser rights.
35899 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35900 user isn't a superuser.
35902 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35904 Save space by inlining misc.c functions.
35906 * kern/misc.c (grub_iswordseparator): Made static.
35907 * kern/misc.c (grub_strcat): Moved from here ...
35908 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35909 * kern/misc.c (grub_strncat): Moved from here ...
35910 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35911 * kern/misc.c (grub_strcasecmp): Moved from here ...
35912 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35913 * kern/misc.c (grub_strncasecmp): Moved from here ...
35914 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35915 * kern/misc.c (grub_isalpha): Moved from here ...
35916 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35917 * kern/misc.c (grub_isdigit): Moved from here ...
35918 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35919 * kern/misc.c (grub_isgraph): Moved from here ...
35920 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35921 * kern/misc.c (grub_tolower): Moved from here ...
35922 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35924 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35926 * script/sh/function.c (grub_script_function_find): Cut error message
35927 not to flood terminal.
35928 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35930 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35932 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35934 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35935 `report' grub_uint8_t *.
35936 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35937 Use a 50-millisecond timeout rather than just repeating
35938 grub_usb_keyboard_getreport 50 times.
35939 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35941 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35943 Rename *_partition_map to part_*
35945 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35946 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35947 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35948 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35950 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35952 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35953 * util/grub-probe.c (probe_partmap): Don't transform partition name
35954 to get module name.
35956 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35958 Fix OpenBSD and NetBSD support.
35960 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35961 memory address conflict.
35962 (OPENBSD_MMAP_ACPI): New definition.
35963 (OPENBSD_MMAP_NVS): Likewise.
35964 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35965 and OPENBSD_MMAP_NVS.
35966 Add memory map terminator
35967 Explicit cast when calling grub_unix_real_boot.
35968 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35970 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35972 Let user specify NetBSD root device.
35974 * loader/i386/bsd.c (netbsd_root): New variable.
35975 (netbsd_opts): New option 'root'.
35976 (NETBSD_ROOT_ARG): New macro.
35977 (grub_netbsd_boot): Use 'netbsd_root'.
35978 (grub_bsd_unload): Free 'netbsd_root'.
35979 (grub_cmd_netbsd): Fill 'netbsd_root'.
35981 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35983 Support for 64-bit NetBSD.
35985 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35986 point when booting non-FreeBSD.
35988 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35990 Support --no-smp and --no-acpi for NetBSD.
35992 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35993 (NETBSD_AB_NOACPI): Likewise.
35994 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35995 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35997 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35999 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36001 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36002 errors. Call grub_error when needed.
36004 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36006 * commands/search.c (search_fs): Try searching without autoload first.
36007 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36008 filesystem module explicitly for faster booting.
36010 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36012 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36014 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36016 * util/grub.d/30_os-prober.in: Disable os-prober if
36017 `GRUB_DISABLE_OS_PROBER' was set to true.
36019 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36021 * partmap/pc.c: Rename to ...
36022 * partmap/msdos.c: ... this. Update all users.
36023 (grub_pc_partition_map): Rename to ...
36024 (grub_msdos_partition_map): ... this. Update all users.
36026 * parttool/pcpart.c: Rename to ...
36027 * parttool/msdospart.c: ... this. Update all users.
36029 * include/grub/pc_partition.h: Rename to ...
36030 * include/grub/msdos_partition.h: ... this. Update all users.
36031 (grub_pc_partition_bsd_entry): Rename to ...
36032 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36033 (grub_pc_partition_disk_label): Rename to ...
36034 (grub_msdos_partition_disk_label): ... this. Update all users.
36035 (grub_pc_partition_entry): Rename to ...
36036 (grub_msdos_partition_entry): ... this. Update all users.
36037 (grub_pc_partition_mbr): Rename to ...
36038 (grub_msdos_partition_mbr): ... this. Update all users.
36039 (grub_pc_partition): Rename to ...
36040 (grub_msdos_partition): ... this. Update all users.
36041 (grub_pc_partition_is_empty): Rename to ...
36042 (grub_msdos_partition_is_empty): ... this. Update all users.
36043 (grub_pc_partition_is_extended): Rename to ...
36044 (grub_msdos_partition_is_extended): ... this. Update all users.
36045 (grub_pc_partition_is_bsd): Rename to ...
36046 (grub_msdos_partition_is_bsd): ... this. Update all users.
36048 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36049 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36050 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36051 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36052 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36053 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36054 (gpt_mod_LDFLAGS): Rename to ...
36055 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36056 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36057 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36058 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36059 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36060 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36061 (part_gpt_mod_LDFLAGS): ... this.
36062 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36063 `pcpart.mod' to `msdospart.mod'.
36064 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36066 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36067 (msdospart_mod_LDFLAGS): ... this.
36069 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36071 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36072 (openbsd_opts): Likewise.
36073 (netbsd_opts): Likewise.
36074 (freebsd_flags): Added 0 terminator.
36075 (openbsd_flags): Likewise.
36076 (netbsd_flags): Likewise.
36077 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36078 (grub_cmd_freebsd): Transformed into extended command.
36079 (grub_cmd_openbsd): Likewise.
36080 (grub_cmd_netbsd): Likewise.
36081 (cmd_freebsd): Changed type to grub_extcmd_t.
36082 (cmd_openbsd): Likewise.
36083 (cmd_netbsd): Likewise.
36084 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36085 grub_cmd_openbsd as extended commands.
36086 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36087 cmd_netbsd and cmd_openbsd
36089 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36091 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36093 2009-08-21 Pavel Roskin <proski@gnu.org>
36095 * Makefile.in (install-local): When checking if a file is in the
36096 build directory, use "test -e" to detect symlinks.
36098 * Makefile.in (install-local): Remove all files in
36099 $(DESTDIR)$(pkglibdir) before installing new files there.
36101 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36103 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36106 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36108 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36109 explicitly specified by the user.
36111 2009-08-18 Pavel Roskin <proski@gnu.org>
36113 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36114 grub_uint8_t pointer for data.
36115 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36117 * video/fb/fbutil.c: Remove unnecessary casts.
36119 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36123 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36124 (grub_vbe_set_video_mode): Save active mode info
36125 only after setting the mode.
36126 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36129 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36131 Rename variables for clarity.
36133 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36134 (active_vbe_mode_info): ... this. All users updated.
36135 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36137 (initial_mode): Rename to ...
36138 (initial_vbe_mode): ... this. All users updated.
36139 (mode_in_use): Rename to ..
36140 (vbe_mode_in_use): ... this. All users updated.
36141 (mode_list): Rename to ..
36142 (vbe_mode_list): ... this. All users updated.
36143 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36144 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36145 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36146 'mode_list_size' to 'vbe_mode_list_size'.
36147 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36148 'best_mode_info' to 'best_vbe_mode_info' and
36149 'best_mode' to 'best_vbe_mode'
36151 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36153 Remove duplicate grub_video_fb_get_video_ptr.
36155 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36156 (grub_video_fb_get_video_ptr): ... this.
36157 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36158 * video/fb/fbutil.c: Add comment about addressing.
36159 (get_data_ptr): Rename to ...
36160 (grub_video_fb_get_video_ptr): ... this. All users updated.
36161 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36163 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36165 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36166 grub_dprintf() that was just added.
36168 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36170 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36171 (DEFAULT_VIDEO_MODE): Remove macros.
36172 (grub_linux_boot): Remove assumption that Linux has FB support,
36173 and use "text" as default video mode.
36175 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36177 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36179 * fs/fat.c (grub_fat_read_data): Likewise.
36181 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36183 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36185 (grub_module): Likewise.
36187 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36189 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36190 mbi->cmdline but free playground.
36192 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36194 Handle group offset on UFS1.
36196 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36197 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36199 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36201 Split ufs.mod into ufs1.mod and ufs2.mod.
36203 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36204 (grub_fstest_SOURCES): Likewise.
36205 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36206 (ufs_mod_SOURCES): Remove.
36207 (ufs_mod_CFLAGS): Likewise.
36208 (ufs_mod_LDFLAGS): Likewise.
36209 (ufs1_mod_SOURCES): New variable.
36210 (ufs1_mod_CFLAGS): Likewise.
36211 (ufs1_mod_LDFLAGS): Likewise.
36212 (ufs2_mod_SOURCES): New variable.
36213 (ufs2_mod_CFLAGS): Likewise.
36214 (ufs2_mod_LDFLAGS): Likewise.
36215 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36216 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36218 (grub_emu_SOURCES): Likewise.
36219 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36220 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36221 (grub_setup_SOURCES): Likewise.
36222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36223 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36224 (grub_setup_SOURCES): Likewise.
36225 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36227 * fs/ufs2.c: New file.
36228 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36230 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36234 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36235 subsystem at the end.
36236 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36237 (video_fb_mod_SOURCES): New variable.
36238 (video_fb_mod_CFLAGS): Likewise.
36239 (video_fb_mod_LDFLAGS): Likewise.
36240 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36241 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36242 * video/i386/pc/vbeblit.c: Moved from here ...
36243 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36244 * video/i386/pc/vbefill.c: Moved from here ...
36245 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36246 * video/i386/pc/vbeutil.c: Moved from here ...
36247 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36248 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36249 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36250 * include/grub/i386/pc/vbefill.h: Moved from here ...
36251 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36252 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36253 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36254 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36255 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36256 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36257 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36258 (grub_video_adapter): Added 'get_info_and_fini'.
36259 (grub_video_get_info_and_fini): New prototype.
36260 (grub_video_set_mode): make modestring const char *.
36261 * loader/i386/linux.c (grub_linux_setup_video): Use
36262 grub_video_get_info_and_fini.
36263 (grub_linux_boot): Move modesetting just before booting.
36264 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36265 grub_video_get_info_and_fini.
36266 * video/i386/pc/vbe.c: Moved framebuffer part ...
36267 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36268 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36269 grub_video_fbstd_colors and grub_video_fb_set_palette.
36270 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36271 grub_video_fb_init.
36272 (grub_video_vbe_fini): Use grub_video_fb_fini.
36273 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36274 render_target and use grub_video_fb_set_active_render_target and
36275 grub_video_fb_set_palette.
36276 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36277 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36278 (grub_video_vbe_adapter): Use framebuffer.
36279 * video/video.c (grub_video_get_info_and_fini): New function.
36280 (grub_video_set_mode): Make modestring const char *.
36281 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36282 values are already initialised.
36284 2009-08-14 Pavel Roskin <proski@gnu.org>
36286 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36288 * boot/i386/pc/diskboot.S: Likewise.
36289 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36290 sectors allow compilation on MacOSX.
36291 * conf/i386-pc.rmk: Enable unconditional compilation of
36294 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36296 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36297 * util/grub.d/00_header.in: Enter interruptible sleep if
36298 GRUB_HIDDEN_TIMEOUT is set.
36300 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36302 * include/grub/symbol.h: Add the LOCAL macro.
36303 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36304 starting with "L_".
36306 2009-08-13 Pavel Roskin <proski@gnu.org>
36308 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36309 any modern compilers we support.
36311 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36312 Use local labels starting with "L_" so that Apple assembler
36313 knows they are local.
36315 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36317 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36318 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36319 (bsd_kernel_types): ... this enum.
36321 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36322 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36323 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36325 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36326 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36327 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36330 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36332 * util/grub-dumpdevtree: Moved from here ...
36333 * util/i386/efi/grub-dumpdevtree: ... to here.
36334 (hexify): New function. Converts a string to its hex version.
36335 Generate hex versions of "efi" and "device-properties" by calling
36336 hexify() on the ASCII strings rather than by hardcoding numbers.
36338 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36340 * fs/jfs.c: Update copyright year.
36342 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36344 * util/grub.d/00_header.in: Fix a comment.
36345 * util/grub.d/10_linux.in: Likewise.
36346 * util/grub.d/10_windows.in: Likewise.
36347 * util/grub.d/10_hurd.in: Likewise.
36349 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36351 * util/grub-mkconfig.in: Allow the user to specify the used font
36354 2009-08-08 Pavel Roskin <proski@gnu.org>
36356 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36357 available, xfs.mod needs it now.
36359 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36360 the "g" modifier in sed when the intention is to strip something
36361 once. This fixes comparison of kernels with multiple dashes.
36363 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36364 on it. Add missing space before closing bracket. Fix
36365 misleading formatting.
36367 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36369 * docs/grub.texi: Major overhaul. Remove all sections that are
36370 specific to GRUB Legacy, or mostly composed of Legacy-specific
36373 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36375 * docs/version.texi: New file. Provides version information for
36378 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36380 * docs/grub.texi: Update CVS information to SVN.
36381 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36383 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36385 * util/grub-mkconfig.in: Remove a wrong `fi'.
36387 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36389 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36390 (grub_jfs_uuid): New function.
36391 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36393 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36395 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36397 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36398 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36400 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36402 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36403 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36406 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36407 not just "vmlinu[zx]".
36408 Moved from here ...
36409 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36412 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36413 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36416 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36418 * util/grub.d/10_freebsd.in: Use an absolute device path for
36419 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36421 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36423 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36424 handling of multiple abstraction modules.
36426 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36428 Fix a bug resulting in black screen when loading Linux using a
36431 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36434 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36435 (grub_vbe_bios_getset_dac_palette_width): New function.
36436 (grub_vbe_bios_get_dac_palette_width)
36437 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36438 grub_vbe_bios_getset_dac_palette_width()).
36440 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36441 check for return status.
36442 (grub_vbe_get_video_mode_info): When getting information for a packed
36443 mode (<= 8 bpp), obtain DAC palette width using
36444 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36445 {red,green,blue}_mark_size.
36447 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36449 * commands/search.c (options): Fix help output to match actual code.
36451 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36453 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36456 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36458 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36459 on XFS or ReiserFS.
36461 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36463 Support Apple partition map with sector size different from 512 bytes.
36465 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36466 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36467 and 'apart.partmap_size'.
36469 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36470 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36474 * commands/i386/cpuid.c (options): New variable.
36475 (grub_cmd_cpuid): Return real error.
36476 (GRUB_MOD_INIT(cpuid)): Declare options.
36478 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36480 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36483 2009-07-31 Bean <bean123ch@gmail.com>
36485 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36487 (grub_fshelp_node): Move inode field to the end.
36488 (grub_xfs_data): Remove inode field.
36489 (grub_xfs_inode_block): Calculate inode size using sblock.
36490 (grub_xfs_inode_offset): Likewise.
36491 (grub_xfs_read_inode): Calculate inode size using sblock.
36492 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36493 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36494 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36495 to match inode size.
36496 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36497 not accessible when data is null.
36498 (grub_xfs_open): Likewise.
36500 2009-07-31 Bean <bean123ch@gmail.com>
36502 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36503 Don't change pv->disk if it's already set.
36505 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36506 (grub_raid_register): ... here.
36507 (grub_raid_rescan): Removed.
36509 * include/grub/raid.h (grub_raid_rescan): Removed.
36511 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36512 (fstest): Replace grub_raid_rescan with module fini function followed
36515 * util/grub-probe.c: Add include file <grub/raid.h>.
36516 (probe_raid_level): New function.
36517 (probe): Detect abstraction by walking the disk device, support two
36518 level of abstraction (LVM on RAID) when detecting partition map.
36520 2009-07-31 Pavel Roskin <proski@gnu.org>
36522 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36523 to grub_zalloc(), it was erroneous.
36524 Reported by Bean <bean123ch@gmail.com>
36526 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36528 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36529 embedding zone, not only the first one.
36531 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36533 * term/gfxterm.c (clear_char): New function.
36534 (grub_virtual_screen_setup): Use clear_char.
36535 (scroll_up): Likewise.
36536 (grub_virtual_screen_cls): Likewise.
36538 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36540 * util/deviceiter.c (get_acceleraid_disk_name): New static
36542 (grub_util_iterate_devices): Handle Accelraid devices.
36543 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36545 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36547 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36548 separator for the suggested gfxpayload string (';' collides with the
36549 parser and needs escaping).
36551 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36553 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36554 Clear direction flag before jumping to OS.
36555 (grub_multiboot2_real_boot): Likewise.
36557 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36559 * util/i386/pc/grub-install: Fix parsing of --disk-module
36562 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36564 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36567 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36569 * util/grub-mkconfig.in (package_version): New variable.
36570 Use it do display the version.
36572 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36574 * kern/file.c (grub_file_open): Revert to previous check with
36577 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36579 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36580 from help line. It's out of sync with code.
36582 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36584 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36585 entries on failed boot.
36587 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36589 * kern/file.c (grub_file_open): Fix an error check.
36591 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36593 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36594 partition map couldn't be identified.
36596 2009-07-23 Pavel Roskin <proski@gnu.org>
36598 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36599 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36600 case of little endian words becomes just an optimization.
36601 Respect const modifier.
36602 (md5_final): Use code that doesn't depend on endianness.
36604 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36605 to avoid loss of upper bits if align is unsigned and shorter
36608 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36610 UUID support for UFS
36612 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36613 (grub_ufs_uuid): New function.
36614 (grub_ufs_fs): add .uuid
36616 2009-07-21 Pavel Roskin <proski@gnu.org>
36618 * kern/dl.c (grub_dl_check_header): Make static.
36620 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36622 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36623 add drivemap for Vista. It breaks Windows 7.
36625 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36627 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36630 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36634 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36635 (grub_fstest_SOURCES): Likewise.
36636 (pkglib_MODULES): Add befs.mod.
36637 (befs_mod_SOURCES): New variable.
36638 (befs_mod_CFLAGS): Likewise.
36639 (befs_mod_LDFLAGS): Likewise.
36640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36641 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36643 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36644 (grub_setup_SOURCES): Likewise.
36645 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36646 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36647 (grub_setup_SOURCES): Likewise.
36648 * fs/befs.c: New file.
36649 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36650 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36651 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36652 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36653 (B_KEY_INDEX_ALIGN): New declaration.
36654 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36655 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36656 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36657 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36658 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36659 (grub_afs_mount) [MODE_BFS]: Likewise.
36660 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36661 (grub_afs_fs): Use GRUB_AFS_FSNAME
36662 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36663 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36664 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36665 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36667 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36669 * util/getroot.c (find_root_device): Add support for MacOSX.
36670 * util/hostdisk.c: Likewise.
36672 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36674 * font/font.c (find_glyph): Check whether a font is present to avoid
36675 segmentation fault.
36677 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36679 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36681 2009-07-20 Pavel Roskin <proski@gnu.org>
36683 * configure.ac: Trim excessively wordy excuses.
36685 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36687 Add symlink, mtime and label support to AtheFS.
36689 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36690 (grub_afs_iterate_dir): Handle symlinks.
36691 (grub_afs_open): Use grub_afs_read_symlink.
36692 (grub_afs_dir): Likewise.
36694 (grub_afs_label): New function.
36695 (grub_afs_fs): Add grub_afs_label.
36696 (grub_afs_read_symlink): New function.
36698 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36700 Fix AtheFS support.
36702 * fs/afs.c: Fix comments style.
36703 (grub_afs_blockrun): Declare as packed.
36704 (grub_afs_datastream): Likewise.
36705 (grub_afs_bnode): Likewise.
36706 (grub_afs_btree): Likewise.
36707 (grub_afs_sblock): Likewise.
36708 Declare `name' as char.
36709 (grub_afs_inode): Declare as packed.
36710 Change void *vnode to grub_uint32_t unused.
36711 (grub_afs_iterate_dir): Check that key_size is positive.
36712 (grub_afs_mount): Don't read superblock twice.
36713 (grub_afs_dir): Don't free node in case of error,
36714 grub_fshelp_find_file already handles this.
36715 (grub_afs_open): Likewise.
36717 2009-07-19 Pavel Roskin <proski@gnu.org>
36719 * Makefile.in: Remove LIBLZO and enable_lzo.
36720 * conf/i386-pc.rmk: Remove lzo support.
36721 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36722 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36724 * kern/i386/pc/lzo1x.S: Remove.
36725 * kern/i386/pc/startup.S: Remove lzo support.
36726 * util/i386/pc/grub-mkimage.c: Likewise.
36728 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36730 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36731 * fs/xfs.c (grub_xfs_dir): Likewise.
36732 * fs/afs.c (grub_afs_dir): Likewise.
36733 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36734 (grub_iso9660_open): Likewise.
36735 * fs/jfs.c (grub_jfs_open): Likewise.
36736 * fs/ext2.c (grub_ext2_dir): Likewise.
36737 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36738 * script/sh/lexer.c (grub_script_yylex): Likewise.
36740 2009-07-16 Pavel Roskin <proski@gnu.org>
36742 * configure.ac: Never add "-c" to CFLAGS.
36744 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36746 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36747 grub_cv_cc_efiemu should be used.
36749 * configure.ac: Typo fixes.
36751 * kern/mm.c (grub_zalloc): New function.
36752 (grub_debug_zalloc): Likewise.
36753 * include/grub/mm.h: Declare grub_zalloc() and
36754 grub_debug_zalloc().
36755 * util/misc.c (grub_zalloc): New function.
36756 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36757 instead of grub_malloc(), remove unneeded initializations.
36758 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36759 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36760 * commands/parttool.c (grub_cmd_parttool): Likewise.
36761 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36762 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36763 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36764 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36765 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36766 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36767 (grub_cmd_efiemu_pnvram): Likewise.
36768 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36769 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36770 (grub_iso9660_iterate_dir): Likewise.
36771 * fs/jfs.c (grub_jfs_opendir): Likewise.
36772 * fs/ntfs.c (list_file): Likewise.
36773 (grub_ntfs_mount): Likewise.
36774 * kern/disk.c (grub_disk_open): Likewise.
36775 * kern/dl.c (grub_dl_load_core): Likewise.
36776 * kern/elf.c (grub_elf_file): Likewise.
36777 * kern/env.c (grub_env_context_open): Likewise.
36778 (grub_env_set): Likewise.
36779 (grub_env_set_data_slot): Likewise.
36780 * kern/file.c (grub_file_open): Likewise.
36781 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36782 * loader/i386/multiboot.c (grub_module): Likewise.
36783 * loader/xnu.c (grub_xnu_create_key): Likewise.
36784 (grub_xnu_create_value): Likewise.
36785 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36786 (read_config_file): Likewise.
36787 * normal/menu_entry.c (make_screen): Likewise.
36788 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36789 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36790 * script/sh/script.c (grub_script_parse): Likewise.
36791 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36792 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36793 * video/readers/png.c (grub_png_output_byte): Likewise.
36794 (grub_video_reader_png): Likewise.
36796 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36798 Enable all targets that can be built by default
36800 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36801 grub-mkfont and grub-fstest if they can be built
36803 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36805 Fix hang and segmentation fault in grub-emu-usb
36807 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36808 * util/usb.c (grub_libusb_devices): likewise
36809 (grub_libusb_init): rename to ...
36810 (GRUB_MOD_INIT (libusb)):...this
36811 (grub_libusb_fini): rename to ..
36812 (GRUB_MOD_FINI (libusb)):...this
36813 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36814 * include/grub/disk.h (grub_raid_init): removed, it's useless
36815 (grub_raid_fini): likewise
36816 (grub_lvm_init): likewise
36817 (grub_lvm_fini): likewise
36818 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36821 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36825 * Makefile.in (LIBUSB): new macro
36826 * genmk.rb (Utility/print_tail): new method
36827 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36828 (top level): call util.print_tail at the end.
36830 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36832 Make FreeBSD accept zpool.cache
36834 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36835 type is /boot/zfs/zpool.cache
36837 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36841 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36842 correct wrong typedef
36843 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36845 2009-07-15 Pavel Roskin <proski@gnu.org>
36847 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36848 * kern/disk.c (struct grub_disk_cache): Likewise.
36850 * commands/probe.c (options): Typo fix.
36852 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36853 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36855 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36857 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36858 the end of "Error" to make the message more readable.
36860 * boot/i386/pc/boot.S (kernel_segment): Remove.
36861 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36864 * boot/i386/pc/boot.S (boot_version): Remove.
36865 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36868 * include/grub/i386/pc/boot.h: Sort all offsets.
36869 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36870 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36871 * boot/i386/pc/boot.S: Assert location of every offset listed in
36872 include/grub/i386/pc/boot.h.
36874 2009-07-13 Pavel Roskin <proski@gnu.org>
36876 * include/grub/i386/coreboot/machine.h: Rename
36877 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36878 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36879 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36881 * kern/dl.c: Force native word size to suppress warnings when
36882 compiling grub-emu.
36884 * kern/device.c (grub_device_iterate): Change struct part_ent to
36885 hold the name, not a pointer to it. Use one grub_malloc() per
36886 partition, not two. Free partition_name if grub_malloc() fails.
36887 Set ents to NULL only before grub_partition_iterate() is called.
36889 2009-07-11 Bean <bean123ch@gmail.com>
36891 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36894 2009-07-10 Bean <bean123ch@gmail.com>
36895 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36897 * kern/ieee1275/openfw.c (grub_children_iterate)
36898 (grub_devalias_iterate): Fix size evaluation for property or path
36899 strings, which was broken since r2132.
36901 2009-07-07 Pavel Roskin <proski@gnu.org>
36903 * commands/search.c (search_file): Merge into ...
36904 (search_fs): ... this. Accept search type as argument.
36905 (grub_cmd_search): Pass search type to search_fs().
36907 * include/grub/util/console.h: New file.
36908 * util/console.c: Use it instead of grub/machine/console.h.
36909 * util/grub-emu.c: Likewise.
36911 * lib/arg.c (find_long_option): Remove.
36912 (find_long): Add `len' argument, make `s' const char *.
36913 (grub_arg_parse): Parse long options in place, not in a
36916 2009-07-06 Pavel Roskin <proski@gnu.org>
36918 * commands/search.c (search_fs): Fix potential NULL pointer
36921 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36924 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36926 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36929 2009-07-05 Pavel Roskin <proski@gnu.org>
36931 * include/grub/i386/linux.h (struct linux_kernel_params):
36932 Restore padding3, it's still needed.
36934 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36936 * util/osdetect.lua: Likewise.
36938 2009-07-05 Bean <bean123ch@gmail.com>
36940 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36942 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36943 (grub_lua_getenv): Likewise.
36944 (grub_lua_setenv): Likewise.
36945 (save_errno): New function.
36946 (push_result): Likewise.
36947 (grub_lua_enum_device): Likewise.
36948 (grub_lua_enum_file): Likewise.
36949 (grub_lua_file_open): Likewise.
36950 (grub_lua_file_close): Likewise.
36951 (grub_lua_file_seek): Likewise.
36952 (grub_lua_file_read): Likewise.
36953 (grub_lua_file_getline): Likewise.
36954 (grub_lua_file_getsize): Likewise.
36955 (grub_lua_file_getpos): Likewise.
36956 (grub_lua_file_eof): Likewise.
36957 (grub_lua_file_exist): Likewise.
36958 (grub_lua_add_menu): Likewise.
36960 * script/lua/grub_lua.h (isupper): New inline function.
36961 (islower): Likewise.
36962 (ispunct): Likewise.
36963 (isxdigit): Likewise.
36964 (strcspn): Change to normal function.
36965 (strpbkr): New function declaration.
36966 (memchr): Likewise.
36968 * script/lua/grub_main.c (scan_str): New function.
36969 (strcspn): Likewise.
36970 (strpbrk): Likewise.
36971 (memchr): Likewise.
36973 * script/lua/linit.c (lualibs): Enable the string library.
36975 * util/osdetect.lua: New file.
36977 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36979 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36980 `capabilities' member.
36982 2009-07-02 Pavel Roskin <proski@gnu.org>
36984 * genparttoollist.sh: Add missing newline at the end.
36986 2009-07-01 Pavel Roskin <proski@gnu.org>
36988 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36990 * util/hostdisk.c (open_device): Remove `const' from
36991 `sysctl_size', as sysctlbyname() can change it (in this case it
36992 doesn't actually happen).
36994 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36995 using signed long int constants.
36997 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36998 constant to avoid a warning on FreeBSD.
37000 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37003 * Makefile.in: Install include/grub/machine symlink.
37005 * Makefile.in: When installing symlinks, use "cp -fR", which
37006 works on FreeBSD and MacOSX.
37007 From Yves Blusseau <cl7m42e02@sneakemail.com>
37009 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37010 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37012 * util/misc.c: Move grub_reboot() and grub_halt() ...
37013 * util/grub-emu.c: ... here. Make main_env static.
37014 * include/grub/util/misc.h: Remove main_env.
37016 * kern/mm.c: Use correct format to print size_t.
37018 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37019 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37020 * kern/powerpc/dl.c: Likewise.
37021 * kern/sparc64/dl.c: Likewise.
37022 * kern/x86_64/dl.c: Likewise.
37024 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37026 Fix grub-emu build on sparc64-ieee1275.
37028 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37031 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37033 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37034 (grub_reboot, grub_halt): New functions.
37036 * util/i386/pc/misc.c: Delete. Update all users.
37037 * util/sparc64/ieee1275/misc.c: Likewise.
37038 * util/powerpc/ieee1275/misc.c: Likewise.
37040 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37042 * conf/i386.rmk (setjmp_mod_SOURCES)
37043 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37044 * conf/common.rmk (setjmp_mod_SOURCES)
37045 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37046 to use $(target_cpu).
37047 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37048 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37049 * conf/powerpc-ieee1275.rmk: Likewise.
37050 * conf/sparc64-ieee1275.rmk: Likewise.
37052 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37053 $(target_cpu) for kern/$(target_cpu)/dl.c.
37054 * conf/i386-efi.rmk: Likewise.
37055 * conf/i386-ieee1275.rmk: Likewise.
37056 * conf/x86_64-efi.rmk: Likewise.
37057 * conf/i386-coreboot.rmk: Likewise.
37058 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37059 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37060 kern/$(target_cpu)/cache.S.
37061 * conf/sparc64-ieee1275.rmk: Likewise.
37063 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37065 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37066 type to `grub_uint8_t', and adjust `padding9' accordingly.
37068 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37070 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37072 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37073 assembly in final jump, using register constraints.
37075 (grub_linux_boot): For text mode, initialize `have_vga' using
37076 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37078 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37079 right before the final jump.
37081 Set `video_mode' to 0x3.
37083 Document initialization of `video_page', `video_mode' and
37086 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37088 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37089 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37090 and set GRUB_LINUX_FLAG_QUIET appropriately.
37092 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37094 Fix build on Debian / sparc.
37096 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37098 2009-06-28 Pavel Roskin <proski@gnu.org>
37100 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37103 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37105 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37107 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37110 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37114 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37115 file can't be opened. grub_file_open() is already supposed to set
37116 grub_errno / grub_errmsg appropriately.
37117 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37119 2009-06-27 Pavel Roskin <proski@gnu.org>
37120 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37122 * include/grub/dl.h: Include grub/elf.h.
37123 (struct grub_dl): Add symtab field.
37124 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37125 GRUB_MODULES_MACHINE_READONLY.
37126 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37127 of the header for read-only modules.
37128 (grub_dl_unload): Free mod->symtab for read-only modules.
37129 * kern/i386/dl.c: Use mod->symtab.
37130 * kern/powerpc/dl.c: Likewise.
37131 * kern/sparc64/dl.c: Likewise.
37132 * kern/x86_64/dl.c: Likewise.
37134 * conf/i386-qemu.rmk: New file.
37135 * kern/i386/qemu/startup.S: Likewise.
37136 * kern/i386/qemu/mmap.c: Likewise.
37137 * boot/i386/qemu/boot.S: Likewise.
37138 * include/grub/i386/qemu/time.h: Likewise.
37139 * include/grub/i386/qemu/serial.h: Likewise.
37140 * include/grub/i386/qemu/kernel.h: Likewise.
37141 * include/grub/i386/qemu/console.h: Likewise.
37142 * include/grub/i386/qemu/boot.h: Likewise.
37143 * include/grub/i386/qemu/init.h: Likewise.
37144 * include/grub/i386/qemu/machine.h: Likewise.
37145 * include/grub/i386/qemu/loader.h: Likewise.
37146 * include/grub/i386/qemu/memory.h: Likewise.
37148 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37149 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37150 [qemu] (pkglib_IMAGES): Add `boot.img'.
37151 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37152 [qemu] (boot_img_FORMAT): New variables.
37153 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37154 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37155 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37156 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37157 [qemu] (kernel_img_FORMAT): New variables.
37159 * configure.ac: Recognise `i386-qemu'.
37161 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37162 (for no compression).
37163 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37164 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37165 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37166 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37169 2009-06-27 Pavel Roskin <proski@gnu.org>
37171 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37173 * efiemu/prepare32.c: Likewise.
37174 * efiemu/prepare64.c: Likewise.
37176 2009-06-26 Pavel Roskin <proski@gnu.org>
37178 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37179 * include/grub/elf.h: Define symbols without "32" or "64" based
37180 on GRUB_TARGET_WORDSIZE.
37181 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37182 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37184 * efiemu/loadcore64.c: Likewise.
37185 * loader/i386/bsd32.c: Likewise.
37186 * loader/i386/bsd64.c: Likewise.
37187 * kern/dl.c: Remove own ELF definitions.
37188 * util/i386/efi/grub-mkimage.c: Likewise.
37190 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37192 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37193 segment 0x0 unconditionally, because the reference generated by
37194 GAS is an absolute address.
37196 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37198 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37199 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37201 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37203 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37204 indexes. Check for -f explicitly.
37205 (search_file): Improve error message.
37206 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37208 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37210 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37211 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37213 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37215 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37216 * conf/i386-ieee1275.rmk: Likewise.
37217 * conf/i386-coreboot.rmk: Likewise.
37219 * kern/i386/pc/startup.S (grub_stop): Remove function.
37220 * kern/i386/ieee1275/startup.S: Likewise.
37221 * kern/i386/coreboot/startup.S: Likewise.
37222 * kern/i386/misc.S (grub_stop): New function.
37224 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37226 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37227 * kern/i386/realmode.S (real_to_prot): ... to here.
37229 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37231 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37233 (kernel_elf_SOURCES): Rename to ...
37234 (kernel_img_SOURCES): ... this.
37235 (kernel_elf_HEADERS): Rename to ...
37236 (kernel_img_HEADERS): ... this. Update all users.
37237 (kernel_elf_ASFLAGS): Rename to ...
37238 (kernel_img_ASFLAGS): ... this.
37239 (kernel_elf_CFLAGS): Rename to ...
37240 (kernel_img_CFLAGS): ... this.
37241 (kernel_elf_LDFLAGS): Rename to ...
37242 (kernel_img_LDFLAGS): ... this.
37243 * conf/i386-coreboot.rmk: Likewise.
37244 * conf/powerpc-ieee1275.rmk: Likewise.
37246 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37249 2009-06-21 Pavel Roskin <proski@gnu.org>
37251 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37252 to match nested functions.
37253 * loader/sparc64/ieee1275/linux.c: Likewise.
37255 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37257 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37259 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37260 all i386 platforms.
37262 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37264 Fix asm file handling on ELF, and remove workarounds.
37266 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37267 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37268 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37269 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37271 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37273 Load BSD ELF modules
37275 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37276 and loader/i386/bsd64.c
37277 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37278 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37279 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37280 (grub_freebsd_load_elfmodule32): New declaration
37281 (grub_freebsd_load_elfmoduleobj64): Likewise
37282 (grub_freebsd_load_elf_meta32): Likewise
37283 (grub_freebsd_load_elf_meta64): Likewise
37284 (grub_freebsd_add_meta): Likewise
37285 (grub_freebsd_add_meta_module): Likewise
37286 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37287 (grub_freebsd_add_meta_module): Likewise and move module-specific
37288 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37289 (grub_cmd_freebsd): Add elf-kernel specific parts
37290 based on grub_freebsd_add_meta_module
37291 (grub_cmd_freebsd_module): Add type parsing moved from
37292 grub_freebsd_add_meta_module
37293 (grub_cmd_freebsd_module_elf): New function
37294 (cmd_freebsd_module_elf): New variable
37295 (GRUB_MOD_INIT): Register freebsd_module_elf
37296 * loader/i386/bsd32.c: New file
37297 * loader/i386/bsd64.c: Likewise
37298 * loader/i386/bsdXX.c: Likewise
37299 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37300 (grub_elf64_load): Likewise
37301 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37303 (grub_elf64_load_hook_t): Likewise
37305 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37307 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37309 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37310 don't write a menu entry for recovery mode.
37312 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37314 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37315 after it's no longer needed.
37317 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37319 * include/grub/i386/loader.h (grub_linux_prot_size)
37320 (grub_linux_tmp_addr, grub_linux_real_addr)
37321 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37322 GRUB_MACHINE_PCBIOS.
37323 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37324 common grub_util_info() call to ...
37325 (generate_image): ... here.
37326 Fix use of uninitialized memory, comparison of signed with
37327 unsigned integers and memory leak.
37328 Remove bogus module address message.
37330 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37332 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37334 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37336 2009-06-19 Pavel Roskin <proski@gnu.org>
37338 * configure.ac: Remove stray AC_MSG_CHECKING.
37340 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37342 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37344 2009-06-18 Pavel Roskin <proski@gnu.org>
37346 * conf/common.rmk: Add fs_file.mod.
37347 * disk/fs_file.c: New file.
37348 * include/grub/disk.h (enum grub_disk_dev_id): Add
37349 GRUB_DISK_DEVICE_FILE_ID.
37351 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37353 Fix build with Apple's toolchain. Part 2
37355 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37358 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37360 Fix build with Apple's toolchain. Part 1
37362 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37364 * configure.ac: remove a leftover AC_MSG_RESULT
37365 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37368 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37372 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37373 (decomp_block): initialize ch
37374 use grub_memcpy instead of memcpy
37376 2009-06-17 Pavel Roskin <proski@gnu.org>
37378 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37379 version, use declarations needed to use vga_text as the startup
37382 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37383 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37385 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37386 and grub_at_keyboard_fini(), it's done on module load and
37389 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37391 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37392 file can't be found.
37393 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37395 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37397 Fix newline handling
37399 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37400 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37401 (grub_script_yylex): don't segfault on unterminated script
37402 newline terminates command and variable
37404 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37406 avoid double grub_adjust_range call. Bug reported by David Simner
37408 * kern/disk.c (grub_disk_write): change to raw disk access before
37411 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37413 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37414 spaces, for the benefit of help2man.
37415 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37417 2009-06-16 Pavel Roskin <proski@gnu.org>
37419 * kern/i386/halt.c: Include grub/machine/init.h.
37420 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37422 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37424 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37425 drivemap menuentry.
37427 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37429 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37432 2009-06-16 Pavel Roskin <proski@gnu.org>
37434 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37435 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37436 save %dx, we only need %dl and we never change it.
37437 * boot/i386/pc/cdboot.S: Don't set the root drive.
37438 * boot/i386/pc/pxeboot.S: Likewise.
37439 * include/grub/i386/pc/boot.h: Remove
37440 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37441 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37442 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37443 * kern/i386/pc/init.c (make_install_device): Remove references
37444 to grub_root_drive.
37445 * kern/i386/pc/startup.S: Likewise.
37446 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37448 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37452 * commands/xnu_uuid.c: new file
37453 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37454 (xnu_uuid_mod_SOURCES): new variable
37455 (xnu_uuid_mod_CFLAGS): likewise
37456 (xnu_uuid_mod_LDFLAGS): likewise
37457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37458 * conf/i386-ieee1275.rmk: likewise
37459 * conf/i386-pc.rmk: likewise
37460 * conf/powerpc-ieee1275.rmk: likewise
37461 * conf/sparc64-ieee1275.rmk: likewise
37462 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37464 2009-06-16 Pavel Roskin <proski@gnu.org>
37466 * configure.ac: Avoid '==' in test command, it's not portable.
37468 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37472 * commands/probe.c: new file
37473 * conf/common.rmk (pkglib_MODULES): add probe.mod
37474 (probe_mod_SOURCES): new variable
37475 (probe_mod_CFLAGS): likewise
37476 (probe_mod_LDFLAGS): likewise
37477 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37478 * conf/i386-ieee1275.rmk: likewise
37479 * conf/i386-pc.rmk: likewise
37480 * conf/powerpc-ieee1275.rmk: likewise
37481 * conf/sparc64-ieee1275.rmk: likewise
37483 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37485 Fix handling of string like \"hello\" and "a
37488 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37489 (grub_script_yylex): fix parsing of quoting, escaping and newline
37491 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37493 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37496 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37498 * util/grub-mkconfig.in: Fix parsing of --output option.
37500 2009-06-12 Pavel Roskin <proski@gnu.org>
37502 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37503 genmk.rb don't need to be generated or installed.
37505 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37507 * commands/i386/pc/drivemap_int13h.S: add more comments
37509 2009-06-11 Pavel Roskin <proski@gnu.org>
37511 * Makefile.in (uninstall): Uninstall manuals.
37513 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37514 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37515 and update-grub_lib in two places.
37516 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37518 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37519 a compiler warning.
37521 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37522 `entry_lo' to fix variable shadowing.
37524 2009-06-11 Christian Franke <franke@computer.org>
37526 * kern/misc.c (__enable_execute_stack): Add missing return type
37527 to prevent gcc warning.
37529 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37531 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37533 2009-06-11 Pavel Roskin <proski@gnu.org>
37535 * Makefile.in: Don't rely on any scripts being executable.
37536 Always use $(SHELL) to run shell scripts.
37538 * configure.ac: Always define ___main if using -nostdlib. This
37539 fixes tests on Cygwin.
37541 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37545 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37546 is in bytes and not in blocks
37548 2009-06-11 Pavel Roskin <proski@gnu.org>
37550 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37553 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37555 * util/grub.d/30_os-prober.in: Fix a comment. Source
37556 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37557 to set the root device. Place drivemap command in the generated
37560 2009-06-11 Pavel Roskin <proski@gnu.org>
37562 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37563 have long been resolved.
37565 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37567 * util/grub.d/10_linux.in: Capitalise "Linux".
37569 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37571 2009-06-11 Pavel Roskin <proski@gnu.org>
37573 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37574 fix a gcc warning and ensure that the function won't ever exit.
37576 * kern/i386/ieee1275/init.c: Add missing prototype for
37577 grub_stop_floppy().
37579 * loader/ieee1275/multiboot2.c [__i386__]: Include
37580 grub/cpu/multiboot.h.
37582 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37583 casts to short - they are not portable and cause warnings. Fix
37584 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37586 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37590 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37592 (grub_get_root_biosnumber_saved): new variable
37593 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37594 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37595 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37596 %dx after the call if necessary
37597 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37598 (boot_mod_SOURCES): remove
37599 (boot_mod_CFLAGS): remove
37600 (boot_mod_LDFLAGS): remove
37601 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37602 (boot_mod_SOURCES): new variable
37603 (boot_mod_CFLAGS): likewise
37604 (boot_mod_LDFLAGS): likewise
37605 * conf/i386-efi.rmk: likewise
37606 * conf/i386-ieee1275.rmk: likewise
37607 * conf/i386-pc.rmk: likewise
37608 * conf/powerpc-ieee1275.rmk: likewise
37609 * conf/sparc64-ieee1275.rmk: likewise
37610 * conf/x86_64-efi.rmk: likewise
37611 * include/grub/i386/pc/biosnum.h: new file
37612 * lib/i386/pc/biosnum.c: likewise
37613 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37614 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37615 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37617 2009-06-10 Pavel Roskin <proski@gnu.org>
37619 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37620 Use separate variables. Read only the file size at the end, but
37621 not the checksum that we don't use.
37623 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37624 Adjust all callers.
37626 * kern/ieee1275/openfw.c: Remove libc includes.
37627 * kern/ieee1275/cmain.c: Likewise.
37628 * include/grub/ieee1275/ieee1275.h: Likewise.
37630 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37633 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37635 * Makefile.in: Remove all trailing whitespace.
37636 * conf/i386-pc.rmk: Likewise.
37637 * conf/powerpc-ieee1275.rmk: Likewise.
37638 * conf/sparc64-ieee1275.rmk: Likewise.
37639 * docs/grub.texi: Likewise.
37640 * docs/texinfo.tex: Likewise.
37641 * disk/fs_uuid.c: Likewise.
37642 * disk/lvm.c: Likewise.
37643 * disk/scsi.c: Likewise.
37644 * disk/ata.c: Likewise.
37645 * disk/ieee1275/ofdisk.c: Likewise.
37646 * disk/i386/pc/biosdisk.c: Likewise.
37647 * disk/host.c: Likewise.
37648 * disk/raid.c: Likewise.
37649 * disk/efi/efidisk.c: Likewise.
37650 * disk/usbms.c: Likewise.
37651 * disk/memdisk.c: Likewise.
37652 * disk/loopback.c: Likewise.
37653 * kern/powerpc/dl.c: Likewise.
37654 * kern/device.c: Likewise.
37655 * kern/dl.c: Likewise.
37656 * kern/sparc64/dl.c: Likewise.
37657 * kern/ieee1275/ieee1275.c: Likewise.
37658 * kern/term.c: Likewise.
37659 * kern/fs.c: Likewise.
37660 * kern/i386/dl.c: Likewise.
37661 * kern/i386/pc/startup.S: Likewise.
37662 * kern/i386/pc/init.c: Likewise.
37663 * kern/i386/pc/mmap.c: Likewise.
37664 * kern/i386/pc/lzo1x.S: Likewise.
37665 * kern/i386/ieee1275/init.c: Likewise.
37666 * kern/i386/realmode.S: Likewise.
37667 * kern/i386/tsc.c: Likewise.
37668 * kern/partition.c: Likewise.
37669 * kern/corecmd.c: Likewise.
37670 * kern/file.c: Likewise.
37671 * kern/efi/efi.c: Likewise.
37672 * kern/efi/init.c: Likewise.
37673 * kern/efi/mm.c: Likewise.
37674 * kern/main.c: Likewise.
37675 * kern/err.c: Likewise.
37676 * kern/env.c: Likewise.
37677 * kern/disk.c: Likewise.
37678 * kern/generic/millisleep.c: Likewise.
37679 * kern/generic/rtc_get_time_ms.c: Likewise.
37680 * kern/misc.c: Likewise.
37681 * kern/parser.c: Likewise.
37682 * genmk.rb: Likewise.
37683 * configure.ac: Likewise.
37684 * boot/i386/pc/diskboot.S: Likewise.
37685 * boot/i386/pc/pxeboot.S: Likewise.
37686 * boot/i386/pc/boot.S: Likewise.
37687 * boot/i386/pc/lnxboot.S: Likewise.
37688 * boot/i386/pc/cdboot.S: Likewise.
37689 * parttool/pcpart.c: Likewise.
37690 * video/readers/tga.c: Likewise.
37691 * video/video.c: Likewise.
37692 * video/bitmap.c: Likewise.
37693 * lib/envblk.c: Likewise.
37694 * lib/i386/setjmp.S: Likewise.
37695 * fs/xfs.c: Likewise.
37696 * fs/afs.c: Likewise.
37697 * fs/fat.c: Likewise.
37698 * fs/ntfs.c: Likewise.
37699 * fs/udf.c: Likewise.
37700 * fs/affs.c: Likewise.
37701 * fs/iso9660.c: Likewise.
37702 * fs/hfs.c: Likewise.
37703 * fs/fshelp.c: Likewise.
37704 * fs/ext2.c: Likewise.
37705 * fs/jfs.c: Likewise.
37706 * fs/reiserfs.c: Likewise.
37707 * fs/hfsplus.c: Likewise.
37708 * fs/minix.c: Likewise.
37709 * fs/cpio.c: Likewise.
37710 * fs/sfs.c: Likewise.
37711 * fs/ufs.c: Likewise.
37712 * efiemu/prepare.c: Likewise.
37713 * efiemu/loadcore_common.c: Likewise.
37714 * efiemu/runtime/efiemu.sh: Likewise.
37715 * efiemu/runtime/efiemu.S: Likewise.
37716 * efiemu/runtime/efiemu.c: Likewise.
37717 * efiemu/pnvram.c: Likewise.
37718 * efiemu/main.c: Likewise.
37719 * efiemu/i386/pc/cfgtables.c: Likewise.
37720 * efiemu/i386/loadcore64.c: Likewise.
37721 * efiemu/i386/loadcore32.c: Likewise.
37722 * efiemu/loadcore.c: Likewise.
37723 * efiemu/symbols.c: Likewise.
37724 * efiemu/mm.c: Likewise.
37725 * include/grub/autoefi.h: Likewise.
37726 * include/grub/datetime.h: Likewise.
37727 * include/grub/term.h: Likewise.
37728 * include/grub/hfs.h: Likewise.
37729 * include/grub/lvm.h: Likewise.
37730 * include/grub/i386/tsc.h: Likewise.
37731 * include/grub/i386/linux.h: Likewise.
37732 * include/grub/i386/xnu.h: Likewise.
37733 * include/grub/i386/efiemu.h: Likewise.
37734 * include/grub/i386/pc/biosdisk.h: Likewise.
37735 * include/grub/i386/pc/memory.h: Likewise.
37736 * include/grub/i386/pc/vbe.h: Likewise.
37737 * include/grub/parttool.h: Likewise.
37738 * include/grub/video.h: Likewise.
37739 * include/grub/memory.h: Likewise.
37740 * include/grub/fs.h: Likewise.
37741 * include/grub/partition.h: Likewise.
37742 * include/grub/xnu.h: Likewise.
37743 * include/grub/efi/api.h: Likewise.
37744 * include/grub/efi/pe32.h: Likewise.
37745 * include/grub/efi/memory.h: Likewise.
37746 * include/grub/multiboot.h: Likewise.
37747 * include/grub/usbdesc.h: Likewise.
37748 * include/grub/multiboot2.h: Likewise.
37749 * include/grub/acpi.h: Likewise.
37750 * include/grub/efiemu/efiemu.h: Likewise.
37751 * include/grub/disk.h: Likewise.
37752 * include/grub/ieee1275/ieee1275.h: Likewise.
37753 * include/grub/net.h: Likewise.
37754 * include/grub/machoload.h: Likewise.
37755 * include/grub/macho.h: Likewise.
37756 * include/multiboot.h: Likewise.
37757 * genmoddep.awk: Likewise.
37758 * normal/main.c: Likewise.
37759 * normal/menu_entry.c: Likewise.
37760 * normal/menu_viewer.c: Likewise.
37761 * normal/completion.c: Likewise.
37762 * normal/cmdline.c: Likewise.
37763 * normal/misc.c: Likewise.
37764 * normal/datetime.c: Likewise.
37765 * bus/usb/usbtrans.c: Likewise.
37766 * bus/usb/ohci.c: Likewise.
37767 * bus/usb/uhci.c: Likewise.
37768 * bus/usb/usb.c: Likewise.
37769 * mmap/efi/mmap.c: Likewise.
37770 * mmap/i386/pc/mmap_helper.S: Likewise.
37771 * mmap/i386/pc/mmap.c: Likewise.
37772 * mmap/i386/mmap.c: Likewise.
37773 * mmap/i386/uppermem.c: Likewise.
37774 * mmap/mmap.c: Likewise.
37775 * commands/acpi.c: Likewise.
37776 * commands/echo.c: Likewise.
37777 * commands/blocklist.c: Likewise.
37778 * commands/loadenv.c: Likewise.
37779 * commands/usbtest.c: Likewise.
37780 * commands/boot.c: Likewise.
37781 * commands/parttool.c: Likewise.
37782 * commands/search.c: Likewise.
37783 * commands/cat.c: Likewise.
37784 * commands/i386/pc/play.c: Likewise.
37785 * commands/i386/pc/drivemap.c: Likewise.
37786 * commands/i386/pc/vbeinfo.c: Likewise.
37787 * commands/i386/pc/acpi.c: Likewise.
37788 * commands/i386/pc/vbetest.c: Likewise.
37789 * commands/ls.c: Likewise.
37790 * commands/cmp.c: Likewise.
37791 * commands/test.c: Likewise.
37792 * commands/efi/acpi.c: Likewise.
37793 * commands/gptsync.c: Likewise.
37794 * commands/help.c: Likewise.
37795 * partmap/amiga.c: Likewise.
37796 * partmap/apple.c: Likewise.
37797 * partmap/acorn.c: Likewise.
37798 * partmap/pc.c: Likewise.
37799 * partmap/sun.c: Likewise.
37800 * partmap/gpt.c: Likewise.
37801 * script/sh/lexer.c: Likewise.
37802 * script/sh/function.c: Likewise.
37803 * font/font.c: Likewise.
37804 * font/font_cmd.c: Likewise.
37805 * loader/powerpc/ieee1275/linux.c: Likewise.
37806 * loader/efi/chainloader.c: Likewise.
37807 * loader/multiboot_loader.c: Likewise.
37808 * loader/macho.c: Likewise.
37809 * loader/i386/multiboot.c: Likewise.
37810 * loader/i386/linux.c: Likewise.
37811 * loader/i386/pc/linux.c: Likewise.
37812 * loader/i386/pc/multiboot2.c: Likewise.
37813 * loader/i386/pc/chainloader.c: Likewise.
37814 * loader/i386/pc/xnu.c: Likewise.
37815 * loader/i386/bsd_trampoline.S: Likewise.
37816 * loader/i386/efi/linux.c: Likewise.
37817 * loader/i386/multiboot_elfxx.c: Likewise.
37818 * loader/i386/bsd_helper.S: Likewise.
37819 * loader/i386/bsd.c: Likewise.
37820 * loader/i386/linux_trampoline.S: Likewise.
37821 * loader/i386/xnu_helper.S: Likewise.
37822 * loader/i386/xnu.c: Likewise.
37823 * loader/i386/bsd_pagetable.c: Likewise.
37824 * loader/i386/multiboot_helper.S: Likewise.
37825 * loader/xnu.c: Likewise.
37826 * loader/xnu_resume.c: Likewise.
37827 * io/gzio.c: Likewise.
37828 * term/efi/console.c: Likewise.
37829 * term/terminfo.c: Likewise.
37830 * term/ieee1275/ofconsole.c: Likewise.
37831 * term/i386/pc/serial.c: Likewise.
37832 * term/i386/pc/vesafb.c: Likewise.
37833 * term/i386/pc/vga.c: Likewise.
37834 * term/usb_keyboard.c: Likewise.
37835 * term/gfxterm.c: Likewise.
37836 * aclocal.m4: Likewise.
37837 * util/lvm.c: Likewise.
37838 * util/grub.d/30_os-prober.in: Likewise.
37839 * util/grub.d/10_hurd.in: Likewise.
37840 * util/console.c: Likewise.
37841 * util/grub-macho2img.c: Likewise.
37842 * util/grub-probe.c: Likewise.
37843 * util/hostfs.c: Likewise.
37844 * util/i386/pc/grub-mkimage.c: Likewise.
37845 * util/i386/pc/grub-setup.c: Likewise.
37846 * util/i386/efi/grub-mkimage.c: Likewise.
37847 * util/grub-mkconfig.in: Likewise.
37848 * util/raid.c: Likewise.
37849 * util/resolve.c: Likewise.
37850 * util/grub-mkdevicemap.c: Likewise.
37851 * util/grub-emu.c: Likewise.
37852 * util/getroot.c: Likewise.
37853 * util/hostdisk.c: Likewise.
37854 * util/usb.c: Likewise.
37855 * util/grub-editenv.c: Likewise.
37856 * util/misc.c: Likewise.
37858 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37860 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37861 `genparttoollist.sh'.
37862 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37863 Add `*.sh' to the list find searches for and change `mdate.sh'
37866 2009-06-10 Pavel Roskin <proski@gnu.org>
37868 * include/grub/multiboot2.h: Provide compatibility defines for
37870 * include/multiboot2.h: Include stdint.h only if needed, using
37872 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37874 * loader/ieee1275/multiboot2.c: Likewise.
37875 * loader/multiboot2.c: Likewise.
37876 * loader/multiboot_loader.c: Likewise.
37878 * configure.ac: Use -nostdlib when probing for the target. It
37879 should not be required to have libc for the target.
37881 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37882 they fail without libc headers for the target.
37883 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37885 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37886 preprocessor conditionals.
37888 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37889 build system doesn't need to be aware of the tar.c internals.
37891 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37893 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37895 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37897 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37898 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37900 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37902 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37903 aren't available if ata.mod gets used.
37905 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37907 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37908 initialising controller.
37909 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37911 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37913 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37914 to choose between ata and biosdisk module on i386-pc.
37916 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37918 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37919 Subclass and Programming Interface fields in terms of the 3 byte
37920 Class Code register.
37921 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37923 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37924 interface is OHCI. Add grub_dprintf for symmetry with
37926 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37927 interface is UHCI. Add interf variable for programming
37928 interface. Print interface with class/subclass.
37930 * bus/usb/ohci.c: Set interf with correct field.
37932 * bus/usb/uhci.c: Remove unneeded doubled lines.
37933 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37934 Remove whitespace inside comment.
37936 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37938 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37939 as fallback an equivalent option without depth.
37941 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37943 Not fail if unable to retrieve C/H/S on LBA disks
37945 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37946 if unable to retrieve C/H/S on LBA disks
37948 2009-06-08 Pavel Roskin <proski@gnu.org>
37950 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37953 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37955 * Makefile.in (uninstall): Remove all $lib_DATA files.
37957 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37959 Bugfix: install on partitionless device
37961 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37964 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37966 * Makefile.in (uninstall): Remove all $include_DATA files.
37968 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37970 * commands/true.c: New file. Implement the true and false commands.
37971 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37972 (true_mod_SOURCES): New variable.
37973 (true_mod_CFLAGS): Likewise.
37974 (true_mod_LDFLAGS): Likewise.
37976 2009-06-05 Colin D Bennett <colin@gibibit.com>
37978 Optimized font character lookup using binary search instead of linear
37979 search. Fonts now are required to have the character index ordered by
37982 * font/font.c (load_font_index): Verify that fonts have ordered
37984 (find_glyph): Use binary search instead of linear search to find a
37985 character in a font.
37987 2009-06-05 Michael Scherer <misc@mandriva.org>
37989 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37990 uses case sensitive btree.
37991 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37992 only for case insensitive filesystems.
37994 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37996 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37997 * conf/common.rmk (search_mod_CFLAGS): likewise
37999 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38001 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38002 compensate a compiler bug
38004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38006 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38009 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38011 Definitions for creating asm symbols with Apple's CC
38013 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38014 [APPLE_CC] (VARIABLE): likewise
38016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38018 Disable lnxboot.img when compiled
38021 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38022 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38023 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38024 [! APPLE_CC] (CODE_LENG): skip
38025 [! APPLE_CC] (setup_sects): likewise
38026 [! APPLE_CC]: skip filling
38028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38030 Address in trampolines based on 32-bit registers when compiled
38033 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38035 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38037 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38039 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38041 * kern/misc.c [APPLE_CC] (memcpy): new function
38042 [APPLE_CC] (memmove): likewise
38043 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38044 (memcpy): define alias conditionally on !APPLE_CC
38047 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38048 APPLE_CC are defined
38049 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38050 (grub_assert_fail): make prototype conditional
38052 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38054 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38056 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38058 (CLEANFILES): add grub-macho2img
38059 (grub_macho2img_SOURCES): new variable
38060 * kern/i386/pc/startup.S (bss_start): new variable
38061 (bss_end): likewise
38062 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38063 * util/grub-macho2img.c: new file
38065 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38067 Use objconv when compiling with Apple's CC
38069 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38070 (efiemu64.o): likewise
38071 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38072 when compiling with Apple's CC
38073 (efiemu64_s.o): likewise
38074 * configure.ac: check for objconv when compiling with Apple's CC
38075 * genmk.rb: use objconv for modules when compiled with Apple's CC
38077 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38079 Define segment as well as section when compiling with
38082 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38083 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38084 (efiemu_convert_pointer): likewise
38085 (efiemu_set_virtual_address_map): likewise
38086 (efiemu_convert_pointer): likewise
38087 (efiemu_getcrc32): likewise
38088 (init_crc32_table): likewise
38089 (reflect): likewise
38090 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38091 (GRUB_MOD_DEP): likewise
38093 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38095 Allow a compilation without -mcmodel=large
38097 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38098 when compiled without -mcmodel=large
38099 (filter_memory_map): remove memory post 4 GiB when compiled
38100 without -mcmodel=large
38101 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38102 TARGET_CFLAGS when -mcmodel=large isn't supported
38104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38106 Remove nested functions in efiemu core
38108 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38110 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38112 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38114 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38116 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38118 (grub_cpu_is_tsc_supported): likewise
38119 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38121 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38123 Absolute addressing through constant with Apple's cc
38125 * kern/i386/pc/startup.S: Define necessary constants
38126 and address through it when using ABS with Apple's CC
38127 * boot/i386/pc/diskboot.S: likewise
38128 * boot/i386/pc/boot.S: likewise
38129 * boot/i386/pc/lnxboot.S: likewise
38130 * boot/i386/pc/cdboot.S: likewise
38131 * mmap/i386/pc/mmap_helper.S: likewise
38132 * commands/i386/pc/drivemap_int13h.S: likewise
38134 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38136 Check if compiler is apple cc
38138 * Makefile.in (ASFLAGS): new variable
38139 (TARGET_ASFLAGS): likewise
38140 (TARGET_MODULE_FORMAT): likewise
38141 (TARGET_APPLE_CC): likewise
38142 (OBJCONV): likewise
38143 (TARGET_IMG_CFLAGS): likewise
38144 (TARGET_CPPFLAGS): add includedir
38145 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38146 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38147 Check for linker script only if compiler isn't Apple's CC
38148 (TARGET_MODULE_FORMAT): set
38149 (TARGET_APPLE_CC): likewise
38150 (TARGET_ASFLAGS): likewise
38151 (ASFLAGS): likewise
38152 Check for objcopy only if compiler isn't Apple's CC
38153 Check for BSS symbol only if compiler isn't Apple's CC
38154 * genmk.rb: adapt nm options if we use Apple's utils
38155 * aclocal.m4 (grub_apple_cc): new test
38156 (grub_apple_target_cc): likewise
38158 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38160 Simplify sed expressions and improve awk
38162 * Makefile.in (install-local): simplify sed expression
38163 * gencmdlist.sh: likewise
38164 * genmoddep.awk: avoid adding module as a dependency of itself
38166 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38168 Add missing start symbols
38170 * boot/i386/pc/boot.S: add start
38171 * boot/i386/pc/pxeboot.S: likewise
38173 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38175 Fix wrong assumptions with grub-mkimage on EFI
38177 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38178 (relocate_addresses): consider both r_addend and value at offset
38179 (make_mods_section): zerofill modinfo and header
38180 (convert_elf): write prefix here
38182 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38184 Use .asciz instead of .string
38186 * i386/pc/diskboot.S: use .asciz instead of .string
38187 * i386/pc/boot.S: likewise
38188 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38189 (GRUB_MOD_NAME): likewise
38191 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38195 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38196 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38197 (grub_video_setup): remove
38198 (grub_video_set_mode): new prototype
38199 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38201 (linux_vesafb_res): compile only on PCBIOS
38202 (grub_linux_boot): support gfxpayload
38203 * loader/i386/pc/xnu.c (video_hook): new function
38204 (grub_xnu_set_video): support gfxpayload
38205 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38206 (DEFAULT_VIDEO_HEIGHT): likewise
38207 (DEFAULT_VIDEO_FLAGS): likewise
38208 (DEFAULT_VIDEO_MODE): new definition
38209 (video_hook): new function
38210 (grub_gfxterm_init): use grub_video_set_mode
38211 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38213 * video/video.c (grub_video_setup): removed
38214 (grub_video_set_mode): new function based on grub_gfxterm_init and
38217 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38219 Avoid calling biosdisk in drivemap
38221 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38222 (revparse_biosdisk): likewise
38223 (list_mappings): derive name from id directly
38224 (grub_cmd_drivemap): use tryparse_diskstring
38226 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38230 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38231 (grub_lexer_param): add tokenonhold
38232 (grub_script_create_cmdline): remove cmdline. All callers updated
38233 (grub_script_function_create): make functionname
38234 grub_script_arg. All callers updated
38235 (grub_script_execute_argument_to_string): new prototype
38236 * kern/parser.c (state_transitions): reorder
38237 (grub_parser_cmdline_state): fix a bug and make more compact
38238 * script/sh/execute.c (grub_script_execute_argument_to_string):
38240 (grub_script_execute_cmdline): use new format
38241 * script/sh/function.c (grub_script_function_create): make functionname
38242 grub_script_arg. All callers updated
38243 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38244 (grub_script_yylex): remove
38245 (grub_script_yylex2): renamed to ...
38246 (grub_script_yylex): ...renamed
38247 parse the expressions like a${b}c
38248 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38249 (GRUB_PARSER_TOKEN_VAR): remove
38250 (GRUB_PARSER_TOKEN_NAME): likewise
38251 ("if"): declare as typeless
38252 ("while"): likewise
38253 ("function"): likewise
38258 (argument): likewise
38259 (script): accept empty scripts and make exit on error
38260 (arguments): use GRUB_PARSER_TOKEN_ARG
38261 (function): likewise
38262 (command): move error handling to script
38263 (menuentry): move grub_script_lexer_ref before
38264 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38265 argument. All callers updated
38267 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38269 Prevent GRUB from probing floppies during boot.
38271 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38272 * commands/search.c (options): Add --no-floppy.
38273 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38274 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38275 --no-floppy when searching for UUIDs.
38277 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38279 Simplify the code duplication in commands/search.c.
38281 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38282 (search_fs): ... this. Update all users.
38284 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38286 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38288 2009-05-28 Pavel Roskin <proski@gnu.org>
38290 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38291 Remove the original symlink explicitly.
38293 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38294 just one slash. That's how grub_fshelp_find_file() does it.
38296 2009-05-26 Pavel Roskin <proski@gnu.org>
38298 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38301 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38304 2009-05-25 Christian Franke <franke@computer.org>
38306 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38308 (grub_atapi_identify): Add wait after drive select.
38309 (grub_ata_identify): Do more strict status register check before
38310 calling grub_atapi_identify (). Suppress error message if status
38311 register is 0x00 after command failure. Add status register
38312 check after PIO read to avoid bogus identify due to stuck DRQ.
38313 Thanks to Pavel Roskin for testing.
38314 (grub_device_initialize): Remove unsafe status register check.
38315 Thanks to 'phcoder' for problem report and patch.
38316 Prevent sign extension in debug message.
38318 2009-05-23 Colin D Bennett <colin@gibibit.com>
38320 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38321 definition file, and functions defined in `normal/menu.c' have had
38322 their prototypes moved to `include/grub/menu.h' for consistency.
38324 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38326 (grub_menu_get_entry): Likewise.
38327 (grub_menu_get_timeout): Likewise.
38328 (grub_menu_set_timeout): Likewise.
38329 (grub_menu_execute_entry): Likewise.
38330 (grub_menu_execute_with_fallback): Likewise.
38331 (grub_menu_entry_run): Likewise.
38333 * include/grub/normal.h: Re-ordered and grouped function
38334 prototypes by file that the function is defined in.
38335 (grub_menu_execute_callback): Removed; moved to menu.h.
38336 (grub_menu_get_entry): Likewise.
38337 (grub_menu_get_timeout): Likewise.
38338 (grub_menu_set_timeout): Likewise.
38339 (grub_menu_execute_entry): Likewise.
38340 (grub_menu_execute_with_fallback): Likewise.
38341 (grub_menu_entry_run): Likewise.
38342 (grub_menu_addentry): Renamed from this ...
38343 (grub_normal_add_menu_entry): ... to this.
38345 * normal/main.c (grub_menu_addentry): Renamed from this ...
38346 (grub_normal_add_menu_entry): ... to this.
38348 * script/sh/execute.c (grub_script_execute_menuentry): Update
38349 reference to renamed grub_menu_addentry function.
38351 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38353 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38355 2009-05-22 Pavel Roskin <proski@gnu.org>
38357 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38358 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38359 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38360 compiling for the i386 targets, but not for the utilities.
38362 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38364 (grub_root_drive): Likewise.
38365 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38367 (grub_root_drive): Change size to byte.
38368 (grub_start_addr): Remove.
38369 (grub_end_addr): Likewise.
38370 (grub_apm_bios_info): Likewise.
38372 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38374 * normal/i386: Remove.
38375 * normal/powerpc: Likewise.
38376 * normal/sparc64: Likewise.
38377 * normal/x86_64: Likewise.
38379 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38381 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38382 * loader/i386/linux_trampoline.S: Fix indentation
38383 * loader/i386/xnu_helper.S: Likewise
38385 2009-05-18 Colin D Bennett <colin@gibibit.com>
38387 Display error messages when parsing a Lua statement fails.
38388 Previously, executing a syntactically invalid statement like
38389 ")foo" or "bar;" would silently fail.
38391 * script/lua/grub_main.c (handle_lua_error): New function.
38392 (grub_lua_parse_line): Improved reporting of Lua parser and
38395 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38397 Remove -Werror which causes build to fail on some systems
38399 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38400 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38401 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38403 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38405 trampoline for linux on 64-bit platform
38407 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38408 loader/i386/efi/linux_trampoline.S
38409 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38411 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38413 * loader/i386/linux_trampoline.S: moved here
38414 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38416 (jumpvector): removed
38417 (grub_linux_trampoline_start): new declaration
38418 (grub_linux_trampoline_end): likewise
38419 (grub_linux_boot): use trampoline when on 64-bit platform
38420 * loader/i386/linux.c: likewise
38422 2009-05-16 Pavel Roskin <proski@gnu.org>
38424 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38425 const to avoid a warning.
38426 (grub_lua_setenv): Likewise.
38427 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38428 lmsg to fix a warning.
38430 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38432 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38433 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38434 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38435 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38436 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38437 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38438 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38439 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38441 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38443 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38445 2009-05-16 Bean <bean123ch@gmail.com>
38447 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38448 (lua_mod_SOURCES): New variable.
38449 (lua_mod_CFLAGS): Likewise.
38450 (lua_mod_LDFLAGS): Likewise.
38452 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38453 (setjmp_mod_SOURCES): New variable.
38454 (setjmp_mod_CFLAGS): Likewise.
38455 (setjmp_LDFLAGS): Likewise.
38457 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38458 (setjmp_mod_SOURCES): New variable.
38459 (setjmp_mod_CFLAGS): Likewise.
38460 (setjmp_LDFLAGS): Likewise.
38462 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38463 (setjmp_mod_SOURCES): New variable.
38464 (setjmp_mod_CFLAGS): Likewise.
38465 (setjmp_LDFLAGS): Likewise.
38467 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38468 (setjmp_mod_SOURCES): New variable.
38469 (setjmp_mod_CFLAGS): Likewise.
38470 (setjmp_LDFLAGS): Likewise.
38472 * normal/i386/setjmp.S: Moved from here ...
38473 * lib/i386/setjmp.S: ... Moved here
38474 * normal/x86_64/setjmp.S: Moved from here ...
38475 * lib/x86_64/setjmp.S: ... Moved here
38476 * normal/powerpc/setjmp.S: Moved from here ...
38477 * lib/powerpc/setjmp.S: ... Moved here
38478 * normal/sparc64/setjmp.S: Moved from here ...
38479 * lib/sparc64/setjmp.S: ... Moved here
38481 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38482 returns_twice in mingw.
38484 * script/lua/grub_lib.c: New file.
38485 * script/lua/grub_lib.h: Likewise.
38486 * script/lua/grub_lua.h: Likewise.
38487 * script/lua/grub_main.c: Likewise.
38488 * script/lua/lapi.c: Likewise.
38489 * script/lua/lapi.h: Likewise.
38490 * script/lua/lauxlib.c: Likewise.
38491 * script/lua/lauxlib.h: Likewise.
38492 * script/lua/lbaselib.c: Likewise.
38493 * script/lua/lcode.c: Likewise.
38494 * script/lua/lcode.h: Likewise.
38495 * script/lua/ldblib.c: Likewise.
38496 * script/lua/ldebug.c: Likewise.
38497 * script/lua/ldebug.h: Likewise.
38498 * script/lua/ldo.c: Likewise.
38499 * script/lua/ldo.h: Likewise.
38500 * script/lua/ldump.c: Likewise.
38501 * script/lua/lfunc.c: Likewise.
38502 * script/lua/lfunc.h: Likewise.
38503 * script/lua/lgc.c: Likewise.
38504 * script/lua/lgc.h: Likewise.
38505 * script/lua/linit.c: Likewise.
38506 * script/lua/liolib.c: Likewise.
38507 * script/lua/llex.c: Likewise.
38508 * script/lua/llex.h: Likewise.
38509 * script/lua/llimits.h: Likewise.
38510 * script/lua/lmathlib.c: Likewise.
38511 * script/lua/lmem.c: Likewise.
38512 * script/lua/lmem.h: Likewise.
38513 * script/lua/loadlib.c: Likewise.
38514 * script/lua/lobject.c: Likewise.
38515 * script/lua/lobject.h: Likewise.
38516 * script/lua/lopcodes.c: Likewise.
38517 * script/lua/lopcodes.h: Likewise.
38518 * script/lua/loslib.c: Likewise.
38519 * script/lua/lparser.c: Likewise.
38520 * script/lua/lparser.h: Likewise.
38521 * script/lua/lstate.c: Likewise.
38522 * script/lua/lstate.h: Likewise.
38523 * script/lua/lstring.c: Likewise.
38524 * script/lua/lstring.h: Likewise.
38525 * script/lua/lstrlib.c: Likewise.
38526 * script/lua/ltable.c: Likewise.
38527 * script/lua/ltable.h: Likewise.
38528 * script/lua/ltablib.c: Likewise.
38529 * script/lua/ltm.c: Likewise.
38530 * script/lua/ltm.h: Likewise.
38531 * script/lua/lua.h: Likewise.
38532 * script/lua/luaconf.h: Likewise.
38533 * script/lua/lualib.h: Likewise.
38534 * script/lua/lundump.c: Likewise.
38535 * script/lua/lundump.h: Likewise.
38536 * script/lua/lvm.c: Likewise.
38537 * script/lua/lvm.h: Likewise.
38538 * script/lua/lzio.c: Likewise.
38539 * script/lua/lzio.h: Likewise.
38541 2009-05-16 Bean <bean123ch@gmail.com>
38543 * include/grub/kernel.h (grub_module_header_types): Add type
38546 * kern/main.c (grub_load_config): New function.
38547 (grub_main): Call grub_load_config to read boot config.
38549 * grub-mkimage (generate_image): New parameter config_path.
38550 (options): New option --config.
38551 (main): Parse --config option, and pass it to generate_image.
38553 2009-05-14 Christian Franke <franke@computer.org>
38555 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38556 This fixes build on Cygwin.
38558 2009-05-14 Pavel Roskin <proski@gnu.org>
38560 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38561 jump. This saves two bytes, so the typical case of 2 swapped
38562 drives would fit 32 bytes.
38564 2009-05-13 Pavel Roskin <proski@gnu.org>
38566 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38567 grub_uint32_t to avoid a warning.
38569 * loader/i386/linux.c (allocate_pages): When assigning
38570 real_mode_mem, cast through grub_size_t to fix a warning. The
38571 code already makes sure that the value would fit a pointer.
38572 (grub_linux_setup_video): Cast render_target->data to
38573 grub_size_t to fix a warning.
38575 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38577 * commands/i386/pc/drivemap.c: New file - implement drivemap
38579 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38580 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38582 2009-05-13 Pavel Roskin <proski@gnu.org>
38584 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38585 embedding_area_exists.
38587 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38589 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38590 it easier to understand / work with.
38591 Improve warning messages for cases where there's no embedding area,
38592 or when it is too small (or core.img too large).
38594 2009-05-13 Pavel Roskin <proski@gnu.org>
38596 * loader/i386/pc/multiboot2.c: Add necessary includes for
38597 grub_multiboot2_real_boot().
38599 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38600 PX record is always little-endian. We only need the lower 2
38603 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38604 facilitate code reuse.
38605 (grub_cpio_mount): Use "struct head", not a char buffer. This
38606 fixes a warning reported by gcc 4.4.
38608 * kernel/disk.c (grub_disk_read): Use void pointer for the
38610 (grub_disk_write): Use const void pointer for the buffer.
38611 Adjust all callers. Remove unnecessary casts.
38613 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38615 * util/i386/pc/grub-install.in: Update copyright year.
38617 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38621 * commands/gptsync.c: new file
38622 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38623 (gptsync_mod_SOURCES): new variable
38624 (gptsync_mod_CFLAGS): likewise
38625 (gptsync_mod_LDFLAGS): likewise
38626 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38628 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38629 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38630 * conf/i386-ieee1275.rmk: likewise
38631 * conf/i386-pc.rmk: likewise
38632 * conf/powerpc-ieee1275.rmk: likewise
38634 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38638 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38639 (grub_dl_ref): likewise
38641 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38643 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38644 split in two functions (one for msdos and one for gpt).
38646 2009-05-08 Pavel Roskin <proski@gnu.org>
38648 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38651 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38652 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38653 Initialize them with -1. Add sanity check for bad1. Eliminate
38656 2009-05-08 David S. Miller <davem@davemloft.net>
38658 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38660 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38662 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38665 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38668 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38670 2009-05-05 David S. Miller <davem@davemloft.net>
38672 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38674 2009-05-05 Pavel Roskin <proski@gnu.org>
38676 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38677 of grub_dl_ref() and grub_dl_unref().
38678 * commands/parttool.c: Remove preprocessor conditionals around
38679 grub_dl_ref() and grub_dl_unref().
38680 * fs/affs.c: Likewise.
38681 * fs/afs.c: Likewise.
38682 * fs/cpio.c: Likewise.
38683 * fs/ext2.c: Likewise.
38684 * fs/fat.c: Likewise.
38685 * fs/hfs.c: Likewise.
38686 * fs/hfsplus.c: Likewise.
38687 * fs/iso9660.c: Likewise.
38688 * fs/jfs.c: Likewise.
38689 * fs/minix.c: Likewise.
38690 * fs/ntfs.c: Likewise.
38691 * fs/reiserfs.c: Likewise.
38692 * fs/sfs.c: Likewise.
38693 * fs/udf.c: Likewise.
38694 * fs/ufs.c: Likewise.
38695 * fs/xfs.c: Likewise.
38696 * include/grub/dl.h: Likewise.
38697 * loader/xnu.c: Likewise.
38699 2009-05-04 Pavel Roskin <proski@gnu.org>
38701 * commands/acpi.c: Remove unused variable my_mod.
38702 * partmap/amiga.c: Likewise.
38703 * partmap/apple.c: Likewise.
38704 * partmap/gpt.c: Likewise.
38705 * partmap/pc.c: Likewise.
38706 * partmap/sun.c: Likewise.
38707 * term/gfxterm.c: Likewise.
38708 * term/i386/pc/vesafb.c: Likewise.
38709 * term/i386/pc/vga.c: Likewise.
38711 2009-05-04 David S. Miller <davem@davemloft.net>
38713 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38714 pointer args to grub_ieee1275_get_property().
38716 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38718 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38719 devices, and do not traverse down under controller nodes.
38721 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38722 (grub_ofdisk_open): Use it to un-escape "," characters.
38723 * kern/disk.c (find_part_sep): New.
38724 (grub_disk_open): Use it to find the first non-escaped ','
38725 character in the disk name.
38726 * util/ieee1275/devicemap.c (escape_of_path): New.
38727 (grub_util_emit_devicemap_entry): Use it.
38728 * util/sparc64/ieee1275/grub-install.in: Update script to
38729 strip partition specifiers properly by not triggering on
38730 '\' escaped ',' characters.
38732 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38734 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38736 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38738 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38739 on documentation from Wikipedia).
38741 2009-05-04 Pavel Roskin <proski@gnu.org>
38743 * disk/ata.c: Spelling fixes.
38744 * disk/raid.c: Likewise.
38745 * disk/usbms.c: Likewise.
38746 * disk/dmraid_nvidia.c: Likewise.
38747 * kern/ieee1275/openfw.c: Likewise.
38748 * kern/ieee1275/init.c: Likewise.
38749 * kern/ieee1275/cmain.c: Likewise.
38750 * boot/i386/pc/cdboot.S: Likewise.
38751 * video/readers/png.c: Likewise.
38752 * video/i386/pc/vbe.c: Likewise.
38753 * fs/udf.c: Likewise.
38754 * fs/hfs.c: Likewise.
38755 * fs/reiserfs.c: Likewise.
38756 * efiemu/runtime/efiemu.c: Likewise.
38757 * efiemu/main.c: Likewise.
38758 * efiemu/mm.c: Likewise.
38759 * include/grub/elf.h: Likewise.
38760 * include/grub/xnu.h: Likewise.
38761 * include/grub/usbdesc.h: Likewise.
38762 * include/grub/usb.h: Likewise.
38763 * include/grub/script_sh.h: Likewise.
38764 * include/grub/lib/LzmaEnc.h: Likewise.
38765 * include/grub/efiemu/efiemu.h: Likewise.
38766 * include/grub/command.h: Likewise.
38767 * normal/menu.c: Likewise.
38768 * normal/main.c: Likewise.
38769 * normal/datetime.c: Likewise.
38770 * bus/usb/uhci.c: Likewise.
38771 * mmap/i386/uppermem.c: Likewise.
38772 * mmap/mmap.c: Likewise.
38773 * commands/acpi.c: Likewise.
38774 * commands/test.c: Likewise.
38775 * partmap/apple.c: Likewise.
38776 * font/font.c: Likewise.
38777 * loader/sparc64/ieee1275/linux.c: Likewise.
38778 * loader/macho.c: Likewise.
38779 * loader/i386/bsd_trampoline.S: Likewise.
38780 * loader/i386/bsd.c: Likewise.
38781 * loader/xnu.c: Likewise.
38782 * term/i386/pc/vesafb.c: Likewise.
38783 * term/usb_keyboard.c: Likewise.
38784 * util/resolve.c: Likewise.
38785 * util/getroot.c: Likewise.
38787 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38789 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38791 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38793 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38796 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38798 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38799 parameter only available on BIOS.
38801 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38803 Removed wrong semicolon in declaration
38805 * grub/misc.h (grub_dprintf): remove semicolon
38807 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38809 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38810 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38811 is done by grub_cmd_linux() now).
38812 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38813 restore video to text mode.
38814 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38815 indicates lack of "vga=" parameter. "vga=0" is mapped to
38816 `GRUB_LINUX_VID_MODE_NORMAL'.
38818 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38820 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38821 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38822 and `normal/script.c'. Add `kern/rescue_reader.c',
38823 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38824 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38825 `grub_script.tab.c'.
38827 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38828 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38830 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38831 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38833 * Makefile.in: Remove duplicated 2008 in Copyright line.
38835 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38837 * util/misc.c (grub_util_warn): New function. Emits a warning
38839 * include/grub/util/misc.h (grub_util_warn): New declaration.
38841 * util/i386/pc/grub-install.in: Understand --force and pass it down
38844 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38846 (setup): Improve error messages and add warnings when requested to
38847 install in odd layouts. Refuse to install using blocklists unless
38850 2009-05-04 martin f. krafft <madduck@madduck.net>
38852 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38854 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38856 Updated copyright year
38858 * fs/hfsplus.c: updated copyright year
38860 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38864 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38865 in the space previously used by unused3
38866 (grub_hfsplus_uuid): new function
38867 (grub_hfsplus_fs): added uuid field
38869 2009-05-03 Pavel Roskin <proski@gnu.org>
38871 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38872 suppress warnings. It's no longer needed.
38873 * disk/host.c: Likewise.
38874 * disk/ata_pthru.c: Likewise.
38875 * disk/loopback.c: Likewise.
38876 * hook/datehook.c: Likewise.
38877 * parttool/pcpart.c: Likewise.
38878 * fs/i386/pc/pxe.c: Likewise.
38879 * fs/ntfscomp.c: Likewise.
38880 * efiemu/main.c: Likewise.
38881 * mmap/mmap.c: Likewise.
38882 * commands/crc.c: Likewise.
38883 * commands/hexdump.c: Likewise.
38884 * commands/hdparm.c: Likewise.
38885 * commands/acpi.c: Likewise.
38886 * commands/echo.c: Likewise.
38887 * commands/minicmd.c: Likewise.
38888 * commands/blocklist.c: Likewise.
38889 * commands/memrw.c: Likewise.
38890 * commands/loadenv.c: Likewise.
38891 * commands/usbtest.c: Likewise.
38892 * commands/lsmmap.c: Likewise.
38893 * commands/boot.c: Likewise.
38894 * commands/parttool.c: Likewise.
38895 * commands/configfile.c: Likewise.
38896 * commands/search.c: Likewise.
38897 * commands/ieee1275/suspend.c: Likewise.
38898 * commands/cat.c: Likewise.
38899 * commands/i386/pc/pxecmd.c: Likewise.
38900 * commands/i386/pc/play.c: Likewise.
38901 * commands/i386/pc/halt.c: Likewise.
38902 * commands/i386/pc/vbeinfo.c: Likewise.
38903 * commands/i386/pc/vbetest.c: Likewise.
38904 * commands/lspci.c: Likewise.
38905 * commands/date.c: Likewise.
38906 * commands/handler.c: Likewise.
38907 * commands/ls.c: Likewise.
38908 * commands/test.c: Likewise.
38909 * commands/cmp.c: Likewise.
38910 * commands/efi/loadbios.c: Likewise.
38911 * commands/efi/fixvideo.c: Likewise.
38912 * commands/halt.c: Likewise.
38913 * commands/help.c: Likewise.
38914 * commands/reboot.c: Likewise.
38915 * hello/hello.c: Likewise.
38916 * script/sh/main.c: Likewise.
38917 * loader/xnu.c: Likewise.
38918 * term/terminfo.c: Likewise.
38919 * term/i386/pc/serial.c: Likewise.
38920 * term/usb_keyboard.c: Likewise.
38922 2009-05-03 David S. Miller <davem@davemloft.net>
38924 * normal/menu.c: Include grub/parser.h
38926 2009-05-03 Pavel Roskin <proski@gnu.org>
38928 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38930 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38931 Suggested by Javier Martín <lordhabbit@gmail.com>
38933 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38934 efiemu??.o doesn't exist.
38935 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38938 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38940 FreeBSD 64-bit support
38942 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38943 and loader/i386/bsd_trampoline.S
38944 (bsd_mod_ASFLAGS): new variable
38945 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38946 (FREEBSD_MODTYPE_KERNEL64): likewise
38947 (grub_bsd64_trampoline_start): likewise
38948 (grub_bsd64_trampoline_end): likewise
38949 (grub_bsd64_trampoline_selfjump): likewise
38950 (grub_bsd64_trampoline_gdt): likewise
38951 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38952 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38953 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38954 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38955 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38957 * loader/i386/bsd_pagetable.c: new file
38958 * loader/i386/bsd_trampoline.S: likewise
38959 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38960 (ALIGN_VAR): likewise
38961 (entry_hi): new variable
38962 (kern_end_mdofs): likewise
38963 (is_64bit): likewise
38964 (grub_freebsd_add_meta): use ALIGN_VAR
38965 (grub_e820_mmap): new declaration
38966 (grub_freebsd_add_mmap): new function
38967 (grub_freebsd_add_meta_module): support 64 bit kernels
38968 (grub_freebsd_list_modules): use ALIGN_VAR
38969 (gdt_descriptor): new declaration
38970 (grub_freebsd_boot): support 64 bit kernels
38971 (grub_bsd_elf64_hook): new function
38972 (grub_bsd_load_elf): support elf64
38974 2009-05-03 Bean <bean123ch@gmail.com>
38976 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38977 after we get the result of if statement.
38979 2009-05-03 Bean <bean123ch@gmail.com>
38981 * Makefile.in (enable_efiemu): New variable.
38983 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38985 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38987 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38988 path, add -mno-red-zone option.
38989 (efiemu64_s.o): Likewise.
38990 (efiemu64.o): Use macro $^ for source file.
38992 * configure.ac (--enable-efiemu): New option.
38994 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38998 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38999 (pkglib_MODULES): add xnu.mod
39000 (xnu_mod_SOURCES): new variable
39001 (xnu_mod_CFLAGS): likewise
39002 (xnu_mod_LDFLAGS): likewise
39003 (xnu_mod_ASFLAGS): likewise
39004 * conf/i386-pc.rmk: likewise
39005 * conf/x86_64-efi.rmk: likewise
39006 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39008 * include/grub/i386/macho.h: new file
39009 * include/grub/i386/xnu.h: likewise
39010 * include/grub/macho.h: likewise
39011 * include/grub/machoload.h: likewise
39012 * include/grub/x86_64/macho.h: likewise
39013 * include/grub/x86_64/xnu.h: likewise
39014 * include/grub/xnu.h: likewise
39015 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39016 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39017 * loader/i386/efi/xnu.c: new file
39018 * loader/i386/pc/xnu.c: likewise
39019 * loader/i386/xnu.c: likewise
39020 * loader/i386/xnu_helper.S: likewise
39021 * loader/macho.c: likewise
39022 * loader/xnu.c: likewise
39023 * loader/xnu_resume.c: likewise
39024 * util/grub-dumpdevtree: likewise
39025 * include/grub/i386/pit.h: include grub/err.h
39026 (grub_pit_wait): export
39027 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39029 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39033 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39034 _linux_efi, linux_efi.
39035 new files in grub-emu
39036 new targets efiemu32.o and efiemu64.o
39037 * loader/linux_normal_efiemu.c: likewise
39038 * loader/i386/efi/linux.c: added preliminary efiemu support
39039 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39041 * include/grub/autoefi.h: new file
39042 * include/grub/i386/efiemu.h: likewise
39043 * include/grub/i386/pc/efiemu.h: likewise
39044 * include/grub/efi/api.h: add LL suffix when necessary
39045 new definitions relating to tables
39046 * include/grub/efiemu/efiemu.h: new file
39047 * include/grub/efiemu/runtime.h: likewise
39048 * efiemu/prepare.c: likewise
39049 * efiemu/loadcore_common.c: likewise
39050 * efiemu/loadcore64.c: likewise
39051 * efiemu/runtime/efiemu.sh: likewise
39052 * efiemu/runtime/efiemu.S: likewise
39053 * efiemu/runtime/efiemu.c: likewise
39054 * efiemu/runtime/config.h: likewise
39055 * efiemu/prepare32.c: likewise
39056 * efiemu/main.c: likewise
39057 * efiemu/modules/pnvram.c: likewise
39058 * efiemu/modules/i386: likewise
39059 * efiemu/modules/i386/pc: likewise
39060 * efiemu/modules/acpi.c: likewise
39061 * efiemu/i386/pc/cfgtables.c: likewise
39062 * efiemu/i386/loadcore64.c: likewise
39063 * efiemu/i386/loadcore32.c: likewise
39064 * efiemu/prepare64.c: likewise
39065 * efiemu/loadcore.c: likewise
39066 * efiemu/symbols.c: likewise
39067 * efiemu/mm.c: likewise
39068 * efiemu/loadcore32.c: likewise
39070 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39074 * commands/acpi.c: new file
39075 * commands/i386/pc/acpi.c: likewise
39076 * commands/efi/acpi.c: likewise
39077 * include/grub/acpi.h: likewise
39078 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39079 (acpi_mod_SOURCES): new variable
39080 (acpi_mod_CFLAGS): likewise
39081 (acpi_mod_LDFLAGS): likewise
39082 * conf/i386-efi.rmk: likewise
39083 * conf/x86_64-efi.rmk: likewise
39085 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39087 Missing part from mmap patch
39089 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39090 (grub_mmap_unregister)
39091 (grub_mmap_free_and_unregister): use grub_mmap_register
39093 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39097 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39098 * loader/i386/linux.c (find_mmap_size): likewise
39099 (allocate_pages): likewise
39100 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39101 (grub_fill_multiboot_mmap): likewise
39102 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39103 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39104 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39105 (OPENBSD_MMAP_RESERVED): likewise
39106 * include/grub/i386/pc/memory.h: include grub/memory.h
39107 (grub_lower_mem): removed
39108 (grub_upper_mem): likewise
39109 (GRUB_MACHINE_MEMORY_ACPI): new definition
39110 (GRUB_MACHINE_MEMORY_NVS): likewise
39111 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39112 (GRUB_MACHINE_MEMORY_HOLE): likewise
39113 (grub_machine_mmap_register): likewise
39114 (grub_machine_mmap_unregister): likewise
39115 (grub_machine_get_upper): likewise
39116 (grub_machine_get_lower): likewise
39117 (grub_machine_get_post64): likewise
39118 * include/grub/i386/efi/memory.h: new file
39119 * include/grub/x86_64/efi/memory.h: likewise
39120 * include/grub/efi/memory.h: likewise
39121 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39122 (mmap_mod_SOURCES): new variable
39123 (mmap_mod_LDFLAGS): likewise
39124 (mmap_mod_ASFLAGS): likewise
39125 * conf/i386-coreboot.rmk: likewise
39126 * conf/i386-ieee1275.rmk: likewise
39127 * conf/i386-efi.rmk: likewise
39128 * conf/x86_64-efi.rmk: likewise
39129 * include/grub/types.h (UINT_TO_PTR): new macro
39130 (PTR_TO_UINT32): likewise
39131 (PTR_TO_UINT64): likewise
39132 * include/grub/memory.h: new file
39133 * mmap/i386/pc/mmap.c: likewise
39134 * mmap/i386/pc/mmap_helper.S: likewise
39135 * mmap/i386/uppermem.c: likewise
39136 * mmap/mmap.c: likewise
39137 * mmap/efi/mmap.c: likewise
39138 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39140 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39141 (grub_upper_mem): likewise
39142 (grub_machine_init): don't use grub_upper_mem,
39143 make grub_lower_mem local
39144 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39145 grub_mmap_iterate and grub_mmap_get_upper
39146 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39148 2009-05-02 Bean <bean123ch@gmail.com>
39150 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39151 script/sh/parser.y.
39152 (pkglib_MODULES): Add normal.mod and sh.mod.
39153 (normal_SOURCES): New variable.
39154 (normal_mod_CFLAGS): Likewise.
39155 (normal_mod_LDFLAGS): Likewise.
39156 (sh_mod_SOURCES): Likewise.
39157 (sh_mod_CFLAGS): Likewise.
39158 (sh_mod_LDFLAGS): Likewise.
39160 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39161 script/sh/lexer.c_DEPENDENCIES.
39162 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39163 kern/rescue_reader.c and kern/rescue_parser.c.
39164 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39165 (grub_emu_SOURCES): Change source files.
39166 (pkglib_MODULES): Remove normal.mod.
39167 (normal_SOURCES): Removed.
39168 (normal_mod_CFLAGS): Likewise.
39169 (normal_mod_LDFLAGS): Likewise.
39170 * conf/i386-coreboot.rmk: Likewise.
39171 * conf/i386-efi.rmk: Likewise.
39172 * conf/i386-ieee1276.rmk: Likewise.
39173 * conf/powerpc-ieee1275.rmk: Likewise.
39174 * conf/sparc64-ieee1275.rmk: Likewise.
39175 * conf/x86_64-efi.rmk: Likewise.
39177 * include/grub/command.h (grub_command_execute): New inline function.
39179 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39181 * include/grub/normal.h: Remove <grub/setjmp.h>.
39182 (grub_fs_module_list): Moved to normal/autofs.c.
39183 (grub_exit_env): Removed.
39184 (grub_command_execute): Likewise.
39185 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39187 (read_command_list): New function declaration.
39188 (read_fs_list): Likewise.
39190 * include/parser.h: Include <grub/reader.h>.
39191 (grub_parser_split_cmdline): Change type of getline parameter.
39192 (grub_parser): New structure.
39193 (grub_parser_class): New variable.
39194 (grub_parser_execute): New function declaration.
39195 (grub_register_rescue_parser): Likewise.
39196 (grub_parser_register): New inline function.
39197 (grub_parser_unregister): Likewise.
39198 (grub_parser_get_current): Likewise.
39199 (grub_parser_set_current): Likewise.
39201 * include/grub/reader.h: New file.
39202 * kern/reader.c: Likewise.
39203 * kern/rescue_parser.c: Likewise.
39204 * kern/rescue_reader.c: Likewise.
39205 * normal/autofs.c: Likewise.
39206 * normal/dyncmd.c: Likewise.
39208 * include/grub/rescue.h: Removed.
39209 * normal/command.h: Likewise.
39211 * include/grub/script.h: Moved to ...
39212 * include/grub/script_sh.h: ... Moved here.
39213 * normal/execute.c: Moved to ...
39214 * script/sh/execute.c: ... Moved here.
39215 * normal/function.c: Moved to ...
39216 * script/sh/function.c: ... Moved here.
39217 * normal/lexer.c: Moved to ...
39218 * script/sh/lexer.c: ... Moved here.
39219 * normal/parser.y: Moved to ...
39220 * script/sh/parser.y: ... Moved here.
39221 * normal/script.c: Moved to ...
39222 * script/sh/script.c: ... Moved here.
39224 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39226 (grub_exit_env): Removed.
39227 (fs_module_list): Moved to normal/autofs.c.
39228 (grub_file_getline): Don't handle comment here.
39229 (free_menu): Skip removed field entry->commands.
39230 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39232 (read_config_file): Removed nested parameter, change getline function.
39233 (grub_enter_normal_mode): Removed.
39234 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39235 (read_command_list): Likewise.
39236 (autoload_fs_module): Moved to normal/autofs.c.
39237 (read_fs_list): Likewise.
39238 (reader_nested): New variable.
39239 (grub_normal_execute): Run parser.sh to switch to sh parser.
39240 (grub_cmd_rescue): Removed.
39241 (cmd_normal): Removed.
39242 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39244 (grub_cmdline_run): New function.
39245 (grub_normal_reader_init): Likewise.
39246 (grub_normal_read_line): Likewise.
39247 (grub_env_write_pager): Likewise.
39248 (cmdline): New variable.
39249 (grub_normal_reader): Likewise.
39250 (GRUB_MOD_INIT): Register normal reader and set as current, register
39251 pager hook, register normal command with grub_register_command_prio,
39252 so that it won't show up in command.lst.
39253 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39254 grub_fs_autoload_hook.
39256 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39257 (grub_menu_execute_entry): Replace grub_script_execute with
39258 grub_parser_execute, change parameter to grub_command_execute.
39260 * normal/menu_text.c: Remove <grub/script.h>.
39262 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39263 and <grub/parser.h>.
39264 (run): Change editor_getline to use new parser interface. Change
39265 parameter to grub_command_execute.
39267 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39268 <grub/reader.h> and <grub/parser.h>.
39269 (grub_load_normal_mode): Execute normal command.
39270 (grub_main): Call grub_register_core_commands,
39271 grub_register_rescue_parser and grub_register_rescue_reader, use
39272 grub_reader_loop to enter input loop.
39274 * kern/parser.c (grub_parser_split_cmdline): Change type of
39276 (grub_parser_class): New variable.
39277 (grub_parser_execute): New function.
39279 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39280 * loader/multiboot2.c: Likewise.
39281 * loader/sparc64/ieee1275/linux.c: Likewise.
39283 * util/grub-emu.c (read_command_list): New dummy function.
39285 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39287 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39288 count to 16 for CCISS and IDA.
39290 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39292 * normal/menu_text.c (grub_wait_after_message): Print a newline
39293 after waiting for user input.
39295 * loader/i386/linux.c: Include `<grub/normal.h>'.
39296 (grub_cmd_linux): Improve the error message about `ask' mode, by
39297 waiting for user input so it's not missed (we can do this, since
39298 user requested interaction).
39300 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39302 Added missing lst to grub-mkrescue
39304 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39305 and ${input_dir}/parttool.lst
39307 2009-04-30 David S. Miller <davem@davemloft.net>
39309 * util/hostdisk.c (device_is_wholedisk): New function.
39310 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39311 zero only if device_is_wholedisk() returns true.
39313 * util/hostdisk.c (convert_system_partition_to_system_disk):
39314 Handle virtual disk devices named /dev/vdiskX as found on sparc
39317 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39318 lettered partition specifier is found, convert to numbered.
39320 2009-04-29 David S. Miller <davem@davemloft.net>
39322 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39323 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39325 * normal/command.c: Add missing newline at end of file.
39327 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39329 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39330 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39331 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39332 ihandles have a 32-bit type but need to be stored in a "void *".
39334 2009-04-28 Pavel Roskin <proski@gnu.org>
39336 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39337 not disk. Adjust all dependencies.
39338 (grub_fs_uuid_close): Use grub_device_close(), not
39341 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39342 parent's partition, don't copy it by reference, as it gets freed
39345 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39347 Preboot hooks support
39349 * commands/boot.c (struct grub_preboot_t): new declaration
39350 (preboots_head): new variable
39351 (preboots_tail): likewise
39352 (grub_loader_register_preboot_hook): new function
39353 (grub_loader_unregister_preboot_hook): likewise
39354 (grub_loader_set): launch preboot hooks
39355 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39356 (grub_loader_register_preboot_hook): new declaration
39357 (grub_loader_unregister_preboot_hook): likewise
39359 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39363 * disk/scsi.c (grub_scsi_open): added missing cast when
39364 calling grub_dprintf
39366 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39368 Bug and warning fixes
39370 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39372 * commands/test.c (test_parse): fixed bug with file tests and corrected
39373 declaration of find_file
39375 2009-04-26 Pavel Roskin <proski@gnu.org>
39377 * Makefile.in: Don't install empty manual pages if help2man is
39378 missing. Use help2man option for output, not shell redirection.
39380 2009-04-26 David S. Miller <davem@davemloft.net>
39382 * util/grub-mkdevicemap.c (make_device_map): Add missing
39383 NESTED_FUNC_ATTR to process_device().
39385 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39389 * commands/test.c: rewritten to use bash-like test
39391 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39393 Parttool autoloading and improvements
39395 * Makefile.in (pkglib_DATA): add parttool.lst
39396 (parttool.lst): new target
39397 * genmk.rb: generate parttool-*
39398 (CLEANFILES): add #{parttool}
39399 (PARTTOOLFILES): new variable
39400 * genparttoollist.sh: new file
39401 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39402 (grub_pcpart_type): likewise
39403 * commands/parttool.c (helpmsg): new variable
39404 (grub_cmd_parttool): output help if not enough arguments are supplied
39406 (GRUB_MOD_INIT(parttool)): use helpmsg
39408 2009-04-24 David S. Miller <davem@davemloft.net>
39410 Avoiding opening same device multiple times in device iterator.
39412 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39413 and use it to build a list of partitions in iterate_disk() and
39414 iterate_partition().
39416 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39419 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39420 grub_devalias_iterate() result instead of unconditional 0.
39421 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39422 Also, capture hook return value, either directly or via
39423 grub_children_iterate(), and propagate to caller.
39424 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39425 grub_children_iterate): Return value is now 'int' instead of
39427 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39428 like a proper iterator, stopping when hooks return non-zero.
39429 (grub_devalias_iterate): Likewise.
39431 2009-04-23 David S. Miller <davem@davemloft.net>
39433 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39435 2009-04-22 David S. Miller <davem@davemloft.net>
39437 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39438 is larger than address_cells, use that value for address_cells too.
39440 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39441 IEEE1275_MAX_PATH_LEN): Define.
39442 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39443 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39444 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39445 'devtype'. Explicitly NULL terminate devalias expansion.
39447 * util/sparc64/ieee1275/misc.c: New file.
39448 * util/sparc64/ieee1275/grub-setup.c: New file.
39449 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39450 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39451 * util/sparc64/ieee1275/grub-install.in: New file.
39452 * util/ieee1275/ofpath.c: New file.
39453 * util/ieee1275/devicemap.c: New file.
39454 * util/devicemap.c: New file.
39455 * util/deviceiter.c: New file.
39456 * kern/sparc64/ieee1275/init.c: New file.
39457 * include/grub/util/ofpath.h: New file.
39458 * include/grub/util/deviceiter.h: New file.
39459 * util/grub-mkdevicemap.c: Include deviceiter.h.
39460 Implement using grub_util_emit_devicemap_entry and
39461 grub_util_iterate_devices.
39462 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39463 util/devicemap.c into grub-mkdevicemap
39464 * conf/i386-efi.rmk: Likewise.
39465 * conf/i386-ieee1275.rmk: Likewise.
39466 * conf/i386-pc.rmk: Likewise.
39467 * conf/powerpc-ieee1275.rmk: Likewise.
39468 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39469 images and installation utilities. Build kernel as image
39470 instead of as elf binary. Use common rules as much as possible.
39472 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39474 Correct GPT definition
39476 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39479 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39481 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39483 2009-04-19 David S. Miller <davem@davemloft.net>
39485 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39486 (grub_rescue_cmd_linux): Rename to...
39487 (grub_cmd_linux): and fix prototype.
39488 (grub_rescue_cmd_initrd): Rename to...
39489 (grub_cmd_initrd): and fix prototype.
39490 (cmd_linux, cmd_initrd): New.
39491 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39492 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39494 2009-04-17 Pavel Roskin <proski@gnu.org>
39496 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39498 (grub_ohci_transfer): Likewise.
39500 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39502 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39503 return without a value. Fix inconsistent indentation.
39505 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39506 match struct grub_fs.
39508 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39509 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39510 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39511 * commands/lspci.c (grub_lspci_iter): Likewise.
39513 2009-04-16 Bean <bean123ch@gmail.com>
39515 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39518 2009-04-15 Pavel Roskin <proski@gnu.org>
39520 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39521 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39522 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39525 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39527 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39528 that no multiple data or metadata areas are supported and `Unknown
39531 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39533 Move loader out of the kernel
39535 * kern/loader.c: moved to ...
39536 * commands/boot.c: ... moved here
39537 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39538 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39539 * include/grub/kernel.h (grub_machine_fini): export
39540 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39541 (grub_loader_set): likewise
39542 (grub_loader_unset): likewise
39543 (grub_loader_boot): likewise
39544 * conf/common.rmk: new module boot.mod
39545 (pkglib_MODULES): add boot.mod
39546 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39547 (grub_emu_SOURCES): likewise
39548 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39549 (grub_emu_SOURCES): likewise
39550 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39551 (grub_emu_SOURCES): likewise
39552 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39553 (grub_emu_SOURCES): likewise
39554 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39555 (grub_emu_SOURCES): likewise
39556 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39557 (grub_emu_SOURCES): likewise
39558 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39559 (grub_emu_SOURCES): likewise
39561 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39563 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39565 * kern/misc.c (grub_itoa): Removed function
39566 (grub_ltoa): likewise
39567 (grub_vsprintf): use grub_lltoa
39569 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39573 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39574 * conf/i386-coreboot.rmk: likewise
39575 * conf/i386-ieee1275.rmk: likewise
39576 * conf/powerpc-ieee1275.rmk: likewise
39578 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39580 * INSTALL: Add that `./autogen.sh' needs to be run before
39583 2009-04-14 Bean <bean123ch@gmail.com>
39585 * Makefile.in (pkglib_DATA): Add handler.lst.
39586 (handler.lst): New rule.
39588 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39589 * conf/i386-coreboot.rmk: Likewise.
39590 * conf/i386-ieee1275.rmk: Likewise.
39591 * conf/i386-efi.rmk: Likewise.
39592 * conf/x86_64-efi.rmk: Likewise.
39593 * conf/powerpc-ieee1275.rmk: Likewise.
39594 * conf/sparc64-ieee1275.rmk: Likewise.
39596 * genhandlerlist.sh: New file.
39598 * genmk.rb: Add rules to generate handler.lst.
39600 * include/grub/normal.h (grub_file_getline): New function definition.
39601 (read_handler_list): Likewise.
39602 (free_handler_list): Likewise.
39604 * include/grub/term.h (grub_term_register_input): Add name parameter
39605 for auto generation of handler.lst.
39606 (grub_term_register_output): Likewise.
39608 * normal/handler.c: New file.
39610 * normal/main.c (get_line): Renamed to grub_file_getline.
39611 (read_config_file): Use the newly renamed grub_file_getline.
39612 (read_command_list): Likewise.
39613 (read_fs_list): Likewise.
39614 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39615 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39617 * term/efi/console.c (grub_console_init): Add name parameter for auto
39618 generation of handler.lst.
39619 * term/gfxterm.c: Likewise.
39620 * term/i386/pc/at_keyboard.c: Likewise.
39621 * term/i386/pc/console.c: Likewise.
39622 * term/i386/pc/serial.c: Likewise.
39623 * term/i386/pc/vesafb.c: Likewise.
39624 * term/i386/pc/vga.c: Likewise.
39625 * term/i386/pc/vga_text.c: Likewise.
39626 * term/ieee1275/ofconsole.c: Likewise.
39627 * term/usb_keyboard.c: Likewise.
39629 2009-04-14 Bean <bean123ch@gmail.com>
39631 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39632 properly with null character.
39634 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39636 * configure: Remove.
39637 * config.h.in: Likewise.
39638 * stamp-h.in: Likewise.
39639 * DISTLIST: Likewise.
39640 * conf/common.mk: Likewise.
39641 * conf/i386-coreboot.mk: Likewise.
39642 * conf/i386-efi.mk: Likewise.
39643 * conf/i386-ieee1275.mk: Likewise.
39644 * conf/i386.mk: Likewise.
39645 * conf/i386-pc.mk: Likewise.
39646 * conf/powerpc-ieee1275.mk: Likewise.
39647 * conf/sparc64-ieee1275.mk: Likewise.
39648 * conf/x86_64-efi.mk: Likewise.
39650 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39653 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39654 David S. Miller <davem@davemloft.net>
39656 * util/hostdisk.c (make_device_name): Fix buffer length
39659 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39661 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39662 <sys/param.h> and <sys/sysctl.h>.
39663 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39664 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39665 opening the device and reset them afterwards.
39667 2009-04-13 Pavel Roskin <proski@gnu.org>
39669 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39670 Reported by John Stanley <jpsinthemix@verizon.net>
39672 2009-04-13 Robert Millan <rmh@aybabtu.com>
39674 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39675 that name for menuentries when appropriate.
39677 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39679 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39681 2009-04-13 Robert Millan <rmh@aybabtu.com>
39683 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39684 to Linux, simply abort telling the user it's no longer supported.
39686 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39688 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39689 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39690 `freebsd_loadenv' only when devices.hints exist.
39692 2009-04-13 Pavel Roskin <proski@gnu.org>
39694 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39696 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39698 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39700 (grub_drive): Likewise.
39702 2009-04-13 David S. Miller <davem@davemloft.net>
39704 * kern/sparc64/ieee1275/ieee1275.c: New file.
39705 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39706 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39707 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39708 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39709 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39710 grub_ieee1275_alloc_physmem): Declare new exported functions.
39712 * include/grub/sparc64/ieee1275/loader.h: New file.
39713 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39714 * include/grub/sparc64/kernel.h: Likewise.
39715 * loader/sparc64/ieee1275/linux.c: Likewise.
39717 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39718 (grub_fstest_SOURCES): Likewise.
39720 * util/hostdisk.c (make_device_name): Do not make any assumptions
39721 about the length of drive names.
39723 * kern/dl.c (grub_dl_load_file): Close file immediately when
39724 we are done using it.
39726 2009-04-12 David S. Miller <davem@davemloft.net>
39728 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39729 values. Noticed by Pavel Roskin.
39731 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39734 * genmk.rb: Add more flexible image type specification, also
39735 pass --strip-unneeded to objcopy.
39736 * conf/i386-pc.rmk: Use *_FORMAT.
39737 * conf/i386-pc.mk: Rebuilt.
39739 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39740 (OFDISK_HASH_SZ): Define.
39741 (ofdisk_hash): New hash table.
39742 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39743 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39744 instead of device phandle which is not unique.
39746 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39747 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39748 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39749 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39750 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39751 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39752 GRUB_KERNEL_MACHINE_DATA_END): Define.
39753 (grub_kernel_image_size, grub_total_module_size): Declare.
39755 2009-04-12 Pavel Roskin <proski@gnu.org>
39757 * configure.ac: Change the logic when we check for target tools.
39758 Do it when the target is specified and it's different from the
39759 specified value of the host.
39761 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39763 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39764 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39765 GNU/kFreeBSD. Check if a device is a character device. Use
39766 DIOCGMEDIASIZE to get the size.
39767 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39768 support for GNU/kFreeBSD.
39769 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39770 is a character device instead of a block device. Add support for
39771 FreeBSD device names.
39773 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39774 is a character device instead of a block device.
39776 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39777 is a character device instead of a block device.
39779 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39781 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39782 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39783 FreeBSD. Check if a device is a character device. Use
39784 DIOCGMEDIASIZE to get the size.
39785 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39786 support for FreeBSD.
39787 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39788 is a character device instead of a block device. Add support for
39789 FreeBSD device names.
39791 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39792 a character device instead of a block device.
39793 (grub_util_check_char_device): New function.
39795 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39796 a character device instead of a block device.
39798 * include/grub/util/getroot.h (grub_util_check_char_device): New
39801 2009-04-11 David S. Miller <davem@davemloft.net>
39803 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39805 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39806 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39807 function, if present.
39808 (__bswapdi2): Likewise.
39810 * include/grub/sparc64/ieee1275/boot.h: New file.
39811 * boot/sparc64/ieee1275/boot.S: Likewise.
39812 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39814 * kern/misc.c (grub_ltoa): New function.
39815 (grub_vsprintf): Use it to format 'long' integers.
39817 2009-04-10 David S. Miller <davem@davemloft.net>
39819 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39820 slots are of type grub_ieee1275_cell_t.
39821 (grub_nand_read): Likewise.
39822 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39823 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39824 macros are used to compare values in arg/ret block of the call.
39825 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39826 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39827 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39828 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39829 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39830 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39831 grub_ieee1275_close, grub_ieee1275_set_property,
39832 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39833 grub_ieee1275_cell_t.
39834 * kern/ieee1275/openfw.c (grub_map): Likewise.
39835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39836 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39838 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39839 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39840 (grub_devalias_iterate): Likewise.
39842 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39846 * fs/ufs.c (INODE_NBLOCKS): new definition
39847 (struct grub_ufs_dirent): added fields for non-BSD dirents
39848 (grub_ufs_get_file_block): fixed double indirect handling
39849 (grub_ufs_lookup_symlink): use more robust way to determine whether
39851 (grub_ufs_find_file): support for non-BSD dirents
39852 (grub_ufs_dir): support for non-BSD dirents
39854 2009-04-10 Bean <bean123ch@gnail.com>
39856 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39857 attribute, otherwise the size would be wrong for i386 platform.
39859 * include/grub/pci.h (grub_pci_read_word): New inline function.
39860 (grub_pci_read_byte): Likewise.
39861 (grub_pci_write): Likewise.
39862 (grub_pci_write_word): Likewise.
39863 (grub_pci_write_byte): Likewise.
39865 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39867 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39868 (find_framebuf): Scan pci to locate the frame buffer address.
39870 * commands/efi/fixvideo.c: New file.
39872 * commands/efi/loadbios.c: Likewise.
39874 * commands/memrw.c: Likewise.
39876 * util/grub-dumpbios.in: Likewise.
39878 * conf/common.rmk (grub-dumpbios): New utility.
39879 (pkglib_MODULES): New module memrw.mod.
39880 (memrw_mod_SOURCE): New macro.
39881 (memrw_mod_CFLAGS): Likewise.
39882 (memrw_mod_LDFLAGS): Likewise.
39884 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39886 (loadbios_mod_SOURCE): New macro.
39887 (loadbios_mod_CFLAGS): Likewise.
39888 (loadbios_mod_LDFLAGS): Likewise.
39889 (fixvideo_mod_SOURCE): Likewise.
39890 (fixvideo_mod_CFLAGS): Likewise.
39891 (fixvideo_mod_LDFLAGS): Likewise.
39893 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39895 (loadbios_mod_SOURCE): New macro.
39896 (loadbios_mod_CFLAGS): Likewise.
39897 (loadbios_mod_LDFLAGS): Likewise.
39898 (fixvideo_mod_SOURCE): Likewise.
39899 (fixvideo_mod_CFLAGS): Likewise.
39900 (fixvideo_mod_LDFLAGS): Likewise.
39902 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39904 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39906 2009-04-07 David S. Miller <davem@davemloft.net>
39908 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39909 support for R_SPARC_OLO10 relocations. Fix compile warning for
39910 R_SPARC_WDISP30 case.
39911 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39913 2009-04-06 Pavel Roskin <proski@gnu.org>
39915 * include/grub/misc.h (ARRAY_SIZE): New macro.
39916 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39918 * loader/i386/linux.c (allocate_pages): Use free_pages().
39919 (grub_linux_unload): Don't use free_pages().
39920 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39921 wrong index. Treat all other modes as text modes.
39922 (grub_cmd_linux): Initialize vid_mode unconditionally to
39923 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39925 * commands/help.c (print_command_help): Use cmd->prio, not
39926 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39928 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39932 * parttool/pcpart.c: new file
39933 * commands/parttool.c: likewise
39934 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39935 (parttool_mod_SOURCES): new variable
39936 (parttool_mod_CFLAGS): likewise
39937 (parttool_mod_LDFLAGS): likewise
39938 (pcpart_mod_SOURCES): likewise
39939 (pcpart_mod_CFLAGS): likewise
39940 (pcpart_mod_LDFLAGS): likewise
39941 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39942 and parttool/pcpart.c
39943 * conf/i386-efi.rmk: likewise
39944 * conf/i386-ieee1275.rmk: likewise
39945 * conf/i386-pc.rmk: likewise
39946 * conf/powerpc-ieee1275.rmk: likewise
39947 * conf/sparc64-ieee1275.rmk: likewise
39948 * conf/x86_64-ieee1275.rmk: likewise
39950 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39952 Support for mtime and further expandability of dir command
39954 * include/grub/lib/datetime.h: moved to ...
39955 * include/grub/datetime.h: ... moved here and added
39956 declaration of grub_unixtime2datetime. All users updated
39957 * include/grub/fs.h: new syntax for dir and mtime functions in
39959 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39960 and GRUB_FSHELP_FLAGS_MASK
39961 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39962 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39963 (grub_ext2_mtime): new function
39964 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39965 (grub_hfsplus_mtime): new function
39966 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39967 (GRUB_UFS_ATTR_FILE): likewise
39968 (GRUB_UFS_ATTR_LNK): likewise
39969 (struct grub_ufs_sblock): new fields mtime
39970 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39972 (grub_ufs_dir): mtime support
39973 (grub_ufs_mtime): new function
39974 * fs/affs.c (grub_affs_dir): use new dir syntax
39975 * fs/afs.c (grub_afs_dir): likewise
39976 * fs/cpio.c (grub_cpio_dir): likewise
39977 * fs/fat.c (grub_fat_find_dir): likewise
39978 * fs/hfs.c (grub_hfs_dir): likewise
39979 * fs/iso9660.c (grub_iso9660_dir): likewise
39980 * fs/jfs.c (grub_jfs_dir): likewise
39981 * fs/minix.c (grub_minix_dir): likewise
39982 * fs/ntfs.c (grub_ntfs_dir): likewise
39983 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39984 * fs/sfs.c (grub_sfs_dir): likewise
39985 * fs/xfs.c (grub_xfs_dir): likewise
39986 * util/hostfs.c (grub_hostfs_dir): likewise
39987 * lib/datetime.c: moved to ...
39988 * normal/datetime.c: ... moved here
39989 (grub_unixtime2datetime): new function
39990 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39991 * normal/completion.c (iterate_dir): use new dir syntax
39992 * normal/misc.c (grub_normal_print_device_info): tell the
39993 last modification time of a volume
39994 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39995 * conf/common.rmk: added lib/datetime.c to ls.mod
39996 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39997 (normal_mod_SOURCES): likewise
39998 (datetime_mod_SOURCES): Removed lib/datetime.c
39999 * conf/i386-efi.rmk: likewise
40000 * conf/i386-ieee1275.rmk: likewise
40001 * conf/i386-pc.rmk: likewise
40002 * conf/powerpc-ieee1275.rmk: likewise
40003 * conf/sparc64-ieee1275.rmk: likewise
40004 * conf/x86_64-efi.rmk: likewise
40006 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40008 Trim trailing spaces in FAT label and support mtools-like labels
40010 * fs/fat.c (grub_fat_iterate_dir): New function based
40011 on grub_fat_find_dir
40012 (grub_fat_find_dir): use grub_fat_iterate_dir
40013 (grub_fat_label): likewise
40015 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40017 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40019 remove extraneous kernel_elf_HEADERS
40021 2009-04-04 Bean <bean123ch@gnail.com>
40023 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40025 * util/misc.c: Likewise.
40027 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40029 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40030 instead of grub_printf.
40032 2009-04-03 Robert Millan <rmh@aybabtu.com>
40034 * loader/i386/linux.c (grub_linux_setup_video): Fill
40035 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40036 values from `mode info' structure instead of hardcoded
40039 2009-04-01 Pavel Roskin <proski@gnu.org>
40041 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40043 * genmk.rb: Likewise.
40044 * configure.ac: Likewise.
40046 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40048 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40049 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40051 2009-04-01 David S. Miller <davem@davemloft.net>
40053 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40054 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40055 (grub_setjmp): Mark with 'returns_twice' attribute.
40056 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40057 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40058 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40060 2009-04-01 Robert Millan <rmh@aybabtu.com>
40062 Reapply fix from 2008-07-28 which was accidentally reverted; also
40063 perform the same fix to a similar check in same function.
40065 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40066 with the same number are found, just use issue a warning with
40067 grub_dprintf(), as this error has been reported to be non-fatal.
40069 2009-03-31 Pavel Roskin <proski@gnu.org>
40071 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40072 for cross-compilation.
40074 2009-03-30 Robert Millan <rmh@aybabtu.com>
40076 Fix i386-ieee1275 build.
40078 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40079 Remove declaration.
40081 2009-03-30 Pavel Roskin <proski@gnu.org>
40083 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40084 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40085 zero-terminated, rely only on the strlen value. Fix comparison
40086 of strings differing in length.
40088 2009-03-30 Robert Millan <rmh@aybabtu.com>
40090 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40091 checking for abi version. Improve error messages on BIOS to notify
40092 user about `linux16' command.
40094 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40098 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40099 in case of collision
40100 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40102 2009-03-29 Robert Millan <rmh@aybabtu.com>
40104 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40105 set `vid_mode' accordingly.
40106 (grub_linux_boot): Process `vid_mode' and set video mode.
40108 2009-03-29 Robert Millan <rmh@aybabtu.com>
40110 * util/grub.d/10_linux.in (linux_entry): New function.
40111 Factorize generation of Linux boot entries.
40113 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40115 Make the format of Environment Block plain text. The boot loader
40116 part is not tested well yet.
40118 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40120 (envblk): Likewise.
40121 (usage): Remove "info" and "clear". Add "unset". Update the
40122 description of "set", as this does not delete variables any
40124 (create_envblk_file): Complete rewrite.
40125 (open_envblk_file): Likewise.
40126 (cmd_info): Removed.
40127 (cmd_list): Likewise.
40128 (cmd_set): Likewise.
40129 (cmd_clear): Likewise.
40130 (list_variables): New function.
40131 (write_envblk): Likewise.
40132 (set_variables): Likewise.
40133 (unset_variables): Likewise.
40134 (main): Complete rewrite.
40136 * commands/loadenv.c (buffer): Removed.
40137 (envblk): Likewise.
40138 (open_envblk_file): New function.
40139 (read_envblk_file): Complete rewrite.
40140 (grub_cmd_load_env): Likewise.
40141 (grub_cmd_list_env): Likewise.
40142 (struct blocklist): New struct.
40143 (free_blocklists): New function.
40144 (check_blocklists): Likewise.
40145 (write_blocklists): Likewise.
40146 (grub_cmd_save_env): Complete rewrite.
40148 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40149 a plain text signature.
40150 (GRUB_ENVBLK_MAXLEN): Removed.
40151 (struct grub_envblk): Complete rewrite.
40152 (grub_envblk_find): Removed.
40153 (grub_envblk_insert): Likewise.
40154 (grub_envblk_open): New prototype.
40155 (grub_envblk_set): Likewise.
40156 (grub_envblk_delete): Put const to VALUE.
40157 (grub_envblk_iterate): Put const to NAME and VALUE.
40158 (grub_envblk_close): New prototype.
40159 (grub_envblk_buffer): New inline function.
40160 (grub_envblk_size): Likewise.
40162 * lib/envblk.c: Include grub/mm.h.
40163 (grub_env_find): Removed.
40164 (grub_envblk_open): New function.
40165 (grub_envblk_close): Likewise.
40166 (escaped_value_len): Likewise.
40167 (find_next_line): Likewise.
40168 (grub_envblk_insert): Removed.
40169 (grub_envblk_set): New function.
40170 (grub_envblk_delete): Complete rewrite.
40171 (grub_envblk_iterate): Likewise.
40173 2009-03-28 Robert Millan <rmh@aybabtu.com>
40175 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40176 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40177 variables. Use 16-bit loader.
40178 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40180 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40181 (grub_linux16_boot): ... this. Update all users.
40182 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40183 (grub_linux_boot): ... this. Update all users.
40185 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40186 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40187 commands to `linux16' and `initrd16'.
40188 (GRUB_MOD_FINI(linux)): Rename to ...
40189 (GRUB_MOD_FINI(linux16)): ... this.
40191 2009-03-24 Pavel Roskin <proski@gnu.org>
40193 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40194 not just for compilation.
40196 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40198 Move multiboot helper out of kernel
40200 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40201 `loader/i386/multiboot_helper.S'.
40202 * conf/i386-coreboot.rmk: Likewise
40203 * conf/i386-ieee1275.rmk: Likewise
40205 * kern/i386/loader.S: Move multiboot helpers from here...
40206 * loader/i386/multiboot_helper.S: ...moved here
40207 * include/grub/i386/loader.h: Move declarations of multiboot
40208 helpers from here...
40209 * include/grub/i386/multiboot.h: ...moved here
40210 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40212 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40214 * kern/env.c (grub_env_context_open): Added an argument to specify
40215 whether a new context inherits exported variables from current
40216 one. This is useful when making a sandbox to interpret a config
40218 All callers updated.
40220 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40222 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40224 * kern/env.c (grub_env_context_close): Fix memory leaks.
40226 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40228 * normal/main.c (grub_normal_execute): Added an argument
40229 BATCH to specify if an interactive interface should be provided
40230 after reading a config file.
40231 All callers updated.
40232 (read_command_list): Prevent being executed twice.
40233 (read_fs_list): Likewise.
40235 * include/grub/normal.h (grub_normal_execute): Updated the
40238 2009-03-22 Pavel Roskin <proski@gno.org>
40240 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40242 * kern/i386/pc/startup.S: Likewise.
40243 * kern/i386/efi/startup.S: Likewise.
40244 * kern/i386/ieee1275/startup.S: Likewise.
40245 * kern/i386/coreboot/startup.S: Likewise.
40246 * kern/x86_64/efi/startup.S: Likewise.
40248 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40249 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40250 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40252 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40254 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40256 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40258 Use vaddr of correct segment for entry_point.
40260 2009-03-21 Bean <bean123ch@gmail.com>
40262 * commands/blocklist.c: Add include file <grub/command.h>, remove
40263 <grub/normal.h> and <grub/arg.h>.
40264 (grub_cmd_blocklist): Use the new command interface.
40265 (GRUB_MOD_INIT): Likewise.
40266 (GRUB_MOD_FINI): Likewise.
40267 * commands/boot.c: Likewise.
40268 * commands/cat.c: Likewise.
40269 * commands/cmp.c: Likewise.
40270 * commands/configfile.c: Likewise.
40271 * commands/crc.c: Likewise.
40272 * commands/echo.c: Likewise.
40273 * commands/halt.c: Likewise.
40274 * commands/handler.c: Likewise.
40275 * commands/hdparm.c: Likewise.
40276 * commands/help.c: Likewise.
40277 * commands/hexdump.c: Likewise.
40278 * commands/loadenv.c: Likewise.
40279 * commands/ls.c: Likewise.
40280 * commands/lsmmap.c: Likewise.
40281 * commands/lspci.c: Likewise.
40282 * commands/loadenv.c: Likewise.
40283 * commands/read.c: Likewise.
40284 * commands/reboot.c: Likewise.
40285 * commands/search.c: Likewise.
40286 * commands/sleep.c: Likewise.
40287 * commands/test.c: Likewise.
40288 * commands/usbtest.c: Likewise.
40289 * commands/videotest.c: Likewise.
40290 * commands/i386/cpuid.c: Likewise.
40291 * commands/i386/pc/halt.c: Likewise.
40292 * commands/i386/pc/play.c: Likewise.
40293 * commands/i386/pc/pxecmd.c: Likewise.
40294 * commands/i386/pc/vbeinfo.c: Likewise.
40295 * commands/i386/pc/vbetest.c: Likewise.
40296 * commands/ieee1275/suspend.c: Likewise.
40297 * disk/loopback.c: Likewise.
40298 * font/font_cmd.c: Likewise.
40299 * hello/hello.c: Likewise.
40300 * loader/efi/appleloader.c: Likewise.
40301 * loader/efi/chainloader.c: Likewise.
40302 * loader/i386/bsd.c: Likewise.
40303 * loader/i386/efi/linux.c: Likewise.
40304 * loader/i386/ieee1275/linux.c: Likewise.
40305 * loader/i386/linux.c: Likewise.
40306 * loader/i386/pc/chainloader.c: Likewise.
40307 * loader/i386/pc/linux.c: Likewise.
40308 * loader/powerpc/ieee1275/linux.c: Likewise.
40309 * loader/multiboot_loader.c: Likewise.
40310 * term/gfxterm.c: Likewise.
40311 * term/i386/pc/serial.c: Likewise.
40312 * term/terminfo.c: Likewise.
40314 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40315 * term/i386/pc/vga.c: Likewise.
40316 * video/readers/jpeg.c: Likewise.
40317 * video/readers/png.c: Likewise.
40318 * video/readers/tga.c: Likewise.
40320 * util/grub-fstest (cmd_loopback): Removed.
40321 (cmd_blocklist): Likewise.
40322 (cmd_ls): Likewise.
40323 (grub_register_command): Likewise.
40324 (grub_unregister_command): Likewise.
40325 (execute_command): Use grub_command_find to locate command and execute
40328 * include/grub/efi/chainloader.h: Removed.
40329 * loader/efi/chainloader_normal.c: Likewise.
40330 * loader/i386/bsd_normal.c: Likewise.
40331 * loader/i386/pc/chainloader_normal.c: Likewise.
40332 * loader/i386/pc/multiboot_normal.c: Likewise.
40333 * loader/linux_normal.c: Likewise.
40334 * loader/multiboot_loader_normal.c: Likewise.
40335 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40337 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40338 and grub_register_command_p1.
40340 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40341 kern/command.c, lib/arg.c and commands/extcmd.c.
40342 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40343 (minicmd_mod_SOURCES): New variable.
40344 (minicmd_mod_CFLAGS): Likewise.
40345 (minicmd_mod_LDFLAGS): Likewise.
40346 (extcmd_mod_SOURCES): Likewise.
40347 (extcmd_mod_CFLAGS): Likewise.
40348 (extcmd_mod_LDFLAGS): Likewise.
40349 (boot_mod_SOURCES): Removed.
40350 (boot_mod_CFLAGS): Likewise.
40351 (boot_mod_LDFLAGS): Likewise.
40353 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40355 (kernel_img_HEADERS): Add command.h.
40356 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40357 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40359 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40360 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40361 remove the corresponding normal mode command.
40362 (normal_mod_SOURCES): Remove normal/arg.c.
40363 * conf/i386-coreboot.rmk: Likewise.
40364 * conf/i386-efi.rmk: Likewise.
40365 * conf/i386-ieee1275.rmk: Likewise.
40366 * conf/powerpc-ieee1275.rmk: Likewise.
40367 * conf/x86_64-efi.rmk: Likewise.
40369 * include/grub/arg.h: Move from here ...
40370 * include/grub/lib/arg.h: ... to here.
40372 * normal/arg.c: Move from here ...
40373 * lib/arg.c: ... to here.
40375 * commands/extcmd.c: New file.
40376 * commands/minicmd.c: Likewise.
40377 * include/grub/command.h: Likewise.
40378 * include/grub/extcmd.h: Likewise.
40379 * kern/command.c: Likewise.
40380 * kern/corecmd.c: Likewise.
40382 * kern/list.c (grub_list_iterate): Return int instead of void.
40383 (grub_list_insert): New function.
40384 (grub_prio_list_insert): Likewise.
40386 * kern/rescue.c (grub_rescue_command): Removed.
40387 (grub_rescue_command_list): Likewise.
40388 (grub_rescue_register_command): Likewise.
40389 (grub_rescue_unregister_command): Likewise.
40390 (grub_rescue_cmd_boot): Move to minicmd.c
40391 (grub_rescue_cmd_help): Likewise.
40392 (grub_rescue_cmd_info): Likewise.
40393 (grub_rescue_cmd_boot): Likewise.
40394 (grub_rescue_cmd_testload): Likewise.
40395 (grub_rescue_cmd_dump): Likewise.
40396 (grub_rescue_cmd_rmmod): Likewise.
40397 (grub_rescue_cmd_lsmod): Likewise.
40398 (grub_rescue_cmd_exit): Likewise.
40399 (grub_rescue_print_devices): Moved to corecmd.c.
40400 (grub_rescue_print_files): Likewise.
40401 (grub_rescue_cmd_ls): Likewise.
40402 (grub_rescue_cmd_insmod): Likewise.
40403 (grub_rescue_cmd_set): Likewise.
40404 (grub_rescue_cmd_unset): Likewise.
40405 (attempt_normal_mode): Use grub_command_find to get normal module.
40406 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40407 commands, remove grub_rescue_register_command calls.
40409 * normal/command.c (grub_register_command): Removed.
40410 (grub_unregister_command): Likewise.
40411 (grub_command_find): Likewise.
40412 (grub_iterate_commands): Likewise.
40413 (rescue_command): Likewise.
40414 (export_command): Moved to corecmd.c.
40415 (set_command): Removed.
40416 (unset_command): Likewise.
40417 (insmod_command): Likewise.
40418 (rmmod_command): Likewise.
40419 (lsmod_command): Likewise.
40420 (grub_command_init): Likewise.
40422 * normal/completion.c (iterate_command): Use cmd->prio to check for
40424 (complete_arguments): Use grub_extcmd_t structure to find options.
40425 (grub_normal_do_completion): Change function grub_iterate_commands to
40426 grub_command_iterate.
40428 * normal/execute.c (grub_script_execute_cmd): No need to parse
40431 * normal/main.c (grub_dyncmd_dispatcher): New function.
40432 (read_command_list): Register unload commands as dyncmd.
40433 (grub_cmd_normal): Use new command interface, register rescue,
40434 unregister normal at entry, register normal, unregister rescue at exit.
40436 * include/grub/list.h (grub_list_test_t): New type.
40437 (grub_list_iterate): Return int instead of void.
40438 (grub_list_insert): New function.
40439 (GRUB_AS_NAMED_LIST_P): New macro.
40440 (GRUB_AS_PRIO_LIST): Likewise.
40441 (GRUB_AS_PRIO_LIST_P): Likewise.
40442 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40443 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40444 (grub_prio_list): New structure.
40445 (grub_prio_list_insert): New function.
40446 (grub_prio_list_remove): New inline function.
40448 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40449 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40450 (GRUB_COMMAND_FLAG_MENU): Likewise.
40451 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40452 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40453 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40454 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40455 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40456 (grub_command): Likewise.
40457 (grub_register_command): Likewise.
40458 (grub_command_find): Likewise.
40459 (grub_iterate_commands): Likewise.
40460 (grub_command_init): Likewise.
40461 (grub_arg_parse): Likewise.
40462 (grub_arg_show_help): Likewise.
40464 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40465 (grub_rescue_unregister_command): Likewise.
40467 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40468 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40469 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40471 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40472 grub_rescue_cmd_initrd.
40473 * include/grub/i386/loader.h: Likewise.
40474 * include/grub/x86_64/loader.h: Likewise.
40476 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40478 2009-03-21 Bean <bean123ch@gmail.com>
40480 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40481 instead of stat in mingw environment.
40483 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40485 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40487 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40490 2009-03-21 Bean <bean123ch@gmail.com>
40492 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40493 out of range error.
40495 2009-03-18 Michel Dänzer <michel@daenzer.net>
40497 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40498 checking inode flags for EXT4_EXTENTS_FLAG.
40500 2009-03-18 Robert Millan <rmh@aybabtu.com>
40502 * loader/i386/linux.c: Include `<grub/video.h>' and
40503 `<grub/i386/pc/vbe.h>'..
40504 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40505 (grub_linux32_boot): Attempt to configure video settings with
40506 grub_linux_setup_video().
40507 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40508 to avoid grub_console_fini() which would step out of graphical mode
40511 2009-03-14 Robert Millan <rmh@aybabtu.com>
40513 Fix build on powerpc.
40514 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40516 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40518 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40519 background image command.
40521 2009-03-12 Colin D Bennett <colin@gibibit.com>
40523 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40524 (grub_gfxterm_putchar): Extract pairs of identical calls to
40525 draw_cursor out of conditional blocks.
40527 2009-03-11 Pavel Roskin <proski@gnu.org>
40529 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40530 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40532 2009-03-11 Robert Millan <rmh@aybabtu.com>
40534 * loader/i386/multiboot_elfxx.c
40535 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40537 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40539 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40542 2009-03-11 Robert Millan <rmh@aybabtu.com>
40544 * loader/i386/multiboot.c (code_size): New variable.
40545 (grub_multiboot): Define offsets by adding to `code_size' rather
40546 than subtracting from `grub_multiboot_payload_size'. Provide
40547 4-byte alignment to MBI and others by increasing
40548 `boot_loader_name_length' appropriately.
40550 * loader/i386/multiboot_elfxx.c
40551 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40553 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40558 2009-03-08 Robert Millan <rmh@aybabtu.com>
40560 Make loader/i386/linux.c usable on i386-pc again.
40562 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40564 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40567 2009-03-07 Bean <bean123ch@gmail.com>
40569 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40572 2009-03-06 Robert Millan <rmh@aybabtu.com>
40574 Fix display issue on terminals with screen size other than 80x25
40575 (e.g. gfxterm with resolution higher than 640x480).
40577 * normal/main.c (grub_normal_init_page): Display title text in a
40578 position relative to the center of the terminal instead of relying
40579 on a hardcoded offset.
40581 2009-03-04 Robert Millan <rmh@aybabtu.com>
40583 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40586 * Makefile.in (host_kernel): New variable.
40587 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40588 scripts instead of just the windows one.
40589 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40591 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40593 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40595 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40596 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40597 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40599 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40600 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40602 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40604 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40605 or if there's no space for the disk label and print the partition number on a
40608 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40610 * util/misc.c: Include <time.h>.
40611 (grub_millisleep): New function.
40613 2009-03-04 Bean <bean123ch@gmail.com>
40615 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40616 another option -mno-red-zone.
40618 * commands/handler.c: Change module description.
40620 * kern/handler.c: Add missing space at the end of description line.
40622 * kern/list.c: Likewise.
40624 2009-03-03 Robert Millan <rmh@aybabtu.com>
40626 Move more components to the relocation area, and fix mbi pointer
40627 handling to use the destination rather than the origin (thanks to
40628 Vladimir Serbinenko for spotting).
40630 * loader/i386/multiboot.c (mbi_dest): New variable.
40631 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40632 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40635 2009-03-01 Bean <bean123ch@gmail.com>
40637 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40638 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40639 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40640 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40642 * loader/i386/efi/linux.c (acpi_guid): New variable.
40643 (acpi_guid): Likewise.
40644 (EBDA_SEG_ADDR): New constant.
40645 (LOW_MEM_ADDR): Likewise.
40646 (FAKE_EBDA_SEG): Likewise.
40647 (fake_bios_data): New function.
40648 (grub_linux_boot): Call fake_bios_data.
40650 2009-03-01 Bean <bean123ch@gmail.com>
40652 * commands/terminal.c: Removed.
40654 * commands/handler.c: New file.
40656 * include/grub/list.h: Likewise.
40658 * include/grub/handler.h: Likewise.
40660 * kern/list.c: Likewise.
40662 * kern/handler.c: Likewise.
40664 * kern/term.h: Include header file <grub/handler.h>.
40665 (grub_term_input): Move next field to the beginning.
40666 (grub_term_output): Likewise.
40667 (grub_term_input_class): New variable.
40668 (grub_term_output_class): Likewise.
40669 (grub_term_register_input): Changed to inline function.
40670 (grub_term_register_output): Likewise.
40671 (grub_term_unregister_input): Likewise.
40672 (grub_term_unregister_output): Likewise.
40673 (grub_term_set_current_input): Likewise.
40674 (grub_term_set_current_output): Likewise.
40675 (grub_term_get_current_input): Likewise.
40676 (grub_term_get_current_output): Likewise.
40677 (grub_term_iterate_input): Removed.
40678 (grub_term_iterate_output): Likewise.
40680 * kern/term.c (grub_term_list_input): Removed.
40681 (grub_term_list_output): Likewise.
40682 (grub_term_input_class): New variable.
40683 (grub_term_output_class): Likewise.
40684 (grub_cur_term_input): Change variable as macro.
40685 (grub_cur_term_output): Likewise.
40686 (grub_term_register_input): Removed.
40687 (grub_term_register_output): Likewise.
40688 (grub_term_unregister_input): Likewise.
40689 (grub_term_unregister_output): Likewise.
40690 (grub_term_set_current_input): Likewise.
40691 (grub_term_set_current_output): Likewise.
40692 (grub_term_iterate_input): Likewise.
40693 (grub_term_iterate_output): Likewise.
40694 (grub_term_get_current_input): Likewise.
40695 (grub_term_get_current_output): Likewise.
40697 * util/grub-editenv.c: Include header file <grub/handler.h>.
40698 (grub_term_get_current_input): Removed.
40699 (grub_term_get_current_output): Likewise.
40700 (grub_term_input_class): New variable.
40701 (grub_term_output_class): Likewise.
40703 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40704 (grub_term_get_current_output): Likewise.
40705 (grub_term_input_class): New variable.
40706 (grub_term_output_class): Likewise.
40708 * util/grub-probe.c (grub_term_get_current_input): Removed.
40709 (grub_term_get_current_output): Likewise.
40710 (grub_term_input_class): New variable.
40711 (grub_term_output_class): Likewise.
40713 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40714 (grub_term_get_current_output): Likewise.
40715 (grub_term_input_class): New variable.
40716 (grub_term_output_class): Likewise.
40718 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40719 (terminal_mod_SOURCES): Likewise.
40720 (terminal_mod_CFLAGS): Likewise.
40721 (terminal_mod_LDFLAGS): Likewise.
40723 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40725 (kernel_img_SOURCES): Add list.c and handler.c.
40726 (kernel_img_HEADERS): Add list.h and handler.h.
40728 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40730 (kernel_mod_SOURCES): Add list.c and handler.c.
40731 (kernel_mod_HEADERS): Add list.h and handler.h.
40733 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40735 (kernel_elf_SOURCES): Add list.c and handler.c.
40736 (kernel_elf_HEADERS): Add list.h and handler.h.
40738 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40740 (kernel_elf_SOURCES): Add list.c and handler.c.
40741 (kernel_elf_HEADERS): Add list.h and handler.h.
40743 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40745 (kernel_mod_SOURCES): Add list.c and handler.c.
40746 (kernel_mod_HEADERS): Add list.h and handler.h.
40748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40750 (kernel_elf_SOURCES): Add list.c and handler.c.
40751 (kernel_elf_HEADERS): Add list.h and handler.h.
40753 2009-02-27 Robert Millan <rmh@aybabtu.com>
40755 Factorize elf32 / elf64 code in Multiboot loader. This will
40756 prevent it from getting out of sync again.
40758 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40759 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40760 grub_multiboot_load_elf64): Move from here ...
40761 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40762 grub_multiboot_load_elf): ... to here (new file).
40764 2009-02-27 Robert Millan <rmh@aybabtu.com>
40766 * util/grub.d/10_linux.in: Rename "single-user mode" to
40769 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40771 Don't leak in SCSI code.
40772 * disk/scsi.c (grub_scsi_close): free `scsi'.
40774 2009-02-27 Robert Millan <rmh@aybabtu.com>
40776 * loader/i386/pc/multiboot.c: Move from here ...
40777 * loader/i386/multiboot.c: ... to here. Update all users.
40779 2009-02-27 Robert Millan <rmh@aybabtu.com>
40781 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40782 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40784 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40786 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40789 2009-02-27 Robert Millan <rmh@aybabtu.com>
40791 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40792 `0x' qualifier as 0 when base is specified as parameter).
40794 2009-02-24 Bean <bean123ch@gmail.com>
40796 * configure.ac: Check for -mcmodel=large in x86_64 target.
40798 * include/grub/efi/api.h (efi_call_10): New macro.
40799 (efi_wrap_10): New function.
40801 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40802 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40803 (GRUB_PE32_REL_BASED_LOW): Likewise.
40804 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40805 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40806 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40807 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40808 (GRUB_PE32_REL_BASED_REL): Likewise.
40809 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40810 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40811 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40813 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40816 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40817 (efi_wrap_10): New function.
40819 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40821 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40822 MB/MBP model (NV chipset).
40823 (devdata_devs): Add devpath_5 to the list.
40825 * load/i386/efi/linux.c (video_base): Remove variable.
40826 (RGB_MASK): New macro.
40827 (RGB_MAGIC): Likewise.
40828 (LINE_MIN): Likewise.
40829 (LINE_MAX): Likewise.
40830 (FBTEST_STEP): Likewise.
40831 (FBTEST_COUNT): Likewise.
40832 (fb_list): New variable.
40833 (grub_find_video_card): Remove function.
40834 (find_framebuf): New function.
40835 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40838 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40839 problem for x86_64.
40841 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40843 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40845 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40848 2009-02-22 Robert Millan <rmh@aybabtu.com>
40850 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40851 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40852 in our relocation, instead of using it directly from heap. Also
40853 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40855 2009-02-21 Robert Millan <rmh@aybabtu.com>
40857 Implement USB keyboard support (based on patch by Marco Gerards)
40859 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40860 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40861 (usb_keyboard_mod_LDFLAGS): New variables.
40863 * term/usb_keyboard.c: New file.
40865 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40867 Corrected wrong declaration
40869 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40871 2009-02-14 Christian Franke <franke@computer.org>
40873 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40874 (grub_lspci_iter): Print class code and programming interface byte.
40876 2009-02-14 Christian Franke <franke@computer.org>
40878 * gendistlist.sh: Ignore `.svn' directories.
40880 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40882 * fs/fat.c: Add 2009 to Copyright line.
40884 2009-02-14 Christian Franke <franke@computer.org>
40886 * commands/hdparm.c: New file. Provides `hdparm' command
40887 which sends ATA commands via grub_disk_ata_pass_through ().
40889 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40891 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40892 and <grub/cpu/io.h> to include/grub/ata.h.
40893 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40894 (GRUB_CDROM_SECTOR_SIZE): Remove.
40895 (GRUB_ATA_*): Move to include/grub/ata.h.
40896 (GRUB_ATAPI_*): Likewise.
40897 (enum grub_ata_commands): Likewise.
40898 (enum grub_ata_timeout_milliseconds): Likewise.
40899 (struct grub_ata_device): Likewise.
40900 (grub_ata_regset): Likewise.
40901 (grub_ata_regget): Likewise.
40902 (grub_ata_regset2): Likewise.
40903 (grub_ata_regget2): Likewise.
40904 (grub_ata_check_ready): Likewise.
40905 (grub_ata_wait_not_busy): Remove static, exported in
40906 include/grub/ata.h.
40907 (grub_ata_wait_drq): Likewise.
40908 (grub_ata_pio_read): Likewise.
40910 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40911 function for hdparm.mod.
40913 * include/grub/ata.h: New file, contains declarations from
40915 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40917 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40918 (grub_disk_ata_pass_through): New exported variable.
40920 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40922 2009-02-13 Colin D Bennett <colin@gibibit.com>
40924 Support multiple fallback entries, and provide an API to support
40925 executing default+fallback menu entries. Renamed the `terminal' menu
40928 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40929 variable declaration.
40930 (grub_menu_execute_callback): New structure declaration.
40931 (grub_menu_execute_callback_t): New typedef.
40932 (grub_menu_execute_with_fallback): New function declaration.
40933 (grub_menu_get_entry): Likewise.
40934 (grub_menu_get_timeout): Likewise.
40935 (grub_menu_set_timeout): Likewise.
40937 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40939 * normal/menu.c (grub_wait_after_message): Moved to
40940 `normal/menu_text.c'.
40941 (draw_border): Likewise.
40942 (print_message): Likewise.
40943 (print_entry): Likewise.
40944 (print_entries): Likewise.
40945 (grub_menu_init_page): Likewise.
40946 (get_entry_number): Likewise.
40947 (print_timeout): Likewise.
40948 (run_menu): Likewise.
40949 (grub_menu_execute_entry): Likewise.
40950 (show_text_menu): Likewise.
40951 (get_and_remove_first_entry_number): New function.
40952 (grub_menu_execute_with_fallback): Likewise.
40953 (get_entry): Renamed to ...
40954 (grub_menu_get_entry): .. this and made it global.
40955 (get_timeout): Renamed to ...
40956 (grub_menu_get_timeout): ... this and made it global.
40957 (set_timeout): Renamed to ...
40958 (grub_menu_set_timeout): ... this and made it global.
40959 (grub_normal_terminal_menu_viewer): Renamed to ...
40960 (grub_normal_text_menu_viewer): ... this.
40962 * normal/menu_text.c: New file. Extracted text-menu-specific code
40963 from normal/menu.c.
40965 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40966 (normal_mod_SOURCES): Likewise.
40968 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40969 (normal_mod_SOURCES): Likewise.
40971 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40972 (normal_mod_SOURCES): Likewise.
40974 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40975 (normal_mod_SOURCES): Likewise.
40977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40978 (normal_mod_SOURCES): Likewise.
40980 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40981 (normal_mod_SOURCES): Likewise.
40983 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40984 (normal_mod_SOURCES): Likewise.
40986 2009-02-11 Robert Millan <rmh@aybabtu.com>
40988 * util/grub.d/00_header.in: Update old reference to `font' command.
40990 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40992 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40994 Based on patch from Javier Martín.
40996 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40998 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40999 to avoid false positives with FAT.
41000 (grub_fstest_SOURCES): Likewise.
41001 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41002 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41004 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41006 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41008 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41010 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41011 bpb.version_specific.fat12_or_fat16.fstype and
41012 bpb.version_specific.fat32.fstype.
41014 2009-02-08 Robert Millan <rmh@aybabtu.com>
41016 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41018 2009-02-08 Robert Millan <rmh@aybabtu.com>
41020 * Makefile.in (host_os, host_cpu): New variables.
41021 (target_os): Remove. Update all users.
41023 2009-02-08 Marco Gerards <marco@gnu.org>
41025 * Makefile.in (enable_grub_emu_usb): New variable.
41026 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41027 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41028 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41029 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41030 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41031 `usbtest.mod' and `usbms.mod'.
41032 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41033 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41034 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41035 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41036 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41039 * disk/usbms.c: New file.
41041 * include/grub/usb.h: Likewise.
41043 * include/grub/usbtrans.h: Likewise.
41045 * include/grub/usbdesc.h: Likewise.
41047 * bus/usb/usbtrans.c: Likewise.
41049 * bus/usb/ohci.c: Likewise.
41051 * bus/usb/uhci.c: Likewise.
41053 * bus/usb/usbhub.c: Likewise.
41055 * bus/usb/usb.c: Likewise.
41057 * commands/usbtest.c: Likewise.
41059 * util/usb.c: Likewise.
41061 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41063 * configure.ac: Test for libusb presence.
41065 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41067 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41069 * kern/mm.c: Add more comments.
41071 2009-02-08 Robert Millan <rmh@aybabtu.com>
41073 Patch from Javier Martín.
41074 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41075 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41077 2009-02-08 Robert Millan <rmh@aybabtu.com>
41079 * fs/cpio.c: Split tar functionality to ...
41080 * fs/tar.c: ... here (new file). Update all users.
41082 2009-02-07 Robert Millan <rmh@aybabtu.com>
41084 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41085 backward-incompatible features.
41087 Based on patch from Javier Martín, with some adjustments.
41089 2009-02-07 Michael Scherer <misc@mandriva.org>
41091 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41093 2009-02-07 Robert Millan <rmh@aybabtu.com>
41095 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41096 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41097 after the RAID stuff.
41099 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41101 Fixes problem when running vbetest command as reported by
41102 Vladimir Serbinenko <phcoder@gmail.com>.
41104 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41106 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41108 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41109 /dev/md/NpN style mdraid devices.
41111 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41113 * util/unifont2pff.rb: Remove.
41115 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41117 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41120 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41122 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41123 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41124 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41125 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41127 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41128 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41130 2009-02-02 Christian Franke <franke@computer.org>
41132 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41134 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41136 * INSTALL: Note that we now require at least autoconf 2.59 and
41137 that LZO is optional.
41139 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41141 Base on patch on bug #24154 created by Tomas Tintera
41142 <trosos@seznam.cz>.
41144 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41146 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41148 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41149 <bero@arklinux.org>.
41151 * normal/parser.y (script_init): Add missing semicolon.
41153 2009-01-31 Colin D Bennett <colin@gibibit.com>
41155 * normal/main.c: Add include to grub/menu_viewer.h.
41156 (free_menu_entry_classes): Added.
41157 (grub_normal_menu_addentry): Added class property handling.
41158 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41159 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41161 * normal/menu_viewer.c: New file.
41163 * normal/menu.c (run_menu_entry): Renamed to ...
41164 (grub_menu_execute_entry): ... this and made it as global.
41165 (grub_menu_run): Renamed to ...
41166 (show_text_menu): ... this and made it local.
41167 (show_text_menu): Adapt to new function names.
41168 (grub_normal_terminal_menu_viewer): New global variable.
41170 * include/grub/menu.h: New file.
41172 * include/grub/menu_viewer.h: New file.
41174 * include/grub/normal.h: Added include to grub/menu.h.
41175 (grub_menu_entry): Moved to include/grub/menu.h.
41176 (grub_menu_entry_t): Likewise.
41177 (grub_menu): Likewise.
41178 (grub_menu_t): Likewise.
41179 (grub_normal_terminal_menu_viewer): Added.
41180 (grub_menu_execute_entry): Likewise.
41181 (grub_menu_run): Removed.
41183 * DISTLIST: Added include/grub/menu.h.
41184 Added include/grub/menu_viewer.h.
41185 Added normal/menu_viewer.c.
41187 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41189 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41190 arglist for menutitle arguments.
41192 * normal/main.c (grub_normal_menu_addentry): Likewise.
41194 * normal/parser.y (menuentry): Likewise.
41196 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41198 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41199 (grub_script_create_cmdmenu): Likewise.
41201 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41203 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41206 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41208 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41210 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41212 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41214 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41216 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41218 2009-01-30 Christian Franke <franke@computer.org>
41220 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41221 in option help text.
41223 2009-01-27 Pavel Roskin <proski@gnu.org>
41225 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41227 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41229 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41231 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41233 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41234 unregister function.
41236 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41238 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41240 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41242 * util/grub-mkfont.c (usage): Fix typo.
41244 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41246 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41248 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41250 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41252 * kern/misc.c (grub_strcasecmp): New function.
41253 (grub_strcasecmp): Use grub_size_t instead of int for length.
41255 * include/grub/misc.h: Update function prototypes.
41257 2009-01-26 Robert Millan <rmh@aybabtu.com>
41259 * configure.ac: Fix cross-compilation check.
41261 2009-01-22 Christian Franke <franke@computer.org>
41263 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41264 (precision) digit string. Allow `.format2' without `format1' (width).
41265 Limit input chars for `%s' output to `format2' if specified. This is
41266 compatible with standard printf ().
41268 2009-01-22 Christian Franke <franke@computer.org>
41270 * disk/ata.c (grub_ata_wait_status): Replace by ...
41271 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41272 other status bits may be invalid while BSY is asserted.
41273 (grub_ata_check_ready): New function.
41274 (grub_ata_cmd): Removed.
41275 (grub_ata_wait_drq): New function.
41276 (grub_ata_strncpy): Remove inline.
41277 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41278 and error check now done by grub_ata_wait_drq ().
41279 (grub_ata_pio_write): Likewise.
41280 (grub_atapi_identify): Set DEV before check for !BSY. Use
41281 grub_ata_wait_drq () to wait for data.
41282 (grub_ata_device_initialize): Add status register check to
41283 detect missing SATA slave devices. Add debug messages.
41284 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41285 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41286 transfer loop by grub_ata_pio_write ().
41287 (grub_ata_identify): Set DEV before check for !BSY. Use
41288 grub_ata_wait_drq () to wait for data.
41289 (grub_ata_setaddress): Set DEV before check for !BSY.
41290 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41291 read/write in one loop. Fix invalid command on write. Fix incomplete
41292 command on (size % batch) == 0. Add missing error check after write of
41293 last block. Add debug messages.
41294 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41296 2009-01-19 Christian Franke <franke@computer.org>
41298 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41299 (GRUB_ATAPI_IREASON_*): Likewise.
41300 (grub_ata_pio_write): Fix timeout error return.
41301 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41302 (grub_atapi_wait_drq): New function.
41303 (grub_atapi_packet): New parameter `size'.
41304 Use grub_atapi_wait_drq () and direct write instead of
41305 grub_ata_pio_write ().
41306 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41307 reads the number of bytes requested by the device for each DRQ
41309 (grub_atapi_write): Remove old implementation, return not
41310 implemented instead.
41312 2009-01-19 Christian Franke <franke@computer.org>
41314 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41315 of 512 to calculate data size.
41316 (grub_scsi_read12): Likewise.
41317 (grub_scsi_write10): Likewise.
41318 (grub_scsi_write12): Likewise.
41319 (grub_scsi_read): Adjust size according to blocksize.
41320 Add checks for invalid blocksize and unaligned transfer.
41322 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41324 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41326 * term/gfxterm.c (write_char): Fix background rendering for wide
41329 2009-01-19 Robert Millan <rmh@aybabtu.com>
41331 * config.guess: Update to latest version from config git.
41332 * config.sub: Likewise.
41334 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41336 * Makefile.in: Change font compilation to use new grub-mkfont instead
41339 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41340 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41341 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41342 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41343 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41344 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41345 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41346 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41347 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41349 2009-01-16 Christian Franke <franke@computer.org>
41351 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41352 (enum grub_ata_timeout_milliseconds): New enum.
41353 (grub_ata_wait_status): Add parameter milliseconds.
41354 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41355 recovery from timed-out commands.
41356 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41357 return grub_errno instead of REG_ERROR.
41358 (grub_ata_pio_write): Add parameter milliseconds.
41359 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41360 Pass milliseconds to grub_ata_wait_status () and
41361 grub_ata_pio_read ().
41362 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41363 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41364 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41365 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41366 It is not suitable for device detection, because DEV bit is ignored,
41367 the command may run too long, and not all devices set the signature
41369 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41370 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41371 Fix device selection, DEV bit must be set first to address the registers
41372 of the correct device.
41373 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41374 grub_ata_pio_read/write ().
41375 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41376 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41378 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41380 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41382 2009-01-13 Bean <bean123ch@gmail.com>
41384 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41386 2009-01-13 Bean <bean123ch@gmail.com>
41388 * Makefile.in: (enable_grub_mkfont): New variable.
41389 (freetype_cflags): Likewise.
41390 (freetype_libs): Likewise.
41392 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41393 (grub_mkfont_SOURCES): New variable.
41394 (grub_mkfont_CFLAGS): Likewise.
41395 (grub_mkfont_LDFLAGS): Likewise.
41397 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41398 library if `--enable-grub-mkfont' is requested.
41399 (enable_grub_mkfont): New variable.
41400 (freetype_cflags): Likewise.
41401 (freetype_libs): Likewise.
41403 * util/grub-mkfont.c: New file.
41405 2009-01-12 Christian Franke <franke@computer.org>
41407 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41408 mode check. Fix setting of compat_use[].
41410 2009-01-10 Robert Millan <rmh@aybabtu.com>
41412 Update a few copyright years which we forgot to do in 2008 (only for
41413 files whose changes made in 2008 were copyright-significant)
41415 * Makefile.in: Add 2008 to Copyright line.
41416 * disk/ieee1275/ofdisk.c: Likewise.
41417 * disk/efi/efidisk.c: Likewise.
41418 * kern/dl.c: Likewise.
41419 * kern/sparc64/ieee1275/init.c: Likewise.
41420 * kern/mm.c: Likewise.
41421 * kern/efi/mm.c: Likewise.
41422 * boot/i386/pc/boot.S: Likewise.
41423 * genfslist.sh: Likewise.
41424 * fs/iso9660.c: Likewise.
41425 * fs/hfs.c: Likewise.
41426 * fs/jfs.c: Likewise.
41427 * fs/minix.c: Likewise.
41428 * fs/ufs.c: Likewise.
41429 * gensymlist.sh.in: Likewise.
41430 * genkernsyms.sh.in: Likewise.
41431 * include/grub/misc.h: Likewise.
41432 * include/grub/types.h: Likewise.
41433 * include/grub/symbol.h: Likewise.
41434 * include/grub/elf.h: Likewise.
41435 * include/grub/kernel.h: Likewise.
41436 * include/grub/disk.h: Likewise.
41437 * include/grub/dl.h: Likewise.
41438 * include/grub/i386/linux.h: Likewise.
41439 * include/grub/i386/pc/biosdisk.h: Likewise.
41440 * include/grub/efi/api.h: Likewise.
41441 * include/grub/efi/pe32.h: Likewise.
41442 * include/grub/util/misc.h: Likewise.
41443 * normal/execute.c: Likewise.
41444 * normal/arg.c: Likewise.
41445 * normal/completion.c: Likewise.
41446 * normal/lexer.c: Likewise.
41447 * normal/parser.y: Likewise.
41448 * normal/misc.c: Likewise.
41449 * commands/i386/pc/vbeinfo.c: Likewise.
41450 * commands/hexdump.c: Likewise.
41451 * commands/terminal.c: Likewise.
41452 * commands/ls.c: Likewise.
41453 * commands/help.c: Likewise.
41454 * partmap/pc.c: Likewise.
41455 * loader/efi/chainloader.c: Likewise.
41456 * loader/multiboot_loader.c: Likewise.
41457 * loader/i386/pc/multiboot2.c: Likewise.
41458 * term/efi/console.c: Likewise.
41459 * term/i386/pc/serial.c: Likewise.
41460 * util/lvm.c: Likewise.
41461 * util/console.c: Likewise.
41462 * util/i386/efi/grub-mkimage.c: Likewise.
41463 * util/raid.c: Likewise.
41465 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41467 * commands/videotest.c: Removed include to grub/machine/memory.h.
41469 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41470 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41471 (video_mod_SOURCES): Removed.
41472 (video_mod_CFLAGS): Likewise.
41473 (video_mod_LDFLAGS): Likewise.
41474 (gfxterm_mod_SOURCES): Likewise.
41475 (gfxterm_mod_CFLAGS): Likewise.
41476 (gfxterm_mod_LDFLAGS): Likewise.
41477 (videotest_mod_SOURCES): Likewise.
41478 (videotest_mod_CFLAGS): Likewise.
41479 (videotest_mod_LDFLAGS): Likewise.
41480 (bitmap_mod_SOURCES): Likewise.
41481 (bitmap_mod_CFLAGS): Likewise.
41482 (bitmap_mod_LDFLAGS): Likewise.
41483 (tga_mod_SOURCES): Likewise.
41484 (tga_mod_CFLAGS): Likewise.
41485 (tga_mod_LDFLAGS): Likewise.
41486 (jpeg_mod_SOURCES): Likewise.
41487 (jpeg_mod_CFLAGS): Likewise.
41488 (jpeg_mod_LDFLAGS): Likewise.
41489 (png_mod_SOURCES): Likewise.
41490 (png_mod_CFLAGS): Likewise.
41491 (png_mod_LDFLAGS): Likewise.
41493 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41494 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41495 (video_mod_SOURCES): Added.
41496 (video_mod_CFLAGS): Likewise.
41497 (video_mod_LDFLAGS): Likewise.
41498 (videotest_mod_SOURCES): Likewise.
41499 (videotest_mod_CFLAGS): Likewise.
41500 (videotest_mod_LDFLAGS): Likewise.
41501 (bitmap_mod_SOURCES): Likewise.
41502 (bitmap_mod_CFLAGS): Likewise.
41503 (bitmap_mod_LDFLAGS): Likewise.
41504 (tga_mod_SOURCES): Likewise.
41505 (tga_mod_CFLAGS): Likewise.
41506 (tga_mod_LDFLAGS): Likewise.
41507 (jpeg_mod_SOURCES): Likewise.
41508 (jpeg_mod_CFLAGS): Likewise.
41509 (jpeg_mod_LDFLAGS): Likewise.
41510 (png_mod_SOURCES): Likewise.
41511 (png_mod_CFLAGS): Likewise.
41512 (png_mod_LDFLAGS): Likewise.
41513 (gfxterm_mod_SOURCES): Likewise.
41514 (gfxterm_mod_CFLAGS): Likewise.
41515 (gfxterm_mod_LDFLAGS): Likewise.
41517 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41518 grub/machine/console.h.
41520 2009-01-04 Jerone Young <jerone@gmail.com>
41522 Make on screen instructions clearer
41524 Based on patch created by Jidanni <jidanni@jidanni.org>
41526 * normal/menu.c: print clearer instructions on the screen
41528 2009-01-02 Colin D Bennett <colin@gibibit.com>
41532 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41533 build system and fixed gfxterm.c to work with different sized fonts.
41535 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41537 * configure: Re-generated.
41539 * DISTLIST: Removed font/manager.c.
41541 Added font/font_cmd.c.
41543 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41546 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41548 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41550 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41552 * normal/menu.c: Likewise.
41554 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41555 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41557 * include/grub/font.h: Replaced with new file.
41559 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41560 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41561 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41562 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41563 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41564 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41565 fg_red, fg_green, fg_blue, fg_alpha.
41566 (grub_video_adapter): Removed blit_glyph.
41567 (grub_video_blit_glyph): Removed.
41569 * font/manager.c: Removed file.
41571 * font/font.c: New file.
41573 * font/font_cmd.c: Likewise.
41575 * video/video.c (grub_video_blit_glyph): Removed.
41577 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41578 (grub_video_vbe_map_rgba): Likewise.
41579 (grub_video_vbe_unmap_color_int): Likewise.
41580 (grub_video_vbe_blit_glyph): Removed.
41581 (grub_video_vbe_adapter): Removed blit_glyph.
41583 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41584 (get_pixel): Likewise.
41585 (set_pixel): Likewise.
41587 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41589 * term/gfxterm.c: Adapted to new font engine.
41591 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41593 * term/i386/pc/vga.c: Likewise.
41595 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41597 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41599 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41601 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41603 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41605 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41607 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41609 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41611 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41613 * util/grub.d/00_header.in: Changed to use new loadfont command.
41615 * util/grub-mkconfig_lib.in: Changed font extension.
41617 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41619 * util/getroot.c (grub_util_get_grub_dev): Add support for
41620 /dev/md/dNNpNN style partitionable mdraid devices.
41622 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41624 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41625 at a time limit of the PXE TFTP API correctly.
41626 (grub_pxefs_close): Likewise.
41628 2008-11-29 Robert Millan <rmh@aybabtu.com>
41630 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41631 grub_ata_device_initialize() calls.
41633 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41635 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41637 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41639 2008-11-28 Robert Millan <rmh@aybabtu.com>
41641 Fix build on powerpc-ieee1275. Based on patch created by
41642 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41643 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41644 `kern/ieee1275/mmap.c'.
41645 * include/grub/powerpc/ieee1275/memory.h: New file.
41647 Provide grub-install on coreboot.
41648 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41649 (grub_install_SOURCES): New variable.
41650 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41651 usable on coreboot.
41653 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41655 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41656 to `grub_term_input_t'.
41657 (grub_term_get_current_output): Change return type to
41658 `grub_term_output_t'.
41660 2008-11-22 Robert Millan <rmh@aybabtu.com>
41662 Fix breakage on coreboot due to declaration mismatch.
41663 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41664 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41665 grub_vga_text_cls().
41667 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41668 comments. Avoid copying one more byte than necessary (just in case).
41670 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41671 to 0x200000 (avoids trouble with some OFW implementations, and matches
41672 with the one in Yaboot).
41673 Reported by Manoel Abranches
41675 2008-11-20 Robert Millan <rmh@aybabtu.com>
41677 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41678 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41680 * util/grub-mkconfig_lib.in (grub_warn): New function.
41681 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41682 warnings, to obtain consistent formatting.
41683 * util/grub.d/00_header.in: Likewise.
41684 * util/update-grub_lib.in: Likewise.
41686 * loader/i386/linux.c (allocate_pages): Fix a warning.
41687 Move comment text to `#error' stanza.
41689 Harmonize ieee1275's grub_available_iterate() with the generic
41690 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41691 build problem on i386-ieee1275):
41692 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41693 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41694 parameter `type'. Update all users of this function.
41695 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41696 `kern/ieee1275/mmap.c'.
41697 * kern/ieee1275/init.c
41698 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41700 (grub_machine_mmap_iterate): ... this.
41701 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41702 return type to `grub_err_t'. Update all implementations of this
41703 function prototype.
41704 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41707 Add `lsmmap' command (lists firmware-provided memory map):
41708 * commands/lsmmap.c: New file.
41709 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41710 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41712 * conf/powerpc-ieee1275.rmk: Likewise.
41713 * conf/i386-coreboot.rmk: Likewise.
41714 * conf/i386-ieee1275.rmk: Likewise.
41716 2008-11-19 Robert Millan <rmh@aybabtu.com>
41718 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41719 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41720 constraints to initrd allocation (based on code from
41721 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41722 for Linux to find it.
41724 2008-11-14 Robert Millan <rmh@aybabtu.com>
41726 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41727 order to cope with duplicate slashes.
41729 2008-11-14 Robert Millan <rmh@aybabtu.com>
41731 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41732 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41733 don't want to mess with lower memory, because it is used in the Linux
41736 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41737 an appropriate place in lower memory, between 0x10000 and 0x90000,
41738 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41739 is in our heap (probably as a result of it being corrupted during
41740 decompression). Add #error instance with comment to explain why this
41741 loader isn't currently usable on PC/BIOS.
41743 2008-11-14 Robert Millan <rmh@aybabtu.com>
41745 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41746 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41748 2008-11-12 Robert Millan <rmh@aybabtu.com>
41750 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41752 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41753 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41755 * include/grub/i386/pc/memory.h: ... to here.
41757 2008-11-12 Robert Millan <rmh@aybabtu.com>
41759 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41762 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41763 (grub_console_cur_color, grub_console_real_putchar)
41764 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41765 (grub_console_setcolorstate, grub_console_setcolor)
41766 (grub_console_getcolor): Move from here ...
41767 * include/grub/i386/vga_common.h: ... to here (new file).
41769 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41770 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41771 `<grub/i386/io.h>'.
41772 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41773 `<grub/i386/vga_common.h>'.
41775 2008-11-12 Robert Millan <rmh@aybabtu.com>
41777 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41778 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41779 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41781 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41782 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41784 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41785 grub_console_init() with call to grub_vga_text_init().
41786 (grub_machine_fini): Replace call to
41787 grub_console_fini() with call to grub_vga_text_fini() and
41788 grub_at_keyboard_fini().
41790 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41791 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41792 (grub_console_setcolorstate, grub_console_setcolor)
41793 (grub_console_getcolor): New function prototypes.
41795 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41796 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41797 (grub_vga_text_setcursor): Static-ize.
41798 (grub_vga_text_term): New structure.
41799 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41801 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41802 (grub_console_cur_color, grub_console_standard_color)
41803 (grub_console_normal_color, grub_console_highlight_color)
41804 (map_char, grub_console_putchar, grub_console_getcharwidth)
41805 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41806 (grub_console_getcolor): Move from here ...
41807 * term/i386/vga_common.c: ... to here (same function names).
41809 2008-11-12 Robert Millan <rmh@aybabtu.com>
41811 Use newly-added Multiboot support in coreboot.
41813 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41814 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41816 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41817 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41818 (codestart): Store the MBI in `startup_multiboot_info' when we're
41819 being loaded using Multiboot.
41821 * kern/i386/coreboot/init.c (grub_machine_init): Move
41822 grub_at_keyboard_init() call to beginning of function (useful for
41823 debugging). Call grub_machine_mmap_init() before attempting to use
41824 grub_machine_mmap_iterate().
41825 (grub_lower_mem, grub_upper_mem): Move from here ...
41826 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41829 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41830 function prototype.
41832 2008-11-12 Robert Millan <rmh@aybabtu.com>
41834 Fix a regression introduced by the at_keyboard.mod split. Because
41835 some terminals are default on some platforms and non-default on
41836 others, the first terminal being registered determines which is
41837 going to be default.
41839 * kern/term.c (grub_term_register_input): If this is the first
41840 terminal being registered, set it as the current one.
41841 (grub_term_register_output): Likewise.
41843 * term/efi/console.c (grub_console_init): Do not call
41844 grub_term_set_current_output() or grub_term_set_current_input().
41845 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41846 * term/i386/pc/console.c (grub_console_init): Likewise.
41847 (grub_console_fini): Do not call grub_term_set_current_input()
41848 (but leave grub_term_set_current_output() to restore text mode).
41850 2008-11-10 Robert Millan <rmh@aybabtu.com>
41852 * util/grub.d/00_header.in: Add backward compatibility check for
41853 versions of terminal.mod that don't understand `terminal_input' or
41856 2008-11-09 Robert Millan <rmh@aybabtu.com>
41858 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41859 `terminal_input' / `terminal_output', not `terminal'.
41861 2008-11-08 Robert Millan <rmh@aybabtu.com>
41863 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41864 (DISTCLEANFILES): Add `build_env.mk'.
41866 2008-11-08 Robert Millan <rmh@aybabtu.com>
41868 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41869 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41870 members. Update all users.
41871 * util/console.c (grub_ncurses_term): Split in ...
41872 (grub_ncurses_term_input): ... this, and ...
41873 (grub_ncurses_term_output): ... this. Update all users.
41874 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41876 2008-11-08 Robert Millan <rmh@aybabtu.com>
41878 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41879 (PKGDATA): Add $(pkgdata_SRCDIR).
41880 (pkglib_BUILDDIR): New variable.
41881 (pkgdata_SRCDIR): New variable.
41882 (build_env.mk): New target.
41883 (include_DATA): New variable.
41884 (install-local): Install $(include_DATA) files in $(includedir).
41886 2008-11-07 Pavel Roskin <proski@gnu.org>
41888 * gendistlist.sh: Use C locale for sorting to ensure consistent
41889 output on all systems.
41891 * util/grub.d/00_header.in: Remove incorrect space before
41894 2008-11-07 Robert Millan <rmh@aybabtu.com>
41896 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41898 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41899 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41900 (based on find_multi_boot1_header).
41901 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41902 using find_multi_boot2_header(), and abort if neither Multiboot or
41903 Multiboot headers were found.
41905 2008-11-07 Robert Millan <rmh@aybabtu.com>
41907 Modularize at_keyboard.mod:
41909 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41910 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41911 (at_keyboard_mod_LDFLAGS): New variables.
41913 Actual terminal split:
41915 * include/grub/term.h (struct grub_term): Split in ...
41916 (struct grub_term_input): ... this, and ...
41917 (struct grub_term_output): ... this. Update all users.
41918 (grub_term_set_current): Split in ...
41919 (grub_term_set_current_input): ... this, and ...
41920 (grub_term_set_current_output): ... this.
41921 (grub_term_get_current): Split in ...
41922 (grub_term_get_current_input): ... this, and ...
41923 (grub_term_get_current_output): ... this.
41924 (grub_term_register): Split in ...
41925 (grub_term_register_input): ... this, and ...
41926 (grub_term_register_output): ... this.
41927 (grub_term_unregister): Split in ...
41928 (grub_term_unregister_input): ... this, and ...
41929 (grub_term_unregister_output): ... this.
41930 (grub_term_iterate): Split in ...
41931 (grub_term_iterate_input): ... this, and ...
41932 (grub_term_iterate_output): ... this.
41934 * kern/term.c (grub_term_list): Split in ...
41935 (grub_term_list_input): ... this, and ...
41936 (grub_term_list_output): ... this. Update all users.
41937 (grub_cur_term): Split in ...
41938 (grub_cur_term_input): ... this, and ...
41939 (grub_cur_term_output): ... this. Update all users.
41940 (grub_term_set_current): Split in ...
41941 (grub_term_set_current_input): ... this, and ...
41942 (grub_term_set_current_output): ... this.
41943 (grub_term_get_current): Split in ...
41944 (grub_term_get_current_input): ... this, and ...
41945 (grub_term_get_current_output): ... this.
41946 (grub_term_register): Split in ...
41947 (grub_term_register_input): ... this, and ...
41948 (grub_term_register_output): ... this.
41949 (grub_term_unregister): Split in ...
41950 (grub_term_unregister_input): ... this, and ...
41951 (grub_term_unregister_output): ... this.
41952 (grub_term_iterate): Split in ...
41953 (grub_term_iterate_input): ... this, and ...
41954 (grub_term_iterate_output): ... this.
41956 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41957 a check for input and one for output (and only attempt to get keys
41958 from user when input works).
41960 * util/grub-probe.c (grub_term_get_current): Split in ...
41961 (grub_term_get_current_input): ... this, and ...
41962 (grub_term_get_current_output): ... this.
41963 * util/grub-fstest.c: Likewise.
41964 * util/i386/pc/grub-setup.c: Likewise.
41965 * util/grub-editenv.c: Likewise.
41967 Portability adjustments:
41969 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41970 `term/i386/pc/at_keyboard.c'.
41971 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41972 grub_keyboard_controller_init() (now handled by terminal .init).
41973 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41974 grub_at_keyboard_init().
41975 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41976 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41977 at_keyboard.mod via input terminal interface).
41978 * include/grub/i386/coreboot/console.h: Convert into a stub for
41979 `<grub/i386/pc/console.h>'.
41981 Migrate full terminals to new API:
41983 * term/efi/console.c (grub_console_term): Split into ...
41984 (grub_console_term_input): ... this, and ...
41985 (grub_console_term_output): ... this. Update all users.
41986 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41987 (grub_ofconsole_init): Split into ...
41988 (grub_ofconsole_init_input): ... this, and ...
41989 (grub_ofconsole_init_output): ... this.
41990 (grub_ofconsole_term): Split into ...
41991 (grub_ofconsole_term_input): ... this, and ...
41992 (grub_ofconsole_term_output): ... this. Update all users.
41993 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41994 (grub_serial_term_input): ... this, and ...
41995 (grub_serial_term_output): ... this. Update all users.
41996 * term/i386/pc/console.c (grub_console_term): Split into ...
41997 (grub_console_term_input): ... this, and ...
41998 (grub_console_term_output): ... this. Update all users.
41999 (grub_console_term_input): Only enable it on PC/BIOS platform.
42000 (grub_console_init): Remove grub_keyboard_controller_init() call.
42002 Migrate input terminals to new API:
42004 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42005 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42006 i386-specific anyway).
42007 (grub_console_checkkey): Rename to ...
42008 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42010 (grub_keyboard_controller_orig): New variable.
42011 (grub_console_getkey): Rename to ...
42012 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42014 (grub_keyboard_controller_init): Static-ize. Save original
42015 controller value so that it can be restored ...
42016 (grub_keyboard_controller_fini): ... here (new function).
42017 (grub_at_keyboard_term): New structure.
42018 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42021 Migrate output terminals to new API:
42023 * term/i386/pc/vga.c (grub_vga_term): Change type to
42024 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42025 members. Update all users.
42026 * term/gfxterm.c (grub_video_term): Change type to
42027 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42028 members. Update all users.
42029 * include/grub/i386/pc/console.h (grub_console_checkkey)
42030 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42033 Migrate `terminal' command and userland tools to new API:
42035 * commands/terminal.c (grub_cmd_terminal): Split into ...
42036 (grub_cmd_terminal_input): ... this, and ...
42037 (grub_cmd_terminal_output): ... this.
42038 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42039 `terminal_input' and `terminal_output'.
42040 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42041 `terminal_input' / `terminal_output' API.
42042 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42043 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42044 provided ${GRUB_TERMINAL}, convert it).
42046 2008-11-04 Robert Millan <rmh@aybabtu.com>
42048 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42050 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42052 2008-11-03 Bean <bean123ch@gmail.com>
42054 * kern/elf.c (grub_elf32_load): Revert to previous code.
42055 (grub_elf64_load): Likewise.
42057 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42059 2008-11-01 Robert Millan <rmh@aybabtu.com>
42061 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42062 (TARGET_CPPFLAGS): Likewise.
42063 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42065 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42067 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42069 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42071 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42072 addition of objects until the code is not going to be able to fail.
42074 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42076 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42077 (add a missing NULL check, and correct them by moving the pointer
42078 operations after the actual check).
42080 2008-10-29 Robert Millan <rmh@aybabtu.com>
42082 * util/i386/pc/grub-install.in: Handle empty string as output from
42083 make_system_path_relative_to_its_root().
42085 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42087 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42088 circular metadata worst case scenario. If the metadata is circular
42089 then copy the wrap in place.
42090 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42091 project lib/format_text/layout.h
42092 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42094 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42096 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42098 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42100 * util/update-grub_lib.in: Mention filename in warning message.
42102 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42104 * NEWS: Update for rename of update-grub to grub-mkconfig.
42106 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42108 * util/update-grub_lib.in: Copy to ...
42109 * util/grub-mkconfig_lib.in: ... this. Update all users.
42110 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42111 * util/update-grub.in: Rename to ...
42112 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42113 option. Add `--output' option to allow users to specify the generated
42114 configuration file. Default to stdout.
42115 (update_grub_dir): Rename to ...
42116 (grub_mkconfig_dir): ... this.
42117 (grub_cfg): Default to an empty string.
42118 * conf/common.rmk (update-grub): Rename to ...
42119 (grub-mkconfig): ... this.
42120 (update-grub_lib): Copy to ...
42121 (grub-mkconfig_lib): ... this.
42122 (update-grub_SCRIPTS): Copy to ...
42123 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42124 (update-grub_DATA): Rename to ...
42125 (grub-mkconfig_DATA): ... this.
42127 2008-09-28 Robert Millan <rmh@aybabtu.com>
42129 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42130 to `modified'. Add the real `created' field.
42131 (grub_iso9660_uuid): Use `modified' rather than `created' for
42132 constructing the UUID.
42134 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42136 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42137 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42139 2008-09-28 Bean <bean123ch@gmail.com>
42141 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42142 Thanks to Christian Franke for finding this bug.
42144 2008-09-25 Robert Millan <rmh@aybabtu.com>
42146 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42147 instances of grub_util_get_disk_name() (see previous commit).
42149 2008-09-25 Robert Millan <rmh@aybabtu.com>
42151 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42152 `util/i386/get_disk_name.c'.
42153 * conf/i386-efi.rmk: Likewise.
42154 * conf/x86_64-efi.rmk: Likewise.
42155 * conf/i386-coreboot.rmk: Likewise.
42156 * conf/i386-ieee1275.rmk: Likewise.
42157 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42158 `util/ieee1275/get_disk_name.c'.
42159 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42160 * util/ieee1275/get_disk_name.c: Remove file.
42161 * util/i386/get_disk_name.c: Remove file.
42162 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42163 "hd%d" for device.map entries, rather than using
42164 grub_util_get_disk_name().
42166 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42168 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42170 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42172 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42174 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42176 (GRUB_TERM_PPAGE): Changed to 0x4900.
42178 2008-09-24 Robert Millan <rmh@aybabtu.com>
42180 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42181 macros (they were i386-pc specific).
42182 * include/grub/sparc64/ieee1275/console.h: Likewise.
42183 * include/grub/efi/console.h: Likewise.
42185 2008-09-22 Bean <bean123ch@gmail.com>
42187 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42188 resident and in attribute list.
42190 * include/grub/ntfs.h (BMP_LEN): Removed.
42192 2008-09-22 Bean <bean123ch@gmail.com>
42194 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42195 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42197 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42198 error occurs, as grub_disk_open will call grub_disk_close, which will
42199 call p->close (scsi).
42201 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42203 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42204 (AC_PREREQ): Bumped to 2.59.
42205 (AC_TRY_COMPILE): Replace obsolete macro with ...
42206 (AC_COMPILE_IFELSE): ... this.
42207 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42208 (AC_LINK_IFELSE): ... this.
42210 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42212 * autogen.sh: Add a call to `gendistlist.sh'.
42214 2008-09-19 Christian Franke <franke@computer.org>
42216 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42217 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42218 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42219 Export __enable_execute_stack() to modules.
42220 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42223 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42225 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42228 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42230 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42231 #include <grub/util/hostdisk.h>.
42233 2008-09-08 Robert Millan <rmh@aybabtu.com>
42235 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42236 segments when their filesz is zero (grub_file_read() interprets
42237 zero-size as "read until EOF", which results in memory corruption).
42238 Use `lowest_segment' rather than 0 for calculating the current
42239 segment load address.
42241 2008-09-08 Robert Millan <rmh@aybabtu.com>
42243 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42244 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42245 clobbered useful information.
42247 2008-09-08 Robert Millan <rmh@aybabtu.com>
42249 * include/grub/util/biosdisk.h: Move to ...
42250 * include/grub/util/hostdisk.h: ... here. Update all users.
42251 * util/biosdisk.c: Move to ...
42252 * util/hostdisk.c: ... here. Update all users.
42254 2008-09-07 Robert Millan <rmh@aybabtu.com>
42256 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42258 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42259 and length can be stored directly in the `mbi->mmap_addr' and
42260 `mbi->mmap_length' struct fields.
42262 2008-09-07 Robert Millan <rmh@aybabtu.com>
42264 * conf/i386.rmk: New file. Provides declaration for building
42266 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42267 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42269 Include `conf/i386.mk'.
42270 * conf/i386-efi.rmk: Likewise.
42271 * conf/x86_64-efi.rmk: Likewise.
42272 * conf/i386-coreboot.rmk: Likewise.
42273 * conf/i386-ieee1275.rmk: Likewise.
42275 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42277 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42278 Adds optimization support for BGR based modes.
42280 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42281 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42282 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42283 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42284 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42285 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42286 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42287 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42288 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42289 (grub_video_i386_vbeblit_index_index): Likewise.
42290 (grub_video_i386_vbeblit_replace_directN): Added.
42291 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42292 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42293 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42294 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42295 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42296 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42297 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42298 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42299 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42300 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42301 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42302 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42303 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42305 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42306 (grub_video_i386_vbefill_R8G8B8): Likewise.
42307 (grub_video_i386_vbefill_index): Likewise.
42308 (grub_video_i386_vbefill_direct32): Added.
42309 (grub_video_i386_vbefill_direct24): Likewise.
42310 (grub_video_i386_vbefill_direct16): Likewise.
42311 (grub_video_i386_vbefill_direct8): Likewise.
42313 * include/grub/video.h (grub_video_blit_format): Removed
42314 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42315 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42316 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42317 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42318 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42320 * video/video.c (grub_video_get_blit_format): Updated to use new
42321 blit formats. Added handling for 16 bit color modes.
42323 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42325 (common_blitter): Updated to use new blitters.
42327 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42329 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42330 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42331 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42332 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42333 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42334 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42335 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42336 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42337 (grub_video_i386_vbeblit_index_index): Likewise.
42338 (grub_video_i386_vbeblit_replace_directN): Added.
42339 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42340 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42341 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42342 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42343 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42344 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42345 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42346 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42347 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42348 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42349 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42350 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42351 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42353 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42354 (grub_video_i386_vbefill_R8G8B8): Likewise.
42355 (grub_video_i386_vbefill_index): Likewise.
42356 (grub_video_i386_vbefill_direct32): Added.
42357 (grub_video_i386_vbefill_direct24): Likewise.
42358 (grub_video_i386_vbefill_direct16): Likewise.
42359 (grub_video_i386_vbefill_direct8): Likewise.
42361 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42364 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42367 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42370 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42373 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42375 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42378 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42380 * fs/iso9660.c (grub_iso9660_date): New structure.
42381 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42382 (grub_iso9660_uuid): New function.
42384 2008-09-05 Bean <bean123ch@gmail.com>
42386 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42388 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42389 insensitive bit for names in Win32 and Win32 & DOS namespace.
42391 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42393 * include/grub/types.h (LONG_MAX): Likewise.
42395 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42397 * util/getroot.c: Include <config.h>.
42398 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42399 add support for /dev/md/N devices and handle LVM double dash escaping.
42401 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42403 * config.guess: Update to latest version from config git.
42404 * config.sub: Likewise.
42406 2008-09-03 Robert Millan <rmh@aybabtu.com>
42408 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42409 `disk->total_sectors'.
42411 2008-09-01 Colin D Bennett <colin@gibibit.com>
42413 * include/grub/normal.h: Fixed incorrect comment for
42414 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42416 2008-09-01 Colin D Bennett <colin@gibibit.com>
42418 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42419 values with defines.
42421 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42422 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42423 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42424 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42425 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42426 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42427 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42428 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42429 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42430 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42431 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42432 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42433 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42434 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42435 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42436 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42437 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42438 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42439 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42441 2008-08-31 Robert Millan <rmh@aybabtu.com>
42443 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42445 (grub_multiboot): Fix a few warnings.
42447 2008-08-31 Robert Millan <rmh@aybabtu.com>
42449 * loader/i386/pc/multiboot.c: Update comment not to say that
42450 boot_device support is unimplemented.
42452 2008-08-31 Robert Millan <rmh@aybabtu.com>
42454 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42455 or memory map support are unimplemented.
42457 2008-08-31 Colin D Bennett <colin@gibibit.com>
42459 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42461 2008-08-31 Colin D Bennett <colin@gibibit.com>
42463 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42464 total video memory in 'vbeinfo' output; show color format details for
42467 2008-08-30 Pavel Roskin <proski@gnu.org>
42469 * util/genmoddep.c: Remove for real this time.
42470 * DISTLIST: Remove util/genmoddep.c.
42472 2008-08-30 Robert Millan <rmh@aybabtu.com>
42474 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42475 as required by Multiboot spec (it was already 4-byte aligned, but
42478 2008-08-29 Pavel Roskin <proski@gnu.org>
42480 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42481 * kern/powerpc/ieee1275/startup.S: ... this.
42482 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42483 * DISTLIST: Likewise.
42485 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42486 grub/cpu/kernel.h. Add start label for consistency with other
42487 platforms. Add grub_prefix immediately after start. Add jump
42488 to the code after grub_prefix.
42489 * include/grub/powerpc/kernel.h: Provide valid values for
42490 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42492 2008-08-29 Bean <bean123ch@gmail.com>
42494 * configure.ac: Change host_os to cygwin for mingw.
42495 (asprintf): New check for function.
42497 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42498 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42500 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42501 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42502 sync, sleep and grub_util_get_disk_size for mingw.
42504 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42505 to get size in mingw.
42506 (open_device): Use flag O_BINARY if it's defined.
42507 (find_root_device): Add dummy code for mingw.
42509 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42510 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42511 (get_scsi_disk_name): Return 0 for mingw.
42513 * util/hostfs.c: #include <grub/util/misc.h>.
42514 (grub_hostfs_open): Use "rb" flag to open file, use
42515 grub_util_get_disk_size to get disk size for mingw.
42517 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42518 (asprintf): New function if HAVE_ASPRINTF is not set.
42519 (sync): New function for mingw.
42521 (grub_util_get_disk_size): Likewise.
42523 2008-08-28 Pavel Roskin <proski@gnu.org>
42525 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42528 2008-08-28 Robert Millan <rmh@aybabtu.com>
42530 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42532 2008-08-28 Robert Millan <rmh@aybabtu.com>
42534 Change find_grub_drive() syntax so it doesn't prevent it from
42535 detecting NULL names as errors.
42537 * util/biosdisk.c (find_grub_drive): Move free slot search code
42539 (find_free_slot): ... to here.
42540 (read_device_map): Use find_free_slot() to search for free slots.
42542 2008-08-27 Marco Gerards <marco@gnu.org>
42544 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42545 (scsi_mod_SOURCES): New variable.
42546 (scsi_mod_CFLAGS): Likewise
42547 (scsi_mod_LDFLAGS): Likewise.
42549 * disk/scsi.c: New file.
42551 * include/grub/scsi.h: Likewise.
42553 * include/grub/scsicmd.h: Likewise.
42555 * disk/ata.c: Include <grub/scsi.h>.
42556 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42558 (grub_ata_iterate): Skip ATAPI devices.
42559 (grub_ata_open): Only handle ATAPI devices.
42560 (struct grub_atapi_read): Removed.
42561 (grub_atapi_readsector): Likewise.
42562 (grub_ata_read): No longer handle ATAPI devices.
42563 (grub_ata_write): Likewise.
42564 (grub_atapi_iterate): New function.
42565 (grub_atapi_read): Likewise.
42566 (grub_atapi_write): Likewise.
42567 (grub_atapi_open): Likewise.
42568 (grub_atapi_close): Likewise.
42569 (grub_atapi_dev): New variable.
42570 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42571 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42573 * include/grub/disk.h (enum grub_disk_dev_id): Add
42574 `GRUB_DISK_DEVICE_SCSI_ID'.
42576 2008-08-26 Robert Millan <rmh@aybabtu.com>
42578 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42579 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42582 2008-08-23 Bean <bean123ch@gmail.com>
42584 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42585 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42586 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42587 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42589 (raid5rec_mod_SOURCES): New macro.
42590 (raid5rec_mod_CFLAGS): Likewise.
42591 (raid5rec_mod_LDFLAGS): Likewise.
42592 (raid6rec_mod_SOURCES): Likewise.
42593 (raid6rec_mod_CFLAGS): Likewise.
42594 (raid6rec_mod_LDFLAGS): Likewise.
42595 (mdraid_mod_SOURCES): Likewise.
42596 (mdraid_mod_CFLAGS): Likewise.
42597 (mdraid_mod_LDFLAGS): Likewise.
42598 (dm_nv_mod_SOURCES): Likewise.
42599 (dm_nv_mod_CFLAGS): Likewise.
42600 (dm_nv_mod_LDFLAGS): Likewise.
42602 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42603 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42604 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42606 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42607 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42609 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42611 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42613 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42617 * disk/raid5_recover.c: New file.
42619 * disk/raid6_recover.c: Likewise.
42621 * disk/mdraid_linux.c: Likewise.
42623 * disk/dmraid_nvidia.c: Likewise.
42625 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42628 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42629 calculate the size of raid device.
42630 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42631 different layout of raid5.
42632 (grub_raid_scan_device): Remove code specific to mdraid.
42633 (grub_raid_list): New variable.
42634 (free_array): New function.
42635 (grub_raid_register): Likewise.
42636 (grub_raid_unregister): Likewise.
42637 (grub_raid_rescan): Likewise.
42638 (GRUB_MOD_INIT): Don't iterate device here.
42639 (GRUB_MOD_FINI): Use free_array to release resource.
42641 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42642 (grub_raid5_recover_func_t): New function variable type.
42643 (grub_raid6_recover_func_t): Likewise.
42644 (grub_raid5_recover_func): New variable.
42645 (grub_raid6_recover_func): Likewise.
42646 (grub_raid_register): New function.
42647 (grub_raid_unregister): Likewise.
42648 (grub_raid_rescan): Likewise.
42649 (grub_raid_block_xor): Likewise.
42651 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42652 (CMD_CRC): New macro.
42654 (read_file): Handle device as well as file.
42655 (cmd_crc): New function.
42656 (fstest): Handle multiple disks.
42657 (options): Remove part, raw and long, add root and diskcount.
42658 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42659 (main): Find the first non option entry and ignore subsequent options,
42660 add handling for the new options, support multiple disks.
42662 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42664 2008-08-23 Bean <bean123ch@gmail.com>
42666 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42668 * genfslist.sh: Ignore kernel.mod.
42670 * genpartmaplist.sh: Likewise.
42672 2008-08-23 Robert Millan <rmh@aybabtu.com>
42674 * util/getroot.c (find_root_device): Skip anything that starts with
42675 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42677 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42679 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42680 * util/grub.d/00_header.in: Allow the administrator to change default
42681 gfxmode via ${GRUB_GFXMODE}.
42683 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42685 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42687 2008-08-21 Robert Millan <rmh@aybabtu.com>
42689 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42691 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42692 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42694 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42696 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42697 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42699 2008-08-19 Robert Millan <rmh@aybabtu.com>
42701 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42702 (struct grub_virtual_screen): Remove `cursor_color'.
42703 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42705 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42707 2008-08-18 Robert Millan <rmh@aybabtu.com>
42709 Unify (identical) linux_normal.c files.
42710 * loader/i386/efi/linux_normal.c: Move from here ...
42711 * loader/linux_normal.c: ... to here. Update all users.
42712 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42713 * loader/i386/ieee1275/linux_normal.c: Likewise.
42715 2008-08-18 Robert Millan <rmh@aybabtu.com>
42717 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42718 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42719 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42720 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42721 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42723 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42724 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42725 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42726 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42727 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42728 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42729 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42730 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42731 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42732 portably using grub_getxy().
42733 Replace `-EFI' with `-bzImage' in boot message.
42735 2008-08-17 Robert Millan <rmh@aybabtu.com>
42737 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42739 2008-08-17 Robert Millan <rmh@aybabtu.com>
42741 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42743 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42744 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42745 (grub_machine_mmap_iterate): New function declaration.
42746 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42748 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42751 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42752 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42753 Move e820 parsing from here ...
42754 * kern/i386/pc/mmap.c: New file.
42755 (grub_machine_mmap_iterate): ... to here.
42757 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42758 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42759 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42760 (grub_available_iterate): Redeclare to return `void', and redeclare
42761 its hook to use grub_uint64_t as addr and size parameters, and rename
42763 (grub_machine_mmap_iterate): ... this. Update all users.
42765 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42766 to make it more readable. Rename to ...
42767 (grub_machine_mmap_iterate): ... this.
42769 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42770 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42771 (grub_multiboot): Allocate an extra region after the payload, and fill
42772 it with a Multiboot memory map. Adjust a.out loader to calculate size
42773 with the extra space.
42774 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42775 with the extra space.
42777 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42779 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42781 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42783 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42784 mdate-sh to the list `find' searches for.
42785 * DISTLIST: Regenerated.
42787 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42789 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42790 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42791 genmoddep.awk, gensymlist.sh.in.
42792 (DISTDIRS): Add bus, docs, hook, lib.
42793 * DISTLIST: Regenerated.
42794 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42796 2008-08-16 Robert Millan <rmh@aybabtu.com>
42798 * disk/raid.c (grub_raid_init): Handle/report errors set by
42799 grub_device_iterate().
42800 * disk/lvm.c (grub_lvm_init): Likewise.
42802 2008-08-15 Bean <bean123ch@gmail.com>
42804 * conf/i386-pc.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-coreboot.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-ieee1275.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/i386-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 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42854 (datetime_mod_SOURCES): New macro.
42855 (datetime_mod_CFLAGS): Likewise.
42856 (datetime_mod_LDFLAGS): Likewise.
42857 (date_mod_SOURCES): Likewise.
42858 (date_mod_CFLAGS): Likewise.
42859 (date_mod_LDFLAGS): Likewise.
42860 (datehook_mod_SOURCES): Likewise.
42861 (datehook_mod_CFLAGS): Likewise.
42862 (datehook_mod_LDFLAGS): Likewise.
42864 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42866 * commands/date.c: New file.
42868 * hook/datehook.c: Likewise.
42870 * include/grub/lib/datetime.h: Likewise.
42872 * include/grub/i386/cmos.h: Likewise.
42874 * lib/datetime.c: Likewise.
42876 * lib/i386/datetime.c: Likewise.
42878 * lib/efi/datetime.c: Likewise.
42880 2008-08-14 Robert Millan <rmh@aybabtu.com>
42882 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42883 (grub_mkelfimage_SOURCES): New variable.
42884 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42886 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42887 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42888 * conf/powerpc-ieee1275.rmk: Likewise.
42889 * conf/i386-ieee1275.rmk: Likewise.
42891 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42892 * kern/i386/coreboot/init.c: Likewise.
42894 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42895 with `<grub/cpu/kernel.h>'.
42896 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42898 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42899 * kern/i386/coreboot/startup.S: Likewise.
42901 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42902 (GRUB_MOD_GAP): Remove.
42903 * include/grub/powerpc/kernel.h: New file.
42904 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42905 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42906 * include/grub/i386/kernel.h: New file.
42907 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42908 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42909 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42911 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42913 Use --directory when invoking grub_mkimage.
42915 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42916 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42917 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42918 and GRUB_KERNEL_CPU_PREFIX.
42920 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42922 * include/grub/err.h (grub_err_printf): New function prototype.
42923 * util/misc.c (grub_err_printf): New function.
42924 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42926 * kern/err.c (grub_print_error): Use grub_err_printf.
42928 2008-08-13 Robert Millan <rmh@aybabtu.com>
42930 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42932 2008-08-13 Robert Millan <rmh@aybabtu.com>
42934 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42937 2008-08-12 Robert Millan <rmh@aybabtu.com>
42939 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42940 of the relocation code from here ...
42941 (grub_multiboot): ... to here.
42942 (forward_relocator, backward_relocator): Move from here ...
42943 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42944 (grub_multiboot_backward_relocator): ... to here.
42945 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42946 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42947 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42948 (grub_multiboot_forward_relocator_end)
42949 (grub_multiboot_backward_relocator)
42950 (grub_multiboot_backward_relocator_end): New variables.
42952 2008-08-12 Bean <bean123ch@gmail.com>
42954 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42956 2008-08-11 Robert Millan <rmh@aybabtu.com>
42958 * kern/i386/linuxbios/startup.S: Move from here ...
42959 * kern/i386/coreboot/startup.S: ... to here.
42961 * kern/i386/linuxbios/init.c: Move from here ...
42962 * kern/i386/coreboot/init.c: ... to here.
42964 * kern/i386/linuxbios/table.c: Move from here ...
42965 * kern/i386/coreboot/mmap.c: ... to here.
42967 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42969 2008-08-11 Robert Millan <rmh@aybabtu.com>
42971 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42972 errors. Leave it to the upper layer to handle them.
42974 2008-08-09 Christian Franke <franke@computer.org>
42976 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42977 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42978 Install `grub.d/10_windows' only on Cygwin.
42979 * configure.ac: Add subst of `target_os'.
42980 Check `target_os' also before setting TARGET_OBJ2ELF.
42981 Add `--enable-grub-pe2elf'.
42983 2008-08-08 Robert Millan <rmh@aybabtu.com>
42985 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42986 (grub_last_time): Change type to grub_uint64_t.
42987 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42988 (grub_disk_close): Likewise.
42990 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42991 (run_menu): Migrate code from to using grub_get_time_ms().
42993 * util/misc.c (grub_get_time_ms): New function.
42995 2008-08-08 Marco Gerards <marco@gnu.org>
42997 * disk/ata.c (grub_ata_regget): Change return type to
42999 (grub_ata_regget2): Likewise.
43000 (grub_ata_wait_status): New function.
43001 (grub_ata_wait_busy): Removed function, updated all users to use
43002 `grub_ata_wait_status'.
43003 (grub_ata_wait_drq): Likewise.
43004 (grub_ata_cmd): New function.
43005 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43007 (grub_ata_pio_write): Add error handling.
43008 (grub_atapi_identify): Likewise.
43009 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43011 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43012 handling. Actually use the detected registers. Reorder the
43013 detection logic such that it is easier to read.
43014 (grub_ata_pciinit): Do not assign the same ID to each controller.
43015 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43017 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43019 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43021 2008-08-08 Marco Gerards <marco@gnu.org>
43025 2008-08-07 Bean <bean123ch@gmail.com>
43027 * include/grub/x86_64/pci.h: New file.
43029 2008-08-07 Christian Franke <franke@computer.org>
43031 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43032 (TIMER2_GATE): Likewise.
43033 (grub_pit_wait): Add enable/disable of the timer2 gate
43034 bit of port 0x61. This fixes a possible infinite loop.
43036 2008-08-07 Bean <bean123ch@gmail.com>
43038 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43039 kern/i386/tsc.c and kern/i386/pit.c.
43041 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43044 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43047 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43049 2008-08-07 Bean <bean123ch@gmail.com>
43051 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43053 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43055 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43056 multiple inclusion. Add #include <grub/types.h>.
43058 2008-08-06 Christian Franke <franke@computer.org>
43060 * conf/common.rmk: Build and install `10_windows'.
43061 * util/grub.d/10_windows.in: New script.
43063 2008-08-06 Pavel Roskin <proski@gnu.org>
43065 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43067 2008-08-06 Robert Millan <rmh@aybabtu.com>
43069 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43070 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43072 2008-08-06 Bean <bean123ch@gmail.com>
43074 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43075 (grub_pxefs_fs_int): Remove dummy definition.
43076 (grub_pxefs_open): Use data->block_size to store the current block
43078 (grub_pxefs_read): Use block size stored in data->block_size. As the
43079 value of grub_pxe_blksize can be changed after the file is opened.
43081 2008-08-06 Bean <bean123ch@gmail.com>
43083 * fs/i386/pc/pxe.c (curr_file): new variable.
43084 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43085 require the dummy internal file system anymore.
43086 (grub_pxefs_read): Removed.
43087 (grub_pxefs_close): Likewise.
43088 (grub_pxefs_fs_int): Likewise.
43089 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43090 connection when we switch file.
43091 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43093 2008-08-06 Robert Millan <rmh@aybabtu.com>
43095 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43097 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43098 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43100 * kern/i386/halt.c: New file.
43101 * kern/i386/reboot.c: Likewise.
43102 * include/grub/i386/reboot.h: Likewise.
43103 * include/grub/i386/halt.h: Likewise.
43105 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43106 Include `<grub/cpu/halt.h>'.
43107 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43108 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43110 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43111 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43112 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43113 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43114 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43115 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43117 * include/grub/i386/at_keyboard.h: ... to here.
43119 2008-08-05 Robert Millan <rmh@aybabtu.com>
43121 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43122 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43123 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43124 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43125 `kern/generic/millisleep.c'.
43127 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43128 instead of grub_get_rtc().
43129 (grub_tsc_init): Initialize `tsc_boot_time'.
43131 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43132 (grub_machine_init): Use grub_tsc_init() rather than
43133 installing an RTC-based handler via grub_install_get_time_ms().
43135 * kern/i386/pit.c: New file.
43136 * include/grub/i386/pit.h: Likewise.
43138 2008-08-05 Bean <bean123ch@gmail.com>
43140 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43142 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43143 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43144 (pxe_mod_SOURCES): New macro.
43145 (pxe_mod_CFLAGS): Likewise.
43146 (pxe_mod_LDFLAGS): Likewise.
43147 (pxecmd_mod_SOURCES): Likewise.
43148 (pxecmd_mod_CFLAGS): Likewise.
43149 (pxecmd_mod_LDFLAGS): Likewise.
43151 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43152 (grub_pxe_call): Likewise.
43154 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43156 * commands/i386/pc/pxecmd.c: New file.
43158 * fs/i386/pc/pxe.c: Likewise.
43160 * include/grub/i386/pc/pxe.h: Likewise.
43162 2008-08-05 Bean <bean123ch@gmail.com>
43164 * util/console.c (grub_console_cur_color): New variable.
43165 (grub_console_standard_color): Likewise.
43166 (grub_console_normal_color): Likewise.
43167 (grub_console_highlight_color): Likewise.
43168 (color_map): Likewise.
43169 (use_color): Likewise.
43170 (NUM_COLORS): New macro.
43171 (grub_ncurses_setcolorstate): Handle color properly.
43172 (grub_ncurses_setcolor): Don't change color here, just remember the
43173 settings, color will be set in grub_ncurses_setcolorstate.
43174 (grub_ncurses_getcolor): New function.
43175 (grub_ncurses_init): Initialize color pairs.
43176 (grub_ncurses_term): New member grub_ncurses_getcolor.
43178 2008-08-05 Colin D Bennett <colin@gibibit.com>
43180 High resolution timer support. Implemented for x86 CPUs using TSC.
43181 Extracted generic grub_millisleep() so it's linked in only as needed.
43182 This requires a Pentium compatible CPU; if the RDTSC instruction is
43183 not supported, then it falls back on the generic grub_get_time_ms()
43184 implementation that uses the machine's RTC.
43186 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43187 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43188 `kern/generic/millisleep.c'.
43190 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43191 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43193 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43194 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43196 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43198 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43199 `kern/generic/millisleep.c'.
43201 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43203 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43205 * kern/generic/rtc_get_time_ms.c: New file.
43207 * kern/generic/millisleep.c: New file.
43209 * kern/misc.c: Don't include
43210 <kern/time.h> anymore.
43211 (grub_millisleep_generic): Removed.
43213 * commands/sleep.c (grub_interruptible_millisleep): Uses
43214 grub_get_time_ms() instead of grub_get_rtc().
43216 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43218 (grub_cpu_is_cpuid_supported): New inline function.
43219 (grub_cpu_is_tsc_supported): New inline function.
43220 (grub_tsc_init): New function prototype.
43221 (grub_tsc_get_time_ms): New function prototype.
43223 * kern/i386/tsc.c (grub_get_time_ms): New file.
43225 * include/grub/time.h: Include <grub/types.h.
43226 (grub_millisleep_generic): Removed.
43227 (grub_get_time_ms): New prototype.
43228 (grub_install_get_time_ms): New prototype.
43229 (grub_rtc_get_time_ms): New prototype.
43231 * kern/time.c (grub_get_time_ms): New function.
43232 (grub_install_get_time_ms): New function.
43234 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43235 <grub/time.h> anymore.
43236 (grub_millisleep): Removed.
43237 (grub_machine_init): Call grub_tsc_init.
43239 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43240 get_time_ms() implementation.
43242 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43243 (ieee1275_get_time_ms): New function.
43244 (grub_machine_init): Install get_time_ms() implementation.
43246 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43247 (grub_machine_init): Call grub_tsc_init().
43248 (grub_millisleep): Removed.
43250 * kern/ieee1275/init.c (grub_millisleep): Removed.
43251 (grub_machine_init): Install ieee1275_get_time_ms()
43253 (ieee1275_get_time_ms): New function.
43254 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43257 2008-08-05 Marco Gerards <marco@gnu.org>
43259 * disk/ata.c: Include <grub/pci.h>.
43260 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43261 (grub_ata_initialize): Rewritten.
43262 (grub_ata_device_initialize): New function.
43264 2008-08-04 Pavel Roskin <proski@gnu.org>
43266 * kern/main.c: Include grub/mm.h.
43268 2008-08-04 Robert Millan <rmh@aybabtu.com>
43270 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43271 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43272 corruption problem).
43274 2008-08-04 Robert Millan <rmh@aybabtu.com>
43276 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43277 warnings introduced in my last commit.
43279 2008-08-03 Robert Millan <rmh@aybabtu.com>
43281 Make PCI available on all i386 architectures.
43283 * include/grub/i386/pc/pci.h: Move from here ...
43284 * include/grub/i386/pci.h: ... to here.
43286 * include/grub/i386/pc/pci.h: Remove.
43287 * include/grub/i386/efi/pci.h: Remove.
43288 * include/grub/x86_64/efi/pci.h: Remove.
43290 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43291 `<grub/cpu/pci.h>'.
43293 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43294 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43295 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43297 * conf/i386-ieee1275.rmk: Likewise.
43299 2008-08-03 Robert Millan <rmh@aybabtu.com>
43301 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43302 (grub_console_setcursor): Make it possible to set cursor off.
43304 2008-08-03 Robert Millan <rmh@aybabtu.com>
43306 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43307 of modules instead of assuming which platform provides what.
43308 * util/update-grub.in: Likewise.
43310 2008-08-03 Robert Millan <rmh@aybabtu.com>
43312 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43313 instead of `grub_install_dos_part' to determine whether a drive needs
43314 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43315 because it can be overridden when loading GRUB via Multiboot).
43317 2008-08-02 Robert Millan <rmh@aybabtu.com>
43319 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43321 2008-08-02 Robert Millan <rmh@aybabtu.com>
43323 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43324 of informational grub_dprintf() calls.
43326 2008-08-02 Robert Millan <rmh@aybabtu.com>
43328 * disk/memdisk.c (memdisk_size): Don't initialize.
43329 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43331 * include/grub/i386/pc/kernel.h
43332 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43333 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43334 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43335 (grub_arch_memdisk_size): Remove.
43337 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43338 field (was only used to transfer a constant). Add `type' field to
43339 support multiple module types.
43340 (grub_module_iterate): New function.
43342 * kern/device.c (grub_device_open): Do not hide error messages
43343 when grub_disk_open() fails. Use grub_print_error() instead.
43345 * kern/i386/pc/init.c (grub_arch_modules_addr)
43346 (grub_arch_memdisk_size): Remove functions.
43347 (grub_arch_modules_addr): Return the module address in high memory
43348 (now that it isn't copied anymore).
43350 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43351 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43352 decompression routine (grub_total_module_size already includes that
43353 now). Don't copy modules back to low memory.
43355 * kern/main.c: Include `<grub/mm.h>'.
43356 (grub_load_modules): Split out (and use) ...
43357 (grub_module_iterate): ... this function, which iterates through
43358 module objects and runs a hook.
43359 Comment out grub_mm_init_region() call, as it would cause non-ELF
43360 modules to be overwritten.
43362 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43363 the memdisk image in its own region, make it part of the module list.
43364 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43365 (main): Parse --memdisk|-m option, and pass user-provided path as
43366 parameter to generate_image().
43367 (add_segments): Pass `memdisk_path' down to load_modules().
43368 (load_modules): Embed memdisk image in module section when requested.
43369 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43370 `header.type' instead of `header.offset'.
43372 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43373 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43374 (memdisk_mod_LDFLAGS): New variables.
43375 * conf/i386-coreboot.rmk: Likewise.
43376 * conf/i386-ieee1275.rmk: Likewise.
43378 2008-08-02 Robert Millan <rmh@aybabtu.com>
43380 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43381 (backward_relocator): New variables. Used to allocate and relocate
43382 the payload, respectively.
43383 (grub_multiboot_load_elf32): Load into heap instead of requested
43384 address, install the appropriate relocator code in each bound of
43385 the payload, and set the entry point such that
43386 grub_multiboot_real_boot() will jump to one of them.
43388 * kern/i386/loader.S (grub_multiboot_payload_size)
43389 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43390 (grub_multiboot_payload_entry_offset): New variables.
43391 (grub_multiboot_real_boot): Set cpu context to what the relocator
43392 expects, and jump to the relocator instead of the payload.
43394 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43395 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43396 (grub_multiboot_payload_entry_offset): Export.
43398 2008-08-01 Bean <bean123ch@gmail.com>
43400 * normal/menu_entry.c (editor_getline): Don't return the original
43401 string as result, as it will be released by lexer once it has done
43404 2008-08-01 Robert Millan <rmh@aybabtu.com>
43406 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43407 within menuentries, not before them.
43408 util/grub.d/10_hurd.in: Likewise.
43410 2008-08-01 Bean <bean123ch@gmail.com>
43412 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43413 (bufio_mod_SOURCES): New macro.
43414 (bufio_mod_CFLAGS): Likewise.
43415 (bufio_mod_LDFLAGS): Likewise.
43417 * include/grub/bufio.h: New file.
43419 * io/bufio.c: Likewise.
43421 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43422 (grub_video_reader_png): Use grub_buffile_open to open file.
43424 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43425 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43427 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43428 (grub_video_reader_tga): Use grub_buffile_open to open file.
43430 * font/manager.c: Include <grub/bufio.h>.
43431 (add_font): Use grub_buffile_open to open file.
43433 2008-07-31 Robert Millan <rmh@aybabtu.com>
43435 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43436 ELF segments, use a macro for arbitrarily accessing any of them instead
43437 of preparing a pointer that allows access to one at a time.
43438 (grub_multiboot_load_elf64): Likewise.
43440 2008-07-31 Bean <bean123ch@gmail.com>
43442 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43443 GRUB_KERNEL_MACHINE_DATA_END.
43445 2008-07-30 Robert Millan <rmh@aybabtu.com>
43447 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43448 Increase from 0x50 to 0x60.
43449 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43450 use UUIDs to identify the root drive for them. If that's not
43452 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43453 check, for cross-disk installs.
43455 2008-07-30 Robert Millan <rmh@aybabtu.com>
43457 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43458 is non-empty, use it to set the `prefix' environment variable instead
43459 of the usual approach.
43460 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43461 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43462 environment variable instead of dummy make_install_device().
43464 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43465 (start): Insert a data section, with `grub_prefix' variable.
43466 * kern/i386/linuxbios/startup.S: Likewise.
43468 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43469 New variable reference.
43470 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43471 New macro. Defines offset of `grub_prefix' within startup.S (relative
43473 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43474 section within startup.S (relative to `start').
43475 * include/grub/i386/coreboot/kernel.h: Likewise.
43477 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43478 Overwrite grub_prefix with its contents, at the beginning of the
43480 (main): Understand -p|--prefix.
43482 2008-07-30 Robert Millan <rmh@aybabtu.com>
43484 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43486 2008-07-30 Robert Millan <rmh@aybabtu.com>
43488 * term/i386/pc/vga_text.c (grub_console_cls): Use
43489 grub_console_gotoxy() to go back to beginning of the screen.
43490 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43492 2008-07-29 Christian Franke <franke@computer.org>
43494 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43495 Add conversion of emulated mount points on Cygwin.
43497 2008-07-29 Christian Franke <franke@computer.org>
43499 * util/update-grub.in: Add a check for admin
43501 Remove old `grub.cfg.new' before creation.
43502 Add `-f' to `mv' to handle the different filesystem
43503 semantics of Windows.
43505 2008-07-29 Bean <bean123ch@gmail.com>
43507 * normal/main.c (get_line): Fix buffer overflow bug.
43509 2008-07-28 Robert Millan <rmh@aybabtu.com>
43511 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43512 (struct grub_apple_header): New struct. Describes the layout of
43513 the partmap header.
43514 (apple_partition_map_iterate): Check the header magic as well as the
43515 partition magic (which was already being checked).
43517 2008-07-28 Pavel Roskin <proski@gnu.org>
43519 * genmk.rb: Add a warning to the beginning of the output that
43520 it's a generated file and should not be edited.
43522 2008-07-28 Robert Millan <rmh@aybabtu.com>
43524 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43525 with the same number are found, just use issue a warning with
43526 grub_dprintf(), as this error has been reported to be non-fatal.
43528 2008-07-27 Robert Millan <rmh@aybabtu.com>
43530 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43533 2008-07-27 Bean <bean123ch@gmail.com>
43535 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43536 (grub_fat_find_dir): Ignore case when comparing filename.
43538 2008-07-27 Bean <bean123ch@gmail.com>
43540 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43541 smallino, as it's more descriptive, and i8count can be confused with
43542 the other field count.
43543 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43546 2008-07-27 Bean <bean123ch@gmail.com>
43548 * commands/crc.c: New file.
43550 * lib/crc.c: Likewise.
43552 * include/grub/lib/crc.h: Likewise.
43554 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43556 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43557 (hexdump): Move this function to ...
43559 * lib/hexdump.c: ... here.
43561 * include/grub/hexdump.h: Renamed to ...
43563 * include/grub/lib/hexdump.h: ... this.
43565 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43567 * util/grub-editenv.c: Likewise.
43569 * include/envblk.h: Renamed to ...
43571 * include/lib/envblk.h: ... this.
43573 * util/envblk.c: Renamed to ...
43575 * lib/envblk.c: ... this.
43577 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43579 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43580 (pkglib_MODULES): Add crc.mod.
43581 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43582 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43583 (crc_mod_SOURCES): New macro.
43584 (crc_mod_CFLAGS): Likewise.
43585 (crc_mod_LDFLAGS): Likewise.
43587 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43589 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43591 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43595 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43597 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43599 * commands/help.c: Include <grub/term.h>.
43600 (TERM_WIDTH): Removed. Updated all users.
43602 2008-07-27 Pavel Roskin <proski@gnu.org>
43604 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43605 spurious warnings about a comment within a comment.
43607 2008-07-25 Robert Millan <rmh@aybabtu.com>
43609 * util/getroot.c (find_root_device): Skip devices that match
43610 /dev/dm-[0-9]. This lets the real device be found for any type of
43611 abstraction (LVM, EVMS, RAID..).
43612 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43613 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43614 device is found first, find_root_device() will now skip it.
43616 2008-07-24 Pavel Roskin <proski@gnu.org>
43618 * include/grub/types.h: Use __builtin_bswap32() and
43619 __builtin_bswap64() with gcc 4.3 and newer.
43621 2008-07-24 Christian Franke <franke@computer.org>
43623 * util/i386/pc/grub-install.in: If `--debug' is specified,
43624 pass `--verbose' to grub-setup.
43625 Abort script if make_system_path_relative_to_its_root() fails.
43627 2008-07-24 Bean <bean123ch@gmail.com>
43629 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43630 variable `target_platform' should be `platform'.
43632 2008-07-24 Bean <bean123ch@gmail.com>
43634 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43635 (grub_png_init_fixed_block): New function.
43636 (grub_png_decode_image_data): Handle fixed huffman code compression.
43638 2008-07-24 Bean <bean123ch@gmail.com>
43640 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43641 (grub_pe2elf_SOURCES): New macro.
43642 (CLEANFILES): Add grub-pe2elf.
43644 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43645 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43646 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43647 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43648 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43649 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43650 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43651 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43652 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43653 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43654 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43655 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43656 (GRUB_PE32_DT_FUNCTION): Likewise.
43657 (GRUB_PE32_REL_I386_DIR32): Likewise.
43658 (GRUB_PE32_REL_I386_REL32): Likewise.
43659 (grub_pe32_symbol): New structure.
43660 (grub_pe32_reloc): Likewise.
43662 * util/grub-pe2elf.c: New file.
43664 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43665 start symbol in non pc platform.
43667 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43669 The following patches are from Christian Franke.
43671 * include/grub/dl.h: Remove .previous, gas supports this only
43674 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43675 Remove .type, gas supports this only for ELF format.
43677 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43678 nullbytes in symbol table. This fixes an infinite loop if table is
43681 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43682 TARGET_IMG_LDFLAGS and EXEEXT.
43684 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43685 TARGET_IMG_LDFLAGS_AC.
43686 (grub_CHECK_STACK_ARG_PROBE): New function.
43688 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43690 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43692 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43693 to set TARGET_IMG_LD* accordingly.
43694 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43695 Add call to grub_CHECK_STACK_ARG_PROBE.
43696 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43698 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43700 * genmk.rb: Add EXEEXT to CLEANFILES.
43702 2008-07-23 Robert Millan <rmh@aybabtu.com>
43704 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43705 define the codes for arrows and lines used for the menu).
43706 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43709 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43710 fonts, because the latter are too slow.
43712 2008-07-21 Bean <bean123ch@gmail.com>
43714 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43715 a20. Run keyboard test last, as it will cause macbook to halt.
43717 2008-07-18 Pavel Roskin <proski@gnu.org>
43719 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43720 load foreign architecture modules correctly anyway. Keep
43721 support for loading host architecture modules, whether we
43722 compile them or not.
43724 2008-07-17 Pavel Roskin <proski@gnu.org>
43726 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43727 change target_cpu. The compiler default can mismatch target_cpu
43730 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43731 * kern/efi/efi.c: Likewise.
43733 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43734 target compiler is functional.
43735 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43738 * configure.ac: Default to efi platform for x86_64-apple. Allow
43739 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43740 adjustments from the rest, only do them if target is not
43741 explicitly given. Merge other adjustments with the final sanity
43742 check. Remove an extraneous check for supported CPU. Be
43743 specific which CPU and which platform is not supported.
43745 * configure.ac: Default to pc platform for x86_64.
43747 2008-07-17 Robert Millan <rmh@aybabtu.com>
43749 Partial LinuxBIOS -> Coreboot rename.
43751 * conf/i386-linuxbios.rmk: Renamed to ...
43752 * conf/i386-coreboot.rmk: ... this.
43753 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43754 * configure.ac: Accept "coreboot" as input platform (but maintain
43755 compatibility with "linuxbios").
43756 * include/grub/i386/linuxbios: Renamed to ...
43757 * include/grub/i386/coreboot: ... this.
43759 2008-07-17 Bean <bean123ch@gmail.com>
43761 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43762 (appleldr_mod_SOURCE): New variable.
43763 (appleldr_mod_CFLAGS): Likewise.
43764 (appleldr_mod_LDFLAGS): Likewise.
43765 (pci_mod_SOURCES): Likewise.
43766 (pci_mod_CFLAGS): Likewise.
43767 (pci_mod_LDFLAGS): Likewise.
43768 (lspci_mod_SOURCES): Likewise.
43769 (lspci_mod_CFLAGS): Likewise.
43770 (lspci_mod_LDFLAGS): Likewise.
43772 * conf/x86_64-efi.rmk: New file.
43774 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43776 (grub_efidisk_write): Likewise.
43778 * include/efi/api.h (efi_call_0): New macro.
43779 (efi_call_1): Likewise.
43780 (efi_call_2): Likewise.
43781 (efi_call_3): Likewise.
43782 (efi_call_4): Likewise.
43783 (efi_call_5): Likewise.
43784 (efi_call_6): Likewise.
43786 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43787 grub_rescue_cmd_chainloader.
43789 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43790 (grub_pe32_optional_header): Change some fields based on i386 or
43792 (GRUB_PE32_PE32_MAGIC): Likewise.
43794 * include/grub/efi/uga_draw.h: New file.
43796 * include/grub/elf.h (STN_ABS): New constant.
43797 (R_X86_64_NONE): Relocation constant for x86_64.
43798 (R_X86_64_64): Likewise.
43799 (R_X86_64_PC32): Likewise.
43800 (R_X86_64_GOT32): Likewise.
43801 (R_X86_64_PLT32): Likewise.
43802 (R_X86_64_COPY): Likewise.
43803 (R_X86_64_GLOB_DAT): Likewise.
43804 (R_X86_64_JUMP_SLOT): Likewise.
43805 (R_X86_64_RELATIVE): Likewise.
43806 (R_X86_64_GOTPCREL): Likewise.
43807 (R_X86_64_32): Likewise.
43808 (R_X86_64_32S): Likewise.
43809 (R_X86_64_16): Likewise.
43810 (R_X86_64_PC16): Likewise.
43811 (R_X86_64_8): Likewise.
43812 (R_X86_64_PC8): Likewise.
43814 * include/grub/i386/efi/pci.h: New file.
43816 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43817 Change it value based on platform.
43818 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43819 (GRUB_E820_RAM): Likewise.
43820 (GRUB_E820_RESERVED): Likewise.
43821 (GRUB_E820_ACPI): Likewise.
43822 (GRUB_E820_NVS): Likewise.
43823 (GRUB_E820_EXEC_CODE): Likewise.
43824 (GRUB_E820_MAX_ENTRY): Likewise.
43825 (grub_e820_mmap): New structure.
43826 (linux_kernel_header): Change the efi field according to different
43827 kernel version, also field from linux_kernel_header.
43829 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43831 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43832 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43833 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43834 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43835 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43836 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43837 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43838 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43839 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43840 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43842 * include/grub/x86_64/efi/kernel.h: New file.
43844 * include/grub/x86_64/efi/loader.h: Likewise.
43846 * include/grub/x86_64/efi/machine.h: Likewise.
43848 * include/grub/x86_64/efi/pci.h: Likewise.
43850 * include/grub/x86_64/efi/time.h: Likewise.
43852 * include/grub/x86_64/linux.h: Likewise.
43854 * include/grub/x86_64/setjmp.h: Likewise.
43856 * include/grub/x86_64/time.h: Likewise.
43858 * include/grub/x86_64/types.h: Likewise.
43860 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43861 GRUB_TARGET_SIZEOF_VOID_P.
43863 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43864 (grub_efi_locate_handle): Likewise.
43865 (grub_efi_open_protocol): Likewise.
43866 (grub_efi_set_text_mode): Likewise.
43867 (grub_efi_stall): Likewise.
43868 (grub_exit): Likewise.
43869 (grub_reboot): Likewise.
43870 (grub_halt): Likewise.
43871 (grub_efi_exit_boot_services): Likewise.
43872 (grub_get_rtc): Likewise.
43874 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43875 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43876 (grub_efi_allocate_pages): Wrap efi calls.
43877 (grub_efi_free_pages): Wrap efi calls.
43878 (grub_efi_get_memory_map): Wrap efi calls.
43880 * kern/x86_64/dl.c: New file.
43882 * kern/x86_64/efi/callwrap.S: Likewise.
43884 * kern/x86_64/efi/startup.S: Likewise.
43886 * loader/efi/appleloader.c: Likewise.
43888 * loader/efi/chainloader.c (cmdline): New variable.
43889 (grub_chainloader_unload): Wrap efi calls.
43890 (grub_chainloader_boot): Likewise.
43891 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43894 * loader/efi/chainloader_normal.c (chainloader_command):
43895 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43898 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43900 (grub_e820_add_region): New function.
43901 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43903 (grub_find_video_card): New function.
43904 (grub_linux_setup_video): New function.
43905 (grub_rescue_cmd_linux): Probe for video information.
43907 * normal/x86_64/setjmp.S: New file.
43909 * term/efi/console.c (map_char): New function.
43910 (grub_console_putchar): Map unicode char.
43911 (grub_console_checkkey): Wrap efi calls.
43912 (grub_console_getkey): Likewise.
43913 (grub_console_getwh): Likewise.
43914 (grub_console_gotoxy): Likewise.
43915 (grub_console_cls): Likewise.
43916 (grub_console_setcolorstate): Likewise.
43917 (grub_console_setcursor): Likewise.
43919 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43921 2008-07-16 Pavel Roskin <proski@gnu.org>
43923 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43926 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43927 pointer, not an integer. This fixes a warning and prevents
43928 precision loss on 64-bit systems.
43929 (relocate_addresses): Remove unneeded cast.
43931 2008-07-15 Pavel Roskin <proski@gnu.org>
43933 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43935 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43937 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43938 Fix comparison between signed and unsigned.
43940 * include/grub/i386/ieee1275/console.h: Declare
43941 grub_console_init() and grub_console_fini().
43943 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43944 It's empty and unused.
43946 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43947 beginning to avoid warnings with some compilers.
43949 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43950 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43952 2008-07-14 Pavel Roskin <proski@gnu.org>
43954 * kern/env.c (grub_register_variable_hook): Don't copy empty
43955 string, it leaks memory. Pass "" to grub_env_set(), it should
43956 handle constant strings.
43958 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43959 * commands/cmp.c (grub_cmd_cmp): Likewise.
43960 * kern/dl.c (grub_dl_flush_cache): Likewise.
43961 (grub_dl_load_core): Likewise.
43962 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43963 (grub_elf64_load_phdrs): Likewise.
43965 2008-07-13 Pavel Roskin <proski@gnu.org>
43967 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43968 between signed and unsigned.
43969 (LzmaEnc_Finish): Fix warning about an unused parameter.
43971 2008-07-13 Bean <bean123ch@gmail.com>
43973 * Makefile.in (enable_lzo): New rule.
43975 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43977 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43979 * boot/i386/pc/lnxboot.S: #include <config.h>.
43981 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43982 its value according to the compression algorithm used, lzo or lzma.
43984 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43985 compression algorithm according to configure macro.
43987 * kern/i386/pc/startup.S (codestart): Likewise.
43989 * kern/i386/pc/lzma_decode.S: New file.
43991 * include/grub/lib/LzFind.h: Likewise.
43993 * include/grub/lib/LzHash.h: Likewise.
43995 * include/grub/lib/LzmaDec.h: Likewise.
43997 * include/grub/lib/LzmaEnc.h: Likewise.
43999 * include/grub/lib/LzmaTypes.h: Likewise.
44001 * lib/LzFind.c: Likewise.
44003 * lib/LzmaDec.c: Likewise.
44005 * lib/LzmaEnc.c: Likewise.
44007 2008-07-13 Bean <bean123ch@gmail.com>
44009 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44010 (grub_ext4_extent_header): New structure.
44011 (grub_ext4_extent): Likewise.
44012 (grub_ext4_extent_idx): Likewise.
44013 (grub_ext4_find_leaf): New function.
44014 (grub_ext2_read_block): Handle extents.
44016 2008-07-12 Robert Millan <rmh@aybabtu.com>
44018 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44020 2008-07-11 Robert Millan <rmh@aybabtu.com>
44022 * util/grub.d/40_custom.in: New file. Example on how to add custom
44023 entries to /etc/grub.d.
44024 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44025 40_custom (implicitly, by merging all the grub.d rules).
44027 2008-07-11 Pavel Roskin <proski@gnu.org>
44029 * commands/read.c (grub_getline): Fix invalid memory access.
44030 Don't add newline to the variable value.
44032 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44033 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44034 (serial_hw_get_port): Check validity of the port number.
44035 (grub_cmd_serial): Check return value of serial_hw_get_port().
44037 2008-07-07 Pavel Roskin <proski@gnu.org>
44039 * boot/i386/pc/diskboot.S (notification_string): Replace
44040 "Loading kernel" with just "loading". This is shorter, less
44041 confusing and saves a few bytes for possible future changes.
44043 2008-07-05 Pavel Roskin <proski@gnu.org>
44045 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44046 size for ATAPI devices, they are undefined. Output sector
44047 number in decimal form.
44049 * disk/ata.c: Use named constants for status bits.
44051 2008-07-04 Pavel Roskin <proski@gnu.org>
44053 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44054 grub_addr_t before casting it to the void pointer to fix a
44055 warning. Non-addressable regions are discarded earlier.
44056 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44057 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44058 (check_signature): Don't shadow table_header.
44059 (grub_linuxbios_table_iterate): Cast numeric constants to
44060 grub_linuxbios_table_header_t.
44061 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44064 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44067 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44068 pointer, which can cause warnings. Support 64-bit addresses.
44070 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44071 of sizeof(long). This fixes PowerPC image generation on x86_64.
44073 2008-07-04 Robert Millan <rmh@aybabtu.com>
44075 This fixes a performance issue when pc & gpt partmap iterators
44076 didn't abort iteration even after our hook found what it was
44077 looking for (often causing expensive probes of non-existent drives).
44079 Some callers relied on previous buggy behaviour, since they would
44080 raise an error when their own hooks caused early abortion of its
44083 * kern/device.c (grub_device_open): Improve error message.
44084 * disk/lvm.c (grub_lvm_open): Likewise.
44085 * disk/raid.c (grub_raid_open): Likewise.
44087 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44088 when hook requests it, independently of grub_errno.
44089 (pc_partition_map_probe): Do not fail when find_func() caused
44090 early abortion of pc_partition_map_iterate().
44092 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44093 when hook requests it, independently of grub_errno.
44094 (gpt_partition_map_probe): Do not fail when find_func() caused
44095 early abortion of gpt_partition_map_iterate().
44097 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44098 when hook requests it, independently of grub_errno. Do not fail when
44099 part_map_iterate_hook() caused early abortion of p->iterate().
44101 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44102 when grub_partition_iterate() returned with non-zero.
44104 2008-07-03 Pavel Roskin <proski@gnu.org>
44106 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44107 like we do in grub_ata_pio_read().
44108 (grub_ata_readwrite): Always write individual sectors. Fix the
44109 sector count for the remainder.
44110 (grub_ata_write): Enable writing to ATA devices. Correctly
44111 report error for ATAPI devices.
44113 2008-07-02 Pavel Roskin <proski@gnu.org>
44115 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44118 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44119 for every read sector, we already increment it for the whole
44120 batch. This fixes reading more than 256 sectors at once.
44122 * util/grub-editenv.c (cmd_info): Cast argument to long
44123 explicitly. ptrdiff_t reduces to int on i386.
44125 * util/grub-editenv.c (main): Be specific which parameter is
44128 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44129 (memdisk): Make memdisk_orig_addr a pointer.
44131 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44132 for file offsets, use grub_off_t instead. Fix printf format
44135 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44136 there. Real unexpected warnings should not drown in the noise
44137 about known problems.
44139 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44140 grub_disk_addr_t for memory addresses.
44142 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44143 explicitly to fix a warning.
44145 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44147 * Makefile.in (MODULE_LDFLAGS): New variable.
44148 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44149 the linker accepts --build-id=none.
44150 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44152 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44154 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44155 those in Linux XFS code. Provide a way to access 64-bit parent
44157 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44158 the end of struct grub_xfs_dir_header.
44160 2008-07-02 Bean <bean123ch@gmail.com>
44162 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44163 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44164 and GRUB_IEEE1275_FLAG_NO_ANSI.
44166 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44167 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44168 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44170 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44171 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44173 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44174 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44176 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44177 esc sequence on non ANSI terminal.
44178 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44180 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44183 2008-07-02 Bean <bean123ch@gmail.com>
44185 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44186 (grub_editenv_SOURCES): New variable.
44187 (pkglib_MODULES): Add loadenv.mod.
44188 (loadenv_mod_SOURCES): New variable.
44189 (loadenv_mod_CFLAGS): Likewise.
44190 (loadenv_mod_LDFLAGS): Likewise.
44192 * include/grub/envblk.h: New file.
44194 * util/envblk.c: New file.
44196 * util/grub-editenv.c: New file.
44198 * commands/loadenv.c: New file.
44200 2008-07-01 Pavel Roskin <proski@gnu.org>
44202 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44203 not unsigned char. This fixes warnings and is consistent with
44206 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44208 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44210 * term/tparm.c (analyze): Always set *popcount.
44212 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44213 cast to fix a warning.
44215 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44216 cast to suppress a warning.
44218 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44219 grub_fshelp_read_file() expects.
44221 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44222 write uuid as a 32-bit value in CPU byte order, so declare and
44225 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44226 long if the format specifier expects it.
44227 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44228 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44229 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44230 long to fix a warning.
44231 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44232 grub_dprintf() arguments to fix warnings.
44234 2008-06-30 Pavel Roskin <proski@gnu.org>
44236 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44237 install_bsd_part immediately before core.img is embedded or
44238 modified on disk. This fixes core.img verification if core.img
44239 cannot be embedded.
44241 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44242 core_path to calculate the blocklist.
44243 Patch from Javier Martín <lordhabbit@gmail.com>
44245 2008-06-29 Robert Millan <rmh@aybabtu.com>
44247 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44248 block to disk block.
44249 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44250 Patch from Niels Böhm <bitbucket@arcor.de>
44252 2008-06-29 Robert Millan <rmh@aybabtu.com>
44254 * util/update-grub_lib.in (font_path): Search for fonts in
44255 /boot/grub first, which is more likely to be readable (we aren't
44256 deciding where fonts live, just looking for them).
44258 2008-06-26 Pavel Roskin <proski@gnu.org>
44260 * util/biosdisk.c (read_device_map): Don't leave dead map
44261 entries for devices failing stat() check.
44263 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44264 core_path_dev for the core.img path on the target device.
44266 2008-06-26 Robert Millan <rmh@aybabtu.com>
44268 * disk/fs_uuid.c: New file.
44269 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44270 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44271 (fs_uuid_mod_LDFLAGS): New variables.
44272 * include/grub/disk.h (grub_disk_dev_id): Add
44273 `GRUB_DISK_DEVICE_UUID_ID'.
44274 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44275 implement iterate().
44277 2008-06-26 Robert Millan <rmh@aybabtu.com>
44279 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44280 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44281 Linux image includes no initrd.
44283 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44285 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44286 call to resolve the core image location that effectively appended the
44289 2008-06-21 Robert Millan <rmh@aybabtu.com>
44291 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44294 * util/grub.d/10_hurd.in: ... to here ...
44295 * util/grub.d/10_linux.in: ... and here.
44297 2008-06-19 Robert Millan <rmh@aybabtu.com>
44299 * kern/main.c (grub_main): Export `prefix' variable immediately
44300 after it has been set by grub_machine_set_prefix().
44302 2008-06-19 Robert Millan <rmh@aybabtu.com>
44304 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44305 search result when not saving to variable, not the other way around.
44306 When saving to variable, abort iteration as soon as a match is found.
44308 2008-06-19 Robert Millan <rmh@aybabtu.com>
44310 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44311 check for partition that provides /boot/grub. Its logic is flawed,
44312 as it prevents prepare_grub_to_access_device() from being called
44315 2008-06-19 Robert Millan <rmh@aybabtu.com>
44317 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44318 "insmod" command directly when abstraction modules are needed,
44319 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44320 since it had already been processed).
44322 2008-06-19 Pavel Roskin <proski@gnu.org>
44324 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44325 changed. This is needed in case GRUB_LIBDIR changes.
44326 * conf/i386-ieee1275.rmk: Likewise.
44327 * conf/i386-linuxbios.rmk: Likewise.
44328 * conf/i386-pc.rmk: Likewise.
44329 * conf/powerpc-ieee1275.rmk: Likewise.
44331 2008-06-18 Pavel Roskin <proski@gnu.org>
44333 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44334 kernel_elf_symlist.c to symlist.c for consistency with other
44335 architectures. Update all users.
44336 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44338 2008-06-18 Robert Millan <rmh@aybabtu.com>
44340 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44343 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44344 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44345 a RAID device, run setup() for all members independently on whether
44346 LVM abstraction is being used.
44347 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44348 If grub-mkimage has set `*install_dos_part == -2', don't override this
44350 Perform *install_dos_part adjustments independently on whether
44351 we're embedding or not.
44352 Clarify error message when image is too big for embedding.
44353 Remove duplicate *install_dos_part stanza.
44355 2008-06-17 Robert Millan <rmh@aybabtu.com>
44357 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44358 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44360 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44361 values in grub_ofconsole_normal_color and
44362 grub_ofconsole_highlight_color (they're not directly related to
44363 background and foreground).
44364 (grub_ofconsole_setcolorstate): Extract background and foreground
44365 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44367 2008-06-17 Robert Millan <rmh@aybabtu.com>
44369 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44370 /boot/grub for the check in last commit, not /boot (they could be
44371 different partitions).
44373 2008-06-16 Robert Millan <rmh@aybabtu.com>
44375 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44376 asked to setup access for the same partition that provides /boot,
44377 don't bother using UUIDs since our root already has the value we
44380 2008-06-16 Robert Millan <rmh@aybabtu.com>
44382 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44384 Patch from Sven Mueller <sven@debian.org>.
44386 2008-06-16 Robert Millan <rmh@aybabtu.com>
44388 * util/update-grub.in: Check for $EUID instead of $UID.
44389 Reported by Vincent Zweije.
44391 2008-06-16 Bean <bean123ch@gmail.com>
44393 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44394 (grub_ext2_read_block): Likewise.
44395 (grub_ext2_read_inode): Likewise.
44396 (grub_ext2_mount): Likewise.
44397 (grub_ext2_close): Likewise.
44398 (grub_ext3_get_journal): Removed.
44400 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44401 (grub_reiserfs_read_symlink): Likewise.
44402 (grub_reiserfs_mount): Likewise.
44403 (grub_reiserfs_open): Likewise.
44404 (grub_reiserfs_read): Likewise.
44405 (grub_reiserfs_close): Likewise.
44406 (grub_reiserfs_get_journal): Removed.
44408 * fs/fshelp.c (grub_fshelp_read): Removed.
44409 (grub_fshelp_map_block): Likewise.
44411 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44412 (grub_fshelp_journal): Likewise.
44413 (grub_fshelp_read): Likewise.
44414 (grub_fshelp_map_block): Likewise.
44416 2008-06-16 Pavel Roskin <proski@gnu.org>
44418 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44419 floating point anymore.
44420 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44422 2008-06-15 Pavel Roskin <proski@gnu.org>
44424 * commands/ls.c (grub_ls_list_files): Use integer calculations
44425 for human readable format, avoid floating point use.
44426 * kern/misc.c (grub_ftoa): Remove.
44427 (grub_vsprintf): Remove floating point support.
44429 2008-06-15 Robert Millan <rmh@aybabtu.com>
44431 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44433 Reported by Max Vozeler.
44435 2008-06-15 Robert Millan <rmh@aybabtu.com>
44437 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44438 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44440 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44441 the beginning of the prefix.
44443 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44444 It is assumed that if we have a memdisk, grub-mkimage has set
44445 grub_prefix to include the "(memdisk)" drive in it.
44447 2008-06-15 Robert Millan <rmh@aybabtu.com>
44449 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44450 Initialize keyboard controller after registering the terminal, so that
44451 grub_printf() can be called from grub_keyboard_controller_init().
44453 2008-06-15 Robert Millan <rmh@aybabtu.com>
44455 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44456 extent-btree which is written as big endian on disk.
44457 Reported by Alain Greppin <al@chilibi.org>.
44459 2008-06-14 Robert Millan <rmh@aybabtu.com>
44461 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44462 * util/i386/pc/grub-install.in (modules): Likewise.
44464 2008-06-13 Pavel Roskin <proski@gnu.org>
44466 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44468 2008-06-13 Bean <bean123ch@gmail.com>
44470 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44472 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44474 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44475 to indicate sparse block.
44477 2008-06-12 Pavel Roskin <proski@gnu.org>
44479 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44480 number, grub_fshelp_read() does it for us.
44482 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44483 linear disk read with journal translation.
44484 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44485 * include/grub/fshelp.h: Declare grub_fshelp_read().
44487 2008-06-09 Pavel Roskin <proski@gnu.org>
44489 * fs/minix.c (grub_minix_mount): Handle error reading
44492 2008-06-08 Robert Millan <rmh@aybabtu.com>
44494 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44495 don't append the RAID prefix afterwards.
44496 Reported by Clint Adams.
44498 2008-06-08 Robert Millan <rmh@aybabtu.com>
44500 Based on description from Pavel:
44501 * kern/disk.c (grub_disk_check_range): Rename to ...
44502 (grub_disk_adjust_range): ... this. Add a comment explaining the
44503 tasks performed by this function.
44505 2008-06-08 Robert Millan <rmh@aybabtu.com>
44507 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44508 `num_serial' (for consistency with other variables).
44509 (struct grub_ntfs_data): Add `uuid' member.
44510 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44511 (grub_ntfs_uuid): New function.
44512 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44514 2008-06-07 Pavel Roskin <proski@gnu.org>
44516 * util/biosdisk.c (open_device): Revert last change to the
44517 function, it broke installation. The sector needs to be
44518 different dependent on which device is opened.
44520 2008-06-06 Robert Millan <rmh@aybabtu.com>
44522 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44523 rest of GRUB, and breakage doesn't happen if its value were modified.
44525 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44526 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44527 a constant (same value).
44528 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44529 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44531 2008-06-06 Robert Millan <rmh@aybabtu.com>
44533 * util/biosdisk.c (open_device): Do not modify sector offset when
44534 accessing a partition. kern/disk.c already handles this for us.
44536 2008-06-06 Robert Millan <rmh@aybabtu.com>
44538 * util/grub-emu.c (grub_machine_init): Move code in this function from
44540 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44541 segfault in case grub_printf() is called).
44543 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44544 grub_probe. Update all users not to explicitly add it again.
44545 (grub_device): New variable; contains corresponding device for grubdir.
44546 (fs_module, partmap_module, devabstraction_module): Pass
44547 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44550 2008-06-05 Robert Millan <rmh@aybabtu.com>
44552 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44553 is found, print it (same layout as with labels).
44555 2008-06-04 Robert Millan <rmh@aybabtu.com>
44557 * util/biosdisk.c (get_drive): Rename to ...
44558 (find_grub_drive): ... this. Update all users.
44560 (get_os_disk): Rename to ...
44561 (convert_system_partition_to_system_disk): ... this. Update all users.
44563 (find_drive): Rename to ...
44564 (find_system_device): ... this. Update all users.
44566 2008-06-04 Robert Millan <rmh@aybabtu.com>
44568 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44569 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44570 (make_device_map): Likewise.
44572 2008-06-01 Robert Millan <rmh@aybabtu.com>
44574 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44575 before dereferencing it.
44577 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44578 union with fat12/fat16-specific ones. Add some new fields, including
44579 `num_serial' for both versions.
44580 (struct grub_fat_data): Add `uuid' member.
44581 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44582 names. Initialize `data->uuid' using `num_serial'.
44583 (grub_fat_uuid): New function.
44584 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44586 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44587 (grub_reiserfs_uuid): New function.
44588 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44591 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44592 (grub_xfs_uuid): New function.
44593 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44595 2008-06-01 Robert Millan <rmh@aybabtu.com>
44597 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44598 code that is backward compatible with pre-uuid search command.
44600 2008-05-31 Robert Millan <rmh@aybabtu.com>
44602 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44603 floppies after everything else, to ensure floppy drive isn't accessed
44604 unnecessarily (patch from Bean).
44606 2008-05-31 Robert Millan <rmh@aybabtu.com>
44608 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44609 not print device names when we were asked to set a variable.
44611 2008-05-31 Robert Millan <rmh@aybabtu.com>
44613 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44614 using "cursor-on" and "cursor-off" commands (understood at least by
44615 the Open Firmware flavour on OLPC).
44617 2008-05-31 Michael Gorven <michael@gorven.za.net>
44619 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44620 on and off sequences.
44622 2008-05-31 Robert Millan <rmh@aybabtu.com>
44624 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44625 * util/update-grub.in: Likewise.
44627 2008-05-30 Pavel Roskin <proski@gnu.org>
44629 * util/biosdisk.c (linux_find_partition): Simplify logic and
44630 make the code more universal. Keep special processing for
44631 devfs, but use a simple rule for all other devices. If the
44632 device ends with a number, append 'p' and the partition number.
44633 Otherwise, append only the partition number.
44635 2008-05-30 Robert Millan <rmh@aybabtu.com>
44637 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44638 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44639 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44640 the `root' parameter to Linux.
44642 2008-05-30 Robert Millan <rmh@aybabtu.com>
44644 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44645 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44646 --fs_uuid with --fs-uuid.
44647 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44648 all filesystems support them).
44650 2008-05-30 Robert Millan <rmh@aybabtu.com>
44652 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44653 grub_printf() flags, since we're printing in units of 2 bytes.
44655 2008-05-30 Robert Millan <rmh@aybabtu.com>
44657 * util/grub.d/00_header.in: Remove obsolete comment referencing
44658 convert_system_path_to_grub_path().
44659 * util/update-grub.in: Likewise.
44660 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44661 (convert_system_path_to_grub_path): Add a warning message explaining
44662 that this function is deprecated. Rely on is_path_readable_by_grub()
44663 for the readability checks.
44664 (font_path): Use is_path_readable_by_grub() for the readability
44665 check rather than convert_system_path_to_grub_path().
44667 2008-05-30 Robert Millan <rmh@aybabtu.com>
44669 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44670 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44671 converting it first.
44672 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44673 grub.cfg for access to font file, and afterwards call it again to set
44676 2008-05-30 Robert Millan <rmh@aybabtu.com>
44678 * commands/search.c (options): Add --fs_uuid option.
44679 (search_fs_uuid): New function.
44680 (grub_cmd_search): Fix --set argument passing.
44681 Use search_fs_uuid() when requested via --fs_uuid.
44682 (grub_search_init): Update help message.
44683 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44684 and redeclare it as an array of 16-bit words.
44685 (grub_ext2_uuid): New function.
44686 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44687 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44688 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44689 (GRUB_DEVICE_BOOT_UUID): New variables.
44690 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44691 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44693 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44694 just assume `root' variable has the right value.
44695 * util/grub.d/10_linux.in: Likewise.
44696 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44698 (main): Recognise `-t fs_uuid' argument.
44700 2008-05-30 Robert Millan <rmh@aybabtu.com>
44702 * util/biosdisk.c (map): Redefine structure to hold information
44703 about GRUB drive name.
44704 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44706 (call_hook): Remove.
44707 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44708 member. Assume drive has partitions.
44709 (grub_util_biosdisk_open): Access device names via `.device' struct
44711 (open_device): Likewise.
44712 (find_drive): Likewise.
44713 (read_device_map): Adjust map[] usage to match the new struct
44714 definition. Don't check for duplicates (still possible, but not cheap
44716 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44717 (make_device_name): Remove assumption of BIOS-like drive names.
44719 2008-05-30 Pavel Roskin <proski@gnu.org>
44721 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44722 compiling execute.c doesn't need grub_script.tab.h anymore.
44723 (normal/command.c_DEPENDENCIES): Likewise.
44724 (normal/function.c_DEPENDENCIES): Likewise.
44725 * conf/i386-ieee1275.rmk: Likewise.
44726 * conf/i386-linuxbios.rmk: Likewise.
44727 * conf/i386-pc.rmk: Likewise.
44728 * conf/powerpc-ieee1275.rmk: Likewise.
44729 * conf/sparc64-ieee1275.rmk: Likewise.
44731 2008-05-29 Pavel Roskin <proski@gnu.org>
44733 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44734 when scanning metadata for volume group name.
44736 * include/grub/script.h: Don't include grub_script.tab.h. It's
44737 a generated file, which may only be included from the files with
44738 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44739 use union YYSTYPE, as the later allows forward declaration.
44740 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44742 2008-05-29 Robert Millan <rmh@aybabtu.com>
44744 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44745 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44746 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44747 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44750 2008-05-29 Robert Millan <rmh@aybabtu.com>
44752 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44753 control key combinations.
44755 2008-05-29 Robert Millan <rmh@aybabtu.com>
44757 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44758 * util/ieee1275/grub-install.in: ... to here.
44759 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44760 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44761 (grub_install_SOURCES): Likewise.
44763 2008-05-29 Robert Millan <rmh@aybabtu.com>
44765 * fs/affs.c: Update copyright year.
44766 * fs/ext2.c: Likewise.
44767 * fs/fshelp.c: Likewise.
44768 * fs/hfsplus.c: Likewise.
44769 * fs/ntfs.c: Likewise.
44770 * fs/xfs.c: Likewise.
44771 * include/grub/fshelp.h: Likewise.
44772 * util/grub-mkdevicemap.c: Likewise.
44774 2008-05-28 Robert Millan <rmh@aybabtu.com>
44776 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44777 might need to be fatfs to support some firmware implementations
44780 2008-05-28 Robert Millan <rmh@aybabtu.com>
44782 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44784 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44785 (make_device_map): Likewise.
44787 2008-05-20 Bean <bean123ch@gmail.com>
44789 * fs/fshelp.c (grub_fshelp_map_block): New function.
44790 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44791 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44793 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44794 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44795 (grub_fshelp_journal): New structure.
44796 (grub_fshelp_map_block): New function prototype.
44797 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44798 (grub_fshelp_map_block): Likewise.
44800 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44801 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44802 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44803 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44804 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44805 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44806 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44807 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44808 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44809 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44810 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44811 (grub_ext2_sblock): New members for journal support.
44812 (grub_ext3_journal_header): New structure.
44813 (grub_ext3_journal_revoke_header): Likewise.
44814 (grub_ext3_journal_block_tag): Likewise.
44815 (grub_ext3_journal_sblock): Likewise.
44816 (grub_fshelp_node): New members logfile and journal.
44817 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44818 grub_fshelp_map_block to get real block number.
44819 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44821 (grub_ext2_read_inode): Likewise.
44822 (grub_ext3_get_journal): New function.
44823 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44824 (grub_ext2_close): Release memory used by journal.
44826 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44827 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44828 (grub_reiserfs_transaction_header): Renamed to
44829 grub_reiserfs_description_block, replace field data with real_blocks.
44830 (grub_reiserfs_commit_block): New structure.
44831 (grub_reiserfs_data): New member journal.
44832 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44834 (grub_reiserfs_read_symlink): Likewise.
44835 (grub_reiserfs_iterate_dir): Likewise.
44836 (grub_reiserfs_open): Likewise.
44837 (grub_reiserfs_read): Likewise.
44838 (grub_reiserfs_get_journal): New function.
44839 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44840 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44841 using grub_reiserfs_get_journal.
44842 (grub_reiserfs_close): Release memory used by journal.
44844 * fs/affs.c (grub_affs_read_block): Change block type to
44845 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44847 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44849 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44851 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44853 * fs/udf.c (grub_udf_read_block): Change block type to
44854 grub_disk_addr_t. Use type cast to avoid warning.
44856 * fs/xfs.c (grub_xfs_read_block): Likewise.
44858 2008-05-16 Christian Franke <franke@computer.org>
44860 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44861 to ensure that break with ESC will always work.
44862 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44863 Remove ESC from keyboard queue.
44865 2008-05-16 Christian Franke <franke@computer.org>
44867 * util/biosdisk.c: [__CYGWIN__] Add includes.
44868 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44869 (get_os_disk): Move variable declarations to OS specific
44870 parts to avoid warning.
44871 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44872 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44873 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44875 * util/getroot.c: [__CYGWIN__] Add includes.
44876 (strip_extra_slashes): Fix "/" case.
44877 [__CYGWIN__] (get_win32_path): New function.
44878 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44879 [__CYGWIN__] (find_root_device): Disable.
44880 [__CYGWIN__] (get_bootsec_serial): New function.
44881 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44882 [__linux__] (grub_guess_root_device): Add early returns to simplify
44884 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44885 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44886 check for Linux only.
44888 2008-05-15 Bean <bean123ch@gmail.com>
44890 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44891 keyboard hang problem in apple's intel mac.
44893 2008-05-09 Robert Millan <rmh@aybabtu.com>
44895 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44897 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44898 (make_device_map): Likewise.
44899 Reported by Aurelien Jarno <aurel32@debian.org>
44901 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44903 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44904 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44905 (make_device_map): Output entries for xvd type disks.
44907 2008-05-07 Robert Millan <rmh@aybabtu.com>
44909 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44911 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44912 (make_device_map): Likewise.
44913 Reported by Roland Dreier <rdreier@cisco.com>
44915 2008-05-07 Robert Millan <rmh@aybabtu.com>
44917 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44918 grub_strstr() call. Correct a few mistakes in failure path handling.
44920 2008-05-06 Robert Millan <rmh@aybabtu.com>
44922 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44923 Do not print a trailing slash (therefore, the root directory is an
44925 (convert_system_path_to_grub_path): Do not remove trailing slash
44926 from make_system_path_relative_to_its_root() output.
44928 * util/i386/pc/grub-install.in: Add trailing slash to output from
44929 make_system_path_relative_to_its_root().
44931 2008-05-06 Robert Millan <rmh@aybabtu.com>
44933 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44934 ensures that output lines aren't intermangled with those sent to
44935 stderr (via grub_util_info()).
44936 * util/grub-probe.c (grub_refresh): Likewise.
44937 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44939 2008-05-05 Christian Franke <franke@computer.org>
44941 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44942 Add Cygwin device names.
44943 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44944 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44945 (check_device): Return error instead of success on empty name.
44946 (make_device_map): Move label inside linux specific code to
44947 prevent compiler warning.
44949 2008-04-30 Robert Millan <rmh@aybabtu.com>
44951 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44952 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44954 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44956 2008-04-29 Robert Millan <rmh@aybabtu.com>
44958 * docs/grub.cfg: New file (example GRUB configuration).
44960 2008-04-26 Robert Millan <rmh@aybabtu.com>
44962 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44963 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44964 and `disk/ieee1275/nand.c'.
44966 2008-04-25 Bean <bean123ch@gmail.com>
44968 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44971 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44972 change the buffer size to 4096 for cdrom device.
44974 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44976 (_linux_mod_SOURCES): New variable.
44977 (_linux_mod_CFLAGS): Likewise.
44978 (_linux_mod_LDFLAGS): Likewise.
44979 (linux_mod_SOURCES): Likewise.
44980 (linux_mod_CFLAGS): Likewise.
44981 (linux_mod_LDFLAGS): Likewise.
44982 (nand_mod_SOURCES): Likewise.
44983 (nand_mod_CFLAGS): Likewise.
44984 (nand_mod_LDFLAGS): Likewise.
44986 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44987 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44988 type property. (nand device in olpc don't have this property)
44990 * include/grub/disk.h (grub_disk_dev_id): New macro
44991 GRUB_DISK_DEVICE_NAND_ID.
44993 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44994 function prototype.
44995 (grub_rescue_cmd_initrd): Likewise.
44997 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44998 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44999 ofw_cif_handler and ofw_idt, adjust padding number.
45001 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45002 GRUB_MACHINE_IEEE1275 is defined.
45004 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45005 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45007 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45008 on nested function heap_init.
45009 (grub_upper_mem): New variable for i386-ieee1275.
45010 (grub_get_extended_memory): New function for i386-ieee1275.
45011 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45013 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45014 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45017 * loader/i386/ieee1275/linux.c: New file.
45019 * loader/i386/ieee1275/linux_normal.c: New file.
45021 * disk/ieee1275/nand.c: New file.
45023 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45025 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45027 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45029 2008-04-18 Robert Millan <rmh@aybabtu.com>
45031 Restructures early code path on ieee1275 to unify grub_main() as
45032 the first C function that is executed in every platform.
45034 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45035 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45037 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45038 * kern/ieee1275/cmain.c (cmain): Rename to ...
45039 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45040 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45043 2008-04-18 Robert Millan <rmh@aybabtu.com>
45045 * util/update-grub.in: Fix syntax error when setting
45046 `GRUB_PRELOAD_MODULES'.
45047 Reported by Stephane Chazelas <stephane@artesyncp.com>
45049 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45051 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45052 section into account, newer toolchains generate unique build ids
45053 * configure.ac: remove the test for --build-id=none acceptance,
45054 we want build ids to be preserved
45055 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45056 far from other sections don't cause the raw binary images grow
45059 2008-04-15 Robert Millan <rmh@aybabtu.com>
45061 * disk/lvm.c: Update copyright year.
45062 * kern/misc.c: Likewise.
45064 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45066 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45067 there is no memory left for physical volume name.
45069 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45071 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45072 volume name mapping to support bigger than 9 character names properly.
45074 2008-04-13 Robert Millan <rmh@aybabtu.com>
45076 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45077 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45079 2008-04-13 Christian Franke <franke@computer.org>
45081 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45082 to create a floppy emulation boot CD when non emulation mode
45084 Enable Joliet CD filesystem extension.
45086 2008-04-13 Robert Millan <rmh@aybabtu.com>
45088 * kern/misc.c (grub_strncat): Fix off-by-one error.
45089 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45091 * kern/env.c (grub_env_context_close): Clear current context, not
45093 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45095 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45097 2008-04-13 Robert Millan <rmh@aybabtu.com>
45099 Improve robustness when handling LVM.
45101 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45102 (and leave `*p' unmodified).
45103 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45105 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45106 iterating through it.
45107 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45109 (grub_lvm_scan_device): Check the return value (and fail gracefully
45110 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45111 Don't assume `vg->pvs != NULL' when iterating through it.
45113 2008-04-13 Robert Millan <rmh@aybabtu.com>
45115 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45116 * genmk.rb (partmap): New variable.
45117 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45118 (#{partmap}): New target rule.
45119 * genpartmaplist.sh: New file.
45120 * Makefile.in (pkglib_DATA): Add partmap.lst.
45121 (partmap.lst): New target rule.
45122 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45123 modules (including all partition maps), instead of preloading them.
45125 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45127 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45128 `linux-boot-prober' (if installed) to detect other operating
45129 systems which are installed on the computer and add them to
45131 * conf/common.rmk: Build and install 30_os-prober.
45133 2008-04-12 Robert Millan <rmh@aybabtu.com>
45135 * kern/powerpc/ieee1275/init.c: Move from here ...
45136 * kern/ieee1275/init.c: ... to here. Update all users.
45138 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45139 * kern/ieee1275/cmain.c: ... to here. Update all users.
45141 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45142 * kern/ieee1275/openfw.c: ... to here. Update all users.
45144 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45145 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45147 2008-04-10 Pavel Roskin <proski@gnu.org>
45149 * configure.ac: Always use "_cv_" in cache variables for
45150 compatibility with Autoconf 2.62.
45152 2008-04-07 Robert Millan <rmh@aybabtu.com>
45154 Revert grub/machine/init.h addition by Pavel (since it breaks on
45155 i386-ieee1275 and others):
45156 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45157 * util/powerpc/ieee1275/misc.c: Likewise.
45159 2008-04-07 Robert Millan <rmh@aybabtu.com>
45161 * util/grub-probe.c (probe): Improve error message.
45163 2008-04-07 Robert Millan <rmh@aybabtu.com>
45165 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45166 (this prevents the presence of a bogus entry from ruining the whole
45169 2008-04-06 Pavel Roskin <proski@gnu.org>
45171 * util/biosdisk.c: Include grub/util/biosdisk.h.
45172 * util/grub-fstest.c (execute_command): Make static.
45173 * util/grub-mkdevicemap.c (check_device): Likewise.
45174 * util/i386/pc/misc.c: Include grub/machine/init.h.
45175 * util/powerpc/ieee1275/misc.c: Likewise.
45176 * util/lvm.c: Include grub/util/lvm.h.
45177 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45179 * util/raid.c: Include grub/util/raid.h.
45180 (grub_util_getdiskname): Make static.
45182 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45183 grub_hostfs_fini(), as they are called from grub_init_all() and
45184 grub_fini_all() respectively. This fixes an infinite loop in
45185 grub-fstest due to double registration of hostfs.
45186 Reported by Christian Franke <Christian.Franke@t-online.de>
45188 2008-04-05 Pavel Roskin <proski@gnu.org>
45190 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45191 all 8 functions. Otherwise, probe function 0 only.
45193 2008-04-04 Pavel Roskin <proski@gnu.org>
45195 * commands/lspci.c (grub_lspci_iter): Print the bus number
45198 * commands/lspci.c (grub_pci_classes): Fix typos.
45199 (grub_lspci_iter): Don't print func twice. Print vendor ID
45200 before device ID, as it's normally done.
45202 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45203 Fix signedness warnings.
45204 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45206 * util/ieee1275/get_disk_name.c: Include config.h so that
45207 _GNU_SOURCE is defined and getline() is declared. Mark an
45208 unused argument as such. Fix a signedness warning.
45210 2008-04-02 Pavel Roskin <proski@gnu.org>
45212 * genkernsyms.sh.in: Use more robust assignments for CC and
45213 srcdir. Quote srcdir.
45214 * gensymlist.sh.in: Likewise. Assert at the compile time that
45215 the symbol table is not empty.
45217 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45218 * fs/cpio.c (grub_cpio_read): Likewise.
45220 2008-04-01 Pavel Roskin <proski@gnu.org>
45222 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45223 * disk/host.c (grub_host_open): Likewise.
45224 * disk/loopback.c (grub_loopback_open): Likewise.
45225 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45226 disk->id as in disk/host.c, not a multi-character constant.
45228 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45229 later is obsolete, potentially dangerous and sets a bad example.
45230 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45231 * util/misc.c (grub_util_get_image_size): Likewise.
45233 * disk/loopback.c (options): Improve help for "--partitions".
45235 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45236 options to align them with the short options, e.g. "echo -e".
45238 2008-03-31 Bean <bean123ch@gmail.com>
45240 * video/reader/png.c (grub_png_data): New member is_16bit and
45242 (grub_png_decode_image_header): Detect 16 bit png image.
45243 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45244 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45245 (grub_video_reader_png): Release memory occupied by image_data.
45247 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45249 (grub_nfs_mount): Skip the test for sector per cluster.
45251 * include/grub/ntfs.h (MAX_SPC): Removed.
45253 2008-03-31 Bean <bean123ch@gmail.com>
45255 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45256 (grub_probe_SOURCES): Add fs/afs.c.
45257 (grub_fstest_SOURCES): Likewise.
45258 (afs_mod_SOURCES): New variable.
45259 (afs_mod_CFLAGS): Likewise.
45260 (afs_mod_LDFLAGS): Likewise.
45262 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45263 (grub_emu_SOURCES): Likewise.
45265 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45267 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45269 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45273 * fs/afs.c: New file.
45275 2008-03-30 Pavel Roskin <proski@gnu.org>
45277 * disk/host.c: Include grub/misc.h to fix a warning.
45278 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45279 warnings about implicit declarations.
45281 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45283 * include/grub/i386/loader.h: Change declaration of
45284 grub_linux_boot() to match what grub_loader_set() expects.
45285 * util/getroot.c (grub_guess_root_device): Return const char* to
45287 * util/grub-probe.c (probe): Fix a warning about uninitialized
45288 abstraction_name variable.
45289 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45290 second argument as unused to fix a warning.
45292 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45293 missing grub_error() call.
45295 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45296 2.60 and newer uses it to define datadir.
45298 * commands/sleep.c: Fix warning about implicit declaration.
45299 * disk/memdisk.c: Likewise.
45300 * loader/aout.c: Likewise.
45301 * loader/i386/bsd_normal.c: Likewise.
45302 * util/grub-probe.c: Likewise.
45304 * commands/i386/cpuid.c (has_longmode): Make static.
45305 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45306 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45308 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45309 GDT. This is more robust, as %ds can change.
45310 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45311 calling real_to_prot().
45312 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45314 2008-03-28 Pavel Roskin <proski@gnu.org>
45316 * kern/i386/pc/startup.S: Assert that uncompressed functions
45317 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45318 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45319 code, as they push parts of the code (error handlers) beyond
45320 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45321 code as correctness and size.
45323 2008-03-28 Pavel Roskin <proski@gnu.org>
45325 * kern/i386/pc/startup.S
45326 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45327 data block address to the real mode, keep offset minimal. This
45328 works around a bug in AWARD BIOS on old Athlon systems, which
45329 makes CD detection hang.
45331 2008-03-26 Pavel Roskin <proski@gnu.org>
45333 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45335 * include/grub/normal.h: Add grub_parse_color_name_pair()
45338 2008-03-24 Bean <bean123ch@gmail.com>
45340 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45341 (cd_count): Removed.
45342 (cd_drive): New variable.
45343 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45344 (grub_biosdisk_call_hook): Likewise.
45345 (grub_biosdisk_iterate): Change cdrom detection method.
45346 (grub_biosdisk_open): Replace cd_start with cd_drive.
45347 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45348 detect cdrom device.
45350 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45352 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45353 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45354 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45355 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45356 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45357 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45358 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45359 (grub_biosdisk_cdrp): New structure.
45360 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45362 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45364 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45367 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45370 2008-03-20 Robert Millan <rmh@aybabtu.com>
45372 Remove 2 TiB limit in ata.mod.
45373 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45374 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45375 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45376 grub_uint64_t instead of grub_uint32_t.
45378 2008-03-05 Bean <bean123ch@gmail.com>
45380 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45381 (grub_multiboot): Set boot device.
45383 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45385 2008-03-02 Bean <bean123ch@gmail.com>
45387 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45390 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45392 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45395 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45398 * docs/fdl.texi: New file.
45400 * docs/mdate-sh: New file. Copied from gnulib.
45401 * docs/texinfo.tex: Likewise.
45403 * config.guess: Updated from gnulib.
45404 * install-sh: Likewise.
45406 2008-02-28 Robert Millan <rmh@aybabtu.com>
45408 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45409 (aout_mod_SOURCES): New variable.
45410 (aout_mod_CFLAGS): Likewise.
45411 (aout_mod_LDFLAGS): Likewise.
45413 * conf/i386-ieee1275.rmk: Likewise.
45415 2008-02-28 Robert Millan <rmh@aybabtu.com>
45417 * util/update-grub.in: Reorganise terminal validity check. Accept
45418 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45419 Based on suggestion by Franklin PIAT.
45421 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45423 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45425 * util/getroot.c (grub_util_check_block_device): New function that
45426 returns the given argument if it is a block device and returns NULL else.
45427 * util/grub-probe.c (argument_is_device): New variable.
45428 (probe): Promote device_name from a variable to an argument. Receive
45429 device_name from grub_util_check_block_device() if path is NULL and from
45430 grub_guess_root_device() else. Do not free() device_name anymore.
45431 (options): Introduce new parameter '-d, --device'.
45432 (main): Add description of the new parameter to the help screen.
45433 Rename path variable to argument. Set argument_is_device if the '-d'
45434 option is given. Pass argument to probe() depending on
45435 argument_is_device.
45437 2008-02-24 Bean <bean123ch@gmail.com>
45439 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45440 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45441 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45442 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45443 (GRUB_ISO9660_VOLDESC_END): Likewise.
45444 (grub_iso9660_primary_voldesc): New member escape.
45445 (grub_iso9660_data): New member joliet.
45446 (grub_iso9660_convert_string): New function.
45447 (grub_iso9660_mount): Detect joliet extension.
45448 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45449 (grub_iso9660_iso9660_label): Likewise.
45451 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45452 (grub_setup_SOURCES): Add fs/udf.c.
45453 (grub_fstest_SOURCES): Likewise.
45454 (udf_mod_SOURCES): New variable.
45455 (udf_mod_CFLAGS): Likewise.
45456 (udf_mod_LDFLAGS): Likewise.
45458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45459 (grub_emu_SOURCES): Likewise.
45461 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45463 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45465 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45469 * fs/udf.c: New file.
45471 2008-02-24 Robert Millan <rmh@aybabtu.com>
45473 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45474 (normal/lexer.c_DEPENDENCIES): New variables.
45475 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45476 (normal/lexer.c_DEPENDENCIES): Likewise.
45477 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45478 (normal/lexer.c_DEPENDENCIES): Likewise.
45479 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45480 (normal/lexer.c_DEPENDENCIES): Likewise.
45481 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45482 (normal/lexer.c_DEPENDENCIES): Likewise.
45483 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45484 (normal/lexer.c_DEPENDENCIES): Likewise.
45486 2008-02-23 Robert Millan <rmh@aybabtu.com>
45488 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45489 since they were intended to be in hex. This didn't break previously
45490 because of a bug in gpt_partition_map_iterate() (see below).
45492 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45493 when checking the validity of GPT header.
45494 Remove `partno', since it always provides the same information as `i'.
45496 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45498 * include/grub/efi/time.h: Fix a wrong comment.
45500 2008-02-19 Pavel Roskin <proski@gnu.org>
45502 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45505 2008-02-19 Bean <bean123ch@gmail.com>
45507 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45508 (aout_mod_SOURCES): New variable.
45509 (aout_mod_CFLAGS): Likewise.
45510 (aout_mod_LDFLAGS): Likewise.
45511 (_bsd_mod_SOURCES): New variable.
45512 (_bsd_mod_CFLAGS): Likewise.
45513 (_bsd_mod_LDFLAGS): Likewise.
45514 (bsd_mod_SOURCES): New variable.
45515 (bsd_mod_CFLAGS): Likewise.
45516 (bsd_mod_LDFLAGS): Likewise.
45518 * include/grub/aout.h: New file.
45520 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45522 * include/grub/i386/bsd.h: New file.
45524 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45527 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45528 function is called, so that it's possible to change it inside the hook.
45529 (grub_elf64_load): Likewise.
45530 (grub_elf_file): Don't close the file if elf header is not found.
45531 (grub_elf_close): Close the file if grub_elf_file fails (The new
45532 grub_elf_file won't close it).
45533 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45534 (grub_elf64_size): Likewise.
45536 * kern/i386/loader.S (grub_unix_real_boot): New function.
45538 * loader/aout.c: New file.
45540 * loader/i386/bsd.c: New file.
45542 * loader/i386/bsd_normal.c: New file.
45544 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45546 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45547 can test other formats.
45549 2008-02-19 Robert Millan <rmh@aybabtu.com>
45551 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45552 (grub_gpt_partition_type_empty): Redefine with macro from
45553 `<grub/gpt_partition.h>'.
45554 (gpt_partition_map_iterate): Adjust partition type comparison.
45556 Export `entry' as partmap-specific `part.data' struct.
45557 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45559 * include/grub/gpt_partition.h (grub_gpt_header)
45560 (grub_gpt_partentry): ... to here (new file).
45562 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45564 (grub_gpt_partition_type_bios_boot): New const variable, defined
45565 with macro from `<grub/gpt_partition.h>'.
45567 (setup): Replace `first_start' with `embed_region', which keeps
45568 track of the embed region (and is partmap-agnostic).
45570 Replace find_first_partition_start() with find_usable_region(),
45571 which finds a usable region for embedding using partmap-specific
45572 knowledge (supports PC/MSDOS and GPT).
45574 Fix all assumptions that the embed region start at sector 1, using
45575 `embed_region.start' from now on. Similarly, use `embed_region.end'
45576 rather than `first_start' to calculate available size.
45578 In grub_util_info() message, replace "into after the MBR" with an
45579 indication of the specific sector our embed region starts at.
45581 2008-02-19 Robert Millan <rmh@aybabtu.com>
45583 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45584 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45585 `commands/reboot.c'.
45586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45587 (halt_mod_SOURCES): Likewise.
45588 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45589 (halt_mod_SOURCES): Likewise.
45591 2008-02-17 Christian Franke <franke@computer.org>
45593 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45595 2008-02-17 Robert Millan <rmh@aybabtu.com>
45597 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45598 set `first_start' to 0 for non-PC/MSDOS partition maps.
45600 2008-02-16 Robert Millan <rmh@aybabtu.com>
45602 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45603 do not assume partition map is PC/MSDOS before performing checks that
45604 are specific to that layout.
45606 2008-02-13 Robert Millan <rmh@aybabtu.com>
45608 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45609 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45610 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45612 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45614 * configure.ac: Only a cosmetic change on the handling of
45615 -fno-stack-protector.
45617 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45619 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45620 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45622 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45623 (halt_mod_SOURCES): New variable.
45624 (halt_mod_CFLAGS): Likewise.
45625 (halt_mod_LDFLAGS): Likewise.
45626 (reboot_mod_SOURCES): Likewise.
45627 (reboot_mod_CFLAGS): Likewise.
45628 (reboot_mod_LDFLAGS): Likewise.
45630 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45631 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45633 (halt_mod_SOURCES): Likewise.
45634 (reboot_mod_SOURCES): Likewise.
45636 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45637 commands/i386/pc/reboot.c by commands/reboot.c.
45638 (reboot_mod_SOURCES): Likewise.
45640 * commands/i386/pc/reboot.c: merge this file ...
45642 * commands/ieee1275/reboot.c: ... and this file ...
45644 * commands/reboot.c: ... to this file.
45645 Add some precompiler directive to include the correct header for
45648 * commands/ieee1275/halt.c: move this file ...
45650 * commands/halt.c: ... to here.
45651 Add some precompiler directive to include the correct header for
45654 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45655 (grub_halt): Likewise.
45657 * kern/efi/efi.c (grub_reboot): New function.
45658 (grub_halt): Likewise.
45660 2008-02-12 Robert Millan <rmh@aybabtu.com>
45662 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45663 /dev (like it is done for /dev/mapper). This doesn't provide support
45664 for EVMS, but at least it is now easy to identify the problem when it
45667 2008-02-11 Robert Millan <rmh@aybabtu.com>
45669 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45670 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45671 comparing it with -1, not 0.
45673 2008-02-10 Robert Millan <rmh@aybabtu.com>
45675 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45678 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45681 `disk/lvm.c' to the end of the list.
45682 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45683 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45685 2008-02-10 Robert Millan <rmh@aybabtu.com>
45687 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45688 grub_print_error() instead. This will let user know why we're entering
45690 Based on suggestions from Sam Morris.
45692 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45694 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45695 on remaining N args, instead of "--" arg N times.
45697 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45699 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45700 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45701 pattern for unknown glyphs.
45703 2008-02-09 Robert Millan <rmh@aybabtu.com>
45705 * configure.ac: Probe for `help2man'.
45706 * Makefile.in (builddir): New variable.
45707 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45708 or otherwise add a few flags/options to it.
45709 (install-local): For every executable utility or script that is
45710 installed, invoke $(HELP2MAN) to install a manpage based on --help
45713 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45714 that it doesn't prevent --help from working in build tree.
45716 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45717 with `bug-grub@gnu.org'.
45718 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45719 * util/update-grub.in (usage): New function.
45720 Implement proper argument check, with support for --help and --version
45721 (as well as existing -y).
45723 2008-02-09 Christian Franke <franke@computer.org>
45725 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45726 avoid overwriting previous output.
45727 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45729 2008-02-09 Robert Millan <rmh@aybabtu.com>
45731 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45734 2008-02-09 Robert Millan <rmh@aybabtu.com>
45736 * commands/sleep.c: New file.
45737 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45738 (sleep_mod_SOURCES): New variable.
45739 (sleep_mod_CFLAGS): Likewise.
45740 (sleep_mod_LDFLAGS): Likewise.
45742 2008-02-09 Robert Millan <rmh@aybabtu.com>
45744 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45745 situations in which we can deduce the RAID size and the superblock
45748 2008-02-09 Robert Millan <rmh@aybabtu.com>
45750 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45751 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45752 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45754 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45755 and return a grub_diskmemberlist_t composed of physical array members.
45756 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45758 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45760 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45761 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45762 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45764 * util/grub-probe.c (probe): Move partmap probing code from here ...
45765 (probe_partmap): ... to here.
45766 (probe): Use probe_partmap() once for the disk we're probing, and
45767 additionally, when such disk contains a memberlist() struct member,
45768 once for each disk that is contained in the structure returned by
45771 2008-02-09 Robert Millan <rmh@aybabtu.com>
45773 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45774 environment variable to 'all' in order to obtain debug output from
45776 * util/i386/pc/grub-setup.c (main): Likewise.
45778 2008-02-08 Robert Millan <rmh@aybabtu.com>
45780 * disk/raid.c (grub_raid_scan_device): Check for
45781 `array->device[sb.this_disk.number]' rather than for
45782 `array->device[sb.this_disk.number]->name', since the latter is not
45783 guaranteed to be accessible.
45785 2008-02-08 Robert Millan <rmh@aybabtu.com>
45787 * disk/raid.c: Update copyright.
45788 * fs/cpio.c: Likewise.
45789 * include/grub/raid.h: Likewise.
45790 * loader/i386/pc/multiboot.c: Likewise.
45791 * util/hostfs.c: Likewise.
45793 2008-02-08 Robert Millan <rmh@aybabtu.com>
45795 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45796 to a grub_disk_t array.
45797 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45799 (grub_raid_scan_device): Replace `device[x].name' accesses with
45800 `device[x]->name'. Simplify initialization of `array->device[x]'.
45802 2008-02-08 Robert Millan <rmh@aybabtu.com>
45804 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45805 grub_dprintf() calls.
45806 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45809 2008-02-07 Christian Franke <franke@computer.org>
45811 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45812 instead of fseek and ftell to support large files.
45813 (grub_hostfs_read): Likewise.
45815 2008-02-07 Robert Millan <rmh@aybabtu.com>
45817 Patch from Jeroen Dekkers.
45818 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45819 failure, since successfully reading all array members might not be
45822 2008-02-06 Robert Millan <rmh@aybabtu.com>
45824 * util/grub-probe.c (probe): Simplify partmap probing (with the
45825 assumption that the first word up to the underscore equals to
45828 2008-02-06 Christian Franke <franke@computer.org>
45830 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45831 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45832 last block of a cpio or tar stream.
45833 Check for "TRAILER!!!" instead of any empty data
45834 block to detect last block of a cpio stream.
45835 (grub_cpio_dir): Fix constness of variable np.
45836 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45837 cpio or tar trailer is detected. This fixes a crash
45838 on open of a non existing file.
45840 2008-02-05 Bean <bean123ch@gmail.com>
45842 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45844 (grub_multiboot_load_elf64): Likewise.
45845 (grub_multiboot): Initialize mbi structure.
45847 * util/grub-fstest.c: Don't include unused header file script.h.
45849 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45851 (grub_fstest_SOURCES): Likewise.
45853 2008-02-05 Robert Millan <rmh@aybabtu.com>
45855 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45856 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45857 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45858 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45860 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45861 (translation_table): Replace hardcoded values with macros
45862 provided by `<grub/term.h>'.
45864 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45865 (keyboard_map): Correct/add a few values, with macros provided
45866 by `<grub/term.h>'.
45867 (keyboard_map_shift): Zero values that don't differ from their
45868 `keyboard_map' equivalents.
45869 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45870 Discard the second scan code that is always sent by Caps lock.
45871 Only use `keyboard_map_shift' when it provides a non-zero value,
45872 otherwise fallback to `keyboard_map'.
45874 2008-02-04 Bean <bean123ch@gmail.com>
45876 * Makefile.in (enable_grub_fstest): New variable.
45878 * conf/common.rmk (grub_fstest_init.lst): New rule.
45879 (grub_fstest_init.h): Likewise.
45880 (grub_fstest_init.c): Likewise.
45881 (util/grub-fstest.c_DEPENDENCIES): New variable.
45882 (grub_fstest_SOURCES): Likewise.
45884 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45886 * util/grub-fstest.c: New file.
45888 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45890 Make grub-setup handle a separate root device.
45892 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45893 so that the root device can be compared with the destination
45895 When embedding the core image, if the root and destination devices
45896 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45898 When not embedding, set ROOT_DRIVE to 0xFF.
45900 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45902 Add support for having a grub directory in a different drive. This
45903 is still only the data handling part.
45905 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45906 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45907 (grub_root_drive): New variable.
45909 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45910 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45911 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45914 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45916 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45918 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45920 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45921 is bogus, because PXE booting does not specify any drive
45924 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45925 am not sure if this is really correct.
45927 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45928 is always identical to the boot drive when booting from a CD.
45930 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45932 (root_drive): New variable.
45933 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45934 (setup_sectors): Push %dx right after popping it, because %dh will
45936 (copy_buffer): Restore %dx.
45938 2008-02-03 Robert Millan <rmh@aybabtu.com>
45940 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45941 use `cdboot.img' for cdrom images.
45943 2008-02-03 Robert Millan <rmh@aybabtu.com>
45945 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45946 only setup gfxterm when `font' command has succeeded.
45948 2008-02-03 Robert Millan <rmh@aybabtu.com>
45950 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45951 (grub_rescue_cmd_multiboot_loader)
45952 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45954 2008-02-03 Pavel Roskin <proski@gnu.org>
45956 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45957 %edx and %esi from stack only after grub_gate_a20() is called.
45958 grub_gate_a20() clobbers %edx.
45960 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45962 * configure.ac (AC_INIT): Bumped to 1.96.
45964 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45965 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45966 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45967 video/readers/png.c.
45969 2008-02-03 Bean <bean123ch@gmail.com>
45971 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45972 (cdboot_img_SOURCES): New variable.
45973 (cdboot_img_ASFLAGS): New variable.
45974 (cdboot_img_LDFLAGS): New variable.
45976 * boot/i386/pc/cdboot.S: New file.
45978 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45979 (cd_count): Likewise.
45980 (grub_biosdisk_get_drive): Add support for cd device.
45981 (grub_biosdisk_call_hook): Likewise.
45982 (grub_biosdisk_iterate): Likewise.
45983 (grub_biosdisk_open): Likewise.
45984 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45985 (grub_biosdisk_rw): Support reading from cd device.
45986 (GRUB_MOD_INIT): Iterate cd devices.
45988 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45989 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45990 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45992 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45994 2008-02-02 Robert Millan <rmh@aybabtu.com>
45996 * commands/read.c: New file.
45997 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45998 (read_mod_SOURCES): New variable.
45999 (read_mod_CFLAGS): Likewise.
46000 (read_mod_LDFLAGS): Likewise.
46002 2008-02-02 Robert Millan <rmh@aybabtu.com>
46004 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46005 determining whether menu has to be displayed.
46007 2008-02-02 Marco Gerards <marco@gnu.org>
46009 * bus/pci.c: New file.
46011 * include/grub/pci.h: Likewise.
46013 * include/grub/i386/pc/pci.h: Likewise.
46015 * commands/lspci.c: Likewise.
46017 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46019 (pci_mod_SOURCES): New variable.
46020 (pci_mod_CFLAGS): Likewise.
46021 (pci_mod_LDFLAGS): Likewise.
46022 (lspci_mod_SOURCES): Likewise.
46023 (lspci_mod_CFLAGS): Likewise.
46024 (lspci_mod_LDFLAGS): Likewise.
46026 2008-02-02 Bean <bean123ch@gmail.com>
46028 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46029 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46031 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46032 (grub_xfs_btree_node): New structure.
46033 (grub_xfs_btree_root): New structure.
46034 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46035 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46036 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46037 (GRUB_XFS_EXTENT_SIZE): Likewise.
46038 (grub_xfs_read_block): Support btree format type.
46039 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46040 Use directory block as basic unit.
46042 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46044 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46045 __attribute__ ((__regparm__ (1))).
46047 2008-02-01 Robert Millan <rmh@aybabtu.com>
46049 Correct a mistake in previous commit.
46051 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46053 (normal/command.c_DEPENDENCIES): New variable.
46055 2008-02-01 Robert Millan <rmh@aybabtu.com>
46057 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46059 (normal/command.c_DEPENDENCIES): New variable.
46060 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46061 * conf/i386-ieee1275.rmk: Likewise.
46062 * conf/i386-linuxbios.rmk: Likewise.
46063 * conf/i386-pc.rmk: Likewise.
46064 * conf/sparc64-ieee1275.rmk: Likewise.
46065 * conf/powerpc-ieee1275.rmk: Likewise.
46066 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46068 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46070 2008-02-01 Robert Millan <rmh@aybabtu.com>
46072 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46073 call at beginning of function.
46075 2008-01-31 Pavel Roskin <proski@gnu.org>
46077 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46078 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46079 (grub_mkrescue_SOURCES): Likewise.
46080 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46082 2008-01-30 Robert Millan <rmh@aybabtu.com>
46084 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46085 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46086 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46087 (grub_probe_SOURCES): ... to here.
46089 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46090 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46091 * conf/i386-ieee1275.rmk: Likewise.
46092 * conf/i386-linuxbios.rmk: Likewise.
46093 * conf/powerpc-ieee1275.rmk: Likewise.
46095 2008-01-30 Tristan Gingold <gingold@free.fr>
46097 * kern/rescue.c: Silently accept empty lines.
46099 2008-01-29 Bean <bean123ch@gmail.com>
46101 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46102 (real_code_2): Code cleanup and change comment style.
46103 (move_memory): Avoid using 32-bit address mode.
46105 2008-01-29 Bean <bean123ch@gmail.com>
46107 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46108 (png_mod_SOURCES): New variable.
46109 (png_mod_CFLAGS): Likewise.
46110 (png_mod_LDFLAGS): Likewise.
46112 * video/readers/png.c: New file.
46114 2008-01-28 Robert Millan <rmh@aybabtu.com>
46116 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46117 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46118 `ifndef GRUB_MOD_GAP' hack.
46119 * util/elf/grub-mkimage.c (add_segments): Likewise.
46121 2008-01-27 Robert Millan <rmh@aybabtu.com>
46123 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46124 `GRUB_MOD_GAP' for platforms in which it's not defined.
46125 * util/elf/grub-mkimage.c (add_segments): Likewise.
46127 2008-01-27 Robert Millan <rmh@aybabtu.com>
46129 Get grub-emu to build again (including parallel builds).
46131 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46133 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46134 (normal/execute.c_DEPENDENCIES): ... this, ...
46135 (grub-emu_DEPENDENCIES): ... and this.
46137 * conf/i386-efi.rmk: Likewise.
46138 * conf/i386-linuxbios.rmk: Likewise.
46139 * conf/i386-ieee1275.rmk: Likewise.
46140 * conf/powerpc-ieee1275.rmk: Likewise.
46141 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46143 2008-01-27 Robert Millan <rmh@aybabtu.com>
46145 * NEWS: Add a few items.
46147 2008-01-27 Robert Millan <rmh@aybabtu.com>
46149 Fix parallel builds with grub-emu. Based on earlier commit for
46150 grub-probe and grub-setup.
46152 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46153 (util/grub-emu.c_DEPENDENCIES): ... this.
46154 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46155 (util/grub-emu.c_DEPENDENCIES): ... this.
46156 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46157 (util/grub-emu.c_DEPENDENCIES): ... this.
46158 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46159 (util/grub-emu.c_DEPENDENCIES): ... this.
46160 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46161 (util/grub-emu.c_DEPENDENCIES): ... this.
46163 2008-01-27 Pavel Roskin <proski@gnu.org>
46165 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46166 to create a gap between _end and the modules added to the image
46167 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46168 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46169 * util/elf/grub-mkimage.c (add_segments): Likewise.
46171 2008-01-26 Pavel Roskin <proski@gnu.org>
46173 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46174 just return an error.
46176 2008-01-26 Bean <bean123ch@gmail.com>
46178 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46179 (grub_reiserfs_get_item): Save offset of the next item.
46180 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46182 2008-01-25 Robert Millan <rmh@aybabtu.com>
46184 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46185 make all filesystem sources appear together (possibly fixing omissions
46187 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46188 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46189 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46192 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46194 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46195 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46196 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46197 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46199 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46200 (probe): Add a sanity check to make sure of our ability to read
46201 requested files when probing for filesystem type.
46203 * genmk.rb: Update copyright year (2007).
46205 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46206 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46207 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46208 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46209 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46210 : Remove function prototypes.
46212 2008-01-25 Robert Millan <rmh@aybabtu.com>
46214 Revert my previous commits (based on wrong assumption of how grub_errno
46217 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46218 * kern/file.c (grub_file_open): Likewise.
46220 2008-01-24 Pavel Roskin <proski@gnu.org>
46222 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46223 that hang if GRUB tries to setup colors.
46224 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46225 colors for firmwares that don't support it.
46226 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46227 Recognize Open Hack'Ware, set flags to work around its
46230 2008-01-24 Robert Millan <rmh@aybabtu.com>
46232 * kern/file.c (grub_file_open): Do not account previous failures of
46233 unrelated functions when grub_errno is checked for.
46234 Reported by Oleg Strikov.
46236 2008-01-24 Bean <bean123ch@gmail.com>
46238 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46239 (grub_ufs_sblock): New member volume name.
46240 (grub_ufs_find_file): Fix string copy bug.
46241 (grub_ufs_label): Implement this function properly.
46243 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46244 (grub_hfs_iterate_records): Use the correct file number for extents
46245 and catalog file. Fix problem in next index calculation.
46246 (grub_hfs_find_node): Replace recursive function call with loop.
46247 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46249 2008-01-23 Robert Millan <rmh@aybabtu.com>
46251 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46252 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46253 (grub_multiboot2_real_boot): New function prototype.
46255 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46256 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46258 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46259 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46261 2008-01-23 Robert Millan <rmh@aybabtu.com>
46263 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46264 #ifdef'ed out grub_printf().
46266 2008-01-23 Robert Millan <rmh@aybabtu.com>
46268 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46269 grub_dprintf calls, since they make "debug=all" mode unusable.
46270 (grub_console_checkkey): Likewise.
46272 2008-01-23 Robert Millan <rmh@aybabtu.com>
46274 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46275 `term/i386/pc/at_keyboard.c'.
46276 (pkglib_MODULES): Add `serial.mod'.
46277 (serial_mod_SOURCES): New variable.
46278 (serial_mod_CFLAGS): Likewise.
46279 (serial_mod_LDFLAGS): Likewise.
46281 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46282 `<grub/powerpc/ieee1275/console.h>'.
46283 (grub_keyboard_controller_init): New function prototype.
46284 (grub_console_checkkey): Likewise.
46285 (grub_console_getkey): Likewise.
46287 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46290 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46291 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46293 2008-01-23 Robert Millan <rmh@aybabtu.com>
46295 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46296 present, "(memdisk)/boot/grub" becomes the default prefix.
46298 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46299 a memdisk tarball with all the modules. Add --overlay=DIR option that
46300 allows users to overlay additional files into the image.
46302 2008-01-23 Robert Millan <rmh@aybabtu.com>
46304 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46305 and `machine/memory.h'.
46306 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46307 (_multiboot_mod_SOURCES): New variable.
46308 (_multiboot_mod_CFLAGS): Likewise.
46309 (_multiboot_mod_LDFLAGS): Likewise.
46310 (multiboot_mod_SOURCES): Likewise.
46311 (multiboot_mod_CFLAGS): Likewise.
46312 (multiboot_mod_LDFLAGS): Likewise.
46314 * include/grub/i386/ieee1275/loader.h: New file.
46316 * include/grub/i386/ieee1275/machine.h: Likewise.
46318 * include/grub/i386/ieee1275/memory.h: Likewise.
46320 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46321 variable declaration.
46322 (grub_os_area_size): Likewise.
46324 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46325 (grub_lower_mem, grub_upper_mem): New variables.
46326 (grub_stop_floppy): New function (just to make
46327 grub_multiboot2_real_boot() happy).
46329 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46330 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46331 (grub_stop): New function.
46332 Include `"../realmode.S"' and `"../loader.S"'.
46334 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46335 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46337 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46338 rely on grub_multiboot2_real_boot() for final boot.
46340 2008-01-22 Robert Millan <rmh@aybabtu.com>
46342 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46343 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46344 device that doesn't look like an SD card.
46345 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46346 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46347 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46348 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46351 2008-01-22 Robert Millan <rmh@aybabtu.com>
46353 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46354 avoid claiming over our own code.
46356 2008-01-22 Bean <bean123ch@gmail.com>
46358 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46359 (jpeg_mod_SOURCES): New variable.
46360 (jpeg_mod_CFLAGS): Likewise.
46361 (jpeg_mod_LDFLAGS): Likewise.
46363 * video/readers/jpeg.c : New file.
46365 2008-01-22 Bean <bean123ch@gmail.com>
46367 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46368 there are no more items.
46370 2008-01-21 Robert Millan <rmh@aybabtu.com>
46372 * kern/mm.c (grub_mm_init_region): Improve debug message.
46374 2008-01-21 Robert Millan <rmh@aybabtu.com>
46376 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46377 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46379 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46381 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46382 Indicates start of upper memory.
46383 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46384 (generate_image): Abort when image size is big enough to corrupt
46387 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46388 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46389 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46390 instead of hardcoding 0xA0000.
46391 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46392 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46393 instead of hardcoding 0xA0000.
46395 2008-01-21 Robert Millan <rmh@aybabtu.com>
46397 * disk/memdisk.c (memdisk_size): New variable.
46398 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46400 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46401 image to dynamic memory.
46402 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46403 `memdisk_size'. Free memdisk block.
46405 2008-01-21 Robert Millan <rmh@aybabtu.com>
46407 Fix detection of very small filesystems (like tar).
46409 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46410 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46411 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46412 a problem with this disk).
46414 2008-01-21 Robert Millan <rmh@aybabtu.com>
46416 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46417 on grub_biosdisk_rw_standard() error.
46419 2008-01-21 Robert Millan <rmh@aybabtu.com>
46421 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46423 * kern/elf.c: Likewise.
46424 * kern/ieee1275/ieee1275.c: Likewise.
46425 * kern/powerpc/ieee1275/openfw.c: Likewise.
46426 * term/ieee1275/ofconsole.c: Likewise.
46428 2008-01-21 Robert Millan <rmh@aybabtu.com>
46430 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46432 * include/grub/kernel.h (grub_arch_memdisk_addr)
46433 (grub_arch_memdisk_size): Moved from here ...
46435 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46436 (grub_arch_memdisk_size): ... to here.
46438 2008-01-21 Robert Millan <rmh@aybabtu.com>
46440 Mostly based on bugfix from Bean.
46442 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46443 attribute with hook() parameter.
46444 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46446 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46447 attribute with hook() parameter.
46448 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46451 2008-01-21 Robert Millan <rmh@aybabtu.com>
46453 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46454 (pkglib_MODULES): Add `memdisk.mod'.
46455 (memdisk_mod_SOURCES): New variable.
46456 (memdisk_mod_CFLAGS): Likewise.
46457 (memdisk_mod_LDFLAGS): Likewise.
46459 * disk/memdisk.c: New file.
46461 * include/grub/disk.h (grub_disk_dev_id): Add
46462 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46464 * include/grub/i386/pc/kernel.h
46465 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46466 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46467 (grub_kernel_image_size): New variable declaration.
46468 (grub_total_module_size): Likewise.
46469 (grub_memdisk_image_size): Likewise.
46471 * include/grub/i386/pc/memory.h
46472 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46474 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46475 (grub_arch_memdisk_addr): New variable declaration.
46476 (grub_arch_memdisk_size): Likewise.
46478 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46479 (grub_arch_memdisk_size): Likewise.
46481 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46482 (codestart): Replace hardcoded `0x100000' with
46483 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46485 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46486 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46487 not NULL, append the contents of the file it refers to, at the end of
46488 the compressed kernel image. Initialize `grub_memdisk_image_size'
46489 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46490 (options): Add "memdisk"|'m' option.
46491 (main): Parse --memdisk|-m option, and pass user-provided path as
46492 parameter to generate_image().
46494 2008-01-20 Robert Millan <rmh@aybabtu.com>
46496 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46497 grub_dprintf() calls from here ...
46498 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46500 2008-01-20 Robert Millan <rmh@aybabtu.com>
46502 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46504 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46506 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46507 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46508 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46509 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46511 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46512 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46514 2008-01-19 Robert Millan <rmh@aybabtu.com>
46516 Get rid of confusing function (superseded by
46517 `grub_ieee1275_get_integer_property')
46518 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46520 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46522 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46523 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46524 in native endianness from grub_ieee1275_get_integer_property().
46526 2008-01-19 Robert Millan <rmh@aybabtu.com>
46528 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46529 command after "shut-down", since implementations differ on which
46530 the command for halt is.
46532 2008-01-19 Robert Millan <rmh@aybabtu.com>
46534 * include/grub/i386/linuxbios/console.h: Add header protection.
46535 (grub_keyboard_controller_init): New function prototype.
46536 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46537 (KEYBOARD_COMMAND_READ): Likewise.
46538 (KEYBOARD_COMMAND_WRITE): Likewise.
46539 (KEYBOARD_SCANCODE_SET1): Likewise.
46540 (grub_keyboard_controller_write): New function.
46541 (grub_keyboard_controller_read): Likewise.
46542 (grub_keyboard_controller_init): Likewise.
46544 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46545 (grub_console_init): On coreboot/LinuxBIOS, call
46546 grub_keyboard_controller_init().
46548 2008-01-19 Robert Millan <rmh@aybabtu.com>
46550 PowerPC changes provided by Pavel Roskin.
46552 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46553 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46554 don't rely on cmain() doing it.
46555 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46556 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46558 2008-01-16 Robert Millan <rmh@aybabtu.com>
46560 * include/grub/i386/linuxbios/memory.h
46561 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46562 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46563 receive `table_header' as argument. Instead, probe for it in the
46564 known memory ranges where it can be present.
46565 (grub_available_iterate): Do not pass a fixed `table_header' address
46566 to grub_linuxbios_table_iterate().
46568 2008-01-15 Robert Millan <rmh@aybabtu.com>
46570 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46571 * conf/i386-ieee1275.rmk: New file.
46572 * include/grub/i386/ieee1275/console.h: Likewise.
46573 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46574 * include/grub/i386/ieee1275/kernel.h: Likewise.
46575 * include/grub/i386/ieee1275/time.h: Likewise.
46576 * kern/i386/ieee1275/init.c: Likewise.
46577 * kern/i386/ieee1275/startup.S: Likewise.
46579 2008-01-15 Robert Millan <rmh@aybabtu.com>
46581 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46582 when pointers are 32-bit (but still do set it to one when they are
46585 2008-01-15 Robert Millan <rmh@aybabtu.com>
46587 * include/grub/ieee1275/ieee1275.h
46588 (grub_ieee1275_get_integer_property): New function prototype.
46590 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46591 (grub_ieee1275_get_integer_property): New function. Wraps around
46592 grub_ieee1275_get_property() to handle endianness.
46594 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46595 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46597 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46598 (grub_map): Likewise.
46599 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46601 2008-01-15 Bean <bean123ch@gmail.com>
46603 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46604 (grub_script_execute_cmdline): Reset grub_errno.
46606 * normal/main.c (read_config_file): Reset grub_errno.
46608 * normal/parse.y (script_init): New.
46609 (script): Move function and menuentry here.
46611 (command): Add delimiter at the end of command.
46612 (commands): Adjust to match the new command.
46613 (commandblock): Remove grub_script_lexer_record_start.
46614 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46615 (if): Use the new commands.
46617 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46619 2008-01-15 Robert Millan <rmh@aybabtu.com>
46621 * normal/menu.c (run_menu): Move timeout message from here ...
46622 (print_timeout): ... to here.
46623 (run_menu): Use print_timeout() once during initial draw to print
46624 the whole message, and again in every clock tick to update only
46625 the number of seconds.
46627 2008-01-15 Robert Millan <rmh@aybabtu.com>
46629 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46630 actual size of `available' from grub_ieee1275_get_property(), and
46631 restrict parsing to that bound.
46633 2008-01-15 Christian Franke <franke@computer.org>
46635 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46636 (argp_program_version): Remove variable.
46637 (argp_program_bug_address): Likewise.
46638 (options): Convert from struct argp_option to struct option.
46639 (struct arguments): Remove.
46640 (parse_opt): Remove.
46641 (usage): New function.
46642 (main): Replace struct args members by simple variables.
46643 Replace argp_parse() by getopt_long().
46644 Add switch to evaluate options.
46645 Add missing "(...)" around root_dev in prefix string.
46647 2008-01-14 Robert Millan <rmh@aybabtu.com>
46649 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46650 for grub_ieee1275_exit(), in order to improve portability.
46652 2008-01-14 Robert Millan <rmh@aybabtu.com>
46654 * util/grub.d/10_linux.in (prefix): Define.
46655 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46657 2008-01-13 Pavel Roskin <proski@gnu.org>
46659 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46660 grub_errno if no errors have been detected.
46662 2008-01-12 Robert Millan <rmh@aybabtu.com>
46664 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46665 (grub_util_get_dev_abstraction): New function prototype.
46667 * util/getroot.c: Include `<grub/util/getroot.h>'
46668 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46669 (grub_util_get_dev_abstraction): ... here (new function).
46671 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46672 `PRINT_ABSTRACTION'.
46673 (probe): Probe for abstraction type when requested.
46674 (main): Understand `--target=abstraction'.
46676 * util/i386/efi/grub-install.in: Add abstraction module to core
46677 image when it is found to be necessary.
46678 * util/i386/pc/grub-install.in: Likewise.
46679 * util/powerpc/ieee1275/grub-install.in: Likewise.
46681 * util/update-grub_lib.in (font_path): Return system path without
46682 converting to GRUB path.
46683 * util/update-grub.in: Convert system path returned by font_path()
46684 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46685 abstraction module is needed for loading fonts (if any). Export
46686 that as `GRUB_PRELOAD_MODULES'.
46687 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46690 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46692 Remove some unused code from reiserfs.
46694 * fs/reiserfs.c (struct grub_reiserfs_key)
46695 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46696 (struct grub_reiserfs_node_body): Removed.
46697 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46699 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46701 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46703 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46705 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46707 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46709 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46710 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46711 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46713 2008-01-10 Robert Millan <rmh@aybabtu.com>
46715 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46716 Determines if a file is garbage left by packaging systems, etc.
46717 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46718 for processing /etc/grub.d scripts.
46719 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46720 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46721 as a condition for processing Linux images.
46723 2008-01-10 Pavel Roskin <proski@gnu.org>
46725 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46726 to compile reiserfs.c on PowerPC.
46728 2008-01-10 Robert Millan <rmh@aybabtu.com>
46730 * kern/device.c (grub_device_iterate): Do not abort device iteration
46731 when one of the devices cannot be opened.
46732 * kern/disk.c (grub_disk_open): Do not account previous failures of
46733 unrelated functions when grub_errno is checked for.
46735 2008-01-08 Robert Millan <rmh@aybabtu.com>
46737 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46738 `! grub_linux_is_bzimage', change order of address comparison to make
46739 it more intuitive, and improve "too big zImage" error message.
46741 2008-01-08 Robert Millan <rmh@aybabtu.com>
46743 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46744 `$(update-grub_DATA)'.
46745 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46748 2008-01-07 Robert Millan <rmh@aybabtu.com>
46750 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46751 which instruction is modified by grub-setup during installation
46752 (since it wasn't obvious by only looking at this file).
46754 2008-01-07 Robert Millan <rmh@aybabtu.com>
46756 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46757 listing actual TODO items.
46759 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46761 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46763 (grub_reiserfs_get_key_offset): Likewise.
46764 (grub_reiserfs_set_key_offset): Likewise.
46765 (grub_reiserfs_set_key_type): Likewise.
46766 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46768 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46769 better to remove the bitfield version completely.
46771 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46773 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46774 allocated from the heap, due to the fshelp implementation.
46775 (grub_reiserfs_dir): Free NODE, due to the same reason.
46777 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46779 Mostly from Vincent Pelletier:
46781 * fs/reiserfs.c: New file.
46783 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46784 (reiserfs_mod_SOURCES): New variable.
46785 (reiserfs_mod_CFLAGS): Likewise.
46786 (reiserfs_mod_LDFLAGS): Likewise.
46788 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46789 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46790 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46793 2008-01-06 Robert Millan <rmh@aybabtu.com>
46795 * normal/color.c: Remove `<grub/env.h>'.
46797 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46799 * include/grub/normal.h: Include <grub/env.h>.
46801 2008-01-05 Robert Millan <rmh@aybabtu.com>
46803 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46804 usage example with `(hd0,1)'.
46805 Reported by Samuel Thibault.
46807 2008-01-05 Robert Millan <rmh@aybabtu.com>
46809 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46810 (grub_linux_boot_zimage): Rename to ...
46811 (grub_linux_boot): ... this.
46812 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46813 (grub_linux_boot_zimage): Conditionalize zImage copy.
46815 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46816 (grub_linux_boot_bzimage): Remove prototype.
46817 (grub_linux_boot_zimage): Rename to ...
46818 (grub_linux_boot): ... this.
46820 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46821 (grub_linux_boot): Remove function.
46823 2008-01-05 Robert Millan <rmh@aybabtu.com>
46825 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46826 (grub_env_write_color_highlight): Likewise.
46827 (grub_wait_after_message): Likewise.
46829 * normal/color.c: New file.
46831 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46832 (normal_mod_DEPENDENCIES): Likewise.
46834 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46835 (normal_mod_DEPENDENCIES): Likewise.
46837 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46838 (normal_mod_DEPENDENCIES): Likewise.
46840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46841 (normal_mod_DEPENDENCIES): Likewise.
46843 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46844 for waiting after a message is printed.
46845 * normal/main.c (read_config_file): Likewise.
46846 (grub_normal_init): Register grub_env_write_color_normal() and
46847 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46848 `color_highlight' variables as global.
46850 * normal/menu.c (grub_wait_after_message): New function.
46851 (grub_color_menu_normal): New variable. Replaces ...
46852 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46853 (grub_color_menu_highlight): New variable. Replaces ...
46854 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46855 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46856 `GRUB_TERM_COLOR_STANDARD'.
46857 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46858 `normal_code' and `highlight_code' to `old_color_normal' and
46859 `old_color_highlight', respectively.
46860 (grub_menu_init_page): Update colors when drawing the menu, based on
46861 `menu_color_normal' and `menu_color_highlight' variables.
46862 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46863 a message is printed.
46865 2008-01-05 Robert Millan <rmh@aybabtu.com>
46867 * kern/env.c (grub_env_context_open): Propagate hooks for global
46868 variables to new context.
46870 * kern/main.c (grub_set_root_dev): Export `root' variable.
46872 2008-01-05 Robert Millan <rmh@aybabtu.com>
46874 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46875 discs unconditionally, since udev and others have options to provide
46878 2008-01-05 Robert Millan <rmh@aybabtu.com>
46880 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46882 2008-01-04 Christian Franke <franke@computer.org>
46884 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46887 2008-01-03 Pavel Roskin <proski@gnu.org>
46889 * kern/i386/linuxbios/init.c: Put "void" to all function
46890 declarations with no arguments.
46891 * kern/powerpc/ieee1275/init.c: Likewise.
46892 * term/i386/pc/at_keyboard.c: Likewise.
46893 * term/i386/pc/vga_text.c: Likewise.
46894 * util/grub-mkdevicemap.c: Likewise.
46896 2008-01-02 Robert Millan <rmh@aybabtu.com>
46898 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46899 message when loaded image is out of bounds.
46900 (grub_multiboot_load_elf64): Likewise.
46902 2008-01-02 Pavel Roskin <proski@gnu.org>
46904 * util/grub.d/10_linux.in: Try version without ".old" when
46905 looking for initrd. It's better to use initrd from the newer
46906 kernel of the same version than no initrd at all.
46908 2008-01-01 Robert Millan <rmh@aybabtu.com>
46910 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46912 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46914 * include/grub/video.h: Added grub_video_unmap_color and
46915 grub_video_get_active_render_target.
46916 (grub_video_adapter): Added unmap_color and get_active_render_target.
46918 * video/video.c: Added grub_video_unmap_color and
46919 grub_video_get_active_render_target.
46920 (grub_video_get_info): Changed method to accept NULL pointer as an
46921 argument to allow detection of active video adapter.
46923 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46924 grub_video_vbe_unmap_color_int.
46925 Added grub_video_vbe_unmap_color and
46926 grub_video_vbe_get_active_render_target.
46927 (grub_video_vbe_adapter): Added unmap_color and
46928 get_active_render_target.
46930 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46931 with grub_video_vbe_unmap_color_int.
46933 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46934 (DEFAULT_NORMAL_COLOR): Likewise.
46935 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46936 (DEFAULT_FG_COLOR): Removed.
46937 (DEFAULT_BG_COLOR): Likewise.
46938 (DEFAULT_CURSOR_COLOR): Changed value.
46939 (grub_virtual_screen): Added standard_color_setting,
46940 normal_color_setting, highlight_color_setting and term_color.
46941 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46942 (bitmap_width): Added.
46943 (bitmap_height): Likewise.
46944 (bitmap): Likewise.
46945 (set_term_color): Likewise.
46946 (grub_virtual_screen_setup): Changed to use new terminal coloring
46948 (grub_gfxterm_init): Added init for bitmap.
46949 (grub_gfxterm_fini): Added destroy for bitmap.
46950 (redraw_screen_rect): Updated to use background bitmap and new
46952 (scroll_up): Added optimization for case when there is no bitmap.
46953 (grub_gfxterm_cls): Fixed to use correct background color.
46954 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46956 (grub_virtual_screen_setcolor): Likewise.
46957 (grub_virtual_screen_getcolor): Added.
46958 (grub_gfxterm_background_image_cmd): Likewise.
46959 (grub_video_term): Added setcolor and getcolor.
46960 (MOD_INIT): Added registration of background_image command.
46961 (MOD_TERM): Added unregistration for background_image command.
46963 2007-12-30 Pavel Roskin <proski@gnu.org>
46965 * loader/multiboot_loader.c: Fix multiboot command
46966 unregistration. Fix all typos in the word "multiboot".
46968 2007-12-29 Pavel Roskin <proski@gnu.org>
46970 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46971 support for initrd names used in Fedora.
46973 2007-12-26 Bean <bean123ch@gmail.com>
46975 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46976 (cpio_mod_SOURCES): New variable.
46977 (cpio_mod_CFLAGS): Likewise.
46978 (cpio_mod_LDFLAGS): Likewise.
46980 * fs/cpio.c: New file.
46982 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46984 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46986 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46990 2007-12-25 Robert Millan <rmh@aybabtu.com>
46992 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46993 (grub_getcolor): New function.
46995 * kern/term.c (grub_getcolor): New function.
46996 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46997 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46998 (print_entry): Set normal and highlight colors to
46999 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47000 respectively, before printing and restore them to old
47002 (grub_menu_init_page): Likewise. Fill an additional colored space
47003 that would otherwise be left blank.
47005 * term/efi/console.c (grub_console_getcolor): New function.
47006 (struct grub_console_term.getcolor): New variable.
47007 * term/i386/pc/console.c (grub_console_getcolor): New function.
47008 (struct grub_console_term.getcolor): New variable.
47009 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47010 (struct grub_console_term.getcolor): New variable.
47012 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47013 (struct grub_console_term.setcolor): Remove variable.
47014 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47015 (struct grub_console_term.setcolor): Remove variable.
47016 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47017 (struct grub_console_term.setcolor): Remove variable.
47018 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47019 (struct grub_console_term.setcolor): Remove variable.
47021 2007-12-25 Robert Millan <rmh@aybabtu.com>
47023 * configure.ac: Search for possible unifont.hex locations, and
47024 define UNIFONT_HEX if found.
47026 * Makefile.in (UNIFONT_HEX): Define variable.
47027 (DATA): Rename to ...
47028 (PKGLIB): ... this. Update all users.
47029 (PKGDATA): New variable.
47030 (pkgdata_IMAGES): Rename to ...
47031 (pkglib_IMAGES): ... this. Update all users.
47032 (pkgdata_MODULES): Rename to ...
47033 (pkglib_MODULES): ... this. Update all users.
47034 (pkgdata_PROGRAMS): Rename to ...
47035 (pkglib_PROGRAMS): ... this. Update all users.
47036 (pkgdata_DATA): Rename to ...
47037 (pkglib_DATA): ... this. Update all users.
47038 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47039 (unicode.pff, ascii.pff): New rules.
47040 (all-local): Add `$(PKGDATA)' dependency.
47041 (install-local): Process `$(PKGDATA)'.
47043 * util/update-grub_lib.in (font_path): Search for *.pff files in
47044 a few more locations, including `${pkgdata}'.
47046 2007-12-23 Robert Millan <rmh@aybabtu.com>
47048 Patch from Bean <bean123ch@gmail.com>:
47049 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47052 2007-12-21 Bean <bean123ch@gmail.com>
47054 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47055 (ntfscomp_mod_SOURCES): New variable.
47056 (ntfscomp_mod_CFLAGS): Likewise.
47057 (ntfscomp_mod_LDFLAGS): Likewise.
47059 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47060 (grub_probe_SOURCES): Likewise.
47061 (grub_emu_SOURCES): Likewise.
47063 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47064 (grub_emu_SOURCES): Likewise.
47066 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47067 (grub_emu_SOURCES): Likewise.
47069 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47070 (grub_emu_SOURCES): Likewise.
47072 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47073 (read_run_list): Renamed to grub_ntfs_read_run_list.
47074 (decomp_nextvcn): Moved to ntfscomp.c.
47075 (decomp_getch): Likewise.
47076 (decomp_get16): Likewise.
47077 (decomp_block): Likewise.
47078 (read_block): Likewise.
47079 (read_data): Partially moved to ntfscomp.c.
47080 (fixup): Change unsigned to grub_uint16_t.
47081 (read_mft): Change unsigned long to grub_uint32_t.
47082 (read_attr): Likewise.
47083 (read_data): Likewise.
47084 (read_run_data): Likewise.
47085 (read_run_list): Likewise.
47086 (read_mft): Likewise.
47088 * fs/ntfscomp.c: New file.
47090 * include/grub/ntfs.h: New file.
47092 2007-12-16 Robert Millan <rmh@aybabtu.com>
47094 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47095 IDE disk check, since Linux is known to support 20 IDE disks.
47096 Reported by Colin Watson.
47098 2007-12-15 Bean <bean123ch@gmail.com>
47100 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47101 (lnxboot_img_SOURCES): New variable.
47102 (lnxboot_img_ASFLAGS): Likewise.
47103 (lnxboot_img_LDFLAGS): Likewise.
47105 * boot/i386/pc/lnxboot.S: New file.
47107 2007-11-24 Pavel Roskin <proski@gnu.org>
47109 * configure.ac: Test if '--build-id=none' is supported by the
47110 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47111 objcopy to generate incorrect binary files (binutils
47112 2.17.50.0.18-1 as shipped by Fedora 8).
47113 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47114 linking, so that build ID doesn't break the test.
47116 2007-11-24 Pavel Roskin <proski@gnu.org>
47118 * include/grub/i386/time.h: use "void" in the argument list
47119 of grub_cpu_idle().
47120 * include/grub/powerpc/time.h: Likewise.
47121 * include/grub/sparc64/time.h: Likewise.
47123 2007-11-18 Christian Franke <franke@computer.org>
47125 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47126 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47127 This fixes the problem that function keys did not work in grub-emu.
47129 2007-11-18 Christian Franke <franke@computer.org>
47131 * disk/host.c (grub_host_open): Remove attribute unused from
47132 name parameter. Add check for "host". This fixes the problem
47133 that grub-emu does not find partitions.
47135 2007-11-18 Christian Franke <franke@computer.org>
47137 * util/hostfs.c (is_dir): New function.
47138 (grub_hostfs_dir): Handle missing dirent.d_type case.
47139 (grub_hostfs_read): Add missing fseek().
47140 (grub_hostfs_label): Clear label pointer. This fixes a crash
47141 of grub-emu on "ls (host)".
47143 2007-11-18 Christian Franke <franke@computer.org>
47145 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47146 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47147 to 64 bit boundary by default.
47149 2007-11-18 Bean <bean123ch@gmail.com>
47151 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47152 (hexdump_mod_SOURCES): New variable.
47153 (hexdump_mod_CFLAGS): Likewise.
47154 (hexdump_mod_LDFLAGS): Likewise.
47156 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47158 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47160 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47164 * include/grub/hexdump.h: New file.
47166 * commands/hexdump.c: New file.
47168 2007-11-10 Robert Millan <rmh@aybabtu.com>
47170 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47171 in grub_outb() calls.
47172 (beep_on): Likewise.
47174 2007-11-10 Christian Franke <franke@computer.org>
47176 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47177 (grub_menu_run): Likewise.
47179 2007-11-10 Robert Millan <rmh@aybabtu.com>
47181 * include/grub/i386/efi/machine.h: New file.
47182 * include/grub/i386/linuxbios/machine.h: Likewise.
47183 * include/grub/i386/pc/machine.h: Likewise.
47184 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47185 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47187 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47188 (serial_hw_io_addr): New variable.
47189 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47190 instead of `(unsigned short *) 0x400'.
47192 2007-11-10 Bean <bean123ch@gmail.com>
47194 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47196 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47198 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47199 (vga_mod_SOURCES): Added.
47200 (vga_mod_CFLAGS): Likewise.
47201 (vga_mod_LDFLAGS): Likewise.
47203 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47205 (set_map_mask): Likewise.
47206 (set_read_map): Likewise.
47207 (set_read_address): Likewise.
47208 (vga_font): Removed variable.
47209 (get_vga_glyph): Removed function.
47210 (invalidate_char): Likewise.
47211 (write_char): Changed to use grub_font_get_glyph() for font
47213 (grub_vga_putchar): Likewise.
47214 (grub_vga_getcharwidth): Likewise.
47216 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47218 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47220 (pxeboot_img_LDFLAGS): Likewise.
47221 (diskboot_img_LDFLAGS): Likewise.
47222 (kernel_img_LDFLAGS): Likewise.
47224 2007-11-06 Robert Millan <rmh@aybabtu.com>
47226 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47227 in grub_outb() calls.
47228 (serial_hw_init): Likewise.
47230 2007-11-05 Robert Millan <rmh@aybabtu.com>
47232 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47233 spaces. Skip non-regular files.
47235 2007-11-05 Robert Millan <rmh@aybabtu.com>
47237 * kern/disk.c (grub_disk_firmware_fini)
47238 (grub_disk_firmware_is_tainted): New variables.
47240 * include/grub/disk.h (grub_disk_firmware_fini)
47241 (grub_disk_firmware_is_tainted): Likewise.
47243 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47244 (grub_disk_biosdisk_fini): ... to here.
47245 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47246 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47247 is set. Register grub_disk_biosdisk_fini() in
47248 `grub_disk_firmware_fini'.
47250 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47251 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47252 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47253 to finish existing firmware disk interface.
47255 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47256 (ata_mod_SOURCES): New variable.
47257 (ata_mod_CFLAGS): Likewise.
47258 (ata_mod_LDFLAGS): Likewise.
47260 2007-11-05 Robert Millan <rmh@aybabtu.com>
47262 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47263 (grub_ata_wait): Reimplement using grub_millisleep().
47265 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47266 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47268 2007-11-03 Marco Gerards <marco@gnu.org>
47270 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47271 (CRTC_ADDR_PORT): New macro.
47272 (CRTC_DATA_PORT): Likewise.
47273 (CRTC_CURSOR): Likewise.
47274 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47275 (CRTC_CURSOR_ADDR_LOW): Likewise.
47276 (update_cursor): New function.
47277 (grub_console_real_putchar): Call `update_cursor'.
47278 (grub_console_gotoxy): Likewise.
47279 (grub_console_cls): Set the default color when clearing the
47281 (grub_console_setcursor): Implemented.
47283 2007-11-03 Marco Gerards <marco@gnu.org>
47285 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47287 (grub_ata_pio_write): Likewise.
47289 (grub_atapi_identify): Wait after issuing an ATA command.
47290 (grub_atapi_packet): Likewise.
47291 (grub_ata_identify): Likewise.
47292 (grub_ata_readwrite): Likewise.
47294 2007-11-03 Marco Gerards <marco@gnu.org>
47296 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47297 (grub_ata_pio_write): Likewise.
47298 (grub_ata_readwrite): Use `grub_error', instead of
47299 returning `grub_errno'.
47301 2007-11-03 Marco Gerards <marco@gnu.org>
47303 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47304 grub_ata_pio_write once for every single sector, instead of for
47307 2007-10-31 Robert Millan <rmh@aybabtu.com>
47309 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47311 * conf/i386-linuxbios.rmk: New file.
47313 * kern/i386/pc/hardware.c: Likewise.
47314 * term/i386/pc/at_keyboard.c: Likewise.
47315 * term/i386/pc/vga_text.c: Likewise.
47317 * include/grub/i386/linuxbios/boot.h: Likewise.
47318 * include/grub/i386/linuxbios/console.h: Likewise.
47319 * include/grub/i386/linuxbios/init.h: Likewise.
47320 * include/grub/i386/linuxbios/kernel.h: Likewise.
47321 * include/grub/i386/linuxbios/loader.h: Likewise.
47322 * include/grub/i386/linuxbios/memory.h: Likewise.
47323 * include/grub/i386/linuxbios/serial.h: Likewise.
47324 * include/grub/i386/linuxbios/time.h: Likewise.
47326 * kern/i386/linuxbios/init.c: Likewise.
47327 * kern/i386/linuxbios/startup.S: Likewise.
47328 * kern/i386/linuxbios/table.c: Likewise.
47330 2007-10-31 Marco Gerards <marco@gnu.org>
47332 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47333 (ata_mod_SOURCES): New variable.
47334 (ata_mod_CFLAGS): Likewise.
47335 (ata_mod_LDFLAGS): Likewise.
47337 * disk/ata.c: New file.
47339 * include/grub/disk.h (grub_disk_dev_id): Add
47340 `GRUB_DISK_DEV_ATA_ID'.
47342 2007-10-31 Robert Millan <rmh@aybabtu.com>
47344 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47345 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47347 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47348 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47350 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47353 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47355 2007-10-27 Robert Millan <rmh@aybabtu.com>
47357 * include/grub/types.h (ULONG_MAX): Define macro.
47359 2007-10-22 Robert Millan <rmh@aybabtu.com>
47361 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47363 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47365 2007-10-22 Robert Millan <rmh@aybabtu.com>
47367 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47368 (pkgdata_MODULES): Add `biosdisk.mod'.
47369 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47372 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47373 (grub_biosdisk_init): Replace with ...
47374 (GRUB_MOD_INIT(biosdisk)): ... this.
47375 (grub_biosdisk_fini): Replace with ...
47376 (GRUB_MOD_FINI(biosdisk)): ... this.
47378 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47379 (grub_machine_init): Remove call to grub_biosdisk_init().
47380 (grub_machine_fini): Remove call to grub_machine_fini().
47382 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47384 2007-10-22 Robert Millan <rmh@aybabtu.com>
47386 * include/grub/time.h: New file.
47387 * include/grub/i386/time.h: Likewise.
47388 * include/grub/powerpc/time.h: Likewise.
47389 * include/grub/sparc64/time.h: Likewise.
47391 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47393 (KERNEL_MACHINE_TIME_HEADER): ... this.
47394 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47396 (KERNEL_MACHINE_TIME_HEADER): ... this.
47397 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47399 (KERNEL_MACHINE_TIME_HEADER): ... this.
47401 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47402 (grub_millisleep): New function.
47403 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47404 (grub_millisleep): New function.
47405 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47406 Remove `grub/machine/time.h' include.
47407 (grub_millisleep): New function.
47408 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47409 Remove `grub/machine/time.h' include.
47410 (grub_millisleep): New function.
47412 * include/grub/misc.h (grub_div_roundup): New function.
47414 * kern/misc.c: Include `<grub/time.h>'.
47415 (grub_millisleep_generic): New function.
47417 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47419 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47421 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47422 `machine/time.h'. Add `time.h'.
47423 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47425 2007-10-21 Robert Millan <rmh@aybabtu.com>
47427 * include/grub/misc.h (grub_max): New function.
47429 2007-10-21 Robert Millan <rmh@aybabtu.com>
47431 * util/misc.c (grub_util_info): Call fflush() before returning.
47433 2007-10-20 Robert Millan <rmh@aybabtu.com>
47435 * genmk.rb (Image): Copy `extra_flags' from here ...
47436 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47438 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47439 to `argc' and `args' arguments.
47441 2007-10-17 Robert Millan <rmh@aybabtu.com>
47443 * kern/i386/loader.S: New file.
47445 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47446 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47447 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47448 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47449 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47450 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47451 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47452 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47453 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47454 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47455 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47456 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47457 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47458 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47460 * kern/i386/realmode.S: New file.
47462 * kern/i386/pc/startup.S (protstack): Moved from here ...
47463 * kern/i386/realmode.S (protstack)... to here.
47464 * kern/i386/pc/startup.S (gdt): Moved from here ...
47465 * kern/i386/realmode.S (gdt)... to here.
47466 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47467 * kern/i386/realmode.S (prot_to_real)... to here.
47469 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47470 `kern/i386/realmode.S'.
47472 2007-10-17 Robert Millan <rmh@aybabtu.com>
47474 * include/grub/i386/loader.h: New file.
47476 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47477 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47478 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47479 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47480 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47481 * include/grub/i386/loader.h (grub_linux_prot_size)
47482 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47483 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47484 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47485 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47487 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47489 2007-10-15 Robert Millan <rmh@aybabtu.com>
47491 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47492 filesystem when dev->disk is unset.
47493 Do probe for filesystem even when dev->disk->has_partitions is set.
47494 In case a filesystem is found, always report it.
47495 In case it isn't, if dev->disk->has_partitions is set, report that
47496 a partition table was found instead of reporting that no filesystem
47497 could be identified.
47499 2007-10-12 Robert Millan <rmh@aybabtu.com>
47501 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47502 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47504 * include/grub/types.h (grub_host_to_target16): New macro.
47505 (grub_host_to_target32): Likewise.
47506 (grub_host_to_target64): Likewise.
47507 (grub_target_to_host16): Likewise.
47508 (grub_target_to_host32): Likewise.
47509 (grub_target_to_host64): Likewise.
47511 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47512 Renamed from to ...
47513 (GRUB_MOD_ALIGN): ...this. Update all users.
47515 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47516 grub_host_to_target32.
47517 Replace grub_be_to_cpu32 with grub_target_to_host32.
47518 (load_modules): Likewise.
47519 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47520 Replace grub_be_to_cpu32 with grub_target_to_host32.
47521 Replace grub_cpu_to_be16 with grub_host_to_target16.
47522 Replace grub_cpu_to_be32 grub_host_to_target32.
47524 2007-10-12 Robert Millan <rmh@aybabtu.com>
47526 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47527 * util/elf/grub-mkimage.c: ... here.
47529 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47530 `util/powerpc/ieee1275/grub-mkimage.c'.
47532 2007-10-07 Robert Millan <rmh@aybabtu.com>
47534 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47535 and make it easier to figure out.
47536 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47537 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47538 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47539 leave us with less than HEAP_MIN_SIZE total heap.
47540 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47542 2007-10-03 Robert Millan <rmh@aybabtu.com>
47544 * include/grub/i386/io.h: New file.
47545 * commands/i386/pc/play.c (inb): Removed.
47547 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47549 * term/i386/pc/serial.c (inb): Removed.
47551 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47553 * term/i386/pc/vga.c (inb): Removed.
47555 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47558 2007-10-02 Robert Millan <rmh@aybabtu.com>
47560 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47562 Reported by Marcin Kurek.
47564 2007-09-07 Robert Millan <rmh@aybabtu.com>
47566 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47567 SmartFirmware version updates (as released by Sven Luther), and avoid
47568 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47569 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47572 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47574 From Hitoshi Ozeki:
47575 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47576 when merging two regions.
47578 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47580 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47581 * normal/completion.c (grub_normal_do_completion): Likewise.
47582 Reported by Hitoshi Ozeki.
47584 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47586 Do not use devices at boot in chainloading.
47588 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47589 (boot_part_addr): Likewise.
47590 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47591 with BOOT_DRIVE and BOOT_PART_ADDR.
47592 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47593 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47595 2007-08-29 Robert Millan <rmh@aybabtu.com>
47597 Patch from Simon Peter <dn.tlp@gmx.net>:
47598 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47599 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47600 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47601 util/i386/pc/grub-setup.c_DEPENDENCIES.
47602 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47603 util/grub-probe.c_DEPENDENCIES.
47604 * conf/powerpc-ieee1275.rmk: Likewise.
47606 2007-08-28 Robert Millan <rmh@aybabtu.com>
47608 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47609 to tell grub-mkdevicemap how to name devices.
47610 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47613 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47614 util/i386/get_disk_name.c.
47615 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47616 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47617 util/ieee1275/get_disk_name.c.
47619 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47621 * DISTLIST: Add util/i386/get_disk_name.c and
47622 util/ieee1275/get_disk_name.c.
47624 * util/grub-mkdevicemap.c: Replace device naming logic with
47625 grub_util_get_disk_name() calls.
47627 2007-08-20 Robert Millan <rmh@aybabtu.com>
47629 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47630 (so that it works for both plural and singular quantities).
47632 2007-08-05 Robert Millan <rmh@aybabtu.com>
47634 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47635 so that [xz] isn't taken into account when determining order.
47637 2007-08-02 Marco Gerards <marco@gnu.org>
47639 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47640 `include/multiboot2.h', `include/grub/elfload.h',
47641 `include/multiboot.h', `include/grub/multiboot.h',
47642 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47643 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47644 `kern/elf.c', `loader/multiboot_loader.c',
47645 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47646 `loader/i386/pc/multiboot2.c',
47647 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47648 `util/i386/pc/grub-mkrescue.in'. Remove
47649 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47650 `include/grub/i386/pc/util/biosdisk.h' and
47651 `include/grub/powerpc/ieee1275/multiboot.h'.
47653 2007-08-02 Bean <bean123ch@gmail.com>
47655 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47656 (ntfs_mod_SOURCES): New variable.
47657 (ntfs_mod_CFLAGS): Likewise.
47658 (ntfs_mod_LDFLAGS): Likewise.
47660 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47661 (grub_probe_SOURCES): Likewise.
47662 (grub_emu_SOURCES): Likewise.
47664 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47665 (grub_emu_SOURCES): Likewise.
47667 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47668 (grub_emu_SOURCES): Likewise.
47670 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47672 * fs/ntfs.c: New file.
47674 2007-08-02 Bean <bean123ch@gmail.com>
47676 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47678 * file.h (grub_file): Likewise.
47680 * fshelp.h (grub_fshelp_read_file): Likewise.
47682 * util/i386/pc/grub-setup.c (setup): Likewise.
47683 (save_first_sector): Likewise.
47684 (save_blocklists): Likewise.
47686 * fs/affs.c (grub_affs_read_file): Likewise.
47688 * fs/ext2.c (grub_ext2_read_file): Likewise.
47690 * fs/fat.c (grub_fat_read_data): Likewise.
47692 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47694 * fs/hfs.c (grub_hfs_read_file): Likewise.
47696 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47698 * fs/jfs.c (grub_jfs_read_file): Likewise.
47700 * fs/minix.c (grub_minix_read_file): Likewise.
47702 * fs/sfs.c (grub_sfs_read_file): Likewise.
47704 * fs/ufs.c (grub_ufs_read_file): Likewise.
47706 * fs/xfs.c (grub_xfs_read_file): Likewise.
47708 * command/blocklist.c (read_blocklist): Likewise.
47709 (print_blocklist): Likewise.
47711 2007-08-02 Marco Gerards <marco@gnu.org>
47713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47716 * disk/host.c: New file.
47718 * util/hostfs.c: Likewise.
47720 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47721 return `GRUB_ERR_BAD_FS'.
47722 * fs/sfs.c (grub_sfs_mount): Likewise.
47723 * fs/xfs.c (grub_xfs_mount): Likewise.
47725 * include/grub/disk.h (enum grub_disk_dev_id): Add
47726 `GRUB_DISK_DEVICE_HOST_ID'.
47728 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47730 2007-07-24 Jerone Young <jerone@gmail.com>
47732 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47733 modules for compilation.
47734 * conf/powerpc-ieee1275.rmk: Likewise.
47736 * include/multiboot.h: Move multiboot definitions to one file. Rename
47737 many definitions to not get grub specific.
47738 * include/multiboot2.h: Create header with multiboot 2 definitions.
47739 * include/grub/multiboot.h: Header for grub specific function
47740 prototypes and definitions.
47741 * include/grub/multiboot2.h: Likewise.
47742 * include/grub/multiboot_loader.h: Likewise.
47743 * include/grub/i386/pc/multiboot.h: Removed.
47744 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47746 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47747 and 2 to allow for one multiboot and module commands.
47748 * loader/multiboot2.c: Add multiboot2 functionality.
47749 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47750 and definition names.
47751 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47753 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47754 ieee1275 specific multiboot2 code.
47756 * kern/i386/pc/startup.S: Change headers and definition names for
47757 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47759 2007-07-22 Robert Millan <rmh@aybabtu.com>
47761 * geninitheader.sh: Process file specified in first parameter rather
47762 than hardcoding grub_modules_init.lst.
47763 * geninit.sh: Likewise. Also, construct header name dynamically rather
47764 than hardcoding grub_modules_init.h.
47766 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47767 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47768 grub_probe_init.[ch] and grub_setup_init.[ch].
47770 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47771 grub_modules_init.h with grub_emu_init.h.
47772 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47773 grub_probe_init.[ch] files.
47774 * conf/i386-efi.rmk: Likewise.
47775 * conf/i386-pc.rmk: Likewise.
47776 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47777 grub_setup_init.[ch] files.
47779 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47780 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47781 to initialize modules rather than a list of hardcoded functions.
47782 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47783 grub_init_all() to initialize modules rather than a list of hardcoded
47786 2007-07-22 Robert Millan <rmh@aybabtu.com>
47788 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47789 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47791 2007-07-22 Robert Millan <rmh@aybabtu.com>
47793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47794 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47795 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47796 flag when running on SmartFirmware.
47797 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47798 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47801 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47802 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47803 rather than decreasing it.
47805 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47806 there's not enough space to do it, fail in the same way as when it
47807 can't be done because there are no partitions.
47809 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47810 when nvsetenv failed.
47812 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47814 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47815 because this rule is automatically generated.
47816 (grub-mkrescue): Removed for the same reason as above.
47818 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47820 Migrate to GNU General Public License Version 3.
47822 * COPYING: Replaced with the plain text version of GPLv3.
47824 * config.guess: Updated from gnulib.
47825 * config.sub: Likewise.
47827 * geninit.sh: Output a GPLv3 copyright notice.
47828 * geninitheader.sh: Likewise.
47829 * genmodsrc.sh: Likewise.
47830 * gensymlist.sh.in: Likewise.
47832 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47833 * boot/i386/pc/diskboot.S: Likewise.
47834 * boot/i386/pc/pxeboot.S: Likewise.
47835 * commands/blocklist.c: Likewise.
47836 * commands/boot.c: Likewise.
47837 * commands/cat.c: Likewise.
47838 * commands/cmp.c: Likewise.
47839 * commands/configfile.c: Likewise.
47840 * commands/echo.c: Likewise.
47841 * commands/help.c: Likewise.
47842 * commands/ls.c: Likewise.
47843 * commands/search.c: Likewise.
47844 * commands/terminal.c: Likewise.
47845 * commands/test.c: Likewise.
47846 * commands/videotest.c: Likewise.
47847 * commands/i386/cpuid.c: Likewise.
47848 * commands/i386/pc/halt.c: Likewise.
47849 * commands/i386/pc/play.c: Likewise.
47850 * commands/i386/pc/reboot.c: Likewise.
47851 * commands/i386/pc/vbeinfo.c: Likewise.
47852 * commands/i386/pc/vbetest.c: Likewise.
47853 * commands/ieee1275/halt.c: Likewise.
47854 * commands/ieee1275/reboot.c: Likewise.
47855 * commands/ieee1275/suspend.c: Likewise.
47856 * disk/loopback.c: Likewise.
47857 * disk/lvm.c: Likewise.
47858 * disk/raid.c: Likewise.
47859 * disk/efi/efidisk.c: Likewise.
47860 * disk/i386/pc/biosdisk.c: Likewise.
47861 * disk/ieee1275/ofdisk.c: Likewise.
47862 * font/manager.c: Likewise.
47863 * fs/affs.c: Likewise.
47864 * fs/ext2.c: Likewise.
47865 * fs/fat.c: Likewise.
47866 * fs/fshelp.c: Likewise.
47867 * fs/hfs.c: Likewise.
47868 * fs/hfsplus.c: Likewise.
47869 * fs/iso9660.c: Likewise.
47870 * fs/jfs.c: Likewise.
47871 * fs/minix.c: Likewise.
47872 * fs/sfs.c: Likewise.
47873 * fs/ufs.c: Likewise.
47874 * fs/xfs.c: Likewise.
47875 * hello/hello.c: Likewise.
47876 * include/grub/acorn_filecore.h: Likewise.
47877 * include/grub/arg.h: Likewise.
47878 * include/grub/bitmap.h: Likewise.
47879 * include/grub/boot.h: Likewise.
47880 * include/grub/cache.h: Likewise.
47881 * include/grub/device.h: Likewise.
47882 * include/grub/disk.h: Likewise.
47883 * include/grub/dl.h: Likewise.
47884 * include/grub/elfload.h: Likewise.
47885 * include/grub/env.h: Likewise.
47886 * include/grub/err.h: Likewise.
47887 * include/grub/file.h: Likewise.
47888 * include/grub/font.h: Likewise.
47889 * include/grub/fs.h: Likewise.
47890 * include/grub/fshelp.h: Likewise.
47891 * include/grub/gzio.h: Likewise.
47892 * include/grub/hfs.h: Likewise.
47893 * include/grub/kernel.h: Likewise.
47894 * include/grub/loader.h: Likewise.
47895 * include/grub/lvm.h: Likewise.
47896 * include/grub/misc.h: Likewise.
47897 * include/grub/mm.h: Likewise.
47898 * include/grub/net.h: Likewise.
47899 * include/grub/normal.h: Likewise.
47900 * include/grub/parser.h: Likewise.
47901 * include/grub/partition.h: Likewise.
47902 * include/grub/pc_partition.h: Likewise.
47903 * include/grub/raid.h: Likewise.
47904 * include/grub/rescue.h: Likewise.
47905 * include/grub/script.h: Likewise.
47906 * include/grub/setjmp.h: Likewise.
47907 * include/grub/symbol.h: Likewise.
47908 * include/grub/term.h: Likewise.
47909 * include/grub/terminfo.h: Likewise.
47910 * include/grub/tparm.h: Likewise.
47911 * include/grub/types.h: Likewise.
47912 * include/grub/video.h: Likewise.
47913 * include/grub/efi/api.h: Likewise.
47914 * include/grub/efi/chainloader.h: Likewise.
47915 * include/grub/efi/console.h: Likewise.
47916 * include/grub/efi/console_control.h: Likewise.
47917 * include/grub/efi/disk.h: Likewise.
47918 * include/grub/efi/efi.h: Likewise.
47919 * include/grub/efi/pe32.h: Likewise.
47920 * include/grub/efi/time.h: Likewise.
47921 * include/grub/i386/linux.h: Likewise.
47922 * include/grub/i386/setjmp.h: Likewise.
47923 * include/grub/i386/types.h: Likewise.
47924 * include/grub/i386/efi/kernel.h: Likewise.
47925 * include/grub/i386/efi/loader.h: Likewise.
47926 * include/grub/i386/efi/time.h: Likewise.
47927 * include/grub/i386/pc/biosdisk.h: Likewise.
47928 * include/grub/i386/pc/boot.h: Likewise.
47929 * include/grub/i386/pc/chainloader.h: Likewise.
47930 * include/grub/i386/pc/console.h: Likewise.
47931 * include/grub/i386/pc/init.h: Likewise.
47932 * include/grub/i386/pc/kernel.h: Likewise.
47933 * include/grub/i386/pc/loader.h: Likewise.
47934 * include/grub/i386/pc/memory.h: Likewise.
47935 * include/grub/i386/pc/multiboot.h: Likewise.
47936 * include/grub/i386/pc/serial.h: Likewise.
47937 * include/grub/i386/pc/time.h: Likewise.
47938 * include/grub/i386/pc/vbe.h: Likewise.
47939 * include/grub/i386/pc/vbeblit.h: Likewise.
47940 * include/grub/i386/pc/vbefill.h: Likewise.
47941 * include/grub/i386/pc/vbeutil.h: Likewise.
47942 * include/grub/i386/pc/vga.h: Likewise.
47943 * include/grub/ieee1275/ieee1275.h: Likewise.
47944 * include/grub/ieee1275/ofdisk.h: Likewise.
47945 * include/grub/powerpc/libgcc.h: Likewise.
47946 * include/grub/powerpc/setjmp.h: Likewise.
47947 * include/grub/powerpc/types.h: Likewise.
47948 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47949 * include/grub/powerpc/ieee1275/console.h: Likewise.
47950 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47951 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47952 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47953 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47954 * include/grub/powerpc/ieee1275/time.h: Likewise.
47955 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47956 * include/grub/sparc64/libgcc.h: Likewise.
47957 * include/grub/sparc64/setjmp.h: Likewise.
47958 * include/grub/sparc64/types.h: Likewise.
47959 * include/grub/sparc64/ieee1275/console.h: Likewise.
47960 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47961 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47962 * include/grub/sparc64/ieee1275/time.h: Likewise.
47963 * include/grub/util/biosdisk.h: Likewise.
47964 * include/grub/util/getroot.h: Likewise.
47965 * include/grub/util/lvm.h: Likewise.
47966 * include/grub/util/misc.h: Likewise.
47967 * include/grub/util/raid.h: Likewise.
47968 * include/grub/util/resolve.h: Likewise.
47969 * io/gzio.c: Likewise.
47970 * kern/device.c: Likewise.
47971 * kern/disk.c: Likewise.
47972 * kern/dl.c: Likewise.
47973 * kern/elf.c: Likewise.
47974 * kern/env.c: Likewise.
47975 * kern/err.c: Likewise.
47976 * kern/file.c: Likewise.
47977 * kern/fs.c: Likewise.
47978 * kern/loader.c: Likewise.
47979 * kern/main.c: Likewise.
47980 * kern/misc.c: Likewise.
47981 * kern/mm.c: Likewise.
47982 * kern/parser.c: Likewise.
47983 * kern/partition.c: Likewise.
47984 * kern/rescue.c: Likewise.
47985 * kern/term.c: Likewise.
47986 * kern/efi/efi.c: Likewise.
47987 * kern/efi/init.c: Likewise.
47988 * kern/efi/mm.c: Likewise.
47989 * kern/i386/dl.c: Likewise.
47990 * kern/i386/efi/init.c: Likewise.
47991 * kern/i386/efi/startup.S: Likewise.
47992 * kern/i386/pc/init.c: Likewise.
47993 * kern/i386/pc/lzo1x.S: Likewise.
47994 * kern/i386/pc/startup.S: Likewise.
47995 * kern/ieee1275/ieee1275.c: Likewise.
47996 * kern/powerpc/cache.S: Likewise.
47997 * kern/powerpc/dl.c: Likewise.
47998 * kern/powerpc/ieee1275/cmain.c: Likewise.
47999 * kern/powerpc/ieee1275/crt0.S: Likewise.
48000 * kern/powerpc/ieee1275/init.c: Likewise.
48001 * kern/powerpc/ieee1275/openfw.c: Likewise.
48002 * kern/sparc64/cache.S: Likewise.
48003 * kern/sparc64/dl.c: Likewise.
48004 * kern/sparc64/ieee1275/init.c: Likewise.
48005 * kern/sparc64/ieee1275/openfw.c: Likewise.
48006 * loader/efi/chainloader.c: Likewise.
48007 * loader/efi/chainloader_normal.c: Likewise.
48008 * loader/i386/efi/linux.c: Likewise.
48009 * loader/i386/efi/linux_normal.c: Likewise.
48010 * loader/i386/pc/chainloader.c: Likewise.
48011 * loader/i386/pc/chainloader_normal.c: Likewise.
48012 * loader/i386/pc/linux.c: Likewise.
48013 * loader/i386/pc/linux_normal.c: Likewise.
48014 * loader/i386/pc/multiboot.c: Likewise.
48015 * loader/i386/pc/multiboot_normal.c: Likewise.
48016 * loader/powerpc/ieee1275/linux.c: Likewise.
48017 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48018 * normal/arg.c: Likewise.
48019 * normal/cmdline.c: Likewise.
48020 * normal/command.c: Likewise.
48021 * normal/completion.c: Likewise.
48022 * normal/execute.c: Likewise.
48023 * normal/function.c: Likewise.
48024 * normal/lexer.c: Likewise.
48025 * normal/main.c: Likewise.
48026 * normal/menu.c: Likewise.
48027 * normal/menu_entry.c: Likewise.
48028 * normal/misc.c: Likewise.
48029 * normal/parser.y: Likewise.
48030 * normal/script.c: Likewise.
48031 * normal/i386/setjmp.S: Likewise.
48032 * normal/powerpc/setjmp.S: Likewise.
48033 * normal/sparc64/setjmp.S: Likewise.
48034 * partmap/acorn.c: Likewise.
48035 * partmap/amiga.c: Likewise.
48036 * partmap/apple.c: Likewise.
48037 * partmap/gpt.c: Likewise.
48038 * partmap/pc.c: Likewise.
48039 * partmap/sun.c: Likewise.
48040 * term/gfxterm.c: Likewise.
48041 * term/terminfo.c: Likewise.
48042 * term/efi/console.c: Likewise.
48043 * term/i386/pc/console.c: Likewise.
48044 * term/i386/pc/serial.c: Likewise.
48045 * term/i386/pc/vesafb.c: Likewise.
48046 * term/i386/pc/vga.c: Likewise.
48047 * term/ieee1275/ofconsole.c: Likewise.
48048 * util/biosdisk.c: Likewise.
48049 * util/console.c: Likewise.
48050 * util/genmoddep.c: Likewise.
48051 * util/getroot.c: Likewise.
48052 * util/grub-emu.c: Likewise.
48053 * util/grub-mkdevicemap.c: Likewise.
48054 * util/grub-probe.c: Likewise.
48055 * util/lvm.c: Likewise.
48056 * util/misc.c: Likewise.
48057 * util/raid.c: Likewise.
48058 * util/resolve.c: Likewise.
48059 * util/update-grub.in: Likewise.
48060 * util/update-grub_lib.in: Likewise.
48061 * util/grub.d/00_header.in: Likewise.
48062 * util/grub.d/10_hurd.in: Likewise.
48063 * util/grub.d/10_linux.in: Likewise.
48064 * util/i386/efi/grub-install.in: Likewise.
48065 * util/i386/efi/grub-mkimage.c: Likewise.
48066 * util/i386/pc/grub-install.in: Likewise.
48067 * util/i386/pc/grub-mkimage.c: Likewise.
48068 * util/i386/pc/grub-mkrescue.in: Likewise.
48069 * util/i386/pc/grub-setup.c: Likewise.
48070 * util/i386/pc/misc.c: Likewise.
48071 * util/powerpc/ieee1275/grub-install.in: Likewise.
48072 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48073 * util/powerpc/ieee1275/misc.c: Likewise.
48074 * video/bitmap.c: Likewise.
48075 * video/video.c: Likewise.
48076 * video/i386/pc/vbe.c: Likewise.
48077 * video/i386/pc/vbeblit.c: Likewise.
48078 * video/i386/pc/vbefill.c: Likewise.
48079 * video/i386/pc/vbeutil.c: Likewise.
48080 * video/readers/tga.c: Likewise.
48082 2007-07-02 Robert Millan <rmh@aybabtu.com>
48084 * conf/i386-efi.rmk: Replace obsolete reference to
48085 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48086 with util/getroot.c.
48087 * conf/powerpc-ieee1275.rmk: Likewise.
48088 * conf/sparc64-ieee1275.rmk: Likewise.
48090 * util/grub-emu.c (main): Fix unchecked pointer handling.
48092 2007-07-02 Robert Millan <rmh@aybabtu.com>
48094 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48095 invocation to fail, in order to support partition-less media.
48097 * util/i386/pc/grub-install.in: Likewise.
48099 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48100 which fs or partmap modules are needed (akin to its sister scripts).
48102 Also use grub-probe to get rid of unportable /proc/mounts check.
48104 Print the same informational message that the other scripts do, before
48107 2007-06-23 Robert Millan <rmh@aybabtu.com>
48109 * util/update-grub_lib.in (font_path): New function. Determine whether
48110 a font file can be found and, if so, echo the GRUB path to it.
48112 * util/update-grub.in: Handle multiple terminals depending on user
48113 input, platform availability and font file presence. Propagate
48114 variables of our findings to /etc/grub.d/ children.
48116 * util/grub.d/00_header.in: Handle multiple terminals, based on
48117 environment setup by update-grub.
48119 2007-06-23 Robert Millan <rmh@aybabtu.com>
48121 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48123 2007-06-21 Robert Millan <rmh@aybabtu.com>
48125 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48126 indicate end of data section in kernel image.
48127 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48128 GRUB_KERNEL_MACHINE_DATA_END.
48130 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48132 * kern/i386/efi/startup.S: Likewise.
48134 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48135 during image generation. Implement --prefix option to override this
48137 * util/i386/efi/grub-mkimage.c: Likewise.
48139 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48140 code to make path relative to its root into a separate function.
48142 * util/i386/pc/grub-install.in: Use newly provided
48143 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48144 pass the result to grub-install --prefix.
48146 2007-06-13 Robert Millan <rmh@aybabtu.com>
48148 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48149 DEFAULT_DEVICE_MAP.
48150 * util/grub-emu.c: Use above definitions from misc.h instead of
48152 * util/grub-mkdevicemap.c: Likewise.
48153 * util/i386/pc/grub-setup.c: Likewise.
48154 * util/grub-probe.c: Likewise.
48155 (probe): Abort with grub_util_error() when either
48156 grub_guess_root_device or grub_util_get_grub_dev fails.
48158 2007-06-12 Robert Millan <rmh@aybabtu.com>
48160 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48161 "pager" assignment.
48162 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48164 * util/grub-probe.c (probe): Likewise for "drive_name".
48166 2007-06-11 Robert Millan <rmh@aybabtu.com>
48168 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48169 not just the cdrom one.
48171 2007-06-11 Robert Millan <rmh@aybabtu.com>
48173 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48174 Add --pkglibdir=DIR option to override pkglibdir.
48175 Mention --image-type=TYPE in help output.
48176 Fix --grub-mkimage (it was a no-op).
48177 Abort gracefully when no parameter is given.
48179 2007-06-11 Robert Millan <rmh@aybabtu.com>
48181 * util/i386/pc/grub-mkrescue.in: New file.
48182 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48183 * Makefile.in: Handle bin_SCRIPTS.
48185 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48187 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48188 list of video modes.
48190 2007-06-06 Robert Millan <rmh@aybabtu.com>
48192 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48193 file doesn't exist, or if it is in a filesystem grub can't read.
48195 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48196 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48197 header comment to fit in 80 columns when the variables are resolved.
48199 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48200 could be identified by update-grub. Remove redundant check for
48201 unifont.pff existence (since convert_system_path_to_grub_path now
48204 2007-06-04 Robert Millan <rmh@aybabtu.com>
48206 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48208 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48210 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48212 2007-06-04 Robert Millan <rmh@aybabtu.com>
48214 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48216 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48217 grub_apple_partition_map_fini.
48220 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48221 to access >2 TiB disks).
48223 Print disk->total_sectors with %llu instead of %lu, since this
48224 variable is always 64-bit (prevents wrong disk size from being displayed
48225 on either >2 TiB disk or big-endian CPU).
48227 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48228 into a generic case that supports all (sane) partition maps.
48230 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48233 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48234 and grub_apple_partition_map_fini() after that.
48236 2007-06-01 Robert Millan <rmh@aybabtu.com>
48238 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48240 * util/grub.d/00_header.in: Only enable gfxterm when
48241 convert_system_path_to_grub_path() succeeds.
48243 2007-05-20 Robert Millan <rmh@aybabtu.com>
48245 * util/update-grub_lib.in: New file.
48246 * DISTLIST: Add update-grub_lib.in.
48247 * conf/common.rmk: Generate update-grub_lib and install it in
48249 * Makefile.in: Add install routine for $(lib_DATA).
48251 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48252 function provided by update-grub_lib to support arbitrary paths of
48254 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48255 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48257 2007-05-19 Robert Millan <rmh@aybabtu.com>
48259 * commands/i386/cpuid.c: New module.
48260 * DISTLIST: Add it.
48261 * conf/i386-efi.rmk: Enable cpuid.mod.
48262 * conf/i386-pc.rmk: Likewise.
48264 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48266 * kern/disk.c (grub_disk_read): Check return value of
48269 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48271 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48273 * disk/raid.c (grub_raid_open): Likewise.
48275 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48277 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48278 stack instead of on the heap.
48280 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48281 before doing a read on it.
48283 * configure.ac: Only use -fno-stack-protector for the target
48286 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48288 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48289 __attribute_ ((unused)) to mode_type argument.
48291 * util/getroot.c (grub_guess_root_device): Fix #endif.
48293 * kern/misc.c (memcmp): Fix prototype.
48295 * include/grub/partition.h [GRUB_UTIL]
48296 (grub_gpt_partition_map_init): Add prototype.
48297 (grub_gpt_partition_map_fini): Likewise.
48299 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48300 at the right place.
48302 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48303 (grub_fat_read_data): Likewise.
48304 (grub_fat_find_dir): Likewise.
48306 * font/manager.c (find_glyph): Make table a const.
48307 (grub_font_get_glyph): Remove bitmap from if statement.
48309 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48311 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48312 code, first search for device in /dev/mapper, then in /dev.
48313 (grub_util_get_grub_dev): New function.
48314 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48316 * util/grub-probe.c (probe): Remove check for RAID, call
48317 grub_util_get_grub_dev() instead of
48318 grub_util_biosdisk_get_grub_dev().
48319 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48320 grub_util_biosdisk_get_grub_dev().
48321 * util/i386/pc/grub-setup.c (main): Likewise.
48323 2007-05-16 Robert Millan <rmh@aybabtu.com>
48325 * DISTLIST: Update for the latest changes.
48326 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48327 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48328 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48329 grub/util/biosdisk.h.
48330 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48331 grub/util/biosdisk.h.
48333 2007-05-16 Robert Millan <rmh@aybabtu.com>
48335 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48337 2007-05-16 Robert Millan <rmh@aybabtu.com>
48339 * util/i386/efi/grub-install.in: New.
48340 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48341 newly added grub-install.
48342 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48344 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48345 grub/util/biosdisk.h.
48346 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48347 grub/util/biosdisk.h.
48349 2007-05-16 Robert Millan <rmh@aybabtu.com>
48351 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48352 * include/grub/util/biosdisk.h: ... here.
48353 * util/i386/pc/biosdisk.c: Moved to ...
48354 * util/biosdisk.c: ... here.
48355 * util/i386/pc/getroot.c: Moved to ...
48356 * util/getroot.c: ... here.
48357 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48358 * util/grub-mkdevicemap.c: ... here.
48359 * util/i386/pc/grub-probe.c: Moved to ...
48360 * util/grub-probe.c: ... here.
48362 2007-05-15 Robert Millan <rmh@aybabtu.com>
48364 * util/update-grub.in: Remove duplicated line in grub.cfg header
48367 2007-05-13 Robert Millan <rmh@aybabtu.com>
48369 * util/update-grub.in: Fix a few assumptions about the devices holding
48370 /, /boot and /boot/grub being the same.
48371 * util/grub.d/00_header.in: Likewise.
48372 * util/grub.d/10_hurd.in: Likewise.
48373 * util/grub.d/10_linux.in: Likewise.
48375 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48376 patterns. Use that to define the `.old' suffix as older than `'.
48378 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48380 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48381 the grub.cfg header message.
48383 2007-05-11 Robert Millan <rmh@aybabtu.com>
48385 * util/update-grub.in: Create device.map if it doesn't already exist,
48386 before attempting to run grub-probe.
48387 Check for grub-probe and grub-mkdevicemap with the same code
48388 grub-install is using.
48391 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48393 * Makefile.in: Add the datarootdir autoconf variable.
48395 2007-05-09 Robert Millan <rmh@aybabtu.com>
48397 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48398 fail gracefully if dev->disk->partition == NULL.
48400 2007-05-07 Robert Millan <rmh@aybabtu.com>
48402 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48403 determine partition map module.
48404 * util/i386/pc/grub-install.in: Use this feature to decide which
48405 partition module to load, instead of hardcoding pc and gpt.
48407 2007-05-07 Robert Millan <rmh@aybabtu.com>
48409 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48410 source directory differs from build directory.
48412 2007-05-05 Robert Millan <rmh@aybabtu.com>
48414 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48417 2007-05-05 Robert Millan <rmh@aybabtu.com>
48419 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48421 2007-05-05 Robert Millan <rmh@aybabtu.com>
48423 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48424 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48426 2007-05-05 Robert Millan <rmh@aybabtu.com>
48428 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48429 (grub_probe_SOURCES): Likewise.
48430 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48431 GPT and initialize dos_part and bsd_part accordingly.
48432 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48434 (main): Activate gpt module for use during partition identification,
48435 and deactivate it afterwards.
48436 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48437 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48438 partition identification, and deactivate it afterwards.
48440 2007-05-05 Robert Millan <rmh@aybabtu.com>
48442 * term/i386/pc/console.c (grub_console_fini): Call
48443 grub_term_set_current() before grub_term_unregister().
48445 2007-05-04 Robert Millan <rmh@aybabtu.com>
48447 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48448 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48449 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48450 and update-grub_DATA.
48451 * conf/common.rmk: Build and install update-grub components.
48452 * conf/common.mk: Regenerate.
48453 * util/update-grub.in: New. Core of update-grub.
48454 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48455 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48456 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48457 * util/grub.d/README: New. Document grub.d directory layout.
48459 2007-05-01 Robert Millan <rmh@aybabtu.com>
48461 * util/grub-emu.c: Move initialization functions
48462 grub_util_biosdisk_init() and grub_init_all() before
48463 grub_util_biosdisk_get_grub_dev(), which relies on them.
48465 2007-04-19 Robert Millan <rmh@aybabtu.com>
48467 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48470 2007-04-18 Jerone Young <jerone@gmail.com>
48472 * kernel/elf.c: Add missing parenthesis for conditional statement
48475 2007-04-10 Jerone Young <jerone@gmail.com>
48477 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48478 continue on and look for device node with real device name.
48480 2007-04-10 Jerone Young <jerone@gmail.com>
48482 * configure.ac: Add argument for autoconf to use transformation
48484 * Makefile.in: Add autoconf package transformation code.
48485 * util/i386/pc/grub-install.in: Likewise.
48486 * util/powerpc/ieee1275/grub-install.in: Likewise.
48488 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48490 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48491 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48492 (EXT2_REVISION): Likewise.
48493 (EXT2_INODE_SIZE): Likewise.
48494 (struct grub_ext2_block_group): Added a missing member
48496 (grub_ext2_read_inode): Divide by the inode size in a superblock
48497 instead of 128 to obtain INODES_PER_BLOCK.
48498 Use the macro EXT2_INODE_SIZE instead of directly using
48499 SBLOCK->INODE_SIZE.
48501 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48503 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48504 superblock instead of the structure size to compute an
48505 offset. This fixes the problem that GRUB could not read a
48506 filesystem when inode size is different from 128-byte.
48508 2007-03-05 Marco Gerards <marco@gnu.org>
48510 * normal/main.c (read_config_file): When "menu" is not set, create
48511 an initial context.
48513 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48515 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48516 (HEAP_LIMIT): New macro.
48517 (grub_claim_heap): Claim memory up to `heaplimit'.
48519 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48521 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48522 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48523 (_start): Likewise.
48524 (grub_arch_modules_addr): Return address after `_end'.
48525 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48526 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48527 (add_segments): Calculate `_end' from phdr size and location.
48528 (ALIGN_UP): Moved to ...
48529 * include/grub/misc.h: here.
48530 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48532 (GRUB_IEEE1275_MODULE_BASE): Removed.
48534 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48536 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48539 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48541 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48543 (grub_elf64_load_hook_t): Likewise.
48544 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48547 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48549 * kern/mm.c: Update copyright.
48550 (grub_mm_debug): Correct syntax error.
48551 (grub_mm_dump_free): New function.
48552 (grub_debug_free): Call `grub_free'.
48553 * include/grub/mm.h: Update copyright.
48554 (grub_mm_dump_free): Add declaration.
48556 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48558 * include/grub/ieee1275/ieee1275.h: Update copyright.
48559 * kern/powerpc/ieee1275/init.c: Likewise.
48560 * kern/powerpc/ieee1275/openfw.c: Likewise.
48562 * loader/powerpc/ieee1275/linux.c: Likewise.
48563 * include/grub/elfload.h: Likewise.
48564 * kern/elf.c: Likewise.
48565 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48567 (grub_elf64_load): Likewise.
48568 (grub_elf32_load_segment): Move to a nested function.
48569 (grub_elf64_load_segment): Likewise.
48571 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48573 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48575 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48576 (grub_heap_len): Likewise.
48577 (HEAP_SIZE): New macro.
48578 (grub_claim_heap): New function.
48579 (grub_machine_init): Don't claim heap directly. Call
48581 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48582 (grub_available_iterate): New function.
48584 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48586 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48587 * configure.ac: Use it for testing the HOST and TARGET compilers.
48589 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48591 * Makefile.in (enable_grub_emu): New variable.
48592 * configure.ac (--enable-grub-emu): New option.
48593 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48594 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48595 * conf/i386-pc.rmk: Likewise.
48596 * conf/powerpc-ieee1275.rmk: Likewise.
48597 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48599 2006-12-12 Marco Gerards <marco@gnu.org>
48601 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48603 * kern/env.c (grub_env_unset): Don't free the member `value' when
48604 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48607 * normal/main.c (current_menu): Removed.
48608 (free_menu): Unset the `menu' environment variable.
48609 (grub_normal_menu_addentry): Make use of the environment variable
48610 `menu', instead of using the global `current_menu'. Allocate
48611 memory for the sourcecode of this entry.
48612 (read_config_file): New argument `nested', changed all callers.
48613 Only in the case of a new context, initialize a new menu. Set the
48614 `menu' environment variable.
48615 (grub_normal_execute): Don't set and unset the environment
48616 variable `menu' here anymore. Only free the menu when leaving the
48619 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48622 2006-12-11 Marco Gerards <marco@gnu.org>
48624 * normal/menu_entry.c (run): Fix off by one bug so the last line
48625 is executed. Move the loader check to outside the loop.
48627 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48629 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48631 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48633 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48634 the number of sectors. Reported by Andrey Shuvikov
48635 <mr_hyro@yahoo.com>.
48637 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48639 * kern/disk.c (grub_disk_read): When there is a read error, always
48640 try to read only the necessary data.
48642 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48644 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48646 [GRUB_UTIL] (grub_raid_fini): Likewise.
48647 [GRUB_UTIL] (grub_lvm_init): Likewise.
48648 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48649 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48650 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48651 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48652 and grub_raid_fini().
48654 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48656 * include/grub/types.h (__unused): Rename to UNUSED.
48657 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48658 (grub_elf64_size): Likewise.
48660 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48662 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48663 grub_error_push and grub_error_pop in the error-handling path.
48664 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48667 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48669 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48670 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48671 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48672 (kernel_elf_SOURCES): Likewise.
48673 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48674 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48675 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48676 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48677 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48678 (elf_mod_SOURCES): New variable.
48679 (elf_mod_CFLAGS): Likewise.
48680 (elf_mod_LDFLAGS): Likewise.
48681 * include/grub/types.h (__unused): New macro.
48682 * include/grub/elfload.h: New file.
48683 * kern/elf.c: Likewise.
48684 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48685 (ELF32_LOADMASK): New macro.
48686 (ELF64_LOADMASK): Likewise.
48687 (vmlinux): Removed.
48688 (grub_linux_load32): New function.
48689 (grub_linux_load64): Likewise.
48690 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48691 Use grub_elf_t instead of grub_file_t.
48693 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48695 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48696 `catch_result' to struct set_color_args.
48698 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48700 * normal/menu.c: Include grub/script.h.
48701 * normal/menu_entry.c: Likewise.
48702 * include/grub/normal.h: Do not include grub/script.h.
48704 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48706 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48708 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48710 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48712 (grub_disk_close): Print debug messages when closing a disk.
48713 (grub_disk_read): Print debug messages when disk read fails.
48714 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48716 * kern/partition.c: Include misc.h.
48717 (grub_partition_iterate): Print debug messages when detecting
48720 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48722 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48724 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48726 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48728 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48729 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48731 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48733 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48734 instead of sizeof(lv). Patch by Michael Guntsche.
48736 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48738 * disk/lvm.c: Rename VGS to VG_LIST.
48739 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48740 (grub_lvm_open): Likewise.
48741 Thanks to Michael Guntsche for finding this bug.
48743 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48745 * configure.ac (AC_INIT): Bumped to 1.95.
48747 2006-10-14 Robert Millan <rmh@aybabtu.com>
48749 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48750 with "/dev/.static/dev/md".
48752 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48754 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48755 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48756 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48757 DRIVE_NAME are always freed.
48759 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48760 DOS_PART, as a DOS partition is counted from one instead of zero
48761 now. Reported by Robert Millan.
48763 2006-10-14 Robert Millan <rmh@aybabtu.com>
48765 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48766 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48767 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48768 string returned by grub_guess_root_device.
48769 * util/i386/pc/grub-setup.c: Likewise.
48770 * util/i386/pc/grub-probefs.c: Likewise.
48772 * util/i386/pc/grub-probefs.c: Rename to ...
48773 * util/i386/pc/grub-probe.c: ... this.
48774 * DISTLIST: Remove grub-probefs, add grub-probe.
48775 * conf/i386-efi.rmk: Likewise.
48776 * conf/i386-pc.rmk: Likewise.
48777 * util/i386/pc/grub-install.in: Likewise.
48779 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48780 choose which information we want to print.
48782 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48784 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48785 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48786 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48787 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48788 video/readers/tga.c and video/i386/pc/vbeutil.c.
48790 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48792 Added support for RAID and LVM.
48794 * disk/lvm.c: New file.
48795 * disk/raid.c: Likewise.
48796 * include/grub/lvm.h: Likewise.
48797 * include/grub/raid.h: Likewise.
48798 * include/grub/util/lvm.h: Likewise.
48799 * include/grub/util/raid.h: Likewise.
48800 * util/lvm.c: Likewise.
48801 * util/raid.c: Likewise.
48803 * include/grub/disk.h (grub_disk_dev_id): Add
48804 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48805 (grub_disk_get_size): New prototype.
48806 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48807 returns a partition.
48808 (grub_disk_get_size): New function.
48810 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48811 verbatim if grub_install_dos_part is -2.
48813 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48816 * util/i386/pc/grub-setup.c (setup): New argument
48817 MUST_EMBED. Force embedding of GRUB when the argument is
48818 true. Close FILE before returning.
48819 (main): Add support for RAID and LVM.
48821 * conf/common.rmk: Add RAID and LVM modules.
48822 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48824 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48826 * kern/misc.c (grub_strstr): New function.
48827 * include/grub/misc.h (grub_strstr): New prototype.
48829 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48831 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48833 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48835 * kern/misc.c (grub_strtoull): Guess the base only if not
48838 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48840 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48843 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48845 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48847 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48848 Remove `flags' argument. All callers changed.
48849 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48850 (IEEE1275_IHANDLE_INVALID): New variable.
48851 (IEEE1275_CELL_INVALID): New variable.
48852 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48853 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48854 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48855 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48856 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48857 codes from Open Firmware. All callers updated.
48858 (grub_ieee1275_next_property): Directly return Open Firmware return
48860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48861 Standardize error checking from `grub_ieee1275_get_property'.
48862 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48863 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48865 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48867 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48868 `instance_to_package_args' to `instance_to_path_args'.
48870 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48871 `grub_ieee1275_chosen'.
48873 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48874 `grub_ieee1275_interpret'.
48876 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48878 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48880 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48882 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48883 (__cmpdi): Likewise.
48885 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48886 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48889 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48891 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48892 to type `grub_ssize_t'.
48893 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48895 2006-09-22 Marco Gerards <marco@gnu.org>
48897 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48900 2006-09-22 Marco Gerards <marco@gnu.org>
48902 * commands/echo.c: New file.
48904 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48906 * conf/common.rmk (echo_mod_SOURCES): New variable.
48907 (echo_mod_CFLAGS): Likewise.
48908 (echo_mod_LDFLAGS): Likewise.
48910 2006-09-22 Marco Gerards <marco@gnu.org>
48912 * normal/main.c (get_line): Malloc memory instead of using
48913 preallocated memory. Removed the arguments `cmdline' and
48914 `max_len'. Updated all callers.
48916 2006-09-22 Marco Gerards <marco@gnu.org>
48918 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48919 (normal_mod_DEPENDENCIES): Likewise.
48921 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48922 (normal_mod_DEPENDENCIES): Likewise.
48924 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48926 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48928 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48930 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48931 (normal_mod_DEPENDENCIES): Likewise.
48932 * conf/i386-pc.mk: Regenerate.
48933 * conf/i386-efi.mk: Likewise
48934 * conf/common.mk: Likewise.
48935 * conf/powerpc-ieee1275.mk: Likewise.
48936 * conf/sparc64-ieee1275.mk: Likewise.
48938 2006-09-22 Robert Millan <rmh@aybabtu.com>
48940 Sync with i386 version.
48941 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48942 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48944 2006-09-21 Robert Millan <rmh@aybabtu.com>
48946 Import from GRUB Legacy (lib/device.c):
48947 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48948 (init_device_map) [__linux__]: Add support for I2O devices.
48950 2006-09-14 Marco Gerards <marco@gnu.org>
48952 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48955 2006-09-14 Robert Millan <rmh@aybabtu.com>
48957 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48960 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48962 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48963 before adding it to device.map.
48965 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48967 * genmk.rb: Let GCC generate dependencies the first time it
48968 compiles a file; using the -MD option.
48969 * conf/common.mk: Regenerate.
48970 * conf/i386-pc.mk: Likewise.
48971 * conf/i386-efi.mk: Likewise.
48972 * conf/powerpc-ieee1275.mk: Likewise.
48973 * conf/sparc64-ieee1275.mk: Likewise.
48975 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48977 Move the prototypes of grub_setjmp and grub_longjmp to
48978 cpu/setjmp.h, so that each architecture may specify different
48981 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48982 (grub_longjmp): Likewise.
48983 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48984 (grub_longjmp): Likewise.
48985 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48986 (grub_longjmp): Likewise.
48988 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48989 [!GRUB_UTIL] (grub_longjmp): Removed.
48991 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48993 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48994 "color!" method does not return any value.
48996 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48998 * include/grub/bitmap.h: New file.
49000 * include/grub/i386/pc/vbeutil.h: Likewise.
49002 * video/bitmap.c: Likewise.
49004 * video/readers/tga.c: Likewise.
49006 * video/i386/pc/vbeutil.c: Likewise.
49008 * commands/videotest.c: Code cleanup and updated to reflect to new
49011 * term/gfxterm.c: Likewise.
49013 * video/video.c: Likewise.
49015 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49016 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49017 (bitmap_mod_SOURCES): New entry.
49018 (bitmap_mod_CFLAGS): Likewise.
49019 (bitmap_mod_LDFLAGS): Likewise.
49020 (tga_mod_SOURCES): Likewise.
49021 (tga_mod_CFLAGS): Likewise.
49022 (tga_mod_LDFLAGS): Likewise.
49024 * include/grub/video.h (grub_video_blit_operators): New enum type.
49025 (grub_video_render_target): Changed as forward declaration and moved
49026 actual definition to be video driver specific.
49027 (grub_video_adapter.blit_bitmap): Added blitting operator.
49028 (grub_video_adapter.blit_render_target): Likewise.
49029 (grub_video_blit_bitmap): Likewise.
49030 (grub_video_blit_render_target): Likewise.
49032 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49033 driver specific render target definition.
49034 (grub_video_vbe_map_rgba): Added driver internal helper.
49035 (grub_video_vbe_unmap_color): Updated to use
49036 grub_video_i386_vbeblit_info.
49037 (grub_video_vbe_get_video_ptr): Likewise.
49039 * include/grub/i386/pc/vbeblit.h
49040 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49041 grub_video_i386_vbeblit_info.
49042 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49043 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49044 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49045 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49046 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49047 (grub_video_i386_vbeblit_index_index): Likewise.
49048 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49049 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49050 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49051 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49053 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49056 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49057 include/grub/i386/pc/vbeblit.h.
49059 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49060 Updated to use grub_video_i386_vbeblit_info.
49061 (grub_video_i386_vbefill_R8G8B8): Likewise.
49062 (grub_video_i386_vbefill_index): Likewise.
49063 (grub_video_i386_vbefill): Added generic filler.
49065 * video/i386/pc/vbefill.c: Updated to reflect changes on
49066 include/grub/i386/pc/vbefill.h.
49068 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49069 grub_video_i386_vbeblit_info.
49070 (grub_video_vbe_unmap_color): Likewise.
49071 (grub_video_vbe_blit_glyph): Likewise.
49072 (grub_video_vbe_scroll): Likewise.
49073 (grub_video_vbe_draw_pixel): Removed function.
49074 (grub_video_vbe_get_pixel): Likewise.
49075 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49076 updated code to use it.
49077 (common_blitter): Added common blitter for render target and bitmap.
49078 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49079 (grub_video_vbe_blit_render_target): Likewise.
49081 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49083 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49084 is in text mode if there is no console control protocol instance
49087 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49089 * include/grub/video.h: Code cleanup.
49091 * include/grub/i386/pc/vbe.h: Likewise.
49093 * video/i386/pc/vbe.c: Likewise.
49095 * video/i386/pc/vbeblit.c: Likewise.
49097 * video/i386/pc/vbefill.c: Likewise.
49099 * video/video.c: Likewise. Also added more comments.
49101 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49103 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49104 (struct grub_biosdisk_dap): Likewise.
49106 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49107 linkage settings for all functions.
49109 2006-07-12 Marco Gerards <marco@gnu.org>
49111 * configure.ac (--enable-mm-debug): Fix typo.
49113 * genkernsyms.sh.in: Use proper quoting for `CC'.
49115 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49117 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49118 (normal_mod_ASFLAGS): Remove "-m32".
49120 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49122 * util/misc.c: Include config.h.
49123 [!HAVE_MEMALIGN]: Do not include malloc.h.
49124 (grub_memalign): Use posix_memalign, if present. Then, use
49125 memalign, if present. Otherwise, emit an error.
49127 * util/grub-emu.c: Do not include malloc.h.
49129 * include/grub/util/misc.h: Include unistd.h. This is required for
49130 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49131 D. Eades III <hde@foobar-qux.org>.
49133 * configure.ac (AC_GNU_SOURCE): Added.
49134 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49137 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49139 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49140 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49142 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49144 * include/grub/types.h (grub_host_addr_t): Rename to
49145 grub_target_addr_t.
49146 (grub_host_off_t): Rename to grub_target_off_t.
49147 (grub_host_size_t): Rename to grub_target_size_t.
49148 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49149 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49151 * include/grub/kernel.h (struct grub_module_header): Change type
49152 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49153 (grub_module_info): Likewise.
49155 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49157 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49158 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49159 Velazquez <jesus.velazquez@gmail.com>.
49161 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49163 Count partitions from 1 instead of 0 in the string representation
49164 of partitions. Still use 0-based internally.
49166 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49167 (sun_partition_map_iterate): Use grub_partition_t instead of
49168 struct grub_partition *. Cast DESC->START_CYLINDER to
49169 grub_uint64_t after converting the endian.
49170 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49171 (sun_partition_map_get_name): Add 1 to P->INDEX.
49173 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49175 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49177 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49178 zero instead of one.
49179 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49180 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49182 * partmap/apple.c (apple_partition_map_iterate): Change the type
49183 of POS to unsigned.
49184 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49185 (apple_partition_map_get_name): Add 1 into P->INDEX.
49187 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49188 of POS to unsigned.
49189 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49190 calculate the offset of a partition.
49191 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49192 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49194 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49195 SECTOR to grub_disk_addr_t.
49196 (acorn_partition_map_iterate): Likewise.
49197 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49198 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49200 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49202 * kern/i386/pc/init.c (make_install_device): Add 1 into
49203 GRUB_INSTALL_DOS_PART.
49205 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49208 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49210 Clean up the code to support 64-bit addressing in disks and
49211 files. This change is not enough for filesystems yet.
49213 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49214 type of "start" to grub_uint64_t.
49215 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49216 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49217 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49220 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49221 to grub_disk_addr_t.
49223 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49226 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49228 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49231 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49233 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49235 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49237 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49238 to grub_off_t, to detect an error from grub_file_seek.
49239 (grub_multiboot_load_elf32): Likewise.
49241 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49242 maximum unsigned long value when an overflow is detected.
49243 (grub_strtoull): New function.
49244 (grub_divmod64): Likewise.
49245 (grub_lltoa): use grub_divmod64.
49247 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49249 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49250 the pointer to next character. Use grub_strtoull instead of
49252 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49253 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49256 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49257 return value is signed.
49258 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49259 test if OFFSET is less than zero, as OFFSET is unsigned now.
49261 * kern/disk.c (struct grub_disk_cache): Change the type of
49262 "sector" to grub_disk_addr_t.
49263 (grub_disk_cache_get_index): Change the type of SECTOR to
49264 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49265 unsigned after shifting.
49266 (grub_disk_cache_invalidate): Change the type of SECTOR to
49268 (grub_disk_cache_unlock): Likewise.
49269 (grub_disk_cache_store): Likewise.
49270 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49271 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49272 grub_disk_addr_t and grub_uint64_t, respectively.
49273 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49274 body, as the value of OFFSET is tweaked by
49275 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49276 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49278 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49279 body, as the value of OFFSET is tweaked by
49280 grub_disk_check_range. Change the types of LEN and N to
49283 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49284 and "saved_offset" to grub_off_t.
49285 (test_header): Cast BUF to char *.
49286 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49288 (grub_gzio_read): Change the types of OFFSET and SIZE to
49289 grub_off_t and grub_size_t, respectively.
49291 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49293 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49294 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49295 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49296 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49297 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49299 * include/grub/types.h (grub_off_t): Unconditionally set to
49301 (grub_disk_addr_t): Changed to grub_uint64_t.
49303 * include/grub/partition.h (struct grub_partition): Change the
49304 types of "start", "len" and "offset" to grub_disk_addr_t,
49305 grub_uint64_t and grub_disk_addr_t, respectively.
49306 (grub_partition_get_start): Return grub_disk_addr_t.
49307 (grub_partition_get_len): Return grub_uint64_t.
49309 * include/grub/misc.h (grub_strtoull): New prototype.
49310 (grub_divmod64): Likewise.
49312 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49313 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49314 grub_off_t, respectively.
49315 All callers and references changed.
49317 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49318 grub_size_t in "read".
49319 All callers and references changed.
49321 * include/grub/file.h (struct grub_file): Change the types of
49322 "offset" and "size" to grub_off_t and grub_off_t,
49323 respectively. Change the type of SECTOR to grub_disk_addr_t in
49325 (grub_file_read): Change the type of LEN to grub_size_t.
49326 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49328 (grub_file_size): Return grub_off_t.
49329 (grub_file_tell): Likewise.
49330 All callers and references changed.
49332 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49333 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49335 (struct grub_disk): Change the type of "total_sectors" to
49336 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49338 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49339 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49340 (grub_disk_write): Likewise.
49341 All callers and references changed.
49343 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49344 char * for grub_strncmp to silence gcc.
49345 (grub_iso9660_mount): Likewise.
49346 (grub_iso9660_mount): Likewise.
49347 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49349 (grub_iso9660_iterate_dir): Likewise.
49350 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49352 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49353 LEN to grub_disk_addr_t and grub_size_t, respectively.
49355 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49357 * fs/jfs.c (grub_jfs_read_file): Likewise.
49359 * fs/minix.c (grub_jfs_read_file): Likewise.
49361 * fs/sfs.c (grub_jfs_read_file): Likewise.
49363 * fs/ufs.c (grub_jfs_read_file): Likewise.
49365 * fs/xfs.c (grub_jfs_read_file): Likewise.
49367 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49368 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49371 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49372 BLKNR to -1 instead of returning GRUB_ERRNO.
49373 (grub_ext2_read_file): Change the types of SECTOR and
49374 LEN to grub_disk_addr_t and grub_size_t, respectively.
49376 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49377 LEN to grub_disk_addr_t and grub_size_t, respectively.
49379 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49382 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49383 string. Do not cast SECTOR explicitly.
49385 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49386 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49387 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49388 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49389 over 2TB and LBA mode is not supported, raise an error.
49390 (get_safe_sectors): New function.
49391 (grub_biosdisk_read): Use get_safe_sectors.
49392 (grub_biosdisk_write): Likewise.
49394 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49395 (grub_efidisk_write): Likewise.
49397 * disk/loopback.c (delete_loopback): Cosmetic changes.
49398 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49400 (grub_loopback_open): Likewise.
49401 (grub_loopback_read): Likewise. Also, change the type of POS to
49402 grub_off_t, and fix the usage of grub_memset.
49404 * commands/i386/pc/play.c: Include grub/machine/time.h.
49406 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49409 * commands/configfile.c: Include grub/env.h.
49411 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49412 GRUB_ERRNO directly instead. Change the type of POS to
49413 grub_off_t. Follow the coding standard.
49415 * commands/blocklist.c: Include grub/partition.h.
49416 (grub_cmd_blocklist): Return an error if the underlying device is
49417 not a disk. Take the starting sector of a partition into account,
49418 if a partition is used.
49420 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49422 (lba_mode): Support 64-bit addresses.
49423 (chs_mode): Likewise.
49424 (copy_buffer): Adapted to the new offsets of a length field and a
49426 (blocklist_default_start): Allocate 64-bit space.
49428 * boot/i386/pc/boot.S (force_lba): Removed.
49429 (boot_drive): Moved to under KERNEL_SECTOR.
49430 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49432 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49434 (lba_mode): Refactored to support a 64-bit address. More size
49436 (setup_sectors): Likewise.
49438 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49440 * DISTLIST: Added include/grub/i386/linux.h. Removed
49441 include/grub/i386/pc/linux.h
49443 * configure.ac (AC_INIT): Bumped to 1.94.
49445 * config.guess: Updated from gnulib.
49446 * config.sub: Likewise.
49447 * install-sh: Likewise.
49448 * mkinstalldirs: Likewise.
49450 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49452 * conf/common.rmk (grub_modules_init.lst): Depended on
49453 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49456 * genmk.rb (PModule::rule): Reverted the previous change.
49458 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49460 * conf/common.rmk (grub_modules_init.lst): Depends on
49461 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49462 that the target does not exist before producing.
49463 (grub_modules_init.h): Remove the target before generating.
49464 (grub_emu_init.c): Likewise.
49466 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49468 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49470 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49471 for the target-specific tests. Make sure that we also have the
49472 up-to-date target variables for those tests.
49474 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49476 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49477 (PModule::rule): Likewise.
49479 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49481 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49482 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49483 target-specific flags should be prefixed.
49484 (PModule::rule): Likewise.
49486 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49488 * configure.ac (CMP): Check if cmp is available explicitly.
49490 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49492 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49493 (target_cpu): New variable.
49494 (pkglibdir): Use target_cpu instead of host_cpu.
49496 * util/i386/pc/grub-install.in (host_cpu): Removed.
49497 (target_cpu): New variable.
49498 (pkglibdir): Use target_cpu instead of host_cpu.
49500 * util/genmoddep.c: Removed.
49502 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49503 instead of GRUB_HOST_SIZEOF_VOID_P.
49504 * kern/dl.c: Likewise.
49506 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49508 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49509 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49510 (GRUB_TARGET_SIZEOF_LONG): ... this.
49511 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49512 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49513 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49515 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49516 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49517 (GRUB_TARGET_SIZEOF_LONG): ... this.
49518 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49519 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49520 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49522 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49523 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49524 (GRUB_TARGET_SIZEOF_LONG): ... this.
49525 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49526 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49528 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49529 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49530 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49531 instead of GRUB_HOST_SIZEOF_LONG.
49532 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49533 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49534 GRUB_CPU_WORDS_BIGENDIAN.
49535 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49536 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49539 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49540 (genmoddep_SOURCES): Likewise.
49541 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49542 (genmoddep_SOURCES): Likewise.
49543 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49544 (genmoddep_SOURCES): Likewise.
49545 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49547 (genmoddep_SOURCES): Likewise.
49549 * genmoddep.awk: New file.
49551 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49552 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49553 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49554 (PModule::rule): Likewise.
49555 (Program::rule): Likewise.
49556 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49557 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49560 * configure.ac: Rewritten intensively to use host and target
49561 instead of build and host, respectively.
49563 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49564 (host_cpu): Removed.
49565 (target_cpu): New variable.
49566 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49567 (BUILD_CC): Removed.
49568 (BUILD_CFLAGS): Likewise.
49569 (BUILD_CPPFLAGS): Likewise.
49570 (TARGET_CC): New variable.
49571 (TARGET_CFLAGS): Likewise.
49572 (TARGET_CPPFLAGS): Likewise.
49573 (TARGET_LDFLAGS): Likewise.
49575 (include): Use target_cpu instead of host_cpu.
49576 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49578 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49580 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49582 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49583 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49584 field 'false' to 'exec_on_false'.
49585 (grub_script_create_cmdif): Renamed argument names to reflect above
49588 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49590 * normal/script.c (grub_script_create_cmdif): Likewise.
49592 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49594 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49596 (grub_hfsplus_btree_recptr): Likewise.
49597 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49598 FILEBLOCK both to pass a block number and store next block
49600 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49601 overflow file correctly. Specify errors appropriately, because
49602 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49603 grub_hfsplus_btree_recptr to get the pointer to a found key.
49604 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49607 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49609 (_linux_mod_SOURCES): New variable.
49610 (_linux_mod_CFLAGS): Likewise.
49611 (_linux_mod_LDFLAGS): Likewise.
49612 (linux_mod_SOURCES): Likewise.
49613 (linux_mod_CFLAGS): Likewise.
49614 (linux_mod_LDFLAGS): Likewise.
49616 * DISTLIST: Added loader/i386/efi/linux.c,
49617 loader/i386/efi/linux_normal.c and
49618 include/grub/i386/efi/loader.h.
49620 * loader/i386/efi/linux.c: New file.
49621 * loader/i386/efi/linux_normal.c: Likewise.
49622 * include/grub/i386/efi/loader.h: Likewise.
49624 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49626 * commands/blocklist.c: New file.
49628 * DISTLIST: Added commands/blocklist.c.
49630 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49631 color for the background, and a darker color for the foreground.
49632 (grub_console_checkkey): Return READ_KEY.
49633 (grub_console_cls): Set the background to
49634 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49636 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49638 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49639 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49641 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49644 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49645 BG. The spec is wrong again.
49647 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49649 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49651 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49652 commands/blocklist.c.
49653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49655 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49656 (blocklist_mod_SOURCES): New variable.
49657 (blocklist_mod_CFLAGS): Likewise.
49658 (blocklist_mod_LDFLAGS): Likewise.
49660 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49662 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49664 (lba_mode): Use %eax more intensively to reduce the code size.
49666 2006-05-20 Marco Gerards <marco@gnu.org>
49668 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49670 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49672 (script): Accept leading newlines.
49673 (newlines): New rule to describe 0 or more newlines.
49674 (commands): Accept `command' with trailing newline. Fixed the
49675 order in which arguments were passed to `grub_script_add_cmd'.
49676 Accept commands separated by newlines.
49677 (function): Changed to accept newlines.
49678 (menuentry) Rewritten.
49680 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49681 front of the list, instead of to the end.
49683 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49685 * util/i386/pc/grub-install.in (bindir): New variable.
49686 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49687 Shaver <lbgwjl@gmail.com>.
49689 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49691 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49692 grub/machine/linux.h
49693 * loader/i386/pc/linux.c: Likewise.
49695 * include/grub/i386/pc/linux.h: Moved to ...
49696 * include/grub/i386/linux.h: ... here.
49698 * include/grub/i386/linux.h (struct linux_kernel_params): New
49701 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49703 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49705 (grub_video_vbe_blit_glyph): Likewise.
49706 (grub_video_vbe_blit_bitmap): Likewise.
49707 (grub_video_vbe_blit_render_target): Likewise.
49709 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49711 * configure.ac (--with-platform): Properly quote the square
49714 2006-05-08 Marco Gerards <marco@gnu.org>
49716 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49718 (kernel_elf_HEADERS): ...to this. Updated all users.
49719 (grubof_symlist.c): Renamed from this...
49720 (kernel_elf_symlist.c): ...to this. Updated all users.
49721 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49722 (grubof_SOURCES): Renamed from this...
49723 (kernel_elf_SOURCES): ...to this.
49724 (grubof_HEADERS): Renamed from this...
49725 (kernel_elf_HEADERS): ...to this.
49726 (grubof_CFLAGS): Renamed from this...
49727 (kernel_elf_CFLAGS): ...to this.
49728 (grubof_ASFLAGS): Renamed from this...
49729 (kernel_elf_ASFLAGS): ...to this.
49730 (grubof_LDFLAGS): Renamed from this...
49731 (kernel_elf_LDFLAGS): ...to this.
49733 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49735 (kernel_elf_HEADERS): ...to this. Updated all users.
49736 (grubof_symlist.c): Renamed from this...
49737 (kernel_elf_symlist.c): ...to this. Updated all users.
49738 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49739 (grubof_SOURCES): Renamed from this...
49740 (kernel_elf_SOURCES): ...to this.
49741 (grubof_HEADERS): Renamed from this...
49742 (kernel_elf_HEADERS): ...to this.
49743 (grubof_CFLAGS): Renamed from this...
49744 (kernel_elf_CFLAGS): ...to this.
49745 (grubof_ASFLAGS): Renamed from this...
49746 (kernel_elf_ASFLAGS): ...to this.
49747 (grubof_LDFLAGS): Renamed from this...
49748 (kernel_elf_LDFLAGS): ...to this.
49750 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49751 `kernel.elf' instead of `grubof'.
49753 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49755 Add --with-platform to configure. Use pkglibdir instead of
49756 pkgdatadir. This is reported by Roger Leigh.
49758 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49759 (host_vendor): Likewise.
49760 (host_os): Likewise.
49761 (pkgdatadir): Likewise.
49762 (platform): New variable.
49763 (pkglibdir): Likewise.
49764 Use PKGLIBDIR instead of PKGDATADIR.
49766 * util/i386/pc/grub-install.in (datadir): Removed.
49767 (host_vendor): Likewise.
49768 (host_os): Likewise.
49769 (pkgdatadir): Likewise.
49770 (platform): New variable.
49771 (pkglibdir): Likewise.
49772 Use PKGLIBDIR instead of PKGDATADIR.
49774 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49775 instead of GRUB_DATADIR.
49777 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49779 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49782 * configure.ac (--with-platform): New option.
49783 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49785 * Makefile.in: Include a makefile based on PLATFORM instead of
49787 (pkgdatadir): Not appended by the machine type.
49788 (pkglibdir): Appended by the machine type.
49789 (host_vendor): Removed.
49790 (platform): New variable.
49791 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49792 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49793 (uninstall): Likewise.
49795 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49797 Use the environment context in the menu. Remove the commands
49798 "default" and "timeout", and use variables instead.
49800 * normal/menu.c: Include grub/env.h.
49801 (print_entry): Cast TITLE to silence gcc.
49802 (get_timeout): New function.
49803 (set_timeout): Likewise.
49804 (get_entry_number): Likewise.
49805 (run_menu): Use a default entry, a fallback entry and a timeout
49806 in the environment variables "default", "fallback" and
49807 "timeout". Also, tweak the default entry if it is not within the
49808 current menu entries.
49809 (grub_menu_run): Use a fallback entry in the environment variable
49812 * normal/main.c (read_config_file): Do not initialize
49813 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49815 (grub_normal_execute): Use a data slot to store the menu.
49817 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49818 fallback_entry and timeout.
49819 (struct grub_menu_list): Removed.
49820 (grub_menu_list_t): Likewise.
49821 (struct grub_context): Likewise.
49822 (grub_context_t): Likewise.
49823 (grub_context_get): Likewise.
49824 (grub_context_get_current_menu): Likewise.
49825 (grub_context_push_menu): Likewise.
49826 (grub_context_pop_menu): Likewise.
49827 (grub_default_init): Likewise.
49828 (grub_default_fini): Likewise.
49829 (grub_timeout_init): Likewise.
49830 (grub_timeout_fini): Likewise.
49832 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49834 (normal_mod_SOURCES): Removed normal/context.c.
49836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49837 commands/default.c, commands/timeout.c and normal/context.c.
49838 (normal_mod_SOURCES): Removed normal/context.c.
49840 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49841 commands/timeout.c and normal/context.c.
49842 (normal_mod_SOURCES): Removed normal/context.c.
49844 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49845 commands/default.c, commands/timeout.c and normal/context.c.
49846 (normal_mod_SOURCES): Removed normal/context.c.
49848 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49850 (default_mod_SOURCES): Removed.
49851 (default_mod_CFLAGS): Likewise.
49852 (default_mod_LDFLAGS): Likewise.
49853 (timeout_mod_SOURCES): Removed.
49854 (timeout_mod_CFLAGS): Likewise.
49855 (timeout_mod_LDFLAGS): Likewise.
49857 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49860 * commands/default.c: Removed.
49861 * commands/timeout.c: Likewise.
49862 * normal/context.c: Likewise.
49864 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49866 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49868 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49870 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49871 "next" to "prev" for readability.
49872 (struct grub_env_sorted_var): New struct.
49873 (grub_env_context): Renamed to ...
49874 (initial_context): ... this.
49875 (grub_env_var_context): Renamed to ...
49876 (current_context): ... this.
49877 (grub_env_find): Look only at CURRENT_CONTEXT.
49878 (grub_env_context_open): Rewritten to copy exported variables from
49880 (grub_env_context_close): Rewritten according to the new
49881 scheme. Also, add an assertion to prevent the initial context from
49883 (grub_env_insert): Removed the code for the sorted list.
49884 (grub_env_remove): Likewise.
49885 (grub_env_export): Simply mark the variable with
49886 GRUB_ENV_VAR_GLOBAL.
49887 (grub_env_set): A cosmetic change for naming consistency.
49888 (grub_env_get): Likewise.
49889 (grub_env_unset): Likewise.
49890 (grub_env_iterate): Rewritten to sort variables within this
49892 (grub_register_variable_hook): Fixed for naming consistency. Call
49893 grub_env_find again, only if NAME is not found at the first time.
49894 (mangle_data_slot_name): New function.
49895 (grub_env_set_data_slot): Likewise.
49896 (grub_env_get_data_slot): Likewise.
49897 (grub_env_unset_data_slot): Likewise.
49899 * include/grub/env.h (grub_env_var_type): New enum.
49900 (GRUB_ENV_VAR_LOCAL): New constant.
49901 (GRUB_ENV_VAR_GLOBAL): Likewise.
49902 (GRUB_ENV_VAR_DATA): Likewise.
49903 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49905 (grub_env_set): Replace VAR with NAME for consistency.
49906 (grub_register_variable_hook): Likewise.
49907 (grub_env_export): Specify the name of the argument.
49908 (grub_env_set_data_slot): New prototype.
49909 (grub_env_get_data_slot): Likewise.
49910 (grub_env_unset_data_slot): Likewise.
49912 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49914 Extend the loader so that GRUB can accept a loader which comes
49915 back to GRUB when a loaded image exits. Also, this change adds
49916 support for a chainloader on EFI.
49918 * term/efi/console.c: Include grub/misc.h.
49919 (grub_console_checkkey): Display a scan code on the top for
49920 debugging. This will be removed once the EFI port gets stable.
49921 Correct the scan code mapping.
49923 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49924 allocate memory from larger regions, in order to reduce the number
49925 of allocated regions. Otherwise, the MacOSX loader panics.
49926 (filter_memory_map): Avoid less than 1MB for compatibility with
49928 (add_memory_regions): Allocate from the tail of a region, if
49929 possible, to avoid allocating a region near to 1MB, for the MacOSX
49932 * kern/efi/init.c (grub_efi_set_prefix): Specify
49933 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49935 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49936 argument IMAGE_HANDLE and specify it to get a loaded image.
49937 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49938 grub_efi_get_loaded_image.
49939 (grub_efi_get_filename): Divide the length by the size of
49941 (grub_efi_get_device_path): New function.
49942 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49943 the length by the size of grub_efi_char16_t for a file path device
49946 * kern/loader.c (grub_loader_noreturn): New variable.
49947 (grub_loader_set): Accept a new argument NORETURN. Set
49948 GRUB_LOADER_NORETURN to NORETURN.
49949 All callers changed.
49950 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49953 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49955 (grub_efi_get_loaded_image): Take an argument to specify an image
49958 * include/grub/loader.h (grub_loader_set): Added one more argument
49961 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49962 instead of grub_efi_open_protocol.
49963 (grub_efidisk_get_device_name): Likewise.
49964 (grub_efidisk_close): Print a newline.
49965 (grub_efidisk_get_device_handle): Fixed to use
49966 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49967 GRUB_EFI_DEVICE_PATH_TYPE.
49969 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49970 * kern/efi/efi.c (device_path_guid): ... here.
49972 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49974 (kernel_mod_HEADERS): Added efi/disk.h.
49975 (_chain_mod_SOURCES): New variable.
49976 (_chain_mod_CFLAGS): Likewise.
49977 (_chain_mod_LDFLAGS): Likewise.
49978 (chain_mod_SOURCES): Likewise.
49979 (chain_mod_CFLAGS): Likewise.
49980 (chain_mod_LDFLAGS): Likewise.
49982 * DISTLIST: Added include/grub/efi/chainloader.h,
49983 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49985 * include/grub/efi/chainloader.h: New file.
49986 * loader/efi/chainloader.c: Likewise.
49987 * loader/efi/chainloader_normal.c: Likewise.
49989 2006-04-30 Marco Gerards <marco@gnu.org>
49991 * commands/configfile.c (grub_cmd_source): New function.
49992 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49993 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49995 2006-04-30 Marco Gerards <marco@gnu.org>
49997 * normal/execute.c (grub_script_execute_cmd): Change the return
49998 type to `grub_err_t'. Correctly return the error.
49999 (grub_script_execute_cmdline): In case a command line is not a
50000 command or a function, try to interpret it as an assignment.
50002 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50004 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50005 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50006 skip a node whose name is obviously invalid as UTF-16,
50007 i.e. contains a NUL character. Stop the iteration when the last
50008 directory entry is found. Instead of using the return value of
50009 grub_hfsplus_btree_iterate_node, store the value in RET and use
50010 it, because the iterator can be stopped by the last directory
50013 2006-04-30 Marco Gerards <marco@gnu.org>
50015 * include/grub/env.h (grub_env_export): New prototype. Reported
50016 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50018 2006-04-30 Marco Gerards <marco@gnu.org>
50020 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50021 size of the extents in a catalog file record.
50023 2006-04-29 Marco Gerards <marco@gnu.org>
50025 * commands/configfile.c (grub_cmd_configfile): Execute the
50026 configfile within its own context.
50028 * include/grub/env.h (grub_env_context_open): New prototype.
50029 (grub_env_context_close): Likewise.
50031 * kern/env.c (grub_env): Removed.
50032 (grub_env_sorted): Likewise.
50033 (grub_env_context): New variable.
50034 (grub_env_var_context): Likewise.
50035 (grub_env_find): Search both the active context and the global
50037 (grub_env_context_open): New function.
50038 (grub_env_context_close): Likewise.
50039 (grub_env_insert): Likewise.
50040 (grub_env_remove): Likewise.
50041 (grub_env_export): Likewise.
50042 (grub_env_set): Changed to use helper functions to avoid code
50044 (grub_env_iterate): Rewritten so both the current context and the
50045 global context are being used.
50047 * normal/command.c (export_command): New function.
50048 (grub_command_init): Register the `export' function.
50050 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50052 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50053 explicitly to suppress gcc's warnings.
50054 * fs/fat.c (grub_fat_find_dir): Likewise.
50055 (grub_fat_label): Likewise.
50056 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50057 (grub_xfs_mount): Likewise.
50058 (grub_xfs_label): Likewise.
50059 * fs/affs.c (grub_affs_mount): Likewise.
50060 (grub_affs_label): Likewise.
50061 (grub_affs_iterate_dir): Likewise.
50062 * fs/sfs.c (grub_sfs_mount): Likewise.
50063 (grub_sfs_iterate_dir): Likewise.
50064 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50065 * fs/hfs.c (grub_hfs_mount): Likewise.
50066 (grub_hfs_cmp_catkeys): Likewise.
50067 (grub_hfs_find_dir): Likewise.
50068 (grub_hfs_dir): Likewise.
50069 (grub_hfs_label): Likewise.
50070 * fs/jfs.c (grub_jfs_mount): Likewise.
50071 (grub_jfs_opendir): Likewise.
50072 (grub_jfs_getent): Likewise.
50073 (grub_jfs_lookup_symlink): Likewise.
50074 (grub_jfs_label): Likewise.
50075 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50076 (grub_hfsplus_iterate_dir): Likewise.
50077 (grub_hfsplus_btree_iterate_node): Made static.
50079 * util/grub-emu.c (prefix): New variable.
50080 (grub_machine_set_prefix): New function.
50081 (main): Do not set the environment variable "prefix" here. Only
50082 set PREFIX, which is used later by grub_machine_set_prefix.
50084 * include/grub/video.h: Do not include grub/symbol.h.
50085 (grub_video_register): Not exported. This symbol is not defined in
50087 (grub_video_unregister): Likewise.
50088 (grub_video_iterate): Likewise.
50089 (grub_video_setup): Likewise.
50090 (grub_video_restore): Likewise.
50091 (grub_video_get_info): Likewise.
50092 (grub_video_get_blit_format): Likewise.
50093 (grub_video_set_palette): Likewise.
50094 (grub_video_get_palette): Likewise.
50095 (grub_video_set_viewport): Likewise.
50096 (grub_video_get_viewport): Likewise.
50097 (grub_video_map_color): Likewise.
50098 (grub_video_map_rgb): Likewise.
50099 (grub_video_map_rgba): Likewise.
50100 (grub_video_fill_rect): Likewise.
50101 (grub_video_blit_glyph): Likewise.
50102 (grub_video_blit_bitmap): Likewise.
50103 (grub_video_blit_render_target): Likewise.
50104 (grub_video_scroll): Likewise.
50105 (grub_video_swap_buffers): Likewise.
50106 (grub_video_create_render_target): Likewise.
50107 (grub_video_delete_render_target): Likewise.
50108 (grub_video_set_active_render_target): Likewise.
50110 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50112 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50114 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50115 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50116 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50117 instead of $(srcdir)/genkernsyms.sh.
50119 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50120 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50121 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50122 instead of $(srcdir)/genkernsyms.sh.
50124 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50125 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50126 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50127 instead of $(srcdir)/genkernsyms.sh.
50129 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50130 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50131 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50132 instead of $(srcdir)/genkernsyms.sh.
50134 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50137 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50139 (gensymlist.sh): New target.
50140 (genkernsyms.sh): Likewise.
50142 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50143 genkernsyms.sh.in and gensymlist.sh.in.
50145 * genkernsyms.sh: Removed.
50146 * gensymlist.sh: Likewise.
50148 * genkernsyms.sh.in: New file.
50149 * gensymlist.sh.in: Likewise.
50151 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50153 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50154 clobber "prefix", since we may have already set it manually.
50156 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50158 * kern/misc.c (abort): New alias for grub_abort.
50160 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50162 A new machine-specific function "grub_machine_set_prefix" is
50163 defined. This is called after loading modules, so that a prefix
50164 initialization can use modules. Also, this change adds an
50165 intensive debugging feature for the memory manager via the
50166 configure option "--enable-mm-debug".
50168 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50171 * kern/sparc64/ieee1275/init.c (abort): Removed.
50172 (grub_stop): Likewise.
50173 (grub_exit): New function.
50174 (grub_set_prefix): Renamed to ...
50175 (grub_machine_set_prefix): ... this.
50176 (grub_machine_init): Do not call grub_set_prefix.
50178 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50179 (grub_machine_set_prefix): ... this.
50180 (grub_machine_init): Do not call grub_set_prefix.
50182 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50183 (grub_machine_init): Do not set the prefix here.
50185 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50187 * kern/efi/init.c: Include grub/mm.h.
50188 (grub_efi_set_prefix): New function.
50190 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50191 (grub_efi_get_filename): New function.
50192 (grub_print_device_path): Renamed to ...
50193 (grub_efi_print_device_path): ... this.
50195 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50196 [MM_DEBUG] (grub_realloc): Likewise.
50197 [MM_DEBUG] (grub_free): Likewise.
50198 [MM_DEBUG] (grub_memalign): Likewise.
50199 [MM_DEBUG] (grub_mm_debug): New variable.
50200 [MM_DEBUG] (grub_debug_malloc): New function.
50201 [MM_DEBUG] (grub_debug_free): New function.
50202 [MM_DEBUG] (grub_debug_realloc): New function.
50203 [MM_DEBUG] (grub_debug_memalign): New function.
50205 * kern/misc.c (grub_abort): Print a newline to distinguish
50208 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50209 grub_set_root_dev after loading modules. This is necessary when
50210 setting a prefix depends on modules.
50212 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50213 (grub_efi_print_device_path): ... this.
50214 (grub_efi_get_filename): New prototype.
50215 (grub_efi_set_prefix): Likewise.
50217 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50219 (grub_efidisk_get_device_handle): New prototype.
50220 (grub_efidisk_get_device_name): Likewise.
50222 * include/grub/mm.h: Include config.h.
50223 (MM_DEBUG): Removed.
50224 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50225 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50226 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50227 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50228 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50229 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50230 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50231 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50232 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50234 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50236 * disk/efi/efidisk.c: Include grub/partition.h.
50237 (iterate_child_devices): New function.
50238 (add_device): First, compare only last device path nodes, so that
50239 devices are sorted by the types.
50240 (grub_efidisk_get_device_handle): New function.
50241 (grub_efidisk_get_device_name): Likewise.
50243 * configure.ac (--enable-mm-debug): New option to enable the
50244 memory manager debugging feature. This makes the binary much
50245 bigger, so is disabled by default.
50247 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50249 Use grub_abort instead of grub_stop, and grub_exit must be
50250 define in each architecture now. Also, this change adds support
50253 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50254 (grub_getkey): New function.
50255 (grub_term_get_current): Likewise.
50257 * util/i386/pc/grub-setup.c: Include grub/term.h.
50258 (grub_getkey): New function.
50259 (grub_term_get_current): Likewise.
50261 * util/misc.c (grub_stop): Renamed to ...
50262 (grub_exit): ... this.
50264 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50265 (grub_exit): ... this.
50266 (grub_machine_init): Use grub_abort instead of abort.
50267 (grub_stop): Removed.
50269 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50272 * kern/i386/pc/startup.S (grub_exit): New function.
50273 (cold_reboot): New label.
50275 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50276 (grub_efi_init): Call grub_efidisk_init.
50277 (grub_efi_fini): Call grub_efidisk_fini.
50279 * kern/efi/efi.c: Include grub/mm.h.
50280 (grub_efi_console_control_guid): Renamed to ...
50281 (console_control_guid): ... this.
50282 (grub_efi_loaded_image_guid): Renamed to ...
50283 (loaded_image_guid): ... this.
50284 (grub_efi_locate_handle): New function.
50285 (grub_efi_open_protocol): Likewise.
50286 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50287 GRUB_EFI_CONSOLE_CONTROL_GUID.
50288 (grub_efi_exit): Removed.
50289 (grub_stop): Likewise.
50290 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50291 (grub_exit): New function.
50292 (grub_print_device_path): Likewise.
50294 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50295 (grub_enter_rescue_mode): Register "exit".
50297 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50298 (grub_abort): New function.
50300 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50302 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50304 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50306 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50307 (grub_print_device_path): New prototype.
50308 (grub_efi_locate_handle): Likewise.
50309 (grub_efi_open_protocol): Likewise.
50311 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50312 * disk/efi/efidisk.c: Likewise.
50314 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50316 * include/grub/efi/console_control.h
50317 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50319 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50320 last 8 bytes as an array.
50321 (GRUB_EFI_DISK_IO_GUID): New macro.
50322 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50323 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50324 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50326 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50327 (struct grub_efi_device_path): Rename the member "sub_type" to
50329 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50330 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50331 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50332 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50333 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50334 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50335 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50336 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50337 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50338 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50339 (struct grub_efi_pci_device_path): New structure.
50340 (grub_efi_pci_device_path_t): New type.
50341 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50342 (struct grub_efi_pccard_device_path): New structure.
50343 (grub_efi_pccard_device_path_t): New type.
50344 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50345 (struct grub_efi_memory_mapped_device_path): New structure.
50346 (grub_efi_memory_mapped_device_path_t): New type.
50347 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50348 (struct grub_efi_vendor_device_path): New structure.
50349 (grub_efi_vendor_device_path_t): New type.
50350 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50351 (struct grub_efi_controller_device_path): New structure.
50352 (grub_efi_controller_device_path_t): New type.
50353 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50354 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50355 (struct grub_efi_acpi_device_path): New structure.
50356 (grub_efi_acpi_device_path_t): New type.
50357 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50358 (struct grub_efi_expanded_acpi_device_path): New structure.
50359 (grub_efi_expanded_acpi_device_path_t): New type.
50360 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50361 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50362 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50363 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50364 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50365 (struct grub_efi_atapi_device_path): New structure.
50366 (grub_efi_atapi_device_path_t): New type.
50367 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50368 (struct grub_efi_fibre_channel_device_path): New structure.
50369 (grub_efi_fibre_channel_device_path_t): New type.
50370 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50371 (struct grub_efi_1394_device_path): New structure.
50372 (grub_efi_1394_device_path_t): New type.
50373 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50374 (struct grub_efi_usb_device_path): New structure.
50375 (grub_efi_usb_device_path_t): New type.
50376 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50377 (struct grub_efi_usb_class_device_path): New structure.
50378 (grub_efi_usb_class_device_path_t): New type.
50379 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50380 (struct grub_efi_i2o_device_path): New structure.
50381 (grub_efi_i2o_device_path_t): New type.
50382 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50383 (struct grub_efi_mac_address_device_path): New structure.
50384 (grub_efi_mac_address_device_path_t): New type.
50385 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50386 (struct grub_efi_ipv4_device_path): New structure.
50387 (grub_efi_ipv4_device_path_t): New type.
50388 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50389 (struct grub_efi_ipv6_device_path): New structure.
50390 (grub_efi_ipv6_device_path_t): New type.
50391 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50392 (struct grub_efi_infiniband_device_path): New structure.
50393 (grub_efi_infiniband_device_path_t): New type.
50394 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50395 (struct grub_efi_uart_device_path): New structure.
50396 (grub_efi_uart_device_path_t): New type.
50397 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50398 (struct grub_efi_vendor_messaging_device_path): New structure.
50399 (grub_efi_vendor_messaging_device_path_t): New type.
50400 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50401 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50402 (struct grub_efi_hard_drive_device_path): New structure.
50403 (grub_efi_hard_drive_device_path_t): New type.
50404 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50405 (struct grub_efi_cdrom_device_path): New structure.
50406 (grub_efi_cdrom_device_path_t): New type.
50407 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50408 (struct grub_efi_vendor_media_device_path): New structure.
50409 (grub_efi_vendor_media_device_path_t): New type.
50410 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50411 (struct grub_efi_file_path_device_path): New structure.
50412 (grub_efi_file_path_device_path_t): New type.
50413 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50414 (struct grub_efi_protocol_device_path): New structure.
50415 (grub_efi_protocol_device_path_t): New type.
50416 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50417 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50418 (struct grub_efi_bios_device_path): New structure.
50419 (grub_efi_bios_device_path_t): New type.
50420 (struct grub_efi_disk_io): New structure.
50421 (grub_efi_disk_io_t): New type.
50422 (struct grub_efi_block_io_media): New structure.
50423 (grub_efi_block_io_media_t): New type.
50424 (struct grub_efi_block_io): New structure.
50425 (grub_efi_block_io_t): New type.
50427 * include/grub/misc.h (grub_stop): Removed.
50428 (grub_exit): New prototype.
50429 (grub_abort): Likewise.
50431 * include/grub/disk.h (enum grub_disk_dev_id): Added
50432 GRUB_DISK_DEVICE_EFIDISK_ID.
50434 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50435 disk/efi/efidisk.c.
50436 (kernel_syms.lst): Remove the target if an error occurs.
50438 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50440 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50441 as it was simply too buggy.
50443 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50445 * kern/misc.c (grub_lltoa): New function.
50446 (grub_vsprintf): Added support for the long long suffix,
50449 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50451 * Makefile.in (LDFLAGS): Add variable.
50452 (LD): Remove variable.
50453 * configure.ac: Add -m32 to LDFLAGS.
50454 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50455 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50456 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50457 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50458 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50460 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50461 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50462 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50464 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50466 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50467 length for unknown glyph.
50469 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50471 Add support for pre-loaded modules into the EFI port.
50473 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50474 completely. Accept one more argument DIR. The caller has changed.
50476 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50478 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50479 (grub_efi_loaded_image_guid): New variable.
50480 (grub_efi_get_loaded_image): New function.
50481 (grub_arch_modules_addr): Likewise.
50483 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50486 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50487 (struct grub_efi_loaded_image): New structure.
50488 (grub_efi_loaded_image_t): New type.
50490 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50492 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50493 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50494 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50496 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50498 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50500 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50502 * DISTLIST: Added include/grub/efi/console.h,
50503 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50504 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50506 * include/grub/efi/console.h: New file.
50507 * include/grub/efi/time.h: Likewise.
50508 * include/grub/i386/efi/kernel.h: Likewise.
50509 * kern/efi/init.c: Likewise.
50510 * kern/efi/mm.c: Likewise.
50511 * term/efi/console.c: Likewise.
50513 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50514 (grub_stop): Removed.
50515 (grub_get_rtc): Likewise.
50516 (grub_machine_init): Simply call grub_efi_init.
50517 (grub_machine_fini): Call grub_efi_fini.
50519 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50520 (grub_efi_output_string): Removed.
50521 (grub_efi_stall): New function.
50522 (grub_stop): Likewise.
50523 (grub_get_rtc): Likewise.
50525 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50526 (grub_efi_stall): New prototype.
50527 (grub_efi_allocate_pages): Likewise.
50528 (grub_efi_free_pages): Likewise.
50529 (grub_efi_get_memory_map): Likewise.
50530 (grub_efi_mm_init): Likewise.
50531 (grub_efi_mm_fini): Likewise.
50532 (grub_efi_init): Likewise.
50533 (grub_efi_fini): Likewise.
50535 * include/grub/i386/efi/time.h: Do not include
50536 grub/symbol.h. Include grub/efi/time.h.
50537 (GRUB_TICKS_PER_SECOND): Removed.
50538 (grub_get_rtc): Likewise.
50540 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50541 Added padding. The EFI spec is buggy.
50542 (GRUB_EFI_BLACK): New macro.
50543 (GRUB_EFI_BLUE): Likewise.
50544 (GRUB_EFI_GREEN): Likewise.
50545 (GRUB_EFI_CYAN): Likewise.
50546 (GRUB_EFI_RED): Likewise.
50547 (GRUB_EFI_MAGENTA): Likewise.
50548 (GRUB_EFI_BROWN): Likewise.
50549 (GRUB_EFI_LIGHTGRAY): Likewise.
50550 (GRUB_EFI_BRIGHT): Likewise.
50551 (GRUB_EFI_DARKGRAY): Likewise.
50552 (GRUB_EFI_LIGHTBLUE): Likewise.
50553 (GRUB_EFI_LIGHTGREEN): Likewise.
50554 (GRUB_EFI_LIGHTCYAN): Likewise.
50555 (GRUB_EFI_LIGHTRED): Likewise.
50556 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50557 (GRUB_EFI_YELLOW): Likewise.
50558 (GRUB_EFI_WHITE): Likewise.
50559 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50560 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50561 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50562 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50563 (GRUB_EFI_BACKGROUND_RED): Likewise.
50564 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50565 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50566 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50567 (GRUB_EFI_TEXT_ATTR): Likewise.
50569 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50570 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50571 (kernel_mod_HEADERS): Added efi/time.h.
50573 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50575 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50576 include/grub/efi/api.h, include/grub/efi/console_control.h,
50577 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50578 include/grub/i386/efi/time.h, kern/efi/efi.c,
50579 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50580 and util/i386/efi/grub-mkimage.c.
50582 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50584 * genmk.rb (PModule#rule): Do not export symbols if
50585 #{prefix}_EXPORTS is set to "no".
50587 * conf/i386-efi.mk: New file.
50588 * conf/i386-efi.rmk: Likewise.
50589 * include/grub/efi/api.h: Likewise.
50590 * include/grub/efi/console_control.h: Likewise.
50591 * include/grub/efi/efi.h: Likewise.
50592 * include/grub/efi/pe32.h: Likewise.
50593 * include/grub/i386/efi/time.h: Likewise.
50594 * kern/efi/efi.c: Likewise.
50595 * kern/i386/efi/init.c: Likewise.
50596 * kern/i386/efi/startup.S: Likewise.
50597 * util/i386/efi/grub-mkimage.c: Likewise.
50599 2006-04-17 Marco Gerards <marco@gnu.org>
50601 * include/grub/script.h: Include <grub/parser.h> and
50602 "grub_script.tab.h".
50603 (struct grub_lexer_param): New struct.
50604 (struct grub_parser_param): Likewise.
50605 (grub_script_create_arglist): Pass the state in an argument.
50606 (grub_script_add_arglist): Likewise.
50607 (grub_script_create_cmdline): Likewise.
50608 (grub_script_create_cmdblock): Likewise.
50609 (grub_script_create_cmdif): Likewise.
50610 (grub_script_create_cmdmenu): Likewise.
50611 (grub_script_add_cmd): Likewise.
50612 (grub_script_arg_add): Likewise.
50613 (grub_script_lexer_ref): Likewise.
50614 (grub_script_lexer_deref): Likewise.
50615 (grub_script_lexer_record_start): Likewise.
50616 (grub_script_lexer_record_stop): Likewise.
50617 (grub_script_mem_record): Likewise.
50618 (grub_script_mem_record_stop): Likewise.
50619 (grub_script_malloc): Likewise.
50620 (grub_script_yylex): Likewise.
50621 (grub_script_yyparse): Likewise.
50622 (grub_script_yyerror): Likewise.
50623 (grub_script_yylex): Likewise.
50624 (grub_script_lexer_init): Return the state.
50626 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50627 (grub_script_lexer_done): Likewise.
50628 (grub_script_lexer_getline): Likewise.
50629 (grub_script_lexer_refs): Likewise.
50630 (script): Likewise.
50631 (newscript): Likewise.
50632 (record): Likewise.
50633 (recording): Likewise.
50634 (recordpos): Likewise.
50635 (recordlen): Likewise.
50636 (grub_script_lexer_init): Return the state instead of setting
50638 (grub_script_lexer_ref): Use the newly added argument for state
50639 instead of globals.
50640 (grub_script_lexer_deref): Likewise.
50641 (grub_script_lexer_record_start): Likewise.
50642 (grub_script_lexer_record_stop): Likewise.
50643 (recordchar): Likewise.
50644 (nextchar): Likewise.
50645 (grub_script_yylex2): Likewise.
50646 (grub_script_yylex): Likewise.
50647 (grub_script_yyerror): Likewise.
50649 * normal/parser.y (func_mem): Removed variable.
50650 (menu_entry): Likewise.
50652 (%lex-param): New parser option.
50653 (%parse-param): Likewise.
50654 (script): Always return the AST.
50655 (argument): Pass the state around.
50656 (arguments): Likewise.
50657 (grubcmd): Likewise.
50658 (commands): Likewise.
50659 (function): Likewise.
50660 (menuentry): Likewise.
50661 (if_statement): Likewise.
50664 * normal/script.c (grub_script_memused): Removed variable.
50665 (grub_script_parsed): Likewise.
50666 (grub_script_malloc): Added a state argument. Use that instead of
50668 (grub_script_mem_record): Likewise.
50669 (grub_script_mem_record_stop): Likewise.
50670 (grub_script_arg_add): Likewise.
50671 (grub_script_add_arglist): Likewise.
50672 (grub_script_create_cmdline): Likewise.
50673 (grub_script_create_cmdif): Likewise.
50674 (grub_script_create_cmdmenu): Likewise.
50675 (grub_script_add_cmd): Likewise.
50676 (grub_script_parse): Setup the state before calling the parser.
50678 2006-04-16 Marco Gerards <marco@gnu.org>
50680 * normal/command.c (grub_command_init): Remove the title command.
50682 * normal/lexer.c (grub_script_yylex): Renamed from this...
50683 (grub_script_yylex2): ... to this.
50684 (grub_script_yylex): New function. Temporary
50685 introduced to filter some tokens.
50686 (grub_script_yyerror): Print a newline.
50688 * normal/main.c (read_config_file): Output information about the
50689 lines that contain errors. Wait for a key after all lines have
50690 been processed. Don't return an empty menu.
50692 * normal/parser.y (func_mem): Don't initialize.
50693 (menu_entry): Likewise.
50694 (err): New variable.
50695 (script): Don't return anything when an error was encountered.
50696 (ws, returns): Removed rules.
50697 (argument): Disabled concatenated variable support.
50698 (arguments): Remove explicit separators.
50699 (grubcmd): Likewise.
50700 (function): Likewise.
50701 (menuentry): Likewise.
50703 (commands): Likewise. Add error handling.
50705 * normal/script.c (grub_script_create_cmdline): If
50706 `grub_script_parsed' is 0, assume the parser encountered an error.
50708 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50710 * configure.ac: Add support for EFI. Fix the typo
50711 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50713 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50715 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50716 foreign multibyte characters should be shown correctly.
50718 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50720 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50722 (read_config_file): Made it to close file before returning.
50724 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50726 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50727 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50728 video/i386/pc/vbefill.c.
50730 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50731 video/i386/pc/vbefill.c.
50733 * include/grub/video.h (grub_video_blit_format): New enum.
50734 (grub_video_mode_info): Added new member blit_format.
50735 (grub_video_get_blit_format): New function prototype.
50737 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50738 function prototype.
50739 (grub_video_vbe_map_rgb): Likewise.
50740 (grub_video_vbe_unmap_color): Likewise.
50742 * include/grub/i386/pc/vbeblit.h: New file.
50744 * include/grub/i386/pc/vbefill.h: New file.
50746 * video/video.c (grub_video_get_blit_format): New function.
50747 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50748 (grub_video_vbe_map_rgb): Likewise.
50749 (grub_video_vbe_unmap_color): Likewise.
50751 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50753 (grub_video_vbe_blit_render_target): Changed to use more optimized
50755 (grub_video_vbe_setup): Added detection for optimized settings.
50756 (grub_video_vbe_create_render_target): Likewise.
50758 * video/i386/pc/vbeblit.c: New file.
50760 * video/i386/pc/vbefill.c: New file.
50762 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50764 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50767 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50768 parsing to support both hex and dec ranges. If filename was missing
50769 show usage information.
50771 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50773 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50774 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50776 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50777 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50778 (video_mod_SOURCES): Added.
50779 (video_mod_CFLAGS): Likewise.
50780 (video_mod_LDFLAGS): Likewise.
50781 (gfxterm_mod_SOURCES): Likewise.
50782 (gfxterm_mod_CFLAGS): Likewise.
50783 (gfxterm_mod_LDFLAGS): Likewise.
50784 (videotest_mod_SOURCES): Likewise.
50785 (videotest_mod_CFLAGS): Likewise.
50786 (videotest_mod_LDFLAGS): Likewise.
50787 (vesafb_mod_SOURCES): Removed.
50788 (vesafb_mod_CFLAGS): Likewise.
50789 (vesafb_mod_LDFLAGS): Likewise.
50790 (vga_mod_SOURCES): Likewise.
50791 (vga_mod_CFLAGS): Likewise.
50792 (vga_mod_LDFLAGS): Likewise.
50794 * commands/videotest.c: New file.
50796 * font/manager.c (fill_with_default_glyph): Modified to use
50798 (grub_font_get_glyph): Likewise.
50799 (fontmanager): Renamed from this...
50800 (font_manager): ... to this.
50802 * include/grub/font.h (grub_font_glyph): Added new structure.
50803 (grub_font_get_glyph): Modified to use grub_font_glyph.
50805 * include/grub/misc.h (grub_abs): Added as inline function.
50807 * include/grub/video.h: New file.
50809 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50810 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50811 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50812 (grub_vbe_get_controller_info): Renamed from this...
50813 (grub_vbe_bios_get_controller_info): ... to this.
50814 (grub_vbe_get_mode_info): Renamed from this...
50815 (grub_vbe_bios_get_mode_info): ... to this.
50816 (grub_vbe_set_mode): Renamed from this...
50817 (grub_vbe_bios_set_mode): ... to this.
50818 (grub_vbe_get_mode): Renamed from this...
50819 (grub_vbe_bios_get_mode): ... to this.
50820 (grub_vbe_set_memory_window): Renamed from this...
50821 (grub_vbe_bios_set_memory_window): ... to this.
50822 (grub_vbe_get_memory_window): Renamed from this...
50823 (grub_vbe_bios_get_memory_window): ... to this.
50824 (grub_vbe_set_scanline_length): Renamed from this...
50825 (grub_vbe_set_scanline_length): ... to this.
50826 (grub_vbe_get_scanline_length): Renamed from this...
50827 (grub_vbe_bios_get_scanline_length): ... to this.
50828 (grub_vbe_set_display_start): Renamed from this...
50829 (grub_vbe_bios_set_display_start): ... to this.
50830 (grub_vbe_get_display_start): Renamed from this...
50831 (grub_vbe_bios_get_display_start): ... to this.
50832 (grub_vbe_set_palette_data): Renamed from this...
50833 (grub_vbe_bios_set_palette_data): ... to this.
50834 (grub_vbe_set_pixel_rgb): Removed.
50835 (grub_vbe_set_pixel_index): Likewise.
50837 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50839 (grub_vbe_bios_get_controller_info): ... to this.
50840 (grub_vbe_get_mode_info): Renamed from this...
50841 (grub_vbe_bios_get_mode_info): ... to this.
50842 (grub_vbe_set_mode): Renamed from this...
50843 (grub_vbe_bios_set_mode): ... to this.
50844 (grub_vbe_get_mode): Renamed from this...
50845 (grub_vbe_bios_get_mode): ... to this.
50846 (grub_vbe_set_memory_window): Renamed from this...
50847 (grub_vbe_bios_set_memory_window): ... to this.
50848 (grub_vbe_get_memory_window): Renamed from this...
50849 (grub_vbe_bios_get_memory_window): ... to this.
50850 (grub_vbe_set_scanline_length): Renamed from this...
50851 (grub_vbe_set_scanline_length): ... to this.
50852 (grub_vbe_get_scanline_length): Renamed from this...
50853 (grub_vbe_bios_get_scanline_length): ... to this.
50854 (grub_vbe_set_display_start): Renamed from this...
50855 (grub_vbe_bios_set_display_start): ... to this.
50856 (grub_vbe_get_display_start): Renamed from this...
50857 (grub_vbe_bios_get_display_start): ... to this.
50858 (grub_vbe_set_palette_data): Renamed from this...
50859 (grub_vbe_bios_set_palette_data): ... to this.
50860 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50861 getting corrupted after calling it. Added more pushes and pops.
50862 (grub_vbe_bios_set_mode): Likewise.
50863 (grub_vbe_bios_get_mode): Likewise.
50864 (grub_vbe_bios_get_memory_window): Likewise.
50865 (grub_vbe_bios_set_scanline_length): Likewise.
50866 (grub_vbe_bios_get_scanline_length): Likewise.
50867 (grub_vbe_bios_get_display_start): Likewise.
50868 (grub_vbe_bios_set_palette_data): Likewise.
50870 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50871 (cl_insert): Likewise.
50872 (cl_delete): Likewise.
50874 * term/gfxterm.c: New file.
50876 * term/i386/pc/vesafb.c: Removed file.
50878 * video/video.c: New file.
50880 * video/i386/pc/vbe.c (real2pm): Added new function.
50881 (grub_video_vbe_draw_pixel): Likewise.
50882 (grub_video_vbe_get_video_ptr): Likewise.
50883 (grub_video_vbe_get_pixel): Likewise
50884 (grub_video_vbe_init): Likewise.
50885 (grub_video_vbe_fini): Likewise.
50886 (grub_video_vbe_setup): Likewise.
50887 (grub_video_vbe_get_info): Likewise.
50888 (grub_video_vbe_set_palette): Likewise.
50889 (grub_video_vbe_get_palette): Likewise.
50890 (grub_video_vbe_set_viewport): Likewise.
50891 (grub_video_vbe_get_viewport): Likewise.
50892 (grub_video_vbe_map_color): Likewise.
50893 (grub_video_vbe_map_rgb): Likewise.
50894 (grub_video_vbe_map_rgba): Likewise.
50895 (grub_video_vbe_unmap_color): Likewise.
50896 (grub_video_vbe_fill_rect): Likewise.
50897 (grub_video_vbe_blit_glyph): Likewise.
50898 (grub_video_vbe_blit_bitmap): Likewise.
50899 (grub_video_vbe_blit_render_target): Likewise.
50900 (grub_video_vbe_scroll): Likewise.
50901 (grub_video_vbe_swap_buffers): Likewise.
50902 (grub_video_vbe_create_render_target): Likewise.
50903 (grub_video_vbe_delete_render_target): Likewise.
50904 (grub_video_vbe_set_active_render_target): Likewise.
50905 (grub_vbe_set_pixel_rgb): Remove function.
50906 (grub_vbe_set_pixel_index): Likewise.
50907 (index_color_mode): Remove static variable.
50908 (active_mode): Likewise.
50909 (framebuffer): Likewise.
50910 (bytes_per_scan_line): Likewise.
50911 (grub_video_vbe_adapter): Added new static variable.
50912 (framebuffer): Likewise.
50913 (render_target): Likewise.
50914 (initial_mode): Likewise.
50915 (mode_in_use): Likewise.
50916 (mode_list): Likewise.
50918 2006-03-10 Marco Gerards <marco@gnu.org>
50920 * configure.ac (AC_INIT): Bumped to 1.93.
50922 * DISTLIST: Added `include/grub/hfs.h'.
50924 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50926 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50927 18H, which might help the BIOS falling back to next boot media.
50929 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50931 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50932 Poe Chen <poe.poechen@gmail.com>.
50934 2006-01-17 Marco Gerards <marco@gnu.org>
50936 * include/grub/normal.h: Include <grub/script.h>.
50937 (grub_command_list): Removed struct.
50938 (grub_command_list_t): Removed type.
50939 (grub_menu_entry): Remove members `num' and `command_list'. Add
50940 members `commands' and `sourcecode'.
50941 * include/grub/script.h: Add inclusion guards.
50942 (grub_script_cmd_menuentry): New struct.
50943 (grub_script_execute_menuentry): New prototype.
50944 (grub_script_lexer_record_start): Likewise.
50945 (grub_script_lexer_record_stop): Likewise.
50946 * normal/execute.c (grub_script_execute_menuentry): New function.
50947 * normal/lexer.c (record, recording, recordpos, recordlen): New
50949 (grub_script_lexer_record_start): New function.
50950 (grub_script_lexer_record_stop): Likewise.
50951 (recordchar): Likewise.
50952 (nextchar): Likewise.
50953 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50954 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50955 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50956 (current_menu): New variable.
50957 (free_menu): Mainly rewritten.
50958 (grub_normal_menu_addentry): New function.
50959 (read_config_file): Rewritten.
50960 * normal/menu.c (run_menu_entry): Mainly rewritten.
50961 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50963 (run): Mainly rewritten.
50964 * normal/parser.y (menu_entry): New variable.
50965 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50966 (menuentry): New rule.
50967 (command): Add `menuentry'.
50968 (if_statement): Allow additional returns before `fi'.
50969 * normal/script.c (grub_script_create_cmdmenu): New function.
50971 2006-01-03 Marco Gerards <marco@gnu.org>
50973 * INSTALL: GNU Bison is required.
50974 * configure.ac: Rewritten the test to detect Bison.
50975 * Makefile.in (YACC): New variable. Reported by Xun Sun
50976 <xun.sun.cn@gmail.com>.
50978 2006-01-03 Marco Gerards <marco@gnu.org>
50980 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50981 the HFS+ filesystem to filesystem blocks.
50982 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50983 GCC warning is silenced.
50985 2006-01-03 Marco Gerards <marco@gnu.org>
50987 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50988 read from disk from big endian to host byte order.
50990 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50992 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50994 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50995 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50996 embedded HFS+ filesystem.
50997 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50998 (grub_hfs_sblock): Move from here...
50999 * include/grub/hfs.h: To here... New file.
51000 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51002 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51004 (grub_hfsplus_volheader): Change type of member `magic' to
51006 (grub_hfsplus_data): Add new member `embedded_offset'.
51007 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51009 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51010 Calculate the offset.
51012 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51014 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51016 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51018 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51020 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51021 ENV->NAME is NULL after allocating ENV->VALUE.
51023 2005-12-25 Marco Gerards <marco@gnu.org>
51025 * kern/env.c (grub_env_set): Rewritten the error handling code.
51027 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51029 * geninit.sh: Made more robust, and more portable.
51031 2005-12-25 Marco Gerards <marco@gnu.org>
51033 Add support for Apple HFS+ filesystems.
51035 * fs/hfsplus.c: New file.
51037 * DISTLIST: Added `fs/hfsplus.c'.
51039 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51040 (hfsplus_mod_SOURCES): New variable.
51041 (hfsplus_mod_CFLAGS): Likewise.
51042 (hfsplus_mod_LDFLAGS): Likewise.
51043 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51044 (grub_setup_SOURCES): Likewise.
51045 (grub_mkdevicemap_SOURCES): Likewise.
51046 (grub_emu_SOURCES): Likewise.
51047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51049 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51051 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51053 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51055 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51056 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51057 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51058 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51059 normal/lexer.c, normal/parser.y, normal/script.c, and
51061 Removed kern/sparc64/cache.c.
51063 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51064 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51067 * configure.ac (AC_INIT): Bumped to 1.92.
51069 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51071 * kern/err.c (grub_error_push): Added new function to support error
51073 (grub_error_pop): Likewise.
51074 (grub_error_stack_items): New local variable to support error stacks.
51075 (grub_error_stack_pos): Likewise.
51076 (grub_error_stack_assert): Likewise.
51077 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51079 (grub_print_error): Added support to print errors from error stack.
51081 * include/grub/err.h (grub_error_push): Added function prototype.
51082 (grub_error_pop): Likewise.
51084 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51086 * configure.ac: Accept `powerpc64' as host_cpu.
51087 (amd64): Rename to `biarch32'.
51089 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51090 non-cacheline-aligned addresses.
51092 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51093 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51094 if `size' is non-zero.
51096 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51098 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51099 and `cd' to make sure the filename is not prefixed with a
51101 (pkgdata_MODULES): Add `gpt.mod'.
51102 (gpt_mod_SOURCES): New variable.
51103 (gpt_mod_CFLAGS): Likewise.
51104 (gpt_mod_LDFLAGS): Likewise.
51106 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51108 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51111 * partmap/gpt.c: New file.
51113 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51114 GPT partition map is detected.
51116 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51118 * commands/i386/pc/play.c: New file.
51119 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51120 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51123 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51125 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51126 ((unused))' to silence gcc warning.
51128 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51130 * configure.ac: Correct `AC_PROG_YACC' test.
51132 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51134 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51135 check before installing files.
51137 2005-11-22 Mike Small <smallm@panix.com>
51139 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51140 number regex so multidigit numbers are recognized correctly.
51142 2005-11-22 Mike Small <smallm@panix.com>
51144 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51145 debugging message before attempting to claim memory.
51146 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51147 multiple addresses in case of failure.
51149 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51151 * term/tparm.c (get_space): Remove empty `if' statement.
51153 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51155 * kern/parser.c (check_varstate): Rename `state' to 's'.
51157 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51159 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51160 variable definitions to the beginning of each function. Sort stack
51162 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51163 `buf' argument to `char *'.
51165 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51167 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51168 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51169 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51170 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51171 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51172 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51173 configfile.mod, search.mod, gzio.mod and test.mod.
51174 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51175 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51176 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51177 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51178 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51179 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51180 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51181 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51182 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51183 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51184 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51185 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51186 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51187 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51188 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51189 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51190 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51191 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51192 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51193 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51194 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51195 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51196 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51198 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51200 (pkgdata_MODULES): Add test.mod.
51202 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51204 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51205 appending to variables with "+=".
51206 (PModule): Use full pathname to generate *.lst filenames.
51208 * Makefile.in: Fixed list rules moved from genmk.rb.
51209 (.DELETE_ON_ERROR): New special target.
51210 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51212 * conf/i386-pc.rmk: Include conf/common.mk.
51213 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51214 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51215 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51216 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51217 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51218 configfile.mod, search.mod, gzio.mod and test.mod.
51219 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51220 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51221 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51222 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51223 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51224 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51225 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51226 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51227 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51228 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51229 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51230 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51231 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51232 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51233 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51234 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51235 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51236 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51237 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51238 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51239 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51240 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51241 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51243 * conf/common.rmk: ... to here. New file.
51245 * conf/common.mk: New file.
51247 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51249 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51250 (grub_script.tab.c): ... here.
51252 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51253 (grub_script.tab.c): ... here.
51255 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51256 (grub_script.tab.c): ... here.
51258 * normal/command.c (grub_command_find): Fixed a memory leak of
51259 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51261 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51263 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51264 "@" which marks the start of a comment on ARM.
51265 (VARIABLE): Likewise.
51267 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51269 Add support for Linux/ADFS partition tables.
51271 * partmap/acorn.c: New file.
51273 * include/grub/acorn_filecore.h: Likewise.
51275 * DISTLIST: Added `partmap/acorn.c' and
51276 `include/grub/acorn_filecore.h'.
51278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51280 (pkgdata_MODULES): Add `acorn.mod'.
51281 (acorn_mod_SOURCES): New variable.
51282 (acorn_mod_CFLAGS): Likewise.
51284 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51286 (pkgdata_MODULES): Add `acorn.mod'.
51287 (acorn_mod_SOURCES): New variable.
51288 (acorn_mod_CFLAGS): Likewise.
51290 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51291 (pkgdata_MODULES): Add `acorn.mod'.
51292 (acorn_mod_SOURCES): New variable.
51293 (acorn_mod_CFLAGS): Likewise.
51294 (acorn_mod_LDFLAGS): Likewise.
51296 * include/types.h (grub_disk_addr_t): New typedef.
51298 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51300 * geninit.sh: New file.
51302 * geninitheader.sh: Likewise.
51304 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51305 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51306 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51307 * commands/configfile.c (grub_configfile_init)
51308 (grub_configfile_fini): Likewise.
51309 * commands/default.c (grub_default_init, grub_default_fini):
51311 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51312 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51313 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51314 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51316 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51317 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51319 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51320 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51322 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51324 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51326 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51327 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51328 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51329 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51330 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51331 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51332 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51333 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51334 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51335 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51336 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51337 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51338 * partmap/amiga.c (grub_amiga_partition_map_init)
51339 (grub_amiga_partition_map_fini): Likewise.
51340 * partmap/apple.c (grub_apple_partition_map_init)
51341 (grub_apple_partition_map_fini): Likewise.
51342 * partmap/pc.c (grub_pc_partition_map_init)
51343 (grub_pc_partition_map_fini): Likewise.
51344 * partmap/sun.c (grub_sun_partition_map_init,
51345 grub_sun_partition_map_fini): Likewise.
51346 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51349 * util/grub-emu.c: Include <grub_modules_init.h>.
51350 (main): Don't initialize and de-initialize any modules directly,
51351 use `grub_init_all' and `grub_fini_all' instead.
51353 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51354 `grub_vesafb_mod_init'.
51355 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51357 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51358 `grub_vga_mod_init'. Updated all users.
51359 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51361 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51362 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51365 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51366 Generate a function to initialize the module in utilities.
51367 Updated all callers.
51368 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51369 initialize the module in utilities. Updated all callers.
51371 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51373 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51374 escape sequence and a literal ^L to clear the screen.
51376 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51377 when returning from Open Firmware.
51379 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51381 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51382 (grub_ofconsole_height): Likewise.
51383 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51384 manually insert a '\n'.
51385 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51386 `grub_ofconsole_height'. Return early if these are already set.
51388 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51390 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51391 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51392 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51393 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51394 and `normal/script.c'.
51395 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51396 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51397 (test_mod_SOURCES): New variable.
51398 (test_mod_CFLAGS): Likewise.
51399 (test_mod_LDFLAGS): Likewise.
51400 (pkgdata_MODULES): Add `test.mod'.
51401 (grub_script.tab.c): New rule.
51402 (grub_script.tab.h): Likewise.
51404 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51407 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51408 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51409 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51410 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51411 (test_mod_SOURCES): New variable.
51412 (test_mod_CFLAGS): Likewise.
51413 (pkgdata_MODULES): Add `test.mod'.
51414 (grub_script.tab.c): New rule.
51415 (grub_script.tab.h): Likewise.
51417 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51419 Add initial scripting support.
51421 * commands/test.c: New file.
51422 * include/grub/script.h: Likewise.
51423 * normal/execute.c: Likewise.
51424 * normal/function.c: Likewise.
51425 * normal/lexer.c: Likewise.
51426 * normal/parser.y: Likewise.
51427 * normal/script.c: Likewise.
51429 * configure.ac: Add `AC_PROG_YACC' test.
51431 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51432 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51433 `normal/function.c' and `normal/script.c'.
51434 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51435 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51436 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51438 (pkgdata_MODULES): Add `test.mod'.
51439 (grub_script.tab.c): New rule.
51440 (grub_script.tab.h): Likewise.
51442 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51444 * include/grub/normal.h (grub_test_init): New prototype.
51445 (grub_test_fini): Likewise.
51447 * normal/command.c: Include <grub/script.h>.
51448 (grub_command_execute): Rewritten.
51450 * util/grub-emu.c (main): Call `grub_test_init' and
51453 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51455 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51457 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51458 there are no pending characters.
51460 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51462 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51463 `grub_strndup' to drop device arguments. Replace unnecessary
51464 `grub_strndup' with `grub_strdup'.
51466 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51468 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51469 `debug' environment variable has been set.
51471 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51473 * Makefile.in (install-local): Use $(DATA).
51474 (uninstall): Likewise.
51475 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51476 (sbin_UTILITIES): ... to here.
51477 (sbin_SCRIPTS): New variable.
51478 (grub_install_SOURCES): New variable.
51479 * util/powerpc/ieee1275/grub-install.in: New file.
51480 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51482 (add_segments): Call `grub_util_get_path'.
51484 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51486 From Timothy Baldwin:
51487 * commands/ls.c (grub_ls_list_files): Close FILE with
51489 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51491 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51493 * include/grub/parser.h: New file.
51495 * kern/parser.c: Likewise.
51497 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51498 (grub_setup_SOURCES): Likewise.
51499 (grub_probefs_SOURCES): Likewise.
51500 (grub_emu_SOURCES): Likewise.
51501 (kernel_img_HEADERS): Add `parser.h'.
51503 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51504 (grub_emu_SOURCES): Add `kern/parser.c'.
51505 (grubof_SOURCES): Likewise.
51507 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51508 (grubof_SOURCES): Add `kern/parser.c'.
51510 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51512 * kern/misc.c (grub_split_cmdline): Removed function.
51514 * kern/rescue.c: Include <grub/parser.h>.
51515 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51516 of `grub_split_cmdline'.
51518 * normal/command.c: Include <grub/parser.h>.
51519 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51520 of `grub_split_cmdline'.
51522 * normal/completion.c: Include <grub/parser.h>.
51523 (cmdline_state): New variable.
51524 (iterate_dir): End the filename with a quote depending on the
51525 command line state.
51526 (get_state): new function.
51527 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51528 split the arguments and determine the current argument. When the
51529 argument string is not quoted, escape all spaces.
51531 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51533 * normal/sparc64/setjmp.S: New file.
51535 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51537 * include/grub/sparc64/libgcc.h: New file.
51538 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51539 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51540 normal/sparc64/setjmp.c.
51542 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51544 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51545 * kern/sparc64/cache.S: New file.
51546 * kern/sparc64/cache.c: Removed.
51547 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51548 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51550 (COMMON_LDFLAGS): Add -melf64_sparc.
51551 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51552 (grubof_SOURCES): Use cache.S instead of cache.c.
51553 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51554 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51555 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51557 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51558 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51559 (linux_mod_CFLAGS): Commented out.
51560 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51561 out because module isn't built.
51562 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51563 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51564 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51565 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51566 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51567 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51568 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51569 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51570 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51571 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51572 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51573 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51574 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51575 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51577 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51579 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51580 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51581 longer, because HFS should not be used on PC.
51583 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51585 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51586 consistently within the loop.
51588 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51590 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51591 directory can not be read.
51593 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51595 * configure.ac (AC_INIT): Increase the version number to 1.91.
51597 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51598 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51599 term/i386/pc/serial.c.
51601 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51603 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51604 file size must be permitted.
51606 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51607 between %ah and %al.
51609 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51611 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51613 Call the hook with a NUL-terminated filename.
51614 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51617 * kern/term.c (cursor_state): New variable.
51618 (grub_term_set_current): Reset the cursor state on a new
51620 (grub_setcursor): Rewritten to use CURSOR_STATE.
51621 (grub_getcursor): New function.
51623 * include/grub/term.h (grub_getcursor): New prototype.
51625 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51626 integers on ARM. Reported by Timothy Baldwin
51627 <T.E.Baldwin99@members.leeds.ac.uk>.
51629 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51631 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51633 (grub_sfs_dir): Likewise.
51635 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51637 Add support for the SFS filesystem.
51639 * fs/sfs.c: New file.
51641 * DISTLIST: Added `fs/sfs.c'.
51643 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51644 (grub_probefs_SOURCES): Likewise.
51645 (grub_emu_SOURCES): Likewise.
51646 (pkgdata_MODULES): Add `sfs.mod'.
51647 (sfs_mod_SOURCES): New variable.
51648 (sfs_mod_CFLAGS): Likewise.
51649 (sfs_mod_LDFLAGS): Likewise.
51651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51652 (pkgdata_MODULES): Add `sfs.mod'.
51653 (sfs_mod_SOURCES): New variable.
51654 (sfs_mod_CFLAGS): Likewise.
51656 * util/grub-emu.c (main): Call `grub_sfs_init' and
51659 * include/grub/fs.h (grub_sfs_init): New prototype.
51660 (grub_sfs_fini): Likewise.
51662 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51664 Add support for the AFFS filesystem.
51666 * fs/affs.c: New file.
51668 * DISTLIST: Added `fs/affs.c'.
51670 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51671 (grub_probefs_SOURCES): Likewise.
51672 (grub_emu_SOURCES): Likewise.
51673 (pkgdata_MODULES): Add `affs.mod'.
51674 (affs_mod_SOURCES): New variable.
51675 (affs_mod_CFLAGS): Likewise.
51676 (affs_mod_LDFLAGS): Likewise.
51678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51679 (pkgdata_MODULES): Add `affs.mod'.
51680 (affs_mod_SOURCES): New variable.
51681 (affs_mod_CFLAGS): Likewise.
51683 * util/grub-emu.c (main): Call `grub_affs_init' and
51686 * include/grub/fs.h (grub_affs_init): New prototype.
51687 (grub_affs_fini): Likewise.
51689 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51691 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51693 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51695 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51698 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51701 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51702 (COMMON_LDFLAGS): New variable.
51703 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51704 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51705 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51706 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51707 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51708 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51709 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51710 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51711 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51712 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51713 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51714 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51715 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51716 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51717 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51719 (normal_mod_ASFLAGS): Add `-m32'.
51721 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51722 (grub_host_size_t, grub_host_ssize_t): New types.
51723 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51724 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51725 `GRUB_HOST_SIZEOF_VOID_P'.
51727 * include/grub/kernel.h (struct grub_module_header): Type of
51728 member offset changed to `grub_host_off_t'. Type of member size
51729 changed to `grub_host_size_t'.
51730 (struct grub_module_info): Type of member offset changed to
51731 `grub_host_off_t'. Type of member size changed to
51732 `grub_host_size_t'.
51734 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51736 Make GRUB's kernel compliant to Multiboot Specification.
51738 * kern/i386/pc/startup.S (multiboot_header): New label.
51739 (multiboot_entry): Likewise.
51740 (multiboot_trampoline): Likewise.
51742 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51743 Increased to 0x4A0.
51745 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51746 put parentheses after a question mark.
51747 [!GRUB_UTIL] (my_mod): New variable.
51749 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51751 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51753 Adds support for the XFS filesystem. Btrees are not supported
51756 * fs/xfs.c: New file.
51758 * DISTLIST: Added `fs/xfs.c'.
51760 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51761 (grub_probefs_SOURCES): Likewise.
51762 (grub_emu_SOURCES): Likewise.
51763 (pkgdata_MODULES): Add `xfs.mod'.
51764 (xfs_mod_SOURCES): New variable.
51765 (xfs_mod_CFLAGS): Likewise.
51767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51768 (pkgdata_MODULES): Add `xfs.mod'.
51769 (xfs_mod_SOURCES): New variable.
51770 (xfs_mod_CFLAGS): Likewise.
51772 * util/grub-emu.c (main): Call `grub_xfs_init' and
51775 * include/grub/fs.h (grub_xfs_init): New prototype.
51776 (grub_xfs_fini): Likewise.
51779 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51781 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51782 color modes, allow greater than 16 colors to be configured as
51785 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51787 * normal/completion.c (complete_arguments): Add the qualifier
51788 const into OPTIONS.
51790 From Omniflux <omniflux+lists@omniflux.com>:
51791 * include/grub/terminfo.h: New file.
51792 * include/grub/tparm.h: Likewise.
51793 * include/grub/i386/pc/serial.h: Likewise.
51794 * term/terminfo.c: Likewise.
51795 * term/tparm.c: Likewise.
51796 * term/i386/pc/serial.c: Likewise.
51797 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51799 (terminfo_mod_SOURCES): New variable.
51800 (terminfo_mod_CFLAGS): Likewise.
51801 (serial_mod_SOURCES): Likewise.
51802 (serial_mod_CFLAGS): Likewise.
51804 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51806 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51807 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51808 and kern/powerpc/ieee1275/cmain.c, respectively.
51810 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51811 * kern/powerpc/ieee1275/crt0.S: ... here.
51813 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51814 * kern/powerpc/ieee1275/cmain.c: ... here.
51816 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51817 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51818 instead of boot/powerpc/ieee1275/crt0.S and
51819 boot/powerpc/ieee1275/cmain.c, respectively.
51821 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51822 sectors. It was not used anyway.
51824 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51826 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51827 `unused parameter' warning.
51829 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51831 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51833 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51836 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51838 * include/grub/normal.h (enum grub_completion_type): Added
51839 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51841 * normal/cmdline.c (print_completion): Handle
51842 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51843 * normal/menu_entry.c (store_completion): Likewise.
51845 * normal/completion.c (complete_arguments): New function.
51846 (grub_normal_do_completion): Call `complete_arguments' when the
51847 current words start with a dash.
51849 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51851 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51852 `gzio.mod' instead of `io.mod').
51854 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51856 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51857 (DISTDIRS): Added io and video.
51858 Rewrite the search routine to make an output consistently.
51860 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51861 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51862 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51863 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51864 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51865 util/powerpc/ieee1275/misc.c.
51867 * include/grub/gzio.h: New file.
51868 * io/gzio.c: Likewise.
51870 * kern/file.c (grub_file_close): Call grub_device_close only if
51871 FILE->DEVICE is not NULL.
51873 * include/grub/mm.h [!NULL] (NULL): New macro.
51875 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51878 (pkgdata_MODULES): Added gzio.mod.
51879 (gzio_mod_SOURCES): New variable.
51880 (gzio_mod_CFLAGS): Likewise.
51882 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51883 (pkgdata_MODULES): Added gzio.mod.
51884 (gzio_mod_SOURCES): New variable.
51885 (gzio_mod_CFLAGS): Likewise.
51887 * commands/cat.c: Include grub/gzio.h.
51888 (grub_cmd_cat): Use grub_gzfile_open instead of
51891 * commands/cmp.c: Include grub/gzio.h.
51892 (grub_cmd_cmp): Use grub_gzfile_open instead of
51895 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51896 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51898 (grub_rescue_cmd_module): Likewise.
51900 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51902 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51903 kern/sparc64/ieee1275/init.c because it contains _start.
51904 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51906 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51908 * configure.ac: Add support for sparc64 host with ieee1275
51910 * configure: Generated from configure.ac.
51911 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51913 (grub_ofdisk_read): Likewise.
51914 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51915 pointers as (void *) to remove a warning.
51916 (grub_ofdisk_close): Likewise.
51917 (grub_ofdisk_read): Likewise.
51918 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51919 returns, so make it return void to remove a warning.
51920 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51921 Corresponding prototype change.
51922 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51923 values, and cast the pointers as (void *) to remove a warning.
51924 (grub_mm_dump): Likewise.
51925 * conf/sparc64-ieee1275.mk: New file.
51926 * conf/sparc64-ieee1275.rmk: Likewise.
51927 * include/grub/sparc64/setjmp.h: Likewise.
51928 * include/grub/sparc64/types.h: Likewise.
51929 * include/grub/sparc64/ieee1275/console.h: Likewise.
51930 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51931 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51932 * include/grub/sparc64/ieee1275/time.h: Likewise.
51933 * kern/sparc64/cache.c: Likewise.
51934 * kern/sparc64/dl.c: Likewise.
51935 * kern/sparc64/ieee1275/init.c: Likewise.
51936 * kern/sparc64/ieee1275/openfw.c: Likewise.
51938 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51940 * util/console.c (grub_ncurses_putchar): If C is greater than
51941 0x7f, set C to a question mark.
51942 (grub_ncurses_getcharwidth): New function.
51943 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51946 * normal/menu.c (print_entry): Made aware of Unicode. First,
51947 convert TITLE to UCS-4, and predict the cursor position by
51950 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51952 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51954 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51956 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51957 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51960 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51961 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51962 grub_strcpy and grub_strlen. Take it into account that a space
51963 character is inserted as a delimiter.
51965 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51967 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51968 invalid magic in the error.
51970 * commands/search.c: New file.
51972 * util/grub-emu.c (main): Call grub_search_init and
51975 * kern/rescue.c (grub_rescue_print_disks): Removed.
51976 (grub_rescue_print_devices): New function.
51977 (grub_rescue_cmd_ls): Use grub_device_iterate with
51978 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51979 grub_rescue_print_disks.
51981 * kern/partition.c (grub_partition_iterate): Return the result of
51982 PARTMAP->ITERATE instead of GRUB_ERRNO.
51984 * kern/device.c: Include grub/partition.h.
51985 (grub_device_iterate): New function.
51987 * include/grub/partition.h (grub_partition_iterate): Return int
51988 instead of grub_err_t.
51990 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51992 [GRUB_UTIL] (grub_search_fini): Likewise.
51994 * include/grub/device.h (grub_device_iterate): New prototype.
51996 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51998 (pkgdata_MODULES): Added search.mod.
51999 (search_mod_SOURCES): New variable.
52000 (search_mod_CFLAGS): Likewise.
52002 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52003 (pkgdata_MODULES): Added search.mod.
52004 (search_mod_SOURCES): New variable.
52005 (search_mod_CFLAGS): Likewise.
52007 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52008 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52009 All callers changed.
52011 * DISTLIST: Added commands/search.c.
52013 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52015 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52017 (grub_getcharwidth): New function.
52019 * kern/misc.c (grub_utf8_to_ucs4): New function.
52021 * include/grub/term.h (struct grub_term): Added a new member
52023 (grub_getcharwidth): New prototype.
52025 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52027 * term/i386/pc/console.c (map_char): New function. Segregated from
52028 grub_console_putchar.
52029 (grub_console_putchar): Use map_char.
52030 (grub_console_getcharwidth): New function.
52031 (grub_console_term): Specified grub_console_getcharwidth as
52034 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52035 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52037 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52039 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52040 on grub_strtoul completely.
52041 (write_char): Declare local variables in the beginning of the
52043 (grub_vesafb_getcharwidth): New function.
52044 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52047 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52049 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52050 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52051 commands/i386/pc/vbetest.c.
52053 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52054 call grub_vbe_get_controller_info again, because the returned
52055 information is volatile.
52056 (grub_vbe_set_video_mode): Mostly rewritten.
52057 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52058 grub_vbe_status_t correctly.
52059 (grub_vbe_get_video_mode_info): Likewise.
52060 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52061 several if statements.
52063 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52064 * commands/i386/pc/vbeinfo.c: ... this.
52066 * commands/i386/pc/vbe_test.c: Renamed to ...
52067 * commands/i386/pc/vbetest.c: ... this.
52069 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52071 (grub_cmd_vbeinfo): ... this. Save video modes before
52072 iterating. Skip a video mode, if it is not available, not enough
52073 information is given or it is monochrome. Show the memory
52074 model. Leave the interpretation of MODEVAR to grub_strtoul
52076 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52077 (GRUB_MOD_FINI): Likewise.
52079 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52080 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52081 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52082 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52083 grub_strtoul completely.
52084 (real2pm): Removed.
52085 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52086 (GRUB_MOD_FINI): Likewise.
52088 * normal/misc.c: Include grub/mm.h.
52090 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52091 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52092 (vbe_list_modes_mod_SOURCES): Removed.
52093 (vbe_list_modes_mod_CFLAGS): Likewise.
52094 (vbe_test_mod_SOURCES): Likewise.
52095 (vbe_test_mod_CFLAGS): Likewise.
52096 (vbeinfo_mod_SOURCES): New variable.
52097 (vbeinfo_mod_CFLAGS): Likewise.
52098 (vbetest_mod_SOURCES): Likewise.
52099 (vbetest_mod_CFLAGS): Likewise.
52101 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52103 * normal/misc.c: New file.
52105 * DISTLIST: Added normal/misc.c.
52107 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52108 DISK to HOOK. Call HOOK with DISK.
52109 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52110 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52111 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52113 * normal/menu_entry.c (struct screen): Added a new member
52114 "completion_shown".
52115 (completion_buffer): New global variable.
52116 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52117 (store_completion): New function.
52118 (complete): Likewise.
52119 (clear_completions): Likewise.
52120 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52121 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52122 a tab, call complete.
52124 * normal/completion.c (disk_dev): Removed.
52125 (print_simple_completion): Likewise.
52126 (print_partition_completion): Likewise.
52127 (print_func): New global variable.
52128 (add_completion): Do not take the arguments WHAT or PRINT any
52129 longer. Added a new argument TYPE. Instead of printing directly,
52130 call PRINT_FUNC if not NULL.
52131 All callers changed.
52132 (complete_device): Use a local variable DEV instead of
52133 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52134 (grub_normal_do_completion): Take a new argument HOOK. Do not
52135 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52136 empty string, return NULL instead.
52137 All callers changed.
52139 * normal/cmdline.c (print_completion): New function.
52141 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52143 All callers changed.
52145 * kern/disk.c (grub_print_partinfo): Removed.
52147 * include/grub/partition.h (struct grub_partition_map): Add a new
52148 argument DISK into HOOK of ITERATE.
52149 (grub_partition_iterate): Add a new argument DISK to HOOK.
52151 * include/grub/normal.h (enum grub_completion_type): New enum.
52152 (grub_completion_type_t): New type.
52153 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52154 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52155 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52156 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52157 (grub_normal_do_completion): Added a new argument HOOK.
52158 (grub_normal_print_device_info): New prototype.
52160 * include/grub/disk.h (grub_print_partinfo): Removed.
52162 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52163 (normal_mod_SOURCES): Likewise.
52164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52165 (normal_mod_SOURCES): Likewise.
52167 * commands/ls.c (grub_ls_list_disks): Use
52168 grub_normal_print_device_info instead of grub_print_partinfo. Free
52170 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52171 duplicating the code.
52173 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52175 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52176 follow GCS more precisely.
52177 * commands/i386/pc/vbe_test.c: Likewise.
52178 * include/grub/i386/pc/vbe.h: Likewise.
52179 * term/i386/pc/vesafb.c: Likewise.
52180 * video/i386/pc/vbe.c: Likewise.
52182 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52184 * DISTLIST: Added term/i386/pc/vesafb.c
52185 DISTLIST: Added video/i386/pc/vbe.c
52186 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52187 DISTLIST: Added commands/i386/pc/vbe_test.c.
52188 * commands/i386/pc/vbe_list_modes.c: New file.
52189 * commands/i386/pc/vbe_test.c: Likewise.
52190 * term/i386/pc/vesafb.c: Likewise.
52191 * video/i386/pc/vbe.c: Likewise.
52192 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52193 (grub_vbe_probe) Added prototype.
52194 (grub_vbe_set_video_mode) Likewise.
52195 (grub_vbe_get_video_mode) Likewise.
52196 (grub_vbe_get_video_mode_info) Likewise.
52197 (grub_vbe_set_pixel_rgb) Likewise.
52198 (grub_vbe_set_pixel_index) Likewise.
52199 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52200 (pkgdata_MODULES): Added vesafb.mod.
52201 (pkgdata_MODULES): Added vbe_list_modes.mod.
52202 (pkgdata_MODULES): Added vbe_test.mod.
52203 (vbe_mod_SOURCES): Added.
52204 (vbe_mod_CFLAGS): Likewise.
52205 (vesafb_mod_SOURCES): Likewise.
52206 (vesafb_mod_CFLAGS): Likewise.
52207 (vbe_list_modes_mod_SOURCES): Likewise.
52208 (vbe_list_modes_mod_CFLAGS): Likewise.
52209 (vbe_test_mod_SOURCES): Likewise.
52210 (vbe_test_mod_CFLAGS): Likewise.
52212 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52214 * normal/command.c (grub_command_execute): If INTERACTIVE is
52215 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52216 CMDLINE. Disable the pager if INTERACTIVE is true.
52217 All callers are changed.
52219 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52220 before reading a config file.
52221 * normal/main.c (read_config_file): Even if a command is not
52222 found, register it if it is within an entry.
52224 * util/grub-emu.c: Include sys/types.h and unistd.h.
52225 (options): Added --hold.
52226 (struct arguments): Added a new member "hold".
52227 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52229 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52230 cleared by a debugger, if it is not zero.
52232 * include/grub/normal.h (grub_command_execute): Add an argument
52235 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52237 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52239 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52241 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52242 program with another one, because the old one didn't detect a bug
52243 in gcc-3.4. Always use regparm 2, because the new test is still
52244 not enough for gcc-4.0. Someone must investigate a simple test
52245 case which detects a bug in gcc-4.0.
52247 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52249 * DISTLIST: Added normal/completion.c.
52251 * normal/completion.c: New file.
52253 * term/i386/pc/console.c (grub_console_getwh): New function.
52254 (grub_console_term): Assign grub_console_getwh to getwh.
52256 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52257 function is defined in normal/completion.c as
52258 grub_normal_do_completion.
52259 (grub_cmdline_get): Use grub_normal_do_completion instead of
52262 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52263 returns non-zero, otherwise return 0.
52264 (grub_partition_iterate): First, probe the partition map. Then,
52265 call ITERATE only for this partition map.
52267 * kern/misc.c (grub_strncmp): Rewritten.
52269 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52270 returns non-zero. Otherwise return 0.
52272 * include/grub/partition.h (grub_partition_map_iterate): Return
52273 int instead of void.
52275 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52277 * include/grub/misc.h (grub_strncmp): Change the type of N to
52280 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52283 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52284 unsigned explicitly before comparing it with I.
52286 * kern/main.c (grub_env_write_root): Add the attribute unused into
52289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52290 normal/completion.c.
52291 (normal_mod_SOURCES): Likewise.
52292 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52293 (normal_mod_SOURCES): Likewise.
52295 * normal/command.c (grub_iterate_commands): If ITERATE returns
52296 non-zero, return one immediately.
52298 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52300 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52301 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52303 (grub_vbe_get_controller_info): New function.
52304 (grub_vbe_get_mode_info): Likewise.
52305 (grub_vbe_set_mode): Likewise.
52306 (grub_vbe_get_mode): Likewise.
52307 (grub_vbe_set_memory_window): Likewise.
52308 (grub_vbe_get_memory_window): Likewise.
52309 (grub_vbe_set_scanline_length): Likewise.
52310 (grub_vbe_get_scanline_length): Likewise.
52311 (grub_vbe_set_display_start): Likewise.
52312 (grub_vbe_get_display_start): Likewise.
52313 (grub_vbe_set_palette_data): Likewise.
52314 * include/grub/i386/pc/vbe.h: New file.
52316 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52318 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52319 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52320 * DISTLIST: Likewise.
52321 * kern/ieee1275/of.c: Moved to ...
52322 * kern/ieee1275/ieee1275.c: ... here.
52324 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52326 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52327 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52328 Pass 0 as `end' parameter to grub_strtoul().
52330 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52332 * include/grub/powerpc/ieee1275/console.h: Do not include
52333 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52335 (grub_console_cur_color): Remove i386-specific prototype.
52336 (grub_console_real_putchar): Likewise.
52337 (grub_console_checkkey): Likewise.
52338 (grub_console_getkey): Likewise.
52339 (grub_console_getxy): Likewise.
52340 (grub_console_gotoxy): Likewise.
52341 (grub_console_cls): Likewise.
52342 (grub_console_setcursor): Likewise.
52343 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52344 Include <grub/machine/console.h>.
52345 * term/ieee1275/ofconsole.c: Likewise.
52347 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52349 * Makefile.in (LIBLZO): New variable.
52351 * configure.ac: Check for LZO version 2.
52353 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52354 lzo/lzo1x.h instead of lzo1x.h.
52356 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52359 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52360 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52362 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52363 copying the data from PARTITION to P.
52365 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52367 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52368 negative, unload the module.
52370 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52371 map is "pc_partition_map" but not "pc".
52372 (usage): Fix the description. The options are --boot-image and
52373 --core-image but not --boot-file or --core-file.
52374 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52375 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52378 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52379 --core-file. Specify INSTALL_DEVICE as an argument.
52381 * util/console.c: Include config.h.
52382 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52383 [HAVE_NCURSES_H]: Include ncurses.h.
52384 [HAVE_CURSES_H]: Include curses.h.
52385 [!A_NORMAL] (A_NORMAL): Defined as zero.
52386 [!A_STANDOUT] (A_STANDOUT): Likewise.
52388 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52390 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52392 * configure.ac: Check for curses libraries and headers.
52394 * Makefile.in (LIBCURSES): New variable.
52396 * genmk.rb (Script::rule): Set the executable bits.
52398 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52399 name of the PC partition map is "pc_partition_map" but not "pc".
52401 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52403 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52404 (modules): Likewise.
52405 (usage): Added descriptions for --modules and --grub-probefs.
52406 Handle --modules and --grub-probefs. Save the arguments in MODULES
52407 and GRUB_PROBEFS, respectively.
52408 Auto-detect a filesystem module against GRUBDIR. If the result is
52409 empty and modules are not specified explicitly, abort the
52410 installation. Add the result to MODULES.
52412 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52413 disk/powerpc/ieee1275/ofdisk.c,
52414 include/grub/powerpc/ieee1275/init.h and
52415 term/powerpc/ieee1275/ofconsole.c.
52416 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52417 term/ieee1275/ofconsole.c.
52419 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52421 * COPYING: Upgraded to the latest version. Only the address of the
52422 FSF office has changed.
52424 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52426 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52427 kern/ieee1275.c with kern/ieee1275/of.c.
52429 * kern/ieee1275.c: Moved to ...
52430 * kern/ieee1275/of.c: ... here.
52432 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52434 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52437 * config.guess: Updated to the latest version from gnulib.
52438 * config.sub: Likewise.
52439 * install.sh: Likewise.
52440 * mkinstalldirs: Likewise.
52442 * include/grub/console.h: Removed. This file is arch-specific. Do
52443 not put this in include/grub.
52445 * include/grub/i386/pc/console.h: Resurrected.
52447 * util/console.c: Include grub/machine/console.h instead of
52449 * util/grub-emu.c: Likewise.
52451 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52453 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52456 From Vincent Pelletier <subdino2004@yahoo.fr>
52457 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52458 Redefined to use grub_getwh.
52459 (grub_term): New member named getwh.
52460 (grub_getwh): New prototype.
52461 * kern/term.c (grub_getwh): New function.
52462 * term/i386/pc/console.c (grub_console_getwh): New function.
52463 (grub_console_term): New member `getwh'.
52464 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52465 (grub_vga_term): New member `getwh'.
52466 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52468 (grub_ofconsole_getw): New function.
52469 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52470 (grub_ofconsole_term): New field named getwh and new initial
52473 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52475 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52476 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52477 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52478 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52479 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52480 of <grub/machine/ieee1275.h>.
52481 * commands/ieee1275/reboot.c: Likewise.
52482 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52483 * kern/ieee1275.c: ... to here. All users updated. Change all
52484 parameter structs to use new type `grub_ieee1275_cell_t'.
52485 * term/powerpc/ieee1275/ofconsole.c: Move ...
52486 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52487 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52488 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52489 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52491 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52492 Remove unused prototypes. All users updated.
52493 * include/grub/powerpc/ieee1275/console.h: Removed.
52494 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52495 `grub_ieee1275_cell_t'.
52496 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52497 Cast comparisons with -1 to the correct type.
52498 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52499 type to match `grub_ieee1275_entry_fn'.
52501 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52503 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52505 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52506 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52508 (grub_probefs_SOURCES): New variable.
52510 * util/i386/pc/grub-probefs.c: New file.
52512 * util/i386/pc/grub-setup.c (main): Call
52513 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52514 grub_hfs_init and grub_jfs_init to initialize the system. Call
52515 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52516 grub_pc_partition_map_fini to finish the system.
52518 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52520 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52522 (grub_multiboot_load_elf32): Likewise.
52523 (grub_multiboot_is_elf64): Likewise.
52524 (grub_multiboot_load_elf64): Likewise.
52525 (grub_multiboot_load_elf): Likewise.
52526 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52527 an ELF32 or ELF64 file.
52528 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52530 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52531 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52532 NULL before calling FS->LABEL.
52533 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52534 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52535 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52536 before calling FS->LABEL.
52538 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52540 * util/i386/pc/grub-install.in (datadir): New variable.
52542 (pkgdatadir): New variable.
52543 (pkglibdir): Removed.
52545 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52547 * DISTLIST: Added util/i386/pc/grub-install.in.
52549 * util/i386/pc/grub-install.in: New file.
52551 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52552 (grub_install_SOURCES): Likewise.
52554 * genmk.rb: Added support for scripts.
52555 (Script): New class.
52556 (scripts): New variable.
52558 * Makefile.in (install-local): Install sbin_SCRIPTS by
52560 (uninstall): Remove sbin_SCRIPTS.
52562 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52563 device, try to get a GRUB device by
52564 grub_util_biosdisk_get_grub_dev.
52567 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52568 description for --device-map.
52570 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52572 Change the semantics of variable hooks. They now return strings
52573 instead of error values.
52575 * util/i386/pc/grub-setup.c: Include grub/env.h.
52576 (setup): Use grub_device_set_root instead of grub_env_set.
52578 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52579 grub_env_get instead of grub_device_set_root and
52580 grub_device_get_root, respectively.
52582 * kern/main.c (grub_env_write_root): New function.
52583 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52584 grub_env_set instead of grub_device_set_root.
52586 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52588 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52589 rather than calling ENV->WRITE_HOOK afterwards.
52590 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52591 passing a pointer of a pointer.
52592 (grub_register_variable_hook): Change the types of "read_hook" and
52593 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52595 Allocate the default empty string on the heap, because this string
52596 may be freed later.
52598 * kern/device.c: Include grub/env.h.
52599 (grub_device_set_root): Removed.
52600 (grub_device_get_root): Likewise.
52601 (grub_device_open): Use grub_env_get instead of
52602 grub_device_get_root.
52604 * include/grub/env.h (grub_env_read_hook_t): New type.
52605 (grub_env_write_hook_t): Likewise.
52606 (grub_env_var): Change the types of "read_hook" and "write_hook"
52607 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52608 (grub_register_variable_hook): Likewise.
52610 * include/grub/device.h (grub_device_set_root): Removed.
52611 (grub_device_set_root): Likewise.
52613 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52614 make sure that DIRNAME terminates with '/', so that
52615 grub_fat_find_dir will fail if PATH is not a directory.
52617 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52619 Use the qualifier auto for print_files and print_files_long.
52620 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52622 Put a newline only if there is no error.
52623 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52626 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52628 * kern/partition.c (grub_partition_probe): Initialize PART to
52629 NULL. Otherwise, when no partition map is registered, this returns
52632 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52634 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52635 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52638 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52640 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52641 information on each device, if it does not have partitions. Print
52642 "Device" instead of "Disk", because this function is not specific
52645 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52646 static to ensure that it is put on the memory rather than a
52649 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52651 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52652 (grub_cat_init): Likewise.
52653 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52654 (options): Likewise.
52655 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52656 (grub_configfile_init): Likewise.
52657 * font/manager.c (GRUB_MOD_INIT): Likewise.
52658 * commands/help.c (GRUB_MOD_INIT): Likewise.
52659 (grub_help_init): Likewise.
52660 * normal/command.c (grub_command_init): Likewise.
52661 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52662 * disk/loopback.c (grub_loop_init): Likewise.
52663 (GRUB_MOD_INIT): Likewise.
52664 * commands/ls.c (grub_ls_init): Likewise.
52665 (GRUB_MOD_INIT): Likewise.
52666 (options): Likewise.
52667 * commands/boot.c (grub_boot_init): Likewise.
52668 (GRUB_MOD_INIT): Likewise.
52669 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52670 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52671 (GRUB_MOD_INIT): Likewise.
52672 * commands/cmp.c (grub_cmp_init): Likewise.
52673 (GRUB_MOD_INIT): Likewise.
52675 * normal/arg.c: Use <> instead of "" to include header files.
52676 (SHORT_ARG_HELP): New macro.
52677 (SHORT_ARG_USAGE): Likewise.
52678 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52679 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52681 (find_short): Check if C is 'h' or 'u' explicitly.
52682 (grub_arg_show_help): Use space characters instead of tabs. Treat
52683 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52684 are shown with --help and --usage only if they are not used for
52685 the command itself.
52686 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52689 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52690 const into "longarg". Change the type of "shortarg" to int.
52692 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52694 * boot/i386/pc/boot.S (boot_drive_check): New label.
52696 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52699 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52700 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52702 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52704 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52705 When turning off Gate A20, skip the check and return immediately,
52706 because this is not fatal usually.
52708 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52710 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52711 be 0x7C00 instead of 0x8000.
52713 * boot/i386/pc/pxeboot.S: Rewritten.
52715 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52717 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52720 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52722 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52723 robustness. This routine now supports a BIOS call and System
52724 Control Port A to modify the gate A20.
52726 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52727 Increased to 0x440.
52729 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52731 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52732 device path and resulting ihandle.
52733 (grub_ofdisk_close): dprintf the ihandle being closed.
52734 (grub_ofdisk_read): dprintf function parameters.
52735 * kern/mm.c (grub_mm_init_region): Likewise.
52736 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52737 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52738 size, and boot arguments.
52739 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52740 before loading into memory.
52741 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52742 before loading into memory.
52744 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52746 * kern/mm.c: Added much documentation.
52747 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52748 8, set to 5 instead of 8.
52750 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52752 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52754 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52755 (grub_mkdevicemap_SOURCES): New variable.
52757 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52758 lib/device.c of GRUB Legacy.
52760 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52762 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52763 instead of PATH is NULL.
52765 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52767 * commands/cmp.c (BUFFER_SIZE): New macro.
52768 (grub_cmd_cmp): Close the right file at the right time. Compare
52769 only data just read. Don't report files of different size as
52770 identical. Dynamically allocate buffers. Move variable
52771 declarations at the beginning of function.
52773 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52775 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52778 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52780 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52781 when backspace is pressed at beginning of line.
52783 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52785 * DISTLIST: Added genfslist.sh.
52787 * normal/main.c (fs_module_list): New variable.
52788 (autoload_fs_module): New function.
52789 (read_fs_list): Likewise.
52790 (grub_normal_execute): Call read_fs_list.
52792 * kern/fs.c (grub_fs_autoload_hook): New variable.
52793 (grub_fs_probe): Added support for auto-loading.
52795 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52796 (grub_fs_module_list_t): New type.
52798 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52799 (grub_fs_autoload_hook): New prototype.
52801 * genfslist.sh: New file.
52803 * genmk.rb: Added a rule to generate a filesystem list.
52805 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52807 * configure.ac: Fix the test for cross-compiling.
52809 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52810 define GRUB_UTIL anymore.
52812 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52813 so this function works on other systems than just big endian.
52814 (load_modules): Likewise.
52815 (add_segments): Likewise.
52817 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52819 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52820 contains `l' modifier, get a long from va_arg().
52822 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52824 * kern/mm.c (grub_free): If the next free block which is being
52825 merged is the first free block, set the first block to the block
52827 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52829 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52831 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52832 `grub_ieee1275_chosen'.
52834 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52836 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52837 (grub_ieee1275_chosen): New variable.
52838 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52840 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52841 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52842 Rename first argument to `phandle' for consistency.
52843 (grub_ieee1275_get_property_length): Likewise.
52844 (grub_ieee1275_next_property): Likewise. Change type of first argument
52845 to grub_ieee1275_phandle_t.
52846 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52847 Move export next to declaration.
52848 (grub_ieee1275_chosen): New variable.
52849 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52850 Correct cosmetic typo.
52851 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52852 `grub_ieee1275_chosen'.
52853 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52854 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52855 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52856 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52857 `grub_ieee1275_chosen'.
52859 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52861 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52863 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52864 /chosen/bootargs as "variable=value" pairs.
52866 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52868 * include/grub/misc.h (grub_dprintf): New macro.
52869 (grub_real_dprintf): New prototype.
52870 (grub_strword): Likewise.
52871 (grub_iswordseparator): Likewise.
52872 * kern/misc.c (grub_real_dprintf): New function.
52873 (grub_strword): Likewise.
52874 (grub_iswordseparator): Likewise.
52876 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52878 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52879 (roundup): Remove macro.
52880 (grub_ieee1275_flags): Make static.
52881 (grub_ieee1275_realmode): Remove.
52882 (grub_ieee1275_test_flag): New function.
52883 (grub_ieee1275_set_flag): Likewise.
52884 (find_options): Rename to `grub_ieee1275_find_options'; update
52885 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52886 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52887 (cmain): New prototype.
52888 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52889 `grub_ieee1275_flags' directly.
52890 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52891 machine/biosdisk.h.
52892 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52893 Don't include grub/machine/init.h.
52894 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52895 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52897 (grub_ieee1275_realmode): Likewise.
52898 (grub_ieee1275_flag): New enum.
52899 (grub_ieee1275_test_flag): New prototype.
52900 (grub_ieee1275_set_flag): New prototype.
52901 * include/grub/powerpc/ieee1275/init.h: Remove file.
52902 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52903 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52904 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52905 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52907 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52908 `grub_ieee1275_test_flag'.
52909 (grub_ieee1275_encode_devname): Likewise.
52911 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52913 * include/grub/powerpc/ieee1275/ieee1275.h
52914 (grub_ieee1275_encode_devname): New prototype.
52915 (grub_ieee1275_get_filename): Likewise.
52916 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52918 (grub_set_prefix): Likewise.
52919 (grub_machine_init): Call grub_set_prefix.
52920 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52921 (grub_parse_type): New enum.
52922 (grub_ieee1275_get_devargs): New function.
52923 (grub_ieee1275_get_devname): Likewise.
52924 (grub_ieee1275_parse_args): Likewise.
52925 (grub_ieee1275_get_filename): Likewise.
52926 (grub_ieee1275_encode_devname): Likewise.
52928 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52930 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52931 `grub_loader_unset'.
52933 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52935 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52936 instead of grub_ieee1275_interpret.
52937 (grub_halt_init): New function.
52938 (grub_halt_fini): Likewise.
52939 (GRUB_MOD_INIT): Correct message grammar.
52940 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52941 instead of grub_ieee1275_interpret.
52942 (grub_reboot_init): New function.
52943 (grub_reboot_fini): Likewise.
52944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52945 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52946 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52947 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52948 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52950 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52952 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52954 (grub_halt): Likewise.
52955 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52956 (cmain): Remove __attribute__((unused)).
52957 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52958 (grub_heap_len): Likewise.
52959 (grub_machine_fini): New function.
52960 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52961 (grub_halt): Likewise.
52962 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52964 * util/powerpc/ieee1275/misc.c: New file.
52966 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52968 * DISTLIST: New file.
52969 * gendistlist.sh: Likewise.
52971 * Makefile.in (COMMON_DISTFILES): Removed.
52972 (BOOT_DISTFILES): Likewise.
52973 (CONF_DISTFILES): Likewise.
52974 (DISK_DISTFILES): Likewise.
52975 (FS_DISTFILES): Likewise.
52976 (INCLUDE_DISTFILES): Likewise.
52977 (KERN_DISTFILES): Likewise.
52978 (LOADER_DISTFILES): Likewise.
52979 (TERM_DISTFILES): Likewise.
52980 (UTIL_DISTFILES): Likewise.
52981 (DISTFILES): Likewise.
52982 (uninstall): Uninstall files in $(pkgdata_DATA).
52983 (DISTLIST): New target.
52984 (distdir): Use the contents of the file DISTLIST to get a list of
52987 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52989 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52990 descriptor. This is ported from GRUB Legacy.
52992 * gencmdlist.sh: Added an extra semicolon to make it work with
52993 old sed versions. Reported by Robert Bihlmeyer
52994 <robbe@orcus.priv.at>.
52996 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52998 Automatic loading of commands is supported.
53000 * normal/main.c (read_command_list): New function.
53001 (grub_normal_execute): Call read_command_list.
53003 * normal/command.c (grub_register_command): Return zero or CMD.
53004 Allocate CMD->NAME from the heap.
53005 Initialize CMD->MODULE_NAME to zero.
53006 Find the same name as well. If the same command is found and it is
53007 a dummy command, overwrite members. If it is not a dummy command,
53009 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53010 (grub_command_find): If a dummy command is found, load a module
53011 and retry to find a command only once.
53013 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53014 make sure that each command is loaded.
53016 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53018 (struct grub_command): Remove const from the member `name'.
53019 Add a new member `module_name'.
53020 (grub_register_command): Return grub_command_t.
53022 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53023 sure that each command is loaded.
53025 * genmk.rb (PModule::rule): Specify a module name without the
53026 suffix ".mod" to gencmdlist.sh.
53028 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53030 * gencmdlist.sh: New file.
53032 * genmk.rb (PModule::rule): Generate a rule for a command list.
53034 Generate command.lst from $(COMMANDFILES).
53036 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53037 (DATA): Added $(pkgdata_DATA).
53038 (install-local): Install files in $(pkgdata_DATA).
53040 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53042 * term/i386/pc/vga.c (debug_command): Removed.
53043 (GRUB_MOD_INIT): Do not register the command "debug".
53045 From Hollis Blanchard:
53046 * commands/configfile.c: New file.
53047 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53048 commands/configfile.c.
53049 (pkgdata_MODULES): Added configfile.mod.
53050 (configfile_mod_SOURCES): New variable.
53051 (configfile_mod_CFLAGS): Likewise.
53052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53053 commands/configfile.c.
53054 (pkgdata_MODULES): Added configfile.mod.
53055 (configfile_mod_SOURCES): New variable.
53056 (configfile_mod_CFLAGS): Likewise.
53057 * util/grub-emu.c (main): Call grub_configfile_init and
53058 grub_configfile_fini.
53059 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53061 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53063 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53065 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53068 * commands/help.c (grub_cmd_help): Do not print newlines after
53069 the last command in print_command_help.
53071 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53073 * commands/default.h: New file.
53074 * commands/timeout.h: Likewise.
53075 * normal/context.c: Likewise.
53077 * util/misc.c: Do not include sys/times.h.
53078 Include sys/time.h and grub/machine/time.h.
53079 (grub_get_rtc): Rewritten with gettimeofday.
53081 * util/grub-emu.c (main): Call grub_default_init and
53082 grub_timeout_init before grub_normal_init, and call
53083 grub_timeout_fini and grub_default_fini after grub_main.
53085 * util/console.c (grub_ncurses_checkkey): Return the read
53088 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53091 * normal/main.c (read_config_file): Push MENU. If this fails,
53092 print an error and wait for a user input.
53093 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53094 If a menu is empty or an error occurs, pop MENU.
53095 (grub_normal_execute): Pop and free MENU after grub_menu_run
53098 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53100 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53102 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53104 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53106 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53109 * include/grub/normal.h (struct grub_menu_list): New struct.
53110 (grub_menu_list_t): New type.
53111 (struct grub_context): New struct.
53112 (grub_context_t): New type.
53113 (grub_register_command): Got rid of EXPORT_FUNC.
53114 (grub_unregister_command): Likewise.
53115 (grub_context_get): New prototype.
53116 (grub_context_get_current_menu): Likewise.
53117 (grub_context_push_menu): Likewise.
53118 (grub_context_pop_menu): Likewise.
53119 [GRUB_UTIL] (grub_default_init): Likewise.
53120 [GRUB_UTIL] (grub_default_fini): Likewise.
53121 [GRUB_UTIL] (grub_timeout_init): Likewise.
53122 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53124 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53125 commands/timeout.c and normal/context.c.
53126 (pkgdata_MODULES): Added default.mod and timeout.mod.
53127 (normal_mod_SOURCES): Added normal/context.c.
53128 (default_mod_SOURCES): New variable.
53129 (default_mod_CFLAGS): Likewise.
53130 (timeout_mod_SOURCES): Likewise.
53131 (timeout_mod_CFLAGS): Likewise.
53132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53134 (pkgdata_MODULES): Added default.mod and timeout.mod.
53135 (normal_mod_SOURCES): Added normal/context.c.
53136 (default_mod_SOURCES): New variable.
53137 (default_mod_CFLAGS): Likewise.
53138 (timeout_mod_SOURCES): Likewise.
53139 (timeout_mod_CFLAGS): Likewise.
53141 * Makefile.in (all-local): Added $(MKFILES).
53143 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53145 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53146 (grub_emu_SOURCES): Likewise.
53147 (pkgdata_MODULES): Add `sun.mod'.
53148 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53149 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53151 (pkgdata_MODULES): Add `sun.mod'.
53152 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53153 * include/grub/partition.h (grub_sun_partition_map_init): New
53155 (grub_sun_partition_map_fini): Likewise.
53156 * partmap/sun.c: New file.
53157 * util/grub-emu.c (main): Initialize and de-initialize the sun
53158 partitionmap support.
53160 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53162 This implements an Emacs-like menu entry editor.
53164 * normal/menu_entry.c: New file.
53166 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53167 characters to ASCII.
53168 (saved_char): New variable.
53169 (grub_ncurses_checkkey): Rewritten completely.
53170 (grub_ncurses_getkey): Likewise.
53171 (grub_ncurses_init): Call raw instead of cbreak.
53173 * normal/menu.c (print_entry): Do not put a space.
53174 (init_page): Renamed to ...
53175 (grub_menu_init_page): ... this. All callers changed.
53176 (edit_menu_entry): Removed.
53177 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53179 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53181 * kern/misc.c (grub_vprintf): Call grub_refresh.
53183 * normal/menu.c (DISP_LEFT): Renamed to ...
53184 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53185 * normal/menu.c (DISP_UP): Renamed to ...
53186 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53187 * normal/menu.c (DISP_RIGHT): Renamed to ...
53188 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53189 * normal/menu.c (DISP_DOWN): Renamed to ...
53190 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53191 * normal/menu.c (DISP_HLINE): Renamed to ...
53192 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53193 * normal/menu.c (DISP_VLINE): Renamed to ...
53194 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53195 * normal/menu.c (DISP_UL): Renamed to ...
53196 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53197 * normal/menu.c (DISP_UR): Renamed to ...
53198 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53199 * normal/menu.c (DISP_LL): Renamed to ...
53200 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53201 * normal/menu.c (DISP_LR): Renamed to ...
53202 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53203 * normal/menu.c (TERM_WIDTH): Renamed to ...
53204 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53205 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53206 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53207 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53208 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53209 * normal/menu.c (TERM_MARGIN): Renamed to ...
53210 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53211 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53212 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53213 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53214 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53215 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53216 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53217 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53218 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53219 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53220 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53221 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53222 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53223 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53224 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53225 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53226 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53227 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53228 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53229 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53230 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53231 All callers changed.
53233 * include/grub/normal.h: New prototype.
53235 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53236 normal/menu_entry.c.
53237 (normal_mod_SOURCES): Likewise.
53238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53239 (normal_mod_SOURCES): Likewise.
53241 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53243 * include/grub/normal.h (grub_halt_init): New prototype.
53244 (grub_halt_fini): Likewise.
53245 (grub_reboot_init): Likewise.
53246 (grub_reboot_fini): Likewise.
53248 * util/grub-emu.c: Include signal.h.
53249 (main_env): New global variable.
53250 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53252 (grub_machine_fini): New function.
53253 (main): Call grub_halt_init and grub_reboot_init before
53254 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53255 Call setjmp with MAIN_ENV to go back afterwards.
53256 Call grub_machine_fini right before return.
53258 * include/grub/util/misc.h: Include setjmp.h.
53259 (main_env): New prototype.
53261 * include/grub/kernel.h (grub_machine_fini): New prototype.
53262 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53263 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53265 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53266 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53267 * term/i386/pc/console.c (grub_console_fini): Likewise.
53269 * util/i386/pc/misc.c: New file.
53271 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53272 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53273 commands/i386/pc/reboot.c.
53275 2005-02-14 Guillem Jover <guillem@hadrons.org>
53277 * include/grub/dl.h (grub_dl_check_header): New prototype.
53278 (grub_arch_dl_check_header): Change return type to grub_err_t,
53279 remove size parameter and export function. Update all callers.
53280 * kern/dl.c (grub_dl_check_header): New function.
53281 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53282 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53283 are inside the core.
53284 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53285 independent ELF header checks.
53286 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53287 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53288 `grub_dl_check_header' instead of explicit checks. Check for the
53290 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53291 `grub_dl_check_header' instead of explicit checks. Remove arch
53292 specific ELF header checks.
53294 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53297 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53299 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53300 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53302 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53304 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53305 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53306 (part_map_iterate): Clear `grub_errno' and return 0 if
53307 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53308 * partmap/amiga.c (amiga_partition_map_iterate): Return
53309 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53310 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53312 2005-02-01 Guillem Jover <guillem@hadrons.org>
53314 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53317 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53319 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53321 (grub_rescue_cmd_linux): New prototype.
53322 (grub_rescue_cmd_initrd): Likewise.
53323 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53325 (grub_linux_release_mem): Release the memory for the initrd.
53326 (grub_load_linux): Renamed from this...
53327 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53328 Changed `entry' not to be static. Loop over memory regions to
53329 find another one when the default fails.
53330 (grub_rescue_cmd_initrd): New function.
53331 (grub_linux_init): Remove function.
53332 (grub_linux_fini): Likewise.
53333 (GRUB_MOD_INIT): Register `initrd'.
53334 (GRUB_MOD_FINI): Unregister `initrd'.
53335 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53337 (grub_linux_normal_fini): Likewise.
53338 (GRUB_MOD_INIT): Register `initrd'.
53339 (GRUB_MOD_FINI): Unregister `initrd'.
53341 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53343 * commands/help.c: New file.
53344 * normal/arg.c (show_help): Renamed to...
53345 (grub_arg_show_help): ... this.
53346 * commands/i386/pc/halt.c: New file.
53347 * commands/i386/pc/reboot.c: Likewise.
53348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53349 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53350 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53351 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53355 (pkgdata_MODULES): Add `help.mod'.
53356 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53357 * grub/i386/pc/init.h (grub_reboot): New prototype.
53358 (grub_halt): Likewise.
53359 * include/grub/normal.h (grub_arg_show_help): New prototype.
53360 (grub_help_init): Likewise.
53361 (grub_help_fini): Likewise.
53362 * util/grub-emu.c (main): Initialize and deinitialize the help
53365 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53367 * normal/command.c (grub_command_init): Fixed the description of
53368 the `set' and `unset' commands.
53370 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53372 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53374 * commands/ieee1275/halt.c: New file.
53375 * commands/ieee1275/reboot.c: Likewise.
53376 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53377 `__attribute__ ((unused))'. Some GCS related fixed.
53378 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53379 (grub_suspend_fini): Likewise.
53380 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53382 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53383 (halt_mod_CFLAGS): New variables.
53384 * include/grub/powerpc/ieee1275/ieee1275.h
53385 (grub_ieee1275_interpret): New prototype.
53387 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53389 * include/grub/misc.h (memmove): New prototype.
53390 (memcpy): Likewise.
53392 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53394 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53395 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53397 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53399 * kern/misc.c (grub_strndup): Function rewritten.
53401 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53403 * normal/menu.c (TERM_WIDTH): Macro redefined.
53404 (TERM_TOP_BORDER_Y): Likewise.
53405 (draw_border): Replaced while-loop by a for-loop. Make the number
53406 of lines consistent with the number of lines displayed in
53407 print_entries. Added a margin below the rectangle.
53408 (print_entry): Make the entry fit in the rectangle.
53409 (print_entries): Display the scroll arrows next to the right
53412 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53414 * fs/minix.c (grub_minix_find_file): Reserve more space for
53415 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53416 `grub_strncpy' to copy `path' into it.
53418 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53420 Add the loopback device, a device via which files can be accessed
53423 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53424 (pkgdata_MODULES): Add loopback.mod.
53425 (loopback_mod_SOURCES): New variable.
53426 (loopback_mod_CFLAGS): Likewise.
53427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53429 (pkgdata_MODULES): Add loopback.mod.
53430 (loopback_mod_SOURCES): New variable.
53431 (loopback_mod_CFLAGS): Likewise.
53432 * disk/loopback.c: new file.
53433 * include/grub/normal.h (grub_loop_init): New prototype.
53434 (grub_loop_fini): New prototype.
53435 * util/grub-emu.c (main): Initialize and de-initialize loopback
53437 * include/grub/disk.h (grub_disk_dev_id): Add
53438 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53440 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53442 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53444 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53445 (suspend_mod_SOURCES): New variable.
53446 (suspend_mod_CFLAGS): Likewise.
53447 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53449 * commands/ieee1275/suspend.c: New file.
53451 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53453 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53454 ((unused))' to `__attribute__ ((used))'.
53455 (GRUB_MOD_FINI): Likewise.
53456 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53457 * genmk.rb (PModule): Assign space to common symbols when linking
53460 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53462 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53463 `unsigned' arguments to `grub_size_t'.
53464 (grub_malloc): Likewise.
53465 (grub_realloc): Likewise.
53466 (grub_memalign): Likewise.
53467 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53468 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53469 * util/misc.c (grub_malloc): Likewise.
53470 (grub_realloc): Likewise.
53471 * kern/mm.c (get_header_from_pointer): Change the casts to
53472 `unsigned' into a cast to `grub_size_t'.
53474 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53475 point to `currnode' when `currnode' is changed.
53477 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53478 Schottelius <nico-linux@schottelius.org>.
53480 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53482 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53483 (note_path): Remove variable.
53484 (GRUB_IEEE1275_NOTE_NAME): New macro.
53485 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53486 (grub_ieee1275_note_hdr): New structure.
53487 (grub_ieee1275_note_desc): Likewise.
53488 (grub_ieee1275_note): Likewise.
53489 (load_note): Remove `dir' argument. All callers updated. Remove
53490 `note_img' and `path'. Do not load a file from `note_path'.
53491 Initialize a struct grub_ieee1275_note and write that to `out'.
53492 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53494 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53496 * util/misc.c (grub_util_read_image): Revert last change. It
53497 called `grub_util_read_at', which seeks from the beginning of the
53500 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53502 * TODO: Add note about endianness in grub-mkimage.
53503 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53505 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53506 (grub_mkimage_SOURCES): New target.
53507 * include/grub/kernel.h (grub_start_addr): Remove variable.
53508 (grub_end_addr): Likewise.
53509 (grub_total_module_size): Likewise.
53510 (grub_kernel_image_size): Likewise.
53511 (GRUB_MODULE_MAGIC): New constant.
53512 (grub_module_info): New structure.
53513 (grub_arch_modules_addr): New prototype.
53514 (grub_get_end_addr): Remove prototype.
53515 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53516 * include/grub/powerpc/ieee1275/kernel.h: New file.
53517 * include/grub/util/misc.h (grub_util_get_fp_size): New
53519 (grub_util_read_at): Likewise.
53520 (grub_util_write_image_at): Likewise.
53521 * kern/main.c (grub_get_end_addr): Remove function.
53522 (grub_load_modules): Call grub_arch_modules_addr instead of using
53523 grub_end_addr. Look for a grub_module_info struct in memory. Use
53524 the grub_module_info fields instead of calling grub_get_end_addr
53525 as loop conditions. Move grub_add_unused_region code here.
53526 (grub_add_unused_region): Remove function.
53527 * kern/i386/pc/init.c: Include grub/cache.h.
53528 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53529 one call to add_mem_region.
53530 (grub_arch_modules_addr): New function.
53531 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53532 (grub_total_module_size): Likewise.
53533 Include grub/machine/kernel.h.
53534 (grub_arch_modules_addr): New function.
53535 * util/grub-emu.c (grub_end_addr): Remove variable.
53536 (grub_total_module_size): Likewise.
53537 (grub_arch_modules_addr): New function.
53538 * util/misc.c: Include unistd.h.
53539 (grub_util_get_fp_size): New function.
53540 (grub_util_read_at): Likewise.
53541 (grub_util_write_image_at): Likewise.
53542 (grub_util_read_image): Call grub_util_read_at.
53543 (grub_util_write_image): Call grub_util_write_image_at.
53544 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53545 additional memory in kernel_img for a struct grub_module_info.
53546 Fill in that grub_module_info.
53547 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53549 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53551 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53553 * include/grub/powerpc/ieee1275/ieee1275.h
53554 (grub_ieee1275_milliseconds): New prototype.
53555 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53557 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53558 grub_ieee1275_milliseconds.
53560 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53562 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53564 (find_options): New function.
53565 (cmain): Call find_options.
53566 * include/grub/powerpc/ieee1275/ieee1275.h
53567 (grub_ieee1275_realmode): New extern variable.
53568 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53569 grub_map if grub_ieee1275_realmode is false.
53571 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53573 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53574 lines are inserted and make it work like readline. Reported by
53575 Vincent Pelletier <subdino2004@yahoo.fr>.
53577 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53579 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53582 `kern/powerpc/cache.S'.
53584 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53586 * genmk.rb: Handle the `Program' class in the main loop. Written
53587 by Johan Rydberg <jrydberg@gnu.org>.
53588 (Program): New class.
53589 (programs): New variable.
53590 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53591 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53592 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53593 (help_arch): Function removed.
53594 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53595 `powerpc/libgcc.h' and `loader.h'.
53596 (pkgdata_PROGRAMS): New variable.
53597 (sbin_UTILITIES): Variable removed.
53598 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53599 (grubof_SOURCES): Variable re-defined so it only includes the
53600 core functionality.
53601 (grubof_CFLAGS): Remove `-DGRUBOF'.
53602 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53603 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53604 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53605 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53606 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53607 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53608 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53609 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53610 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53611 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53612 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53613 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53614 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53615 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53616 (pc_mod_CFLAGS): New variables.
53617 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53618 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53619 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53620 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53622 * include/grub/i386/pc/init.h (grub_os_area_addr)
53623 (rub_os_area_size): ... to here.
53624 * include/grub/powerpc/ieee1275/ieee1275.h
53625 (grub_ieee1275_entry_fn): Export symbol.
53626 * include/grub/powerpc/ieee1275/init.h: New file.
53627 * include/grub/powerpc/libgcc.h: Likewise.
53628 * include/grub/cache.h: Likewise.
53629 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53630 <hollis@penguinppc.org>.
53631 * kern/dl.c: Include <grub/cache.h>.
53632 (grub_dl_flush_cache): New function.
53633 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53635 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53636 (grub_console_init): Removed prototypes.
53637 (grub_machine_init): Don't initialize the modules anymore.
53638 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53640 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53641 Macro undef removed.
53642 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53643 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53644 relocation `R_PPC_REL32'. Return an error when the relocation is
53646 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53647 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53648 * util/misc.c (grub_arch_sync_caches): Likewise.
53650 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53652 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53653 `symlist.c', add `grubof_symlist.c'.
53654 (symlist.c): Variable removed.
53655 (grubof_HEADERS): Variable added.
53656 (grubof_symlist.c): New target.
53657 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53658 `kernel_img_HEADERS'.
53659 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53660 * kern/powerpc/dl.c: New file.
53661 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53663 (grub_arch_dl_relocate_symbols): Likewise.
53664 (grub_register_exported_symbols): Likewise.
53666 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53668 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53669 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53670 to fail instead. Reported by Vincent Pelletier
53671 <subdino2004@yahoo.fr>.
53673 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53674 it is not allocated. Reported by Vincent Pelletier
53675 <subdino2004@yahoo.fr>.
53677 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53678 output so the output looks better.
53680 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53682 Modulize the partition map support and add support for the amiga
53685 * commands/ls.c: Include <grub/partition.h> instead of
53686 <grub/machine/partition.h>.
53687 * kern/disk.c: Likewise.
53688 * kern/rescue.c: Likewise.
53689 * loader/i386/pc/chainloader.c: Likewise.
53690 * normal/cmdline.c: Likewise.
53691 * kern/powerpc/ieee1275/init.c: Likewise.
53692 (grub_machine_init): Call `grub_pc_partition_map_init',
53693 `grub_amiga_partition_map_init' and
53694 `grub_apple_partition_map_init'.
53695 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53696 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53697 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53698 `partition.h' and `pc_partition.h'.
53699 (grub_setup_SOURCES): Remove
53700 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53701 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53702 (grub_emu_SOURCES): Likewise.
53703 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53704 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53705 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53707 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53708 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53709 (grubof_SOURCES): Likewise.
53710 * disk/i386/pc/partition.c: File removed.
53711 * disk/powerpc/ieee1275/partition.c: Likewise.
53712 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53713 * include/grub/i386/pc/partition.h: Likewise.
53714 * kern/partition.c: New file.
53715 * partmap/amiga.c: Likewise.
53716 * partmap/apple.c: Likewise.
53717 * partmap/pc.c: Likewise.
53718 * include/grub/partition.h: Likewise..
53719 * include/grub/pc_partition.h: Likewise.
53720 * util/grub-emu.c: Include <grub/partition.h> instead of
53721 <grub/machine/partition.h>.
53722 (main): Call `grub_pc_partition_map_init',
53723 `grub_amiga_partition_map_init' and
53724 `grub_apple_partition_map_init' and deinitialize afterwards.
53725 * util/i386/pc/biosdisk.c: Include `#include
53726 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53727 `<grub/machine/partition.h>'.
53728 * util/i386/pc/grub-setup.c: Likewise.
53729 * util/i386/pc/biosdisk.c: Likewise.
53730 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53731 partition information in case of a PC partition.
53732 * util/i386/pc/grub-setup.c: Include `#include
53733 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53734 `<grub/machine/partition.h>'.
53735 (setup): Only access the PC specific partition information in case
53738 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53740 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53741 (grub_longjmp): Likewise.
53742 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53744 * normal/powerpc/setjmp.S: New file.
53745 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53746 `normal/powerpc/setjmp.S'.
53747 (grubof_CFLAGS): Add `-DGRUBOF'.
53748 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53749 [GRUB_UTIL && !GRUBOF].
53751 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53753 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53754 property named `name'. Correctly handle the error returned by
53755 `grub_ieee1275_finddevice' if a device can not be opened.
53757 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53759 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53760 `actual' for negativity.
53761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53764 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53766 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53767 (PAGE_OFFSET): New macro.
53768 (CRTC_ADDR_PORT): Likewise.
53769 (CRTC_DATA_PORT): Likewise.
53770 (START_ADDR_HIGH_REGISTER): Likewise.
53771 (START_ADDR_LOW_REGISTER): Likewise.
53772 (GRAPHICS_ADDR_PORT): Likewise.
53773 (GRAPHICS_DATA_PORT): Likewise.
53774 (READ_MAP_REGISTER): Likewise.
53775 (INPUT_STATUS1_REGISTER): Likewise.
53776 (INPUT_STATUS1_VERTR_BIT): Likewise.
53777 (page): New variable.
53778 (wait_vretrace): New function.
53779 (set_read_map): Likewise.
53780 (set_start_address): Likewise.
53781 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53783 (check_vga_mem): Take the page into account.
53784 (write_char): Likewise.
53785 (write_cursor): Likewise.
53786 (scroll_up): Likewise. Copy the page to the page that is not
53787 shown and switch between both pages.
53788 (grub_vga_putchar): Fix off by one error.
53789 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53792 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53794 Add support for iso9660 (including rockridge).
53796 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53797 (iso9660_mod_SOURCES): New variable.
53798 (iso9660_mod_CFLAGS): Likewise.
53799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53800 * include/grub/fs.h (grub_iso9660_init): New prototype.
53801 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53802 * fs/iso9660.c: New file.
53804 * include/grub/misc.h (grub_strncat): New prototype.
53805 * kern/misc.c (grub_strncat): New function.
53807 * fs/hfs.c (grub_hfs_mount): Translate the error
53808 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53809 * fs/jfs.c (grub_jfs_mount): Likewise.
53810 * fs/ufs.c (grub_ufs_mount): Likewise.
53812 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53814 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53815 which initialized BAT registers.
53816 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53817 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53819 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53820 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53822 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53823 (grub_mapclaim): Likewise.
53824 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53825 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53828 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53830 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53831 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53832 -ffreestanding and -msoft-float.
53834 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53836 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53837 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53838 set in grub_ieee1275_flags.
53840 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53842 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53844 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53845 grub_console_init first.
53846 Change the memory range used for grub_ieee1275_claim and
53847 grub_mm_init_region.
53848 Print an error message if the claim fails.
53849 Include <grub/misc.h>.
53851 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53853 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53854 Call grub_children_iterate for device nodes of type `scsi',
53856 (grub_ofdisk_open): Remove manual device alias resolution.
53857 Fix memory leak when device cannot be opened.
53858 * include/grub/powerpc/ieee1275/ieee1275.h
53859 (grub_children_iterate): New prototype.
53860 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53862 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53863 Return -1 if args.size was -1.
53865 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53867 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53868 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53869 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53870 Open Firmware's memory for it; claim memory from _start to _end.
53871 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53872 (_end): New extern.
53873 (_start): Zero BSS from __bss_start to _end.
53874 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53876 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53878 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53880 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53881 -1 if args.base was -1.
53883 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53885 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53886 escape sequence instead of a literal ^L. Also call
53887 grub_ofconsole_gotoxy.
53889 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53892 void * arguments to grub_addr_t. All callers updated. Also make
53893 the `result' argument optional.
53894 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53895 All callers updated.
53897 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53899 * commands/ls.c (grub_ls_list_files): Use the string following the
53900 initial ')', if present, as the filesystem path.
53901 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53903 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53905 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53907 Make the source code of the menu interface more readable.
53909 * normal/menu.c: Include grub/mm.h.
53910 (TERM_WIDTH): New macro.
53911 (TERM_HEIGHT): Likewise.
53912 (TERM_INFO_HEIGHT): Likewise.
53913 (TERM_MARGIN): Likewise.
53914 (TERM_SCROLL_WIDTH): Likewise.
53915 (TERM_TOP_BORDER_Y): Likewise.
53916 (TERM_LEFT_BORDER_X): Likewise.
53917 (TERM_BORDER_WIDTH): Likewise.
53918 (TERM_MESSAGE_HEIGHT): Likewise.
53919 (TERM_BORDER_HEIGHT): Likewise.
53920 (TERM_NUM_ENTRIES): Likewise.
53921 (TERM_FIRST_ENTRY_Y): Likewise.
53922 (TERM_ENTRY_WIDTH): Likewise.
53923 (TERM_CURSOR_X): Likewise.
53924 (draw_border): Use macros instead of magic numbers.
53925 (print_entry): Likewise.
53926 (print_entries): Likewise.
53927 (run_menu): Likewise. Also, handle the key 'e'.
53928 (run_menu_entry): Ignore empty command lines.
53929 (print_message): Added a new argument EDIT. If EDIT is true,
53930 print a different message.
53931 (init_page): Likewise.
53932 (edit_menu_entry): New function. Not implemented yet.
53934 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53936 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53937 can be loaded from normal mode.
53939 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53941 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53942 (multiboot_mod_CFLAGS): New variables.
53943 * loader/i386/pc/linux_normal.c: New file.
53944 * loader/i386/pc/multiboot_normal.c: Likewise.
53946 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53947 attribute `unused'.
53949 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53950 `fdiro' to read the mode information from instead of `diro'.
53952 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53953 looking up a symlink.
53955 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53957 * normal/command.c (grub_command_execute): Don't parse the
53958 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53959 flags of the command.
53961 * normal/menu.c (grub_menu_run): Fix typo.
53963 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53965 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53967 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53968 `y + 1' instead of `y - 1'.
53970 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53972 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53974 From Hollis Blanchard <hollis@penguinppc.org>:
53975 * kern/misc.c (memmove): New alias for grub_memmove.
53976 (memcmp): New alias for grub_memcmp.
53977 (memset): New alias for grub_memset.
53978 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53979 Change "int handle" to "grub_ieee1275_phandle_t handle".
53980 * include/grub/powerpc/ieee1275/ieee1275.h
53981 (grub_ieee1275_get_property): Likewise.
53983 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53985 Added normal mode command `chainloader' as module chain.mod, which
53986 depends on normal.mod and _chain.mod.
53988 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53989 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53990 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53992 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53993 but arguments parsing moved to ...
53994 (grub_chainloader_cmd): ... here. New function.
53995 * include/grub/i386/pc/chainloader.h: New file.
53996 * loader/i386/pc/chainloader_normal.c: Likewise.
53998 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54000 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54001 (grub_mkimage_LDFLAGS): Likewise.
54002 (grub_emu_SOURCES): Likewise.
54003 (kernel_img_HEADERS): Added fshelp.h.
54004 * fs/ext2.c: Include <grub/fshelp.h>.
54005 (FILETYPE_REG): New macro.
54006 (FILETYPE_INO_REG): Likewise.
54007 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54009 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54011 (grub_fshelp_node): New struct.
54012 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54014 (grub_ext2_get_file_block): Removed function.
54015 (grub_ext2_read_block): New function.
54016 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54017 This function was written.
54018 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54019 (grub_ext2_find_file): Removed function.
54020 (grub_ext2_read_symlink): New function.
54021 (grub_ext2_iterate_dir): Likewise.
54022 (grub_ext2_open): Rewritten.
54023 (grub_ext2_dir): Rewritten.
54024 * include/grub/fshelp.h: New file.
54025 * fs/fshelp.c: Likewise.
54027 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54029 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54030 (print_message): Add a missing newline.
54031 (run_menu): Added timeout support.
54032 (run_menu_entry): New local function.
54033 (grub_menu_run): Added support for booting.
54035 * kern/loader.c (grub_loader_is_loaded): New function.
54037 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54038 (grub_get_rtc): Exported.
54040 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54041 (grub_get_rtc): Exported.
54043 * include/grub/normal.h (struct grub_command_list): Remove
54044 constant from the member `command'.
54046 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54048 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54050 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54052 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54054 Add support for the JFS filesystem.
54056 * fs/jfs.c: New file.
54057 * include/grub/fs.h (grub_jfs_init): New prototype.
54058 (grub_jfs_fini): New prototype.
54059 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54060 (grub_emu_SOURCES): Likewise.
54061 (pkgdata_MODULES): Add jfs.mod.
54062 (jfs_mod_SOURCES): New variable.
54063 (jfs_mod_CFLAGS): Likewise.
54064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54065 (grubof_SOURCES): Likewise.
54066 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54068 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54069 endian to the host endian.
54070 (grub_fat_utf16_to_utf8): Move function from there...
54071 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54072 the endianness of the source string anymore.
54073 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54075 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54077 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54078 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54079 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54080 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54082 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54083 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54084 for `node_found' and `it_dir'.
54085 (grub_hfs_dir): Add prototype for `dir_hook'.
54087 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54088 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54089 and `indir32' to silence a gcc warning.
54091 * include/grub/fs.h (grub_hfs_init): New prototype.
54092 (grub_hfs_fini): Likewise.
54095 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54097 Each disk device has its own id now. This is useful to make use
54098 of multiple disk devices.
54100 * include/grub/disk.h (grub_disk_dev_id): New enum.
54101 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54102 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54104 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54105 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54107 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54108 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54110 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54111 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54113 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54114 "id" which is used by the cache manager.
54116 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54119 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54121 * fs/hfs.c: New file.
54122 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54123 (grub_emu_SOURCES): Likewise.
54124 (pkgdata_MODULES): Add hfs.mod.
54125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54126 (grubof_SOURCES): Likewise.
54127 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54129 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54130 * kern/misc.c (grub_strncasecmp): Add function.
54132 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54134 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54137 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54138 (grub_ext2_dir): In case the directory entry type is unknown, read
54141 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54143 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54144 grub_load_linux instead of grub_rescue_cmd_linux as second
54145 argument of grub_rescue_register_command.
54147 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54149 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54151 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54153 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54154 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54155 `loader/powerpc/ieee1275/linux.c',
54156 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54157 * include/grub/powerpc/ieee1275/ieee1275.h
54158 (grub_ieee1275_release): New prototype.
54159 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54160 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54161 normal, boot, linux and linux_normal.
54162 * loader/powerpc/ieee1275/linux.c: New file.
54163 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54165 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54167 * normal/arg.c (grub_arg_parse): Correct error handling after
54168 reallocating the argumentlist (check if `argl' is not null instead
54169 of checking if `args' is not null).
54170 * kern/mm.c (grub_realloc): Return the same pointer when using the
54171 same region, instead of returning the header address.
54173 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54175 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54176 one block instead of two when looking for the initial partition.
54177 (grub_partition_probe): Initialize the local variable `p' with 0.
54178 Use base 10 for the grub_strtoul call.
54179 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54180 need for one local variable.
54181 (grub_strtoul): Don't add the new value to `num', instead of that
54184 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54186 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54187 (pxeboot_img_SOURCES): New variable.
54188 (pxeboot_img_ASFLAGS): Likewise.
54189 (pxeboot_img_LDFLAGS): Likewise.
54190 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54191 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54192 <lode_leroy@hotmail.com>.
54194 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54196 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54197 there was no input.
54199 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54201 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54202 the history buffer logic.
54204 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54206 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54207 (FILETYPE_INO_SYMLINK): New macros.
54208 (grub_ext2_find_file): Check if the node is a directory using the
54209 inode stat information instead of using the filetype in the
54210 dirent. Exclude the first character of an absolute symlink.
54211 (grub_ext2_dir): Mask out the filetype part of the mode member of
54214 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54216 Add support for UFS version 1 and 2. Add support for the minix
54217 filesystem version 1 and 2, both the variants with 14 and 30 long
54220 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54222 (grub_emu_SOURCES): Likewise.
54223 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54224 (ufs_mod_SOURCES): New variable.
54225 (ufs_mod_CFLAGS): Likewise.
54226 (minix_mod_SOURCES): Likewise.
54227 (minix_mod_CFLAGS): Likewise.
54228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54230 (grubof_SOURCES): Likewise.
54231 * fs/ufs.c: New file.
54232 * fs/minix.c: New file.
54233 * include/grub/fs.h (grub_ufs_init): New prototype.
54234 (grub_ufs_fini): Likewise.
54235 (grub_minix_init): Likewise.
54236 (grub_minix_fini): Likewise.
54237 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54240 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54243 commands/ls.c, commands/terminal.c, commands/boot.c,
54244 commands/cmp.c and commands/cat.c.
54245 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54247 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54250 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54252 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54253 and grub_, respectively. Because the conversion is trivial and
54254 mechanical, I omit the details here. Please refer to the CVS
54255 if you need more information.
54257 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54259 * include/pupa: Renamed to ...
54260 * include/grub: ... this.
54261 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54262 * util/i386/pc/grub-mkimage.c: ... this.
54263 * util/i386/pc/pupa-setup.c: Renamed to ...
54264 * util/i386/pc/grub-setup.c: ... this.
54265 * util/pupa-emu.c: Renamed to ...
54266 * util/grub-emu.c: ... this.
54268 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54270 Add support for the newworld apple macintosh (PPC). This has been
54271 tested on the powerbook 2000 only. It only adds support for
54272 generic ieee1275 functions, console and disk support. This should
54273 be easy to port to other architectures with support for Open
54276 * configure.ac: Accept the powerpc as host_cpu. In the case of
54277 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54278 specific tests are only executed while building for the i386.
54279 Inverse test for crosscompile.
54280 * genmk.rb (Utility): Allow assembler files.
54281 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54282 * conf/powerpc-ieee1275.rmk: New file.
54283 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54284 * disk/powerpc/ieee1275/partition.c: Likewise.
54285 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54286 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54287 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54288 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54289 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54290 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54291 * include/pupa/powerpc/ieee1275/loader.h
54292 * include/pupa/powerpc/setjmp.h: Likewise.
54293 * include/pupa/powerpc/types.h: Likewise.
54294 * kern/powerpc/ieee1275/init.c: Likewise.
54295 * kern/powerpc/ieee1275/openfw.c: Likewise.
54296 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54298 These files were written by Johan Rydberg
54299 (jrydberg@night.trouble.net) and I only modified them slightly.
54301 * boot/powerpc/ieee1275/cmain.c: New file.
54302 * boot/powerpc/ieee1275/crt0.S: Likewise.
54303 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54304 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54306 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54308 * Makefile.in: Update copyright.
54309 * genmodsrc.sh: Likewise.
54310 * gensymlist.sh: Likewise.
54311 * term/i386/pc/vga.c: Indent correctly.
54313 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54314 bugreporting address.
54315 * util/i386/pc/pupa-setup.c (usage): Likewise,
54316 (main): Call pupa_ext2_init and pupa_ext2_fini.
54318 * fs/fat.c (log2): Renamed to ...
54319 (fat_log2): ... this.
54320 All callers changed.
54321 * kern/misc.c (memcpy): Alias to pupa_memmove.
54322 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54324 * util/console.c (pupa_ncurses_fini): Return 0.
54326 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54327 Move fail label here.
54328 [__GNU__]: Don't warn when using stat.
54329 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54330 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54331 long int. Use strtol instead of strtoul.
54333 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54335 * commands/boot.c: New file.
54336 * commands/cat.c: Likewise.
54337 * commands/cmp.c: Likewise.
54338 * commands/ls.c: Likewise.
54339 * commands/terminal.c: Likewise.
54340 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54341 (pupa_register_command): Changed interface to match the new
54343 (pupa_command_execute): Changed (almost rewritten) so it uses
54344 pupa_split_command. Added support for setting variables using the
54346 (rescue_command): Changed to work with the new argument parser.
54347 (terminal_command): Moved from here to commands/terminal.c.
54348 (set_command): New function.
54349 (unset_command): New function.
54350 (insmod_command): New function.
54351 (rmmod_command): New function.
54352 (lsmod_command): New function.
54353 (pupa_command_init): Don't initialize the command terminal
54354 anymore. Initialize the commands set, unset, insmod, rmmod and
54356 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54357 (kernel_img_HEADERS): Add arg.h and env.h.
54358 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54359 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54360 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54362 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54364 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54365 (boot_mod_SOURCES): New variable.
54366 (terminal_mod_SOURCES): Likewise.
54367 (ls_mod_SOURCES): Likewise.
54368 (cmp_mod_SOURCES): Likewise.
54369 (cat_mod_SOURCES): Likewise.
54371 * normal/arg.c: New file.
54372 * kern/env.c: Likewise.
54373 * include/pupa/arg.h: Likewise.
54374 * include/pupa/env.h: Likewise.
54375 * font/manager.c (font_command): Changed to match argument parsing
54377 (PUPA_MOD_INIT): Likewise.
54378 * hello/hello.c (pupa_cmd_hello): Likewise.
54379 (PUPA_MOD_INIT): Likewise.
54380 * include/pupa/disk.h: Include <pupa/device.h>.
54381 (pupa_print_partinfo): New prototype.
54382 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54383 (pupa_dl_get_prefix): Likewise.
54384 * include/pupa/misc.h: Include <pupa/err.h>.
54385 (pupa_isgraph): New prototype.
54386 (pupa_isdigit): Likewise.
54387 (pupa_split_cmdline): Likewise.
54388 * include/pupa/normal.h: Include <pupa/arg.h>.
54389 (pupa_command): Changed the prototype of the member `func' to
54390 match the argument parsing interface. Added member `options'.
54391 (pupa_register_command): Updated to match function.
54392 (pupa_arg_parse): New prototype.
54393 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54394 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54395 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54396 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54397 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54398 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54399 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54400 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54401 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54402 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54403 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54404 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54405 * kern/disk.c: Include <pupa/file.h>.
54406 (pupa_print_partinfo): New function.
54407 * kern/dl.c: Include <pupa/env.h>.
54408 (pupa_dl_dir): Variable removed.
54409 (pupa_dl_load): Use the environment variable `prefix' instead of
54410 the variable pupa_dl_dir.
54411 (pupa_dl_set_prefix): Function removed.
54412 (pupa_dl_get_prefix): Likewise.
54413 * kern/i386/pc/init.c: Include <pupa/env.h>.
54414 (pupa_machine_init): Use the environment variable `prefix' instead of
54415 using pupa_dl_set_prefix to set the prefix.
54416 * kern/main.c: Include <pupa/env.h>.
54417 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54418 using pupa_dl_get_prefix to get the prefix.
54419 * kern/misc.c: Include <pupa/env.h>.
54420 (pupa_isdigit): New function.
54421 (pupa_isgraph): Likewise.
54422 (pupa_ftoa): Likewise.
54423 (pupa_vsprintf): Added support for printing values of the type
54424 `double'. Make it possible to format variable output when using
54425 formatting like `%1.2%f'.
54426 (pupa_split_cmdline): New function.
54427 * kern/rescue.c: Include <pupa/env.h>.
54428 (next_word): Removed function.
54429 (pupa_rescue_cmd_prefix): Likewise.
54430 (pupa_rescue_cmd_set): New function.
54431 (pupa_rescue_cmd_unset): New function.
54432 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54433 split the command line instead of splitting it here. Added
54434 support for setting variables using the syntax `foo=bar'. Don't
54435 initialize the prefix command anymore. Initialized the set and
54437 * normal/cmdline.c: Include <pupa/env.h>.
54438 (pupa_tab_complete): Added prototypes for print_simple_completion,
54439 print_partition_completion, add_completion, iterate_commands,
54440 iterate_dev, iterate_part and iterate_dir. Moved code to print
54441 partition information from here to kern/disk.c.
54442 (pupa_cmdline_run): Don't check if the function exists anymore.
54443 * normal/main.c: Include <pupa/env.h>.
54444 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54445 instead of using pupa_dl_get_prefix to get the prefix.
54446 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54447 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54449 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54450 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54451 ((unused))' to silence a gcc warning.
54452 (pupa_vga_setcolor): Likewise.
54453 (debug_command): Changed to match argument parsing
54455 * util/pupa-emu.c: Include <pupa/env.h>.
54456 (options): Added 0's for unused fields to silence a gcc warning.
54458 (main): Use the environment variable `prefix' instead of using
54459 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54460 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54463 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54464 * util/misc.c: Include <malloc.h>.
54465 (pupa_malloc): Rewritten so errors are correctly reported.
54466 (pupa_realloc): Likewise.
54467 (pupa_memalign): Likewise.
54468 (pupa_mm_init_region): Declare unused variables with
54469 `__attribute__ ((unused))' to silence a gcc warning.
54470 * normal/i386/setjmp.S: Remove tab at the end of the file to
54471 silence a gcc warning.
54472 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54473 variables with `__attribute__ ((unused))' to silence a gcc
54475 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54476 local variable i unsigned to silence a gcc warning.
54478 * kern/term.c: Include <pupa/misc.h>.
54479 (pupa_more_lines): New variable.
54480 (pupa_more): Likewise.
54481 (pupa_putcode): When the pager is active pause at the end of every
54483 (pupa_set_more): New function.
54484 * include/pupa/term.h (pupa_set_more): New prototype.
54487 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54489 Now this project is GRUB 2 rather than PUPA. The location of
54490 the CVS repository was moved to GRUB's.
54492 * configure.ac: Use bug-grub as the reporting address.
54493 Use GRUB instead of PUPA.
54494 Change the version number to 1.90.
54496 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54498 * genkernsyms.sh: Updated copyright information.
54499 * genmk.rb: Likewise.
54500 * genmodsrc.sh: Likewise.
54501 * gensymlist.sh: Likewise.
54502 * boot/i386/pc/boot.S: Likewise.
54503 * boot/i386/pc/diskboot.S: Likewise.
54504 * disk/i386/pc/biosdisk.c: Likewise.
54505 * disk/i386/pc/partition.c: Likewise.
54506 * font/manager.c: Likewise.
54507 * fs/ext2.c: Likewise.
54508 * fs/fat.c: Likewise.
54509 * include/pupa/boot.h: Likewise.
54510 * include/pupa/device.h: Likewise.
54511 * include/pupa/disk.h: Likewise.
54512 * include/pupa/dl.h: Likewise.
54513 * include/pupa/elf.h: Likewise.
54514 * include/pupa/err.h: Likewise.
54515 * include/pupa/file.h: Likewise.
54516 * include/pupa/font.h: Likewise.
54517 * include/pupa/fs.h: Likewise.
54518 * include/pupa/kernel.h: Likewise.
54519 * include/pupa/loader.h: Likewise.
54520 * include/pupa/misc.h: Likewise.
54521 * include/pupa/mm.h: Likewise.
54522 * include/pupa/net.h: Likewise.
54523 * include/pupa/normal.h: Likewise.
54524 * include/pupa/rescue.h: Likewise.
54525 * include/pupa/setjmp.h: Likewise.
54526 * include/pupa/symbol.h: Likewise.
54527 * include/pupa/term.h: Likewise.
54528 * include/pupa/types.h: Likewise.
54529 * include/pupa/i386/setjmp.h: Likewise.
54530 * include/pupa/i386/types.h: Likewise.
54531 * include/pupa/i386/pc/biosdisk.h: Likewise.
54532 * include/pupa/i386/pc/boot.h: Likewise.
54533 * include/pupa/i386/pc/console.h: Likewise.
54534 * include/pupa/i386/pc/init.h: Likewise.
54535 * include/pupa/i386/pc/kernel.h: Likewise.
54536 * include/pupa/i386/pc/linux.h: Likewise.
54537 * include/pupa/i386/pc/loader.h: Likewise.
54538 * include/pupa/i386/pc/memory.h: Likewise.
54539 * include/pupa/i386/pc/multiboot.h: Likewise.
54540 * include/pupa/i386/pc/partition.h: Likewise.
54541 * include/pupa/i386/pc/time.h: Likewise.
54542 * include/pupa/i386/pc/vga.h: Likewise.
54543 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54544 * include/pupa/util/getroot.h: Likewise.
54545 * include/pupa/util/misc.h: Likewise.
54546 * include/pupa/util/resolve.h: Likewise.
54547 * kern/device.c: Likewise.
54548 * kern/disk.c: Likewise.
54549 * kern/dl.c: Likewise.
54550 * kern/err.c: Likewise.
54551 * kern/file.c: Likewise.
54552 * kern/fs.c: Likewise.
54553 * kern/loader.c: Likewise.
54554 * kern/main.c: Likewise.
54555 * kern/misc.c: Likewise.
54556 * kern/mm.c: Likewise.
54557 * kern/rescue.c: Likewise.
54558 * kern/term.c: Likewise.
54559 * kern/i386/dl.c: Likewise.
54560 * kern/i386/pc/init.c: Likewise.
54561 * kern/i386/pc/lzo1x.S: Likewise.
54562 * kern/i386/pc/startup.S: Likewise.
54563 * loader/i386/pc/chainloader.c: Likewise.
54564 * loader/i386/pc/linux.c: Likewise.
54565 * loader/i386/pc/multiboot.c: Likewise.
54566 * normal/cmdline.c: Likewise.
54567 * normal/command.c: Likewise.
54568 * normal/main.c: Likewise.
54569 * normal/menu.c: Likewise.
54570 * normal/i386/setjmp.S: Likewise.
54571 * term/i386/pc/console.c: Likewise.
54572 * term/i386/pc/vga.c: Likewise.
54573 * util/console.c: Likewise.
54574 * util/genmoddep.c: Likewise.
54575 * util/misc.c: Likewise.
54576 * util/pupa-emu.c: Likewise.
54577 * util/resolve.c: Likewise.
54578 * util/unifont2pff.rb: Likewise.
54579 * util/i386/pc/biosdisk.c: Likewise.
54580 * util/i386/pc/getroot.c: Likewise.
54581 * util/i386/pc/pupa-mkimage.c: Likewise.
54582 * util/i386/pc/pupa-setup.c: Likewise.
54584 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54586 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54587 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54588 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54589 reading and reset it after reading.
54590 (pupa_ext2_close): Return PUPA_ERR_NONE.
54592 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54594 (struct linux_kernel_header): Add kernel_version and
54596 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54597 pupa_file_read succeeds.
54598 (pupa_rescue_cmd_initrd): Implement.
54600 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54602 * fs/ext2.c (pupa_ext2_label): New function.
54603 (pupa_ext2_fs): Added label.
54604 * fs/fat.c (pupa_fat_label): New function.
54605 (pupa_fat_fs): Added label.
54606 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54608 * kern/misc.c (pupa_strndup): New function.
54609 * include/pupa/misc.h (pupa_strndup): New prototype.
54611 * include/pupa/normal.h: Include <pupa/err.h>.
54612 (pupa_set_history): New prototype.
54613 (pupa_iterate_commands): New prototype.
54614 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54615 <pupa/disk.h>, <pupa/file.h>.
54616 (hist_size): New variable.
54617 (hist_lines): Likewise.
54618 (hist_end): Likewise.
54619 (hist_used): Likewise.
54620 (pupa_set_history): New function.
54621 (pupa_history_get): Likewise.
54622 (pupa_history_add): Likewise.
54623 (pupa_history_replace): Likewise.
54624 (pupa_tab_complete): Likewise.
54625 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54626 completion shows partitionnames while completing partitions, this
54627 feature was suggested by Jeff Bailey.
54628 * normal/command.c (pupa_iterate_commands): New function.
54629 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54630 (pupa_normal_init): Initialize history buffer.
54631 (PUPA_MOD_INIT): Likewise.
54632 (pupa_normal_fini): Free the history buffer.
54633 (PUPA_MOD_FINI): Likewise.
54635 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54638 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54639 * configure.ac [i386]: Check for regparam bug.
54640 (NESTED_FUNC_ATTR) [! i386]: Defined.
54642 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54644 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54645 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54646 (pupa_emu_SOURCES): New variable.
54647 (pupa_emu_LDFLAGS): Likewise.
54648 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54649 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54650 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54651 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54652 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54653 (pupa_jmp_buf): New typedef.
54654 (pupa_setjmp) [PUPA_UTIL]: New macro.
54655 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54656 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54657 (pupa_refresh): New prototype.
54658 * include/pupa/util/getroot.h: New file.
54659 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54661 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54662 (pupa_rescue_cmd_cat): Likewise.
54663 (pupa_rescue_cmd_ls): Likewise.
54664 (pupa_rescue_cmd_testload): Likewise.
54665 (pupa_rescue_cmd_lsmod): Likewise.
54666 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54667 * normal/menu.c (run_menu): Likewise.
54668 * kern/term.c (pupa_cls): Likewise.
54669 (pupa_refresh): New function.
54670 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54671 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54672 * util/console.c: New file.
54674 * util/i386/pc/getroot.c: New file.
54675 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54676 (pupa_putchar): New function.
54677 (pupa_refresh): Likewise.
54678 (xgetcwd): Function moved to ...
54679 (strip_extra_slashes): Likewise.
54680 (get_prefix): Likewise.
54681 * util/i386/pc/getroot.c: ... here.
54682 (find_root_device): Function moved and renamed to...
54683 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54684 Changed all callers.
54685 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54687 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54688 Changed all callers.
54689 * util/misc.c (pupa_memalign): New function.
54690 (pupa_mm_init_region): Likewise.
54691 (pupa_register_exported_symbols): Likewise.
54692 (pupa_putchar): Function removed.
54693 * util/pupa-emu.c: New file.
54695 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54697 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54698 (_multiboot_mod_SOURCES): New variable.
54699 (_multiboot_mod_CFLAGS): Likewise.
54700 * loader/i386/pc/multiboot.c: New file.
54701 * include/pupa/i386/pc/multiboot.h: Likewise.
54702 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54703 (pupa_multiboot_real_boot): New function.
54704 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54705 (pupa_multiboot_real_boot): New prototype.
54706 (pupa_rescue_cmd_multiboot): Likewise
54707 (pupa_rescue_cmd_module): Likewise.
54709 * kern/loader.c (pupa_loader_set): Continue when
54710 pupa_loader_unload_func() fails.
54711 (pupa_loader_unset): New function.
54712 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54714 * kern/misc.c (pupa_stpcpy): New function.
54715 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54717 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54719 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54720 for available extensions.
54722 * include/pupa/i386/pc/time.h: New file.
54723 * kern/disk.c: Include <pupa/machine/time.h>.
54724 (PUPA_CACHE_TIMEOUT): New macro.
54725 (pupa_last_time): New variable.
54726 (pupa_disk_open): Flush the cache when there was a timeout.
54727 (pupa_disk_close): Reset the timer.
54728 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54730 * util/misc.c: Include <sys/times.h>
54731 (pupa_get_rtc): New function.
54733 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54735 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54737 (pupa_ext2_get_file_block): Use blocks member.
54739 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54740 first block. Return -1 instead of pupa_errno on error.
54742 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54744 * README: In the pupa-mkimage example use _chain instead of chain
54745 and ext2 instead of fat.
54746 * TODO: Replace ext2fs with jfs as an example. Add an item for
54747 adding journal playback for ext2fs.
54748 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54749 (pkgdata_MODULES): Added ext2.mod.
54750 (ext2_mod_SOURCES): New variable.
54751 (ext2_mod_CFLAGS): Likewise.
54752 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54753 * include/pupa/misc.h (pupa_strncpy): New prototype.
54754 (pupa_strcat): Likewise.
54755 (pupa_strncmp): Likewise.
54756 * kern/misc.c (pupa_strcat): Enable function.
54757 (pupa_strncpy): New function.
54758 (pupa_strncmp): Likewise.
54759 * fs/ext2.c: New file.
54761 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54762 when the read failed before retrying.
54763 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54764 (_FILE_OFFSET_BITS): Likewise.
54765 * configure.ac: Added AC_SYS_LARGEFILE.
54767 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54769 * genmk.rb (PModule#rule): Make sure to get only symbol names
54770 from the output of nm.
54771 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54773 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54775 I forgot to check in these changes for a long time. This adds
54776 incomplete support for VGA console, and this is still very
54777 buggy. Also, a lot of consideration is required for I18N,
54778 UNICODE, and VGA font issues. Therefore, assume that this is
54779 such that "better than nothing".
54781 * font/manager.c: New file.
54782 * include/pupa/font.h: Likewise.
54783 * include/pupa/i386/pc/vga.h: Likewise.
54784 * term/i386/pc/vga.c: Likewise.
54785 * util/unifont2pff.rb: Likewise.
54787 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54788 (pkgdata_MODULES): Added vga.mod and font.mod.
54789 (vga_mod_SOURCES): New variables.
54790 (vga_mod_CFLAGS): Likewise.
54791 (font_mod_SOURCES): Likewise.
54792 (font_mod_CFLAGS): Likewise.
54794 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54796 * include/pupa/term.h: Include pupa/err.h.
54797 (struct pupa_term): Added init and fini.
54798 Changed the argument of putchar to pupa_uint32_t.
54800 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54801 (pupa_console_real_putchar): New prototype.
54802 (pupa_console_putchar): Removed.
54803 (pupa_console_checkkey): Exported.
54804 (pupa_console_getkey): Likewise.
54806 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54809 * kern/term.c (pupa_term_set_current): Rewritten.
54810 (pupa_putchar): Likewise.
54811 (pupa_putcode): New function.
54813 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54814 (pupa_console_real_putchar): ... this.
54815 (pupa_vga_set_mode): New function.
54816 (pupa_vga_get_font): Likewise.
54818 * normal/command.c: Include pupa/term.h.
54819 (terminal_command): New function.
54820 (pupa_command_init): Register the command "terminal".
54822 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54823 (DISP_UP): Likewise.
54824 (DISP_RIGHT): Likewise.
54825 (DISP_DOWN): Likewise.
54826 (DISP_HLINE): Likewise.
54827 (DISP_VLINE): Likewise.
54828 (DISP_UL): Likewise.
54829 (DISP_UR): Likewise.
54830 (DISP_LL): Likewise.
54831 (DISP_LR): Likewise.
54833 * term/i386/pc/console.c (pupa_console_putchar): New function.
54835 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54837 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54838 FIX. Reverse the path_list.
54840 * include/pupa/normal.h: Export pupa_register_command and
54841 pupa_unregister_command.
54843 * hello/hello.c (pupa_cmd_hello): New module.
54844 * conf/i386-pc.rmk: Added hello.mod.
54846 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54848 * kern/i386/pc/lzo1x.S: New file.
54850 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54851 (compress_kernel): New variable.
54852 (generate_image): Heavily modified to support compressing a
54853 large part of the core image.
54855 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54857 (pupa_util_load_image): New function.
54859 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54860 (pupa_compressed_size): New variable.
54861 (codestart): Enable Gate A20 here.
54862 Decompress the compressed part of the core image.
54863 Rearrange the code to put functions and variables which are
54864 required for initialization in the non-compressed part.
54867 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54870 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54872 * include/pupa/i386/pc/kernel.h
54873 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54874 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54875 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54876 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54877 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54879 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54881 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54882 (Utility#rule): Likewise.
54884 * configure.ac: Check if LZO is available.
54886 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54888 * include/pupa/normal.h: New file.
54889 * include/pupa/setjmp.h: Likewise.
54890 * include/pupa/i386/setjmp.h: Likewise.
54891 * normal/cmdline.c: Likewise.
54892 * normal/command.c: Likewise.
54893 * normal/main.c: Likewise.
54894 * normal/menu.c: Likewise.
54895 * normal/i386/setjmp.S: Likewise.
54897 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54898 (pupa_rescue_cmd_initrd): Likewise.
54900 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54903 * kern/i386/pc/startup.S (translation_table): New variable.
54904 (translate_keycode): New function.
54905 (pupa_console_getkey): Call translate_keycode.
54907 * kern/rescue.c (attempt_normal_mode): New function.
54908 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54909 it failed, print a message.
54911 * kern/mm.c (pupa_real_malloc): Print more information when a
54912 free magic is broken.
54913 (pupa_free): If the first free header is not free actually, set
54916 * kern/main.c (pupa_load_normal_mode): Just load the module
54918 (pupa_main): Don't print the message
54919 "Entering into rescue mode..." here.
54921 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54923 (pupa_rescue_cmd_initrd): Likewise.
54924 (pupa_rescue_cmd_initrd): Likewise.
54926 * include/pupa/symbol.h (FUNCTION): Specify the type.
54927 (VARIABLE): Likewise.
54929 * include/pupa/err.h (pupa_err_t): Added
54930 PUPA_ERR_UNKNOWN_COMMAND.
54932 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54933 (pupa_dl_get_prefix): Likewise.
54935 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54936 Added _chain.mod and _linux.mod instead of chain.mod and
54938 (chain_mod_SOURCES): Renamed to ...
54939 (_chain_mod_SOURCES): ... this.
54940 (chain_mod_CFLAGS): Renamed to ...
54941 (_chain_mod_CFLAGS): ... this.
54942 (linux_mod_SOURCES): Renamed to ...
54943 (_linux_mod_SOURCES): ... this.
54944 (linux_mod_CFLAGS): Renamed to ...
54945 (_linux_mod_CFLAGS): ... this.
54946 (normal_mod_SOURCES): New variable.
54947 (normal_mod_CFLAGS): Likewise.
54948 (normal_mod_ASFLAGS): Likewise.
54950 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54952 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54955 * kern/dl.c (pupa_dl_ref): Refer depending modules
54957 (pupa_dl_unref): Unrefer depending modules recursively.
54958 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54959 a module is unloaded before one depending on that module is
54961 (pupa_dl_unload): Unload depending modules explicitly,
54964 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54966 * include/pupa/i386/pc/linux.h: New file.
54967 * loader/i386/pc/linux.c: Likewise.
54969 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54971 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54972 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54973 of PUPA_CHAINLOADER_BOOT_SECTOR.
54975 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54976 (pupa_linux_prot_size): New variable.
54977 (pupa_linux_tmp_addr): Likewise.
54978 (pupa_linux_real_addr): Likewise.
54979 (pupa_linux_boot_zimage): New function.
54980 (pupa_linux_boot_bzimage): Likewise.
54982 * kern/i386/pc/init.c (struct mem_region): New structure.
54983 (MAX_REGIONS): New macro.
54984 (mem_regions): New variable.
54985 (num_regions): Likewise.
54986 (pupa_os_area_addr): Likewise.
54987 (pupa_os_area_size): Likewise.
54988 (pupa_lower_mem): Likewise.
54989 (pupa_upper_mem): Likewise.
54990 (add_mem_region): New function.
54991 (compact_mem_regions): Likewise.
54992 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54993 the size of the conventional memory and that of so-called upper
54994 memory (before the first memory hole).
54995 Instead of adding each found region to free memory, use
54996 add_mem_region and add them after removing overlaps.
54997 Also, add only 1/4 of the upper memory to free memory. The rest
54998 is used for loading OS images. Maybe this is ad hoc, but this
54999 makes it much easier to relocate OS images when booting.
55001 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55002 (pupa_enter_rescue_mode): Don't register initrd and module.
55004 * kern/mm.c: Include pupa/dl.h.
55006 * kern/main.c: Include pupa/file.h and pupa/device.h.
55008 * kern/loader.c (pupa_loader_load_module_func): Removed.
55009 (pupa_loader_load_module): Likewise.
55011 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55014 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55015 (pupa_linux_tmp_addr): Likewise.
55016 (pupa_linux_real_addr): Likewise.
55017 (pupa_linux_boot_zimage): Likewise.
55018 (pupa_linux_boot_bzimage): Likewise.
55020 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55021 (pupa_upper_mem): Likewise.
55022 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55023 module is too dangerous.
55025 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55026 (pupa_os_area_size): Likewise.
55027 (pupa_loader_set): Remove the first argument. Loader doesn't
55028 manage modules or initrd any longer.
55029 (pupa_loader_load_module): Removed.
55031 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55032 (linux_mod_SOURCES): New variable.
55033 (linux_mod_CFLAGS): Likewise.
55035 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55037 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55038 the length of a blocklist correctly.
55040 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55041 Use ioctl only if the OS file is a block device.
55042 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55043 not very useful for normal files.
55045 * kern/main.c (pupa_set_root_dev): New function.
55046 (pupa_load_normal_mode): Likewise.
55047 (pupa_main): Call those above.
55049 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55052 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55054 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55056 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55057 (setup): Configure the installed partition information and the
55060 * loader/i386/pc/chainloader.c (my_mod): New variable.
55061 (pupa_chainloader_unload): New function.
55062 (pupa_rescue_cmd_chainloader): Refer itself.
55063 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55065 * kern/i386/pc/startup.S (install_partition): Removed.
55066 (version_string): Likewise.
55067 (config_file): Likewise.
55068 (pupa_install_dos_part): New variable.
55069 (pupa_install_bsd_part): Likewise.
55070 (pupa_prefix): Likewise.
55071 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55073 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55075 (make_install_device): New function.
55076 (pupa_machine_init): Set the dl prefix.
55078 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55079 (buf): Renamed to ...
55080 (linebuf): ... this.
55081 (pupa_rescue_cmd_prefix): New function.
55082 (pupa_rescue_cmd_insmod): Likewise.
55083 (pupa_rescue_cmd_rmmod): Likewise.
55084 (pupa_rescue_cmd_lsmod): Likewise.
55085 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55088 * kern/mm.c (pupa_memalign): If failed even after invalidating
55089 disk caches, unload unneeded modules and retry.
55091 * kern/misc.c (pupa_memmove): New function.
55092 (pupa_memcpy): Removed.
55093 (pupa_strcpy): New function.
55094 (pupa_itoa): Made static.
55096 * kern/dl.c (pupa_dl_iterate): New function.
55097 (pupa_dl_ref): Likewise.
55098 (pupa_dl_unref): Likewise.
55099 (pupa_dl_unload): Return if succeeded or not.
55100 (pupa_dl_unload_unneeded): New function.
55101 (pupa_dl_unload_all): Likewise.
55102 (pupa_dl_init): Renamed to ...
55103 (pupa_dl_set_prefix): ... this.
55104 (pupa_dl_get_prefix): New function.
55106 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55107 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55108 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55109 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55110 (pupa_install_dos_part): Declared.
55111 (pupa_install_bsd_part): Likewise.
55112 (pupa_prefix): Likewise.
55113 (pupa_boot_drive): Likewise.
55115 * include/pupa/types.h: Fix a typo.
55117 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55119 (pupa_memmove): Declared.
55120 (pupa_strcpy): Likewise.
55122 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55123 pupa_mod_init takes one argument, its own module.
55124 (pupa_dl_unload_unneeded): Declared.
55125 (pupa_dl_unload_all): Likewise.
55126 (pupa_dl_ref): Likewise.
55127 (pupa_dl_unref): Likewise.
55128 (pupa_dl_iterate): Likewise.
55129 (pupa_dl_init): Renamed to ...
55130 (pupa_dl_set_prefix): ... this.
55131 (pupa_dl_get_prefix): Declared.
55133 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55134 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55136 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55137 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55139 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55140 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55142 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55144 * util/i386/pc/pupa-setup.c (setup): Define the internal
55145 function find_first_partition_start at the top level, because GCC
55146 3.0.x cannot compile internal functions in deeper scopes
55148 (find_root_device): Use lstat instead of stat.
55149 Don't follow symbolic links.
55150 Fix the path-constructing code.
55152 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55153 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55154 by a BLKGETSIZE ioctl first, because block devices don't fill
55155 the member st_mode of the structure stat on Linux.
55156 [__linux__] (linux_find_partition): Use a temporary buffer
55157 REAL_DEV for the working space. Copy it to DEV before returning.
55158 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55159 buffer cache consistent.
55160 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55161 strncmp. The previous value was merely wrong.
55162 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55164 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55165 FAT size is 12. The previous value was merely wrong.
55167 * kern/main.c (pupa_main): Don't split the starting message from
55170 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55171 LF, because BIOS goes crazy about character attributes in this
55174 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55176 * include/i386/pc/util/biosdisk.h: New file.
55177 * util/i386/pc/biosdisk.c: Likewise.
55178 * util/i386/pc/pupa-setup.c: Likewise.
55180 * Makefile.in (INCLUDE_DISTFILES): Added
55181 include/pupa/i386/pc/util/biosdisk.h.
55182 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55183 directory util/i386/pc.
55184 (install-local): Added a rule for sbin_UTILITIES.
55185 (uninstall): Likewise.
55187 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55189 * util/misc.c (xrealloc): New function.
55190 (pupa_malloc): Likewise.
55191 (pupa_free): Likewise.
55192 (pupa_realloc): Likewise.
55193 (pupa_stop): Likewise.
55194 (pupa_putchar): Likewise.
55196 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55198 * include/pupa/util/misc.h (xrealloc): Declared.
55200 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55202 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55203 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55205 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55206 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55208 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55209 way should be implemented.
55210 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55212 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55213 the size of NAME for safety.
55214 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55217 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55218 (pupa_setup_SOURCES): Likewise.
55220 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55222 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55224 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55225 bunch of pushl's from pusha, because this destroys the return
55228 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55230 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55231 This means that any missing prototypes could be fatal. Also, you
55232 must take care when writing assembly code. See the comments at
55233 the beginning of startup.S, for more details.
55235 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55236 compilation mechanism.
55237 (pupa_chainloader_real_boot): Likewise.
55238 (pupa_biosdisk_rw_int13_extensions): Likewise.
55239 (pupa_biosdisk_rw_standard): Likewise.
55240 (pupa_biosdisk_check_int13_extensions): Likewise.
55241 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55242 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55243 (pupa_get_memsize): Likewise.
55244 (pupa_get_mmap_entry): Likewise.
55245 (pupa_console_putchar): Likewise.
55246 (pupa_console_setcursor): Likewise.
55247 (pupa_getrtsecs): Use pushl instead of push.
55249 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55250 memory instead of the stack for a mmap entry, because some
55251 BIOSes may ignore the maximum size and overflow.
55253 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55255 * genmk.rb (PModule#rule): Compile automatically generated
55256 sources with module-specific CFLAGS as well as other sources.
55258 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55260 * configure.ac: Check ld.
55261 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55262 respectively, before checking endianness and sizes.
55264 * Makefile.in (LD): New variable.
55266 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55268 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55270 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55272 * Changelog: New file.