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.
16 * grub-core/commands/verify.c: Fix memory corruption doing
17 signature check for network files (closes 43601).
19 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
21 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
22 memory leak (CID 73645, 73782).
23 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
26 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
28 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
29 inline array (CID 73610).
31 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
33 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
34 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
35 (Coverity CID 73813, 73710)
36 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
37 and use after free (Coverity CID 73813, 73710, 73730)
38 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
40 * util/grub-install-common.c (grub_install_get_target): Check return
41 value of grub_util_fd_read (Coverity CID 73819).
42 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
43 to hd.magic (Coverity CID 73587, 73888, bug 43690).
45 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
47 * tests/util/grub-fs-tester.in: Consistently print output
48 of grub ls if test fails.
50 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
52 * grub-core/kern/efi/init.c: check value of *path before
55 2014-11-03 Michael Chang <mchang@suse.com>
57 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
58 of neighbor solicitation packet in grub_netbuff_pull.
60 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
62 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
63 avoid fatal warnings with older gcc (probably before 4.7).
64 * grub-core/loader/arm64/linux.c: Likewise.
65 * grub-core/loader/i386/linux.c: Likewise.
66 * grub-core/loader/i386/pc/linux.c: Likewise.
67 * grub-core/loader/ia64/efi/linux.c: Likewise.
68 * grub-core/loader/mips/linux.c: Likewise.
69 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
70 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
72 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
74 Fix in-tree --platform=none
76 * configure.ac: Only remove include/grub/cpu and
77 include/grub/machine in the --platform=none case, not all of
80 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
82 Add a new "none" platform that only builds utilities
84 * configure.ac: Add "none" platform. Default to it for unsupported
85 CPUs rather than stopping with a fatal error. Don't downgrade
86 x86_64-none to i386. Define COND_real_platform Automake conditional
87 if the platform is anything other than "none". Don't do any include
88 directory linking for "none".
89 * Makefile.am: Skip building grub-core and all bootcheck targets if
91 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
94 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
96 Use grub_cpu_to_XXX_compile_time for constants.
98 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
100 The AML parser implements only a small subset of possible AML
101 opcodes. On the Fujitsu Lifebook E744 this and another bug in
102 the parser (incorrect handling of TermArg data types) would lead
103 to the laptop not turning off (_S5 not found).
105 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
106 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
107 aren't always simply strings!); Add function to skip TermArgs
108 * include/grub/acpi.h: Add new opcodes
110 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
112 * grub-core/normal/main.c: Don't drop to rescue console in
113 case of password-protected prompt and no menu entries.
115 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
117 * grub-core/commands/keylayouts.c: Ignore unknown keys.
119 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
121 * grub-core/gmodule.pl.in: Accept newer binutils which output
122 empty column rather than 0x0.
124 2014-09-21 Michael Chang <mchang@suse.com>
126 * grub-core/osdep/unix/config.c: Remove extraneous comma.
128 2014-09-21 Peter Jones <pjones@redhat.com>
130 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
131 we don't free a random pointer from the stack.
132 * grub-core/loader/arm64/linux.c: Likewise.
133 * grub-core/loader/i386/linux.c: Likewise.
134 * grub-core/loader/i386/pc/linux.c: Likewise.
135 * grub-core/loader/ia64/efi/linux.c: Likewise.
136 * grub-core/loader/mips/linux.c: Likewise.
137 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
138 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
140 2014-09-15 Khem Raj <raj.khem@gmail.com>
142 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
143 _BSD_SOURCE to avoid warnings under glibc 2.20+.
145 2014-09-08 Michael Chang <mchang@suse.com>
147 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
148 check; comparing &data->extent against addresses in the region it
149 points to is unpredictable.
151 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
153 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
155 * configure.ac: Remove -m64 from checks for -mcmodel=large and
156 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
157 already in TARGET_CFLAGS at this point, and they produce incorrect
158 results when building for x32.
159 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
160 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
161 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
162 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
164 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
166 * configure.ac: Remove several unnecessary semicolons.
168 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
170 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
171 Initialise pend to pacify GCC.
173 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
175 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
178 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
180 * grub-core/term/at_keyboard.c: Retry probing keyboard if
181 scancode setup failed.
183 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
185 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
187 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
189 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
190 safety to avoid triggerring VirtualBox bug.
192 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
194 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
196 Fixes hang on virtualbox.
198 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
200 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
201 kernels whose paths contain regex metacharacters.
202 * util/grub.d/10_kfreebsd.in: Likewise.
203 * util/grub.d/10_linux.in: Likewise.
204 * util/grub.d/20_linux_xen.in: Likewise.
206 Reported by: Heimo Stranner.
208 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
210 * docs/grub-dev.texi (Finding your way around): The build system no
211 longer uses AutoGen directly.
213 2014-06-21 Роман Пехов <roman_pekhov>
215 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
217 2014-06-21 Glenn Washburn <development@efficientek.com>
219 * util/grub-install.c: Fix handling of --disk-module.
221 2014-06-21 Stephane Rochoy <sheda>
223 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
226 2014-06-21 Stephane Rochoy <sheda>
228 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
229 EFI system table physical address.
231 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
233 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
235 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
237 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
239 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
241 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
244 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
246 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
248 Reported by: Yves Blusseau <blusseau@zetam.org>.
250 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
252 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
253 GDT in conventional memory.
255 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
257 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
258 UUID. Other parts of grub-mkconfig tolerate these, they were
259 previously allowed here up to commit
260 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
261 practice when the system has active LVM snapshots.
262 Fixes Ubuntu bug #1287436.
264 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
266 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
267 "logical_volumes" block a little more accurately.
269 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
271 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
273 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
275 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
278 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
280 Replace few instances of memcmp/memcpy in the code that should be
281 grub_memcmp/grub_memcpy.
283 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
285 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
288 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
290 btrfs: fix get_root key comparison failures due to endianness
292 * grub-core/fs/btrfs.c (get_root): Convert
293 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
295 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
297 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
299 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
300 no longer to be forgiving of trailing spaces on grub-probe output
301 lines, which among other things means that util/grub.d/10_linux.in
302 no longer detects LVM. To fix this, make grub-probe's output
303 delimiting more consistent. As a bonus, this improves the coverage
306 Fixes Debian bug #735935.
308 * grub-core/disk/cryptodisk.c
309 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
310 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
312 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
314 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
315 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
316 probe_mods): Adjust for extra user-data arguments.
317 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
318 probe_abstraction): Use configured delimiter. Update callers.
320 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
322 * util/grub-probe,c (options): Make -0 work again (broken by
324 (main): Simplify logic.
326 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
328 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
330 2014-03-26 Fu Wei <fu.wei@linaro.org>
332 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
334 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
336 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
337 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
339 Suggested by: Markus Müller.
341 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
343 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
344 if E820 failed to return any regions.
346 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
348 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
349 tables for low memory calculations.
351 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
353 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
356 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
358 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
361 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
363 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
366 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
368 Add bootpath parser for open firmware.
370 It enables net boot even when there is no bootp/dhcp server.
372 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
373 and call it at grub_ieee1275_net_config_real.
374 * grub-core/kern/ieee1275/init.c: Add bootpath to
375 grub_ieee1275_net_config.
376 * include/grub/ieee1275/ieee1275.h: Likewise.
379 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
381 Add grub_env_set_net_property function.
383 * grub-core/net/bootp.c: Remove set_env_limn_ro.
384 * grub-core/net/net.c: Add grub_env_set_net_property.
385 * include/grub/net.h: Likewise.
387 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
389 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
391 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
393 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
395 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
397 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
398 7 seconds to recover if last poweroff was bad.
400 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
402 * grub-core/disk/ahci.c: Properly handle transactions with no
405 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
407 * grub-core/disk/ahci.c: Add safety cleanups.
409 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
411 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
412 slots to avoid pointing to uninited area.
414 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
416 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
417 enabling busmaster for the end.
419 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
421 * util/grub-mkfont.c: Downgrade warnings about unhandled features
424 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
426 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
428 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
430 * .gitignore: add missing files and .exe variants.
432 2014-01-26 Mike Gilbert <floppym@gentoo.org>
434 grub-install: support for partitioned partx loop devices.
436 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
437 /dev/loopX as being the parent of /dev/loopXpY.
439 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
441 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
442 Ensure that pointers are inited to NULL and that pointers are not
445 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
447 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
448 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
449 * include/grub/emu/misc.h: ... and here.
450 * include/grub/err.h: ... and here.
451 * util/import_gcry.py: ... and here (in files g10lib.h).
453 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
455 * util/grub-mkimage.c: Make prefix argument mandatory.
457 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
459 Fix several translatable strings.
461 Suggested by: D. Prévot.
463 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
465 * util/grub-install.c: List available targets.
467 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
469 * util/grub-install.c (write_to_disk): Add an info message.
471 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
473 * Makefile.am: Allow adding extra files to generated Windows ZIP
474 archive by setting GRUB_WINDOWS_EXTRA_DIST.
476 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
478 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
479 Show detected font path in summary.
481 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
483 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
485 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
486 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
487 * grub-core/net/tftp.c (tftp_open): Likewise.
488 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
490 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
492 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
495 In net/net.c there is a while (1) that only exits if there is a stop
496 condition and more then 10 packages or if there is no package received.
498 If GRUB is idle and enter in this loop, the only condition to leave is
499 if it doesn't have incoming packages. In a network with heavy traffic
502 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
504 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
505 EPERM when modifying kern.geom.debugflags. It is only a problem for
506 such things as installing GRUB to the MBR, in which case there'll be
507 an error later anyway, not for opening files during tests.
509 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
511 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
512 instead of MOD_FILES.
513 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
514 both with and without .exe.
515 * grub-core/genemuinitheader.sh: Same.
517 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
519 * util/grub-install.c: Fix a typo.
521 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
523 * grub-core/normal/main.c (read_config_file): Buffer config file.
526 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
528 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
529 symbolic link to directory. It fails in Msys shell on Windows 2003.
531 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
533 * Makefile.am (default_payload.elf): Add modules
534 multiboot cbmemc linux16 gzio echo help.
536 2014-01-18 Mike Gilbert <floppym@gentoo.org>
538 * Makefile.util.def: Link grub-ofpathname with zfs libs.
540 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
542 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
545 Reported by: Andrey Borzenkov.
547 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
549 * include/grub/misc.h: Move macros for compiler features to ...
550 * include/grub/compiler.h: ... new file.
551 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
552 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
553 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
554 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
555 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
556 * grub-core/video/capture.c: Include <grub/misc.h>.
557 * include/grub/command.h: Include <grub/misc.h>.
558 * include/grub/dl.h: Include <grub/misc.h>.
559 * include/grub/procfs.h: Include <grub/misc.h>.
561 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
563 * configure.ac: Add support for BUILD_EXEEXT and use it ...
564 * Makefile.am: ... here.
565 * Makefile.util.def: ... and here.
566 * grub-core/Makefile.am: ... and here.
568 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
570 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
571 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
573 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
575 * grub-core/term/terminfo.c: Recognize keys F1-F12.
577 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
579 * configure.ac: Add support for BUILD_LDFLAGS.
580 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
581 * grub-core/Makefile.am: ... and here.
582 * INSTALL: Mention BUILD_LDFLAGS.
584 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
586 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
588 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
590 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
593 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
595 * NEWS: Add few missing entries.
597 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
599 * util/grub.d/00_header.in (make_timeout): Use && rather than test
601 * util/grub.d/10_windows.in: Likewise.
602 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
604 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
607 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
609 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
610 redundant preprocessor conditional.
612 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
614 * Makefile.util.def (grub-macbless): Change mansection to 8.
616 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
618 * grub-core/loader/arm64/linux.c: correctly set device path end length.
620 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
622 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
623 arm64 to comply with EFI specification. Also use grubaa64.efi for
625 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
627 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
629 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
630 on MinGW-64 when compiling for 32 bits.
632 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
634 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
636 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
638 * NEWS: Add few missing entries. Correct existing ones.
640 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
642 Don't abort() on unavailable coreboot tables if not running on coreboot.
644 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
646 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
649 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
651 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
652 mention of it from 2.02.
654 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
656 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
658 As these functions are used on pre-ARMv6 CPUs as well we don't want
659 to make assembler assume that architecture is higher than default one.
661 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
663 * NEWS: First draft of 2.02 entry.
665 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
667 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
668 * docs/grub.texi (Getting the source code): Likewise.
670 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
672 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
675 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
677 * configure.ac: Set version to 2.02~beta2.
679 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
681 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
683 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
685 * util/grub-probe.c: Improve help message and simplify list handling.
687 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
689 Fix buffer overflow in grub_efi_print_device_path.
691 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
693 Show SATA device path.
695 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
697 Revert grub-file usage in grub-mkconfig.
699 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
701 Make newly-created files other than grub.cfg world-readable.
703 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
705 * util/grub.d/00_header.in: Improve compatibility with old config.
707 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
709 Make rijndael.c respect aliasing rules.
711 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
713 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
715 Make grub_util_device_is_mapped_stat available in grub-emu core.
717 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
719 Add -Qn to TARGET_CFLAGS if it's supported.
720 Fixes compilation on cygwin.
722 Reported by: Andrey Borzenkov.
723 Suggested by: Andrey Borzenkov.
725 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
727 Save TARGET_CC version in modinfo.sh.
729 Suggested by: Andrey Borzenkov.
731 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
733 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
734 follow the same algorithm to avoid method mismatch. Don't assume
735 DMRAID- UUID to mean full disk but instead check that mapping is linear.
737 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
739 Declare GRUB_EFI_VENDOR_APPLE_GUID.
741 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
743 Dump type and vendor specific data when printing device path.
745 2013-12-23 Colin Watson <cjwatson@debian.org>
747 Update some documentation to refer to Git rather than Bazaar.
749 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
751 * po/README: Likewise. Fix spelling mistake.
753 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
755 Don't distribute config.h.
757 * Makefile.am (platform_HEADERS): Move to ...
758 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
759 failure when building from a distributed tarball.
761 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
763 * configure.ac: Fix spelling.
764 * grub-core/commands/parttool.c: Fix grammar.
765 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
766 Embedding Partition".
768 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
770 ARM64 support for grub-mkrescue.
772 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
774 Install modinfo.sh to keep build information around.
776 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
778 * grub-core/modinfo.sh.in: Add build config information.
780 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
782 ARM64 grub-file and grub-mkconfig support.
784 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
786 Remove leftover options defines.
788 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
790 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
792 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
794 * grub-core/loader/arm64/linux.c: Add missing bracket.
796 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
798 Add arm64-efi recognition to grub-file.
800 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
802 Fix ia64-efi recognition in grub-file.
804 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
806 Recognize raspberry pi kernel in grub-file.
808 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
810 Enable cache on ARM U-Boot port.
812 Without it the port is reidiculously slow.
814 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
816 Fix ARM cache maintainance.
818 More code was converted from ASM to C for easier handling.
820 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
822 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
825 Suggested by: Leif Lindholm.
827 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
829 * util/grub-mkconfig.in: Fix Xen platform conditions.
831 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
833 * util/grub-mkrescue.c: Split single help message string in several
834 strings used in previous shell version.
836 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
838 Add arm64 Linux loader.
840 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
842 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
844 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
846 Add module loading and parsing boot time checkpoints.
848 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
850 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
853 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
855 * util/grub-mkconfig.in: Skip non-executable files.
857 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
859 Workaround buggy timer in raspberry pie by using our own timer
862 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
864 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
865 Increase to 16 MiB to allow loading the whole memdisk.
867 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
869 Fix ARM Linux Loader on non-FDT platforms.
871 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
873 * configure.ac: Choose link format based on host_os on emu.
875 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
877 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
879 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
881 * grub-core/kern/emu/main.c: Build fix for emu.
883 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
885 Build fixes for argp.h with older gcc.
887 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
889 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
892 Suggested by: David Prévot.
894 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
896 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
898 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
900 Enable -Wformat=2 if it's supported.
902 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
904 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
905 -Wmissing-declarations if supported.
907 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
909 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
910 u32 as both HFS and HFS+ have 32-bit inodes.
912 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
914 * include/grub/misc.h (grub_strtol): Fix overflow.
916 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
918 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
919 as return type in both conditionals.
921 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
923 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
924 to use uint8_t for color.
926 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
928 * util/misc.c (grub_util_get_image_size): Check for overflow.
930 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
932 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
935 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
937 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
938 for pointer difference.
940 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
942 * util/import_gcry.py: Skip sample keys.
944 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
946 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
948 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
950 * configure.ac: Remove duplicate warning arguments.
952 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
954 Add missing static qualifiers.
956 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
958 Add missing includes.
960 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962 Inline printf templates when possible to enable format checking.
964 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
966 * include/grub/crypto.h: Don't discard const attribute.
968 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
970 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
973 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
975 * grub-core/lib/crypto.c: Don't discard const attribute.
977 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
979 * grub-core/lib/disk.c: Fix potential overflow.
981 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
983 * grub-core/lib/arg.c: Don't discard const attribute.
985 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
987 * grub-core/kern/dl.c: Don't discard const attribute.
989 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
991 * grub-core/kern/disk.c: Fix potential overflow.
993 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
995 * conf/Makefile.common: Don't include non-existing directory
996 grub-core/lib/libgcrypt-grub/include.
998 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1000 Clarify several translatable messages.
1002 2013-12-21 David Prévot <david@tilapin.org>
1004 Correct some translatable strings.
1006 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1008 * util/grub-mkrescue.c: Rephrase mkrescue description.
1010 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1013 Clarify several translatable messages.
1015 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1017 Be more verbose about some configure failures.
1019 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1021 Fix various build problems on GNU/Hurd.
1023 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1025 (xgetcwd): Likewise.
1026 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1027 [__GNU__]: Add prototype.
1028 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1029 long int using %ld rather than %d.
1031 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1033 * util/grub-install.c: Inform user about install platform.
1035 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1037 * configure.ac: Set version to 2.02~beta1.
1039 2013-12-18 Allen Pais <allen.pais@oracle.com>
1040 2013-12-18 Bob Picco <bob.picco@oracle.com>
1042 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1044 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1046 Make grub_zlib_decompress handle incomplete chunks.
1050 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1052 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1055 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1057 * grub-core/disk/usbms.c: Retry on unknown errors.
1058 Reuse the same tag on retries.
1060 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1062 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1064 Avoid confusing them with already completed transfers.
1066 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1070 Due to XEN bug it prevents Linux boot. Remove it at least, until
1071 workaround is found.
1073 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1075 * po/exclude.pot: Add 2 missing excludes.
1077 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1079 Add missing license section in macbless.mod and macho.mod.
1081 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1083 Allow compilation without thumb-interwork as long as no thumb is
1084 involved or only thumb2 is used.
1086 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1088 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1090 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1092 Add __attribute__ ((sysv_abi)) only if it's really needed.
1094 Some compilers don't support it.
1096 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1098 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1100 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1102 Remove -Wold-style-definition.
1104 Not very useful and interaction of it with regexp depends on GCC
1107 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1109 Make grub_util_get_windows_path_real static.
1111 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1113 * grub-core/commands/fileXX.c: Silence cast-align.
1114 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1116 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1118 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1119 rather than LL suffix.
1121 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1123 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1125 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1127 * grub-core/loader/arm/linux.c: Use common initrd functions.
1129 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1131 Decrease number of strings to translate.
1133 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1135 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1137 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139 Mark strings for translation and add remaining ones to exclude list.
1141 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1143 * util/grub-file.c (main): Fix sizeof usage.
1145 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1147 Silence spurious warning.
1149 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1151 Remove check_nt_hiberfil as it's been superseeded by file command.
1153 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1155 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1157 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1159 Implement syslinux parser.
1161 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1165 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1167 Support cpuid --pae.
1169 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1171 Use AT keyboard on Yeeloong 3A.
1173 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1175 Add Yeeloong 3A reboot and halt.
1177 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1179 Add Radeon Yeeloong 3A support.
1181 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1183 Add bonito 3A support.
1185 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1187 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1189 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1191 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1193 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/loader/macho.c: Fix compilation on non-i386.
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1199 Add missing format_arg attribute to check that printf with translated
1200 messages has proper arguments.
1202 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1204 Use grub_xasprintf to format translated error messages containing
1207 2013-12-17 Jon McCune <jonmccune@google.com>
1209 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1211 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1213 Unify message for unsupported relocation.
1215 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1217 Mark miscompile error for translation.
1219 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1221 Use %I64 and not %ll when using OS printf if compiling for windows.
1223 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1225 Update Mac code to match new register_efi prototype.
1227 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1229 Implement better integration with Mac firmware.
1231 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1233 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1236 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1238 Include serial module in default_payload.elf.
1240 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1242 Add explicit thumb interwork bx in asm files.
1244 Shouldn't matter for armv >= 5 but let's be safe.
1246 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1248 Implement Truecrypt ISO loader.
1250 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1252 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1254 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256 Implement grub_file tool and use it to implement generating of config
1259 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1261 Change to v1 xen grants.
1263 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1265 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1267 GRUB relied on %ebx being preserved across hypercall which isn't true.
1269 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1273 GRUB relied on %rdi being preserved across hypercall which isn't true.
1275 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1277 Implement XEN VFB support.
1279 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281 Remove grub_bios_interrupt on coreboot.
1283 It's not used currently and cannot be used safely currently.
1285 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1287 Update exclude.pot and mark few strings for translation.
1289 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1291 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1293 Reported by: Jon McCune
1295 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1297 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1298 Add verbose information which firmware directories were tried.
1300 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1302 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1303 function to optionally redirect all three standard descriptors.
1304 Redefine grub_util_exec, grub_util_exec_redirect and
1305 grub_util_exec_redirect_null to use it.
1306 * include/grub/emu/exec.h: Define it.
1307 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1308 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1309 Use grub_util_exec_redirect_all to redirect error to NULL.
1311 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1313 * grub-core/tests/sleep_test.c: Silence spurious warning.
1315 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1317 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1318 linker trying to "fixup" the code.
1320 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1322 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1324 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1326 Add support for converting PE+ to Elf64.
1328 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1330 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1332 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1334 Remove practice of assigning random const pointers to device id.
1336 This is not required as cache code already checks driver id as well.
1338 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1340 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1343 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1345 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1346 mingw or cygwin as API already matches.
1348 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1350 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1352 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1354 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1357 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1359 Handle X86_64_PC64 relocation.
1361 Those are generated by some cygwin compilers.
1363 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1365 Determine the need for mingw-related stubs at compile time rather than
1366 using not very significant $target_os.
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1370 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1371 may not work with ELF.
1373 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1375 Use unix functions for temporary files and special files on cygwin.
1377 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1379 Define functions explicitly rather than using --defsym in tests
1380 whenever possible. Respect locality in remaining cases.
1382 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1384 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1386 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1388 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1389 unlikely errors when getting EFI variables and make exhaustive search
1390 for all BootNNNN variables to find matching one.
1392 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1394 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1396 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1398 New functional test for sleep function.
1400 This test allows to check sleep without qemu. Keep qemu version as
1401 well as functional test won't notice if all clocks are going too fast
1404 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1406 Add explicit sysv_abi on amd64 asm routines.
1408 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1410 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1413 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1415 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1418 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1420 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1423 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1425 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1427 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1429 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1432 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1434 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1436 In case of quick removal of loopback and adding another one it may
1437 get same ID, confusing the cache system.
1439 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1441 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1444 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1446 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1447 than converting to long.
1449 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1451 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1453 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1455 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1456 than almost useless pointer.
1458 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1460 Add gcc_struct to all packed structures when compiling with mingw.
1462 Just "packed" doesn't always pack the way we expect.
1464 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1466 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1468 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1470 * util/grub-pe2elf.c: Fix handling of .bss.
1472 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474 Implement windows flavour of EFI install routines.
1476 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1478 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1480 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1482 Change grub_install_register_efi interface to pass GRUB device.
1484 This allows grub_install_register_efi to request partition info
1487 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1489 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1491 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1493 Do not use TCHAR string functions as they are not available on cygwin.
1495 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1497 Workaround windows bug when querying EFI system partition parameters.
1499 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1504 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1508 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1510 Make i386-* other than i386-pc compileable under cygwin.
1512 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1514 Fix definition of grub_efi_hard_drive_device_path. Take care that
1515 existing code would work even if by some reason bogus definition is
1516 used by EFI implementations.
1518 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1520 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1522 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1524 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1527 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1529 * util/config.c: Remove trailing newline from distributor in simple
1532 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1534 * include/grub/efi/api.h: Rename protocol and interface to avoid
1537 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1539 * .gitignore: add .exe variants. add missing files. remove few outdated
1542 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1544 * grub-core/osdep/exec.c: Use unix version on cygwin.
1546 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1548 Implement multiboot2 EFI BS specification.
1550 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1553 Crash happened only in some cases like a string starting at the
1554 half of the screen of same length.
1556 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1558 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1559 with EFI counterpart.
1561 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1563 Propagate the EFI commits to x86-efi specific parts.
1565 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1567 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1569 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1571 Introduce grub_efi_packed_guid and use it where alignment is not
1574 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1576 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1577 unaligned u16 rather than u8[2].
1579 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1581 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1582 for relocation range.
1584 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1586 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1587 non-function pcrel21b relocation. It happens with .text.unlikely
1590 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1592 * make MAX_USABLE_ADDRESS platform-specific
1593 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1595 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1597 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1599 2013-12-09 Jon McCune <jonmccune@google.com>
1601 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1602 in grub-install and grub-bios-setup for x86 BIOS targets.
1604 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1606 Add missing compile and link options for sparc64-emu.
1608 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1610 Implement sparc64 trampolines (needed for sparc64-emu).
1612 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1614 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1615 range of R_SPARC_HI22.
1616 Implement R_SPARC_LM22.
1618 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1620 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1621 Do not explicitly check for symbol table as it's already checked in
1622 platform-independent layer.
1624 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1626 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1627 on ia64 as __clear_cache is a dummy on ia64.
1629 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1631 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1632 Do not explicitly check for symbol table as it's already checked in
1633 platform-independent layer.
1635 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1637 * util/grub-mkconfig.in: Add missing newline to output.
1639 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1641 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1642 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1644 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1646 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1647 compilation with GCC <= 4.2.
1648 * grub-core/kern/emu/argp_common.c: Likewise.
1650 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1652 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1653 right platform rather than leaking to sparc64-emu.
1655 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1657 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1658 But ensure that the variables in question are indeed unsigned.
1660 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1662 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1664 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1666 Remove grub_memalign on emu.
1668 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1670 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1671 truncate incomplete lines but instead flushes them.
1673 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1675 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1676 and implement windows variant.
1678 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1680 Fix mips-emu compilation.
1682 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1684 * configure.ac: Check for freetype library usability.
1686 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1690 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1692 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1694 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1696 * docs/grub.texi (Environment): Update color_normal and color_highlight
1697 defaults (light-gray instead of white).
1699 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1701 * grub-core/normal/main.c (INIT): Set default color to light-gray
1702 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1703 and apparently BIOS defaults.
1705 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1707 Transform -C option to grub-mkstandalone to --core-compress available
1708 in all grub-install flavours.
1710 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1712 Merge GRUBFS and GRUB_FS variables.
1714 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1716 Revert commit 69ca97c820, it caused failures when using OS device name
1717 in grub-install. Instead just strip off parenthesis in grub-install
1718 if (hdX) was passed.
1720 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1722 * util/grub-install.c (push_partmap_module): Add helper to convert
1723 partmap names to module names and use it in probe_mods(). Fixes
1724 failure to find partmap modules in diskfilter case.
1726 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1728 * configure.ac: Make unifont mandatory on coreboot.
1730 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1732 * configure.ac: Skip unifont 6.3 pcf and bdf.
1734 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1736 * Makefile.am: Remove partial font files if generation failed.
1738 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1740 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1742 * include/grub/util/misc.h: Define it ...
1743 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1745 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1747 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1750 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1752 Don't add -mlong-calls when compiling with clang.
1754 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1756 * configure.ac: Fix a typo.
1758 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1760 Revamp relocation handling.
1762 Move more code to common dl.c. Add missing veneers for arm and arm64.
1763 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1765 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1767 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1769 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1771 * INSTALL: Raise minimum python version to 2.6.
1772 * gentpl.py: Use python3-style print function.
1774 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1776 * util/grub-install.c: Mention Boot* variable.
1778 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1780 * grub-core/osdep/linux/hostdisk.c
1781 (grub_util_find_partition_start_os): Initialise start to avoid
1782 spurious compiler warning.
1784 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1786 On Linux, read partition start offsets from sysfs if possible, to
1787 cope with block device drivers that don't implement HDIO_GETGEO.
1788 Fixes Ubuntu bug #1237519.
1790 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1792 (sysfs_partition_start): Likewise.
1793 (grub_util_find_partition_start_os): Try sysfs_partition_start
1796 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1798 * grub-core/kern/fdt.c: Update struct size when adding node.
1800 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1802 Handle unaligned .bss on sparc64.
1804 Current code improperly assumes that both __bss_start and _end are
1805 aligned to 8-bytes. Eliminating this assumption and explicitly align
1808 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1810 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1811 so it doesn't land in the middle of loaded image.
1813 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1815 * configure.ac: Move all warning options that may be absent in
1816 gcc >= 3.1 to optional.
1818 Note: while this allows to compile with older GCC, official requirements
1819 remain the same and no support for older GCC.
1821 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1823 Copying the themes directory in grub-shell isn't
1824 parallel-test-friendly and breaks on the second test when the source
1825 directory is read-only (as in "make distcheck"). Instead, add a
1826 hidden --themes-directory option to grub-mkrescue et al, and use it
1829 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1831 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1832 as it's no longer necessarry.
1834 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1836 * configure.ac: Allow compilation with older GCC for ARM.
1838 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1840 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1841 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1844 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1848 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1850 Pass font config to config.h and not by TARGET_CFLAGS as adding
1851 arguments doesn't work if TARGET_CFLAGS is specified on command
1854 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1856 * configure.ac: Add -Wvla if compiler supports it.
1858 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1860 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1861 Remove variable length arrays.
1862 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1864 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1866 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1868 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1870 * include/grub/types.h: Declare all byteswaps as inline functions
1871 except compile-time ones.
1873 Solves variable shadowing in constructions like
1874 cpu_to_le (le_to_cpu(x) + 1).
1876 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1878 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1880 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1882 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1885 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1887 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1888 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1890 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1892 * grub-core/Makefile.core.def (setjmp): Distribute
1895 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1897 Add a new timeout_style environment variable and a corresponding
1898 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1899 controls hidden-timeout handling more simply than the previous
1900 arrangements, and pressing any hotkeys associated with menu entries
1901 during the hidden timeout will now boot the corresponding menu entry
1904 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1905 generates a warning, and if it shows the menu it will do so as if
1906 the second timeout were not present. Other combinations are
1907 translated into reasonable equivalents.
1909 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1911 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1913 * util/config.c: Add missing pointer adjustment.
1914 Reported by: qwertial
1916 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1918 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1919 directly, not via `cpu' link, to fix libgrub.pp generation.
1921 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1925 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1927 * docs/grub.texi (sleep): Document exit codes.
1929 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1931 Ensure that -mno-unaligned-access or some equivalent option is used.
1933 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1935 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1938 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1940 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1942 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1944 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1945 builds, since we don't have an EPS version of font_char_metrics.png.
1946 Add leading dot to image extension per the Texinfo documentation.
1948 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1950 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1951 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1952 * util/grub-gen-widthspec.c: Likewise.
1953 * util/grub-mkfont.c: Likewise.
1955 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1957 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1958 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1959 failed to install on (hdX).
1960 * util/grub-setup.c (get_device_name): Remove, not needed after
1963 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1965 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1967 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1969 * util/grub-fstest.c: Remove variable length arrays.
1971 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1975 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1977 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1978 computing crc32 rather than handling with md fundtions directly.
1980 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1982 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1983 checking fwstart.img rather than md fundtions directly.
1985 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1987 * util/grub-mkrescue.c (main): Check that fread succeeded.
1989 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1991 * conf/Makefile.common: Remove -mexplicit-relocs and
1992 -DUSE_ASCII_FALLBACK on yeeloong.
1994 -DUSE_ASCII_FALLBACK is already added by font snippets.
1995 -mexplicit-relocs isn't needed is compiler/assemblera are
1996 configured properly.
1997 If they're not we shouldn't attempt to fix it by ourselves.
1998 Binary compare between before and after shows no difference.
2000 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2002 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2003 sources in dependencies directly.
2005 This was the only instance of "library" in core config. A bug was
2006 reported that -fno-stack-protector wasn't passed to it. Instead of
2007 figuring out why it failed just remove this construction used
2010 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2012 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2015 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2017 * docs/grub.texi (ls): Fix command description in case of a device name
2020 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2022 Eliminate variable length arrays in grub_vsnprintf_real.
2024 A bit tricky because this function has to continue to work without
2025 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2026 but make all stack references use 32-bit offset rather than 8-bit one.
2027 So split va_args preparsing to separate function and put the prealloc
2030 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2032 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2033 Fixes build for windows.
2035 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2037 * gentpl.py: Don't generate platform-dependent conditionals for
2038 platform-independent targets.
2040 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2042 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2043 references to mdadm from otherwise generic code.
2044 (grub_util_exec_pipe): Likewise.
2045 (grub_util_exec_pipe_stderr): Likewise.
2046 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2047 This function calls vgs, not mdadm; adjust variable names
2050 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2052 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2053 of Autogen. The Autogen definitions files remain intact as they
2054 offer a useful abstraction.
2056 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2058 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2059 into no-ops, and use it in programs that copy files but do not need
2060 to take special care to sync writes (grub-mknetdir, grub-rescue,
2063 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2065 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2066 than hardcoding /usr/local/bin/xorriso.
2068 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2070 Add PCI command activation to all PCI drivers as required for coreboot
2071 and maybe some other firmwares.
2073 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2075 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2076 and non-Apple variants of efiemu compile.
2078 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2080 * configure.ac: Add explicit check for linking format of
2081 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2082 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2083 hardcoding linking format.
2085 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2087 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2090 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2091 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2093 Add a --locale-directory option to grub-install and related tools.
2095 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2096 --locale-directory option.
2097 (enum grub_install_options): Add
2098 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2099 * util/grub-install-common.c (grub_install_help_filter): Handle
2100 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2101 (grub_install_parse): Likewise.
2102 (get_localedir): New function to check for a user-provided option
2103 before trying grub_util_get_localedir.
2104 (copy_locales): Use get_localedir rather than
2105 grub_util_get_localedir. Handle differing locale directory layouts.
2106 (grub_install_copy_files): Likewise.
2108 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2111 Don't rely on PATH_MAX.
2113 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2115 * grub-core/genmoddep.awk: Use more portable && rather than and.
2117 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2119 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2120 an object after data. While it doesn't seem right solution, it
2121 works well enough and OSX isn't main compilation platform.
2123 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2125 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2126 While it doesn't seem right solution, it works well enough and
2127 OSX isn't main compilation platform.
2129 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2131 * configure.ac: Add -static to LDFLAGS when using apple linker to
2132 prevent it from pulling in dynamic linker.
2134 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2136 Apple assembly doesn't handle symbol arithmetic well. So define an
2137 offset symbol in boot.S and use it.
2139 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2141 Apple assembly doesn't handle symbol arithmetic well. So instead
2142 of getting addres of kernel_sector + 4 define kernel_sector_high.
2143 It also makes code more readable.
2145 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2147 With Apple assembly in .macro environvemnt you have to use $$ instead
2148 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2149 to $$x on Apple and to $x on everything else.
2151 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2153 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2156 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2158 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2159 and non-Apple. This instruction is shorter and faster,
2160 so no reason not to use it on both.
2162 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2164 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2165 .text when compiling for Apple.
2167 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2169 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2171 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2173 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2174 %dx restore the probe worked on non-existant drive. Reorganize the
2175 code a little bit to free 2 bytes necessary for push/pop.
2177 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2179 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2180 Add missing cast to silence warning.
2182 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2184 * util/grub-install.c (update_nvram): Support --no-nvram flag
2187 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2189 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2191 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2193 * util/garbage-gen.c: Add missing include of sys/time.h.
2195 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2197 Don't add -mflush-func if it's not supported by compiler.
2199 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2201 Move common BIOS/coreboot memory map declarations to
2202 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2204 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2206 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2208 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2210 * INSTALL: Document why older clang versions aren't appropriate.
2212 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2214 * INSTALL: Document about clang for mips.
2216 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2218 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2221 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2223 Add *-xen to the list of grub-install-common platforms.
2225 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2227 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2230 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2232 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2234 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2236 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2237 with -mcmodel=large.
2239 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2241 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2242 range-checking for 32-bit quantities.
2244 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2246 * configure.ac: Compile with -fPIC when compiling with clang on
2249 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2251 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2252 when compiling with clang.
2254 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2256 clang emits calls to abort () under some unknown conditions.
2257 Export abort () when compiling with clang.
2259 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2261 * docs/grub-dev.texi: Document stack and heap sizes.
2263 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2265 * include/grub/i386/pc/memory.h: Decrease
2266 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2267 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2268 The binary doesn't change (checked). It's more to better reflect actual
2271 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2273 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2274 at compile time that enough of scratch size is available.
2276 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2278 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2279 Previously we misaligned stack by 8 in startup.S and compensated
2280 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2281 right behaviour is to align stack in startup.S and keep it aligned
2282 in callwrap.S. startup.S part was committed few commits before. This
2283 takes care of callwrap.S.
2284 Reported by: Gary Lin.
2286 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2288 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2289 .data and .bss. May happen if compiler and assembly use different
2292 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2294 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2297 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2299 Add support for a new magic symbol _gp_disp on mips to handle PIC
2302 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2304 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2306 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2308 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2309 when rest of GRUB is compiled for hisher stepping. Instead use
2310 .set mips3/.set mips1 around cache and sync opcodes.
2312 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2314 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2315 do essentially the same thing, do it in similar way.
2317 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2319 * util/grub-mkrescue.c (main): If a source directory is not
2320 specified, read platform-specific files from subdirectories of
2321 pkglibdir, not pkgdatadir.
2323 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2325 * grub-core/normal/progress.c: Remove unused file.
2327 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2332 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2334 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2337 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2339 * coreboot.cfg: Add missing file.
2341 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2343 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2345 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2347 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2348 selectively skipping systems.
2350 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2352 * Makefile.util.def (grub-mkimage): Add
2353 grub-core/osdep/aros/config.c to extra_dist.
2354 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2355 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2356 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2357 grub-core/gnulib-no-gets.diff.
2359 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2361 Add automated filesystem checking based on scripts I've used now for
2362 quite some time locally. Most of the test require root so they are
2363 skipped when run without necessarry privelegies.
2365 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2367 * util/grub-install.c (main): Adjust info messages to match
2368 installed paths of grub-bios-setup and grub-sparc64-setup.
2370 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2372 * util/grub-install-common.c (copy_locales): Consistently use
2373 grub_util_get_localedir () rather than LOCALEDIR.
2374 (grub_install_copy_files): Likewise.
2376 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2378 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2379 16-byte boundary, as required by the x86-64 ABI, before calling
2380 grub_main. In some cases, GCC emits code that assumes this
2381 alignment, which crashes if not aligned. The EFI firmware is also
2382 entitled to assume that stack alignment without checking.
2384 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2386 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2387 4k page boundaries as expected by firmware rather than 1k
2389 (grub_mmap_malign_and_register): Likewise.
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2393 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2394 fragmentation 512M is enough.
2396 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2399 pointer to 32K. This is the size of cache element which is the most
2400 common allocation >1K. This way the pointer is always around blocks
2401 of 32K and so we keep performance while decreasing fragmentation.
2403 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2405 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2406 current memory when allocating large chunks. This significantly
2407 decreases memory fragmentation.
2409 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2411 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2413 * tests/lzocompress_test.in: Skip if lzop is not installed.
2414 * tests/xzcompress_test.in: Skip if xz is not installed.
2416 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2418 * util/grub-mkrescue.c (main): Fix typo.
2420 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2422 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2423 clock frequency to 200 MHz,
2425 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2427 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2429 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2431 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2432 Load config file from (cbfsdisk)/etc/grub.cfg.
2434 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2436 * util/grub-install-common.c (grub_install_copy_files): Fix module
2437 destination directory.
2439 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2441 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2442 files have not been built.
2444 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2446 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2447 Handle errors from mkstemp.
2448 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2450 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2452 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2453 on primary master on pseries.
2455 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2458 already loaded. This saves memory needed for tests,
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2462 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2467 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2470 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2472 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2473 master since with some combinations of qemu and firmware only primary
2474 IDE channel is available.
2476 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2479 low-memory platforms where we don't have enough memory for them.
2480 * grub-core/tests/videotest_checksum.c: Likewise.
2482 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2484 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2485 already loaded. This saves memory needed for tests,
2487 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2489 Fix handling of install lists.
2491 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2495 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2497 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2498 the devices before accessing them.
2500 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2502 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2505 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2507 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2509 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2511 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2512 (grub_file_close): Free file->name.
2514 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2516 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2517 (grub_load_public_key): Likewise.
2518 (grub_verify_signature_real): Likewise.
2519 (grub_cmd_verify_signature): Likewise.
2521 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2526 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2528 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2529 (grub_longjmp): Restore r31.
2530 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2532 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2534 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2535 modules to be in line with make_image_abs.
2537 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2539 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2541 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2543 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2545 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2547 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2549 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2550 to leave some memory to firmware.
2552 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2554 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2555 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2556 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2559 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2561 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2562 now needs full arguments.
2564 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2566 * util/grub-mkrescue.c (main): Add trailing \n in
2567 .disk_label.contentDetails to be in line with previous shell script.
2569 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2571 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2573 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2575 * util/grub-install-common.c (grub_install_parse): Recognize
2576 --compress=none like shell script did.
2578 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2580 * include/grub/misc.h: Replace check for __sparc64__ with one for
2581 __sparc__ as __sparc64__ isn't actually defined.
2583 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2585 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2586 counterpart of fixing the naming of escc ports.
2588 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2590 * util/grub-install-common.c (platforms): Fix the order of entries and
2591 remove useless field val.
2593 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2595 * util/grub-install.c: Add new option --no-bootsector to skip
2596 installing of bootsector. Accept --grub-setup=/bin/true as
2597 backwards-compatible synonym.
2599 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2601 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2602 order of qsort arguments (number of elements vs. element size).
2604 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2606 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2607 the function of these files exceeds what can be sanely handled in shell
2608 in posix-comaptible way. Also writing it in C extends the functionality
2609 to non-UNIX-like OS and minimal environments.
2611 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2613 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2614 compiling to thumb2.
2615 * grub-core/kern/arm/cache_armv7.S: Likewise.
2616 * grub-core/lib/arm/setjmp.S: Likewise.
2618 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2620 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2621 in grub_uboot_syscall
2623 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2625 Decrease stack usage in lexer.
2627 We have only 92K of stack and using over 4K per frame is wasteful
2629 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2630 as macros so that compiler would remove useless structure on stack.
2631 Better solution would be to fix flex not to put this structure on
2632 the stack but flex is external program.
2634 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2636 Decrease stack usage in signature verification.
2638 We have only 92K of stack and using over 4K per frame is wasteful
2640 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2642 (grub_verify_signature_real): Likewise.
2644 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2646 Decrease stack usage in mdraid 0.9x.
2648 We have only 92K of stack and using over 4K per frame is wasteful
2650 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2653 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2655 Decrease stack usage in BtrFS.
2657 We have only 92K of stack and using over 4K per frame is wasteful
2659 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2662 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2664 Decrease stack usage in JFS.
2666 We have only 92K of stack and using over 4K per frame is wasteful
2668 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2669 stack. Note: this function is recursive.
2670 (grub_jfs_read_inode): Read only part we care about.
2672 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2674 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2677 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2679 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2681 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2683 * docs/grub.texi (Environment): Document cmdpath.
2685 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2687 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2688 Remove "unused" attribute from arguments, they are used.
2690 2013-11-15 Colin Watson <cjwatson@debian.org>
2692 * .gitignore: Only ignore grub-mk* at the top level.
2694 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2696 * util/grub-reboot.in (usage): Fix a typo.
2698 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2700 Replace libgcc version of ctz with our own.
2702 On upcoming arm64 port libgcc ctz* are not usable in standalone
2703 environment. Since we need ctz* for this case and implementation is
2704 in C we may as well use it on all concerned platforms.
2706 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2708 * configure.ac: Probe for linking format rather than guessing it based
2711 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2713 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2714 "1" prior to handoff.
2716 Reported by: M A Young.
2718 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2720 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2723 Reported by: M A Young.
2725 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2727 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2728 compilation on NetBSD.
2730 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2732 * acinclude.m4: Don't add -P on initial nm test.
2734 Note: even though this patch postdates Andrey's it bears 14 Nov as
2735 date due to timezone difference.
2737 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2739 * grub-core/Makefile.core.def (signature_test): Add missing
2742 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2744 * util/grub-install_header: Set localedir here, since this file is
2746 * util/grub-install.in: Remove setting of localedir.
2747 * util/grub-mkrescue.in: Likewise.
2749 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2751 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2753 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2755 * configure.ac: Move nm checks to the end.
2756 Call grub_PROG_NM_WORKS.
2757 * acinclude.m4: New check grub_PROG_NM_WORKS.
2758 Use $TARGET_CFLAGS -c when compiling test binary.
2760 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2762 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2765 2013-11-14 Matthew Garrett <mjg@redhat.com>
2767 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2768 cmdpath to firmware directory.
2770 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2772 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2773 at the start of second iteration.
2775 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2777 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2779 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2781 * Makefile.am (default_payload.elf): New target for easier coreboot
2784 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2786 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2787 clang (not necessarry with -no-integrated-as).
2788 * include/grub/symbol.h [__arm__]: Likewise.
2790 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2792 * configure.ac: Use -no-integrated-as on arm with clang.
2793 * INSTALL: Mention ARM compilation with clang.
2795 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2797 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2800 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2802 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2803 code for indirect block handling.
2805 Saves 185 bytes on compressed image.
2807 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2811 * Makefile.am: Remove build-grub-* in make clean.
2813 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2815 New files to gitignore.
2817 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2818 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2820 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2822 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2824 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2826 * .gitignore: fix rules for .dep* and add *.a post git migration
2828 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2830 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2833 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2835 * grub-core/kern/misc.c: Don't redirect divisions in the
2837 * include/grub/misc.h: Likewise.
2839 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2841 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2842 systems that require checking the return value of write.
2844 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2846 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2847 efibootmgr quiet when --debug is not used, rather than when it is.
2849 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2851 * gentpl.py (define_macro_for_platform_dependencies): Remove
2852 first (and thus unused) of two definitions for this function.
2853 (platform_dependencies): Likewise.
2855 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2857 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2858 functions, we only need to check this for the target, not the host.
2859 * configure.ac (grub_apple_cc): Likewise.
2861 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2863 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2864 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2865 asm to stay in arm even if surrounding is thumb.
2867 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2869 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2870 helper functions are needed for thumb.
2872 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2875 level / 3 division explicitly unsigned. Saves few bytes.
2877 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2881 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2886 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2888 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2889 grub_uboot_boot_data to asm part.
2891 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2893 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2895 (grub_uboot_syscall): Save/restore r9 and align stack.
2897 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2901 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2903 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2904 occurencies with END.
2906 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2908 * util/grub-editenv.c (help_filter, argp): Document how to delete
2909 the whole environment block.
2910 Reported by Dan Jacobson. Fixes Debian bug #726265.
2912 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2914 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2917 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2919 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2920 increment/decrement.
2922 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2925 compiling with clang.
2927 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2929 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2932 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2934 Redirect all divisions to grub_divmod64.
2936 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2938 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2940 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2942 Add missing includes of loader.h.
2944 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2946 * configure.ac: Allow disabling themes.
2948 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2950 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2952 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2954 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2955 until it becomes operational.
2957 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2959 * grub-core/Makefile.core.def (legacy_password_test): Disable
2960 on platforms where no legacycfg is compiled.
2961 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2962 load legacy_password_test.
2964 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2966 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2968 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2970 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2972 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2974 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2975 strict-aliasing warning.
2976 (fsync): Silence cast warning.
2978 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/commands/verify.c: Remove variable length arrays.
2981 Load gcry_dsa/gcry_rsa automatically.
2983 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2985 * grub-core/tests/signature_test.c: New test.
2987 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2992 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2994 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2995 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2997 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2999 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3001 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3003 * grub-core/fs/proc.c: Allow \0 in proc files.
3005 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3007 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3009 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3011 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3013 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015 * grub-core/fs/ext2.c: Remove variable length arrays.
3017 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3019 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3022 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3024 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3025 * grub-core/disk/cryptodisk.c: Likewise.
3026 * grub-core/disk/geli.c: Likewise.
3027 * grub-core/disk/luks.c: Likewise.
3029 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3031 * grub-core/tests/legacy_password_test.c: New test.
3032 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3034 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3038 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/tests/pbkdf2_test.c: New test.
3042 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3044 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3046 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3048 * grub-core/io/lzopio.c: Remove variable length arrays.
3050 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3052 * include/grub/crypto.h: Add maximums on hash size and cipher block
3055 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3057 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3059 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3061 * grub-core/tests/xnu_uuid_test.c: New test.
3063 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3065 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3068 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3070 * grub-core/commands/hashsum.c: Remove variable length arrays.
3072 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3074 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3076 * tests/grub_func_test.in: Increase memory allocation.
3078 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3080 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3081 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3084 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3086 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3087 (grub_util_get_fd_size_os): ...this.
3088 (grub_hostdisk_flush_initial_buffer): New empty function.
3090 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3092 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3093 without --defined-only.
3095 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3097 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3098 rip-relative addressing in prologue.
3100 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3102 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3103 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3105 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3107 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3108 Add missing semicolon.
3110 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3112 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3114 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3116 * configure.ac: Check for lzma.h for enabling liblzma and allow
3119 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3121 Add missing includes of loader.h.
3123 2013-11-11 Fam Zheng <famcool@gmail.com>
3125 * util/grub.d/30_os-prober.in: Add minix entry.
3127 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3129 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3130 right buffer for temporary load.
3132 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3136 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3141 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3143 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3145 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3147 (LzmaDec_InitDicAndState): Make static.
3149 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3151 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3153 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3155 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3157 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3159 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3161 * docs/grub-dev.texi: Replace bzr references with git ones.
3163 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3165 * docs/grub.texi (Simple configuration): Remove reference to
3166 grub-reboot from saved default entry description - grub-default
3167 does not use it anymore.
3169 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3171 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3174 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3176 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3178 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3180 Fix grub_machine_fini bitrot.
3182 Reported by: Glenn Washburn.
3184 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3186 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3188 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3190 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3192 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3195 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3197 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3198 Add -march=core2 when testing compile of efiemu64.
3200 Thanks Andrey Borzenkov for spotting this.
3202 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3204 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3205 XEN PV environment and load kernels.
3207 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3210 * grub-core/loader/multiboot_mbi2.c: Likewise.
3212 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3214 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3217 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3219 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3221 Tested by: Denis 'GNUtoo' Carikli.
3223 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3225 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3227 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3229 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3230 Use to get rounded angle rather than truncated.
3232 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3234 * grub-core/term/serial.c: Add option for enabling/disabling
3235 RTS/CTS flow control.
3237 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3239 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3242 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3244 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3245 Use grub_fatal rather than divide by zero.
3246 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3248 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3250 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3252 (grub_fixed_fsf_divide): Likewise.
3254 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3256 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3257 division by-zero and senseless negative divisions.
3259 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3261 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3262 division by-zero and senseless negative divisions.
3263 (circprog_set_property): Don't accept negative num_ticks.
3265 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3267 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3268 division by-zero and senseless negative divisions.
3270 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3272 * configure.ac: Use elf_*_fbsd on kfreebsd.
3274 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/tests/div_test.c: New test.
3278 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3280 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3281 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3282 * grub-core/gfxmenu/view.c: Likewise.
3283 * grub-core/video/fb/video_fb.c: Introduce new functions:
3284 grub_video_set_area_status, grub_video_get_area_status,
3285 grub_video_set_region, grub_video_get_region.
3286 * grub-core/video/bochs.c: Likewise.
3287 * grub-core/video/capture.c: Likewise.
3288 * grub-core/video/video.c: Likewise.
3289 * grub-core/video/cirrus.c: Likewise.
3290 * grub-core/video/efi_gop.c: Likewise.
3291 * grub-core/video/efi_uga.c: Likewise.
3292 * grub-core/video/emu/sdl.c: Likewise.
3293 * grub-core/video/radeon_fuloong2e.c: Likewise.
3294 * grub-core/video/sis315pro.c: Likewise.
3295 * grub-core/video/sm712.c: Likewise.
3296 * grub-core/video/i386/pc/vbe.c: Likewise.
3297 * grub-core/video/i386/pc/vga.c: Likewise.
3298 * grub-core/video/ieee1275.c: Likewise.
3299 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3300 * include/grub/video.h: Likewise.
3301 * include/grub/video_fb.h: Likewise.
3302 * include/grub/fbfill.h: Updated render_target structure.
3303 grub_video_rect_t viewport, region, area
3304 int area_offset_x, area_offset_y, area_enabled
3305 * include/grub/gui.h: New helper function
3306 grub_video_bounds_inside_region.
3307 * docs/grub-dev.texi: Added information about new functions.
3309 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3311 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3314 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3316 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3318 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3320 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3322 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3323 simple division on arm and ia64.
3325 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3327 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3330 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3332 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3337 prefix symbol, not @.
3339 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3341 * INSTALL: Add note about older gcc and clang.
3343 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3345 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3347 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3349 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3350 NULL pointer dereference.
3352 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3354 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3357 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3359 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3362 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3364 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3366 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3367 * grub-core/disk/geli.c (ascii2hex): Likewise.
3369 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3371 * configure.ac: Run linker tests without -Werror.
3372 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3373 Change all occurences of -static-libgcc resp -lgcc to
3374 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3376 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3380 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3382 Allow compiling with clang (not really supported though).
3384 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3386 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3387 Add -mrtd -mregparm=3 on i386 when not using clang.
3388 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3394 * grub-core/lib/reed_solomon.c: Likewise.
3395 * include/grub/i386/gdb.h: Likewise.
3396 * include/grub/i386/pc/int.h: Likewise.
3397 * include/grub/i386/pc/pxe.h: Likewise.
3398 * include/grub/ieee1275/ieee1275.h: Likewise.
3400 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3402 Import libgcrypt 1.5.3.
3404 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406 * configure.ac: Don't add -Wcast-align on x86.
3408 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3410 * configure.ac: Add -freg-struct-return on all platforms that
3413 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3415 * acinclude.m4: Use -Werror on parameter tests.
3416 * configure.ac: Likewise.
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3420 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424 * configure.ac: Check that -malign-loops works rather than assuming that
3425 either -falign-loops or -malign-loops work.
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3429 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3431 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433 * configure.ac: Prevent cflags leaking to subsequent tests by always
3434 resetting cflags to target_cflags in target tests.
3436 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3441 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3443 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3445 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3449 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451 * grub-core/normal/cmdline.c (grub_cmdline_get):
3452 Remove nested functions.
3454 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3456 * tests/test_sha512sum.in: Make it work on emu.
3458 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3462 (grub_bidi_line_logical_to_visual): Likewise.
3464 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3466 Remove vestiges of -Wunsafe-loop-optimisations.
3468 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3469 -Wno-unsafe-loop-optimisations.
3470 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3472 * grub-core/io/gzio.c: Likewise.
3473 * grub-core/script/parser.y: Likewise.
3474 * grub-core/script/yylex.l: Likewise.
3475 * util/grub-mkfont.c: Likewise.
3477 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479 * util/grub-mkfont.c (process_cursive): Remove nested function.
3481 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3484 (grub_boot_time): Likewise.
3486 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488 * include/grub/symbol.h (FUNCTION): Use @function rather than
3490 (VARIABLE): Likewise.
3492 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3496 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3499 (parse_dhcp_vendor): Likewise.
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3503 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3505 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3508 Define after defining type and not before.
3510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3512 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3514 (grub_gcm_decrypt): Likewise.
3515 (algo_decrypt): Likewise.
3516 (grub_zfs_decrypt_real): Transform error type.
3518 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3525 (grub_usbms_cbi_reset): Likewise.
3526 (grub_usbms_bo_reset): Likewise.
3527 (grub_usbms_reset): Likewise.
3528 (grub_usbms_attach): Likewise.
3529 (grub_usbms_transfer_cbi): Likewise.
3531 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3534 "checksum = checksum;".
3536 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3538 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3541 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3543 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3550 (grub_ehci_fini_hw): Likewise.
3551 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3553 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3555 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3556 return grub_usb_err_t for cosistency. All users updated.
3558 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3560 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3561 assigning to itself.
3563 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3564 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3566 Issue separate DNS queries for ipv4 and ipv6
3568 Adding multiple questions on a single DNS query is not supportted by
3569 most DNS servers. This patch issues two separate DNS queries
3570 sequentially for ipv4 and then for ipv6.
3572 Fixes: https://savannah.gnu.org/bugs/?39710
3574 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3575 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3576 * (grub_net_dns_lookup): Now using separated dns packages.
3577 * (grub_cmd_nslookup): Add error condition.
3578 * (grub_cmd_list_dns): Print DNS option.
3579 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3580 --prefer-ipv4, and --prefer-ipv6.
3581 * include/grub/net.h (grub_dns_option_t): New enum.
3582 * (grub_net_network_level_address): option added.
3584 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3586 * grub-core/video/fb/video_fb.c: Merge two blit functions
3589 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3591 * grub-core/term/terminfo.c: Add sequences for home and end.
3593 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3598 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3603 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3605 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3606 e-mail by Per Öberg.
3608 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3610 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3613 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3615 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3617 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3619 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3621 * docs/grub.texi: Document usage of menuentry id.
3623 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3625 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3627 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3629 * grub-core/commands/i386/nthibr.c: New command.
3631 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3633 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3635 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3637 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3640 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3642 Support GRUB_DISABLE_SUBMENU config.
3644 Inspired by patch from Prarit Bhargava.
3646 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3648 * docs/grub.texi: Mention RSA support.
3650 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/commands/verify.c: Add RSA support.
3654 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3656 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3657 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3658 device is known to be ATAPI.
3660 2013-11-03 Mike Frysinger <vapier>
3662 * configure.ac: Don't add target-prefix.
3664 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3666 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3669 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3671 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3672 if language is English.
3674 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3676 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3678 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3680 * configure.ac: Don't add -m32/-m64 on emu.
3684 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3685 broken linux headers.
3687 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3689 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3691 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3693 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3694 Reed-Solomon recovery if more than half of redundancy info is 0.
3696 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3698 * util/grub-mount.c: Handle symlinks to directories.
3700 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3702 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3703 find_file recursively for symlink.
3705 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3707 * tests/util/grub-shell.in: Copy themes.
3709 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3711 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3713 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3715 * configure.ac: Use 0x8000 for address instead of 8000.
3717 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3719 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3722 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3724 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3729 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3731 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3733 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3734 file_progress_read_hook.
3735 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3737 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3739 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3742 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3744 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3746 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3748 Rewrite blocklist functions in order to get progress when
3749 reading large extents and decrease amount of blocklist hook calls.
3751 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3756 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3758 Support --base-clock for serial command to handle weird cards with
3759 non-standard base clock.
3761 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3763 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3765 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3766 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3767 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3768 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3769 + strcpy rather than strncpy.
3771 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3773 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3774 (check_pool_label): Likewise. Fixes overflow.
3775 (nvlist_find_value): Fix comparison.
3777 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3779 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3780 more appropriate functions.
3782 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3784 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3787 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3789 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3791 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3793 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3796 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3798 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3800 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3803 (initialize_tables): reset tl and td to NULL after freeing.
3805 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3807 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3809 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3811 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3814 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3816 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3818 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3823 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3826 a page in protected space.
3828 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3830 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3831 allocate space for zero-sized modules.
3833 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3837 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3839 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3841 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3843 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3844 safeguards. Fixes a crash with i386/pc/console.c.
3846 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3848 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3849 and grub_hostfs_init.
3851 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3853 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3854 windows method on other platforms without good stat as well.
3856 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3858 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3860 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3862 Make / in btrfs refer to real root, not the default volume.
3863 Modify mkrelpath to work even if device is mounted with subvolid option.
3865 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3867 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3869 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3872 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3874 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3877 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3879 * docs/autoiso.cfg: New file.
3881 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3883 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3884 COND_GRUB_PE2ELF conditions.
3886 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3889 "vnd", "rd" and "fd" disks.
3891 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3893 Move grub_disk_write out of kernel into disk.mod.
3895 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3897 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3900 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3902 * grub-core/kern/misc.c (grub_abort): Make static
3904 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3906 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3907 transform invalid unicode codepoints.
3909 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3911 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3914 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3916 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3918 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3920 Consolidate cpuid code.
3922 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3924 Move cpuid code to cpuid.h and TSC code to tsc.c.
3926 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3928 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3930 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3932 * util/grub-mkconfig.in: Replace $0 with $self.
3933 * util/grub-reboot.in: Likewise.
3934 * util/grub-set-default.in: Likewise.
3936 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3938 * docs/osdetect.cfg: New file.
3940 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3942 * tests/util/grub-shell.in: Add new --debug option.
3944 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3946 * tests/test_unset.in: New test.
3948 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3950 * tests/test_sha512sum.in: New test.
3952 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3954 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3955 * include/grub/misc.h: Remove strncat.
3956 * grub-core/lib/posix_wrap/string.h: Likewise.
3958 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3960 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3961 Try to handle more than 0xFFFF packets.
3962 Reported by: Bernhard Übelacker <bernhardu>.
3963 He also spotted few overflows in first version of this patch.
3965 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3967 * tests/date_unit_test.c: New test.
3969 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3971 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3972 of first three years after start of validity of unixtime.
3974 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3976 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3977 division as the one making more sense.
3978 (update_screen): Likewise.
3979 (complete): Likewise.
3981 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3983 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3985 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3987 Make char and string width grub_size_t rather than grub_ssize_t.
3989 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3993 (grub_history_replace): Likewise.
3995 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3997 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4000 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4002 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4005 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4007 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4008 Use unsigned divisions rather than signed variants.
4010 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4012 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4013 unsigned arithmetics.
4016 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4020 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4022 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4023 rather than signed one.
4024 (recovery): Likewise.
4026 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4030 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4035 2013-10-25 Jon McCune <jonmccune@google.com>
4037 * docs/grub.texi: Cleanup security documentation around signatures.
4039 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4041 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4043 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4045 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4048 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4050 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4051 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4052 functions when compiling for kernel.
4054 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4056 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4057 unsigned long long when using %llu.
4059 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4062 terminal after updating progress.
4064 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4066 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4067 argument. We don't disable Gate A20 in this code.
4069 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4071 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4072 Conceptually based on change in branch "vbe-on-coreboot".
4074 2013-10-24 Robert Millan <rmh@gnu.org>
4076 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4077 numeric constants with their symbolic equivalent.
4078 Taken from branch "vbe-on-coreboot".
4080 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4082 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4084 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4086 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4087 divmod64 for offset division.
4089 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4091 Rename .bzrignore to .gitignore. Add "*.o" rule.
4093 * .bzrignore: Renamed to...
4094 * .gitignore: ...this.
4096 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4098 Add new progress module that displays the load progress of files.
4100 * grub-core/lib/progress.c: New file.
4101 * grub-core/Makefile.core.def (progress): New module.
4102 * grub-core/kern/file.c (grub_file_open): File name added.
4103 * (grub_file_read): Progress hook added.
4104 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4105 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4106 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4107 * include/grub/file.h (struct grub_file): Add progress module members.
4108 * include/grub/term.h (struct grub_term_output): Likewise.
4109 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4110 Terminal velocity added.
4111 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4112 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4113 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4114 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4115 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4116 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4117 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4118 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4119 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4120 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4121 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4122 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4124 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4126 Verify signatures of signatures unless --skip-sig is specified.
4128 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4130 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4133 Saves 70 bytes on compressed image.
4135 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4137 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4140 Saves 10 bytes on compressed image.
4142 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4144 * grub-core/kern/misc.c (grub_isprint): Move to ...
4145 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4147 Saves 20 bytes on compressed image due to remving exporting.
4149 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4151 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4153 Saves 5 bytes on compressed image.
4155 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4160 Saves 379 bytes on compressed image.
4162 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4164 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4166 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4168 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4170 Saves 40 bytes on compressed image.
4172 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4174 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4175 mask rather than 64-bit type.
4177 Saves 20 bytes on compressed image.
4179 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4181 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4182 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4184 Saves 273 bytes on compressed image.
4186 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4188 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4189 variable length arrays.
4191 Saves 50 bytes on compressed image.
4193 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4195 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4197 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4199 * grub-core/fs/ufs.c: Remove variable length arrays.
4201 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4203 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4205 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4207 * grub-core/fs/zfs.c: Remove variable length arrays.
4208 Reduces zfs.mod by 160 bytes (208 compressed).
4210 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4212 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4214 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/net/arp.c: Remove variable length arrays.
4217 * grub-core/net/bootp.c: Likewise.
4218 * grub-core/net/dns.c: Likewise.
4219 * grub-core/net/icmp6.c: Likewise.
4220 * grub-core/net/net.c: Likewise.
4222 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4224 * grub-core/fs/ntfs.c: Remove variable length arrays.
4225 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4228 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4230 * grub-core/fs/hfs.c: Remove variable length arrays.
4231 Reduces hfs.mod by 8 bytes (52 compressed).
4233 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4235 * grub-core/fs/udf.c: Remove variable length arrays.
4236 Increases udf.mod by 128 bytes (but decreases by 13 when
4239 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/fs/iso9660.c: Remove variable length arrays.
4242 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4245 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4248 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4251 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4253 * grub-core/fs/xfs.c: Remove variable length arrays.
4254 Reduces xfs.mod by 40 bytes (43 compressed).
4256 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4258 * grub-core/fs/fshelp.c: Remove variable length arrays.
4259 Reduces fshelp.mod by 116 bytes (23 compressed).
4261 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4263 * grub-core/normal/completion.c: Remove variable length arrays.
4264 * grub-core/normal/menu_entry.c: Likewise.
4266 Reduces normal.mod by 496 bytes.
4268 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4270 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4271 by 356 bytes (158 compressed).
4273 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4275 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4276 by 364 bytes (169 compressed).
4278 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4280 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4281 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4282 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4284 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4286 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4287 bitmasks to small structures of size chosen to fit in registers.
4289 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4291 * conf/Makefile.common: Use -freg-struct-return on i386. This
4292 decreases code size and improves performance.
4294 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4296 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4298 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4300 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4302 Simplify expressions to save around 256 bytes in kernel.img.
4303 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4305 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4307 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4308 Use GRUB_UTIL_FD_O_* rather than O_*.
4310 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4312 Add haiku-specific functions.
4314 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4316 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4318 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4320 Move stat () and device mode checking into OS-dependent files as
4321 long as performance doesn't suffer.
4323 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4325 Split make_system_path_relative_to_its_root into separate file
4326 relpath.c from getroot.c as it's common between unix and haiku
4327 but otherwise haiku doesn't use any functions from unix getroot.c.
4329 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4331 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4333 (grub_util_is_special_file): Likewise.
4335 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4337 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4338 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4340 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4342 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4343 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4345 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4347 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4348 (load_image): Likewise.
4350 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4352 * util/grub-render-label.c: Move backend part to ...
4353 * util/render-label.c: ... here.
4355 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4357 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4358 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4360 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4362 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4364 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4366 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4367 CD-ROM in case when it's declared as having subpartitions.
4369 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4371 Don't add -lm on haiku.
4373 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4375 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4378 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4380 * configure.ac: Use -melf_*_haiku as target on haiku.
4382 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4384 * Makefile.util.def: Add util/setup.c to extra_dist.
4386 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4388 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4389 unknown types through.
4391 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4393 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4394 (grub_util_check_char_device): Likewise.
4395 * include/grub/emu/getroot.h: Likewise.
4397 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4399 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4400 memset rather than inline static function.
4402 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4405 not doing embedded decompressor.
4407 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4409 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4411 * grub-core/kern/disk.c: Likewise.
4412 * grub-core/kern/misc.c: Likewise.
4413 * include/grub/parser.h: Likewise.
4414 * include/grub/script_sh.h: Likewise.
4415 * include/grub/zfs/zfs.h: Likewise.
4417 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4419 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4421 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4423 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4424 defined before trying to use it.
4426 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4428 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4431 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4433 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4434 Use __unused__ rather than __used__ on gcc < 3.2.
4436 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4438 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4440 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4442 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4444 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4446 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4448 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4449 * include/grub/emu/misc.h: Likewise.
4451 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4456 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4458 * grub-core/tests/checksums.h: Regenerated due to progress bar
4459 get_minimal_size changes.
4461 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4463 Added `tr' command support.
4465 * grub-core/commands/tr.c: New file.
4466 * grub-core/Makefile.core.def: Build rules for new module.
4468 * tests/grub_cmd_tr.in: New test.
4469 * Makefile.util.def: Build rules for new test.
4471 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4473 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4475 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4477 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4478 * docs/gurb.texi: Likewise.
4480 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4482 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4483 Pixmap highlighted section with east and west slices was displayed
4484 incorrectly due to negative width of the central slice.
4486 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4488 * docs/grub.texi: Graphical options information update.
4489 Removed outdated. Updated current. Inserted missed.
4491 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4493 * docs/grub.texi: Mention few new platform-specific commands.
4495 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4497 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4498 currently used so this doesn't really have any effect.
4499 Reported by: Douglas Ray <dougray>
4501 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4503 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4504 compilation but prevents gcc from displaying messages in non-Latin
4506 * conf/Makefile.common: Likewise.
4508 2013-10-16 Hiroyuki YAMAMORI
4510 Handle Japanese special keys.
4511 Reported by: Hiroyuki YAMAMORI.
4512 Codes supplied by: Hiroyuki YAMAMORI.
4514 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4516 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4518 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4520 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4521 * docs/grub.texi: Likewise.
4523 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4525 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4526 value in case of incomplete read.
4527 (grub_util_fd_write): Likewise.
4529 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4531 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4533 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4535 * util/grub-editenv.c (create_envblk_file): More from here ...
4536 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4538 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4540 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4541 canonicalize file name before doing the rest.
4543 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4545 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4548 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4550 Define grub_util_is_directory/regular/special_file and
4551 use OS-dependent versions rather than to rely on stat().
4553 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4555 * util/grub-mkimage.c: Move backend part to ...
4556 * util/mkimage.c: ... here.
4558 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4560 Allow compilation with mingw64 albeit with warnings due to lack of
4563 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4564 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4565 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4566 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4568 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4570 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4572 Remove leftover references to some of the system headers.
4574 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4576 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4579 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4581 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4584 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4586 Split out blocklist retrieving from setup.c to
4587 grub-core/osdep/blocklist.c and add windows implementation since
4588 generic version doesn't work on NTFS on Windows due to aggressive
4591 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4593 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4596 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4598 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4599 Cut tailing newline. Remove arbitrary limitation. Always use
4600 grub_util_tchar_to_utf8.
4602 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4604 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4605 * tests/printf_unit_test.c (printf_test): Add %% tests.
4606 Reported by: Paulo Flabiano Smorigo.
4608 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4610 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4613 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4615 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4616 use nvlist_lookup_string and don't use nvlist_print.
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4621 closedir to handle filename charset translation.
4623 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4625 * include/grub/emu/hostdisk.h: Move file operations to
4626 * include/grub/emu/hostfile.h: ... here.
4628 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4630 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4633 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4635 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4637 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4639 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4640 and remove export.h.
4642 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4644 * grub-core/kern/emu/error.c: Removed.
4645 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4646 explicitly as it's already in libgnu.a.
4648 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4650 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4651 config-util.h include.
4653 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4655 Split emunet into platform-dependent and GRUB-binding parts. Keep
4656 platform-dependent part in kernel for easy access to OS functions.
4658 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4660 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4663 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4665 * grub-core/osdep/windows/emuconsole.c: New file.
4667 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4669 * conf/Makefile.extra-dist: Add osdep/*/init.c
4671 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4673 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4675 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4677 * util/grub-probe.c (probe): Separate different drives in hint-str
4678 by spaces and not newlines.
4679 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4681 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4683 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4686 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4688 Pass-through unknown E820 types. It required reorganisation of mmap
4691 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4693 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4695 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4697 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4700 2013-10-14 qwertial <qwertial>
4702 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4704 2013-10-14 Jon McCune <jonmccune@google.com>
4706 * docs/grub.texi: Document new signatures possibility.
4708 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4710 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4712 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4714 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4716 (grub_util_tchar_to_utf8): Likewise.
4718 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4720 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4721 * grub-core/kern/emu/main.c: Add missing include.
4722 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4723 Don't call grub_util_init_nls.
4724 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4727 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4729 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4732 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4734 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4736 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4738 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4740 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4742 Add a wrapper for fopen. On unix-like systems just pass-through. On
4743 windows use unicode version.
4745 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4747 Move set_program_name and init_nls to host_init. On windows
4748 fix in this fuction console and argument charset as well.
4750 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4752 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4753 GRUB_ENABLE_CRYPTODISK.
4755 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4756 GRUB_ENABLE_CRYPTODISK.
4757 * util/grub-mkconfig_lib.in: Likewise.
4759 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4761 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4763 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4765 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4766 error when enabling debug.
4768 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4770 * configure.ac: Use -melf_*_obsd on openbsd.
4772 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4774 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4776 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4778 * include/grub/misc.h: Use gnu_printf rather than printf as format
4779 template since our functions are independent of libc.
4781 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4783 * util/grub-setup.c (setup): Move copying of partition table as
4784 futher up as possible to avoid possible overwrite by floppy routines.
4786 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4788 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4790 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4792 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4793 * docs/grub.texi: Likewise.
4795 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4797 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4798 it's mostly unused. Move vestiges to the callers.
4800 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4802 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4803 version of salt and hash. Use grub_snprintf rather than snprintf.
4805 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4807 * docs/grub.texi: Fix problem with braces.
4809 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4811 * conf/Makefile.extra-dist: Fix extra-dist list.
4812 * grub-core/Makefile.core.def: Likewise.
4814 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4816 * docs/grub.texi: Document disk names used on Windows and AROS.
4818 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4820 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4822 * grub-core/osdep/aros/hostdisk.c: Likewise.
4824 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4826 Avoid including hostfile.h when not necessarry as it pulls
4827 in OS-specific headers which may redefine generic names
4830 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4832 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4833 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4834 scrollbar_bottom_pad
4835 * docs/grub.texi: Likewise.
4837 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4839 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4841 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4843 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4845 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4847 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4849 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4852 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4854 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4857 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4859 Move OS-specific driver configuration to grub_util_fd_open. This
4860 moves OS-dependent parts from kern/emu/hostdisk.c to
4861 grub-core/osdep/*/hostdisk.c.
4863 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4865 * util/grub-mkimage.c (generate_image): Use size_t instead of
4867 * util/grub-mkimagexx.c (locate_sections): Likewise.
4868 (load_image): Likewise.
4870 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4872 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4874 (grub_util_write_image): Likewise.
4876 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4878 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4879 get random when no RNG is available.
4880 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4882 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4884 * include/grub/util/lvm.h: Removed.
4886 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4888 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4889 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4891 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4893 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4895 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4897 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4899 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4901 * grub-core/net/drivers/emu/emunet.c: Move to ..
4902 * grub-core/osdep/linux/emunet.c: ..here.
4904 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4906 * util/ieee1275/ofpath.c: Move to ...
4907 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4908 * grub-core/osdep/basic/ofpath.c: ..here.
4910 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4912 Move password-querying (util-version) routines to grub-core/osdep.
4914 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4916 Move sleep routines to grub-core/osdep.
4918 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4920 Move OS-dependent files to grub-core/osdep and document it.
4922 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4924 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4925 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4927 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4929 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4931 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4933 * util/misc.c: Remove leftover inclusion of malloc.h.
4935 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4937 * include/grub/setjmp.h: Remove leftover GRUBOF.
4939 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4941 * util/raid.c: Fold into ...
4942 * util/getroot_linux.c: ... here. Make all functions static.
4944 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4946 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4947 macros to GRUB ones.
4949 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4951 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4952 occasional bug. If there are too many boot entries or too low
4953 scrollbar height then we need to use another formula to calculate
4954 the position and size of the scrollbar thumb.
4956 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4958 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4960 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4962 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4963 * docs/grub.texi: Likewise.
4965 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4967 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4970 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4972 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4973 minimal width calculations.
4975 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4977 * docs/grub.texi: Update note on colors on emu console.
4979 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4981 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4982 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4983 it's FS and not GRUB limitation.
4985 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4987 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4989 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4991 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4993 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4995 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4996 kernels by version order.
4998 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5000 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5002 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5004 Add AROS hostdisk and getroot routines.
5006 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5008 Make cryptodisk and diskfilter probe data retrievable programmatically
5009 and not just printable.
5011 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5013 Split random retrieving code into separate files.
5015 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5017 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5020 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5022 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5024 * grub-core/tests/fake_input.c: Likewise.
5025 * grub-core/tests/cmdline_cat_test.c: Likewise.
5027 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5029 * grub-core/video/capture.c: Do not do finalization when .fini
5030 is called as there is explicit capture_end.
5032 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5034 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5035 changing windows to avoid crash.
5037 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5039 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5041 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5043 * po/exclude.pot: Add several strings to exclude.
5045 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5047 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5049 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5051 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5052 ./util/grub-gen-asciih.c to exclude list.
5054 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5056 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5057 and don't mark error strings for translation.
5059 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5061 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5062 properly in case of missing block size.
5064 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5066 * grub-core/lib/arm/setjmp.S: Add missing license section.
5068 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5070 * po/swiss.sed: Add replacement for key names and for term computer.
5072 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5074 * grub-core/gfxmenu/theme_loader.c: New global options for the
5075 theme background image handling. desktop-image-scale-method,
5076 desktop-image-h-align, desktop-image-v-align.
5077 * grub-core/gfxmenu/view.c: Likewise.
5078 * include/gfxmenu_view.h: Likewise.
5079 * include/bitmap_scale.h: Proportional scale functions introduced.
5080 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5081 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5082 cases of unexpected input variables for scale functions.
5083 * docs/grub.texi: Updated documentation for new options.
5085 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5087 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5089 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5091 * grub-core/tests/checksums.h: Corrected due to changes in
5092 bilinear interpolation function.
5094 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5096 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5097 to eliminate artefacts in bilinear interpolation.
5099 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5101 * grub-core/video/readers/tga.c: Support paletted tga.
5103 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5105 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5106 incorrect cbcr setting when in color mode.
5108 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5110 * grub-core/video/readers/png.c: Support paletted images and clean up
5113 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5115 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5116 usage of wrong table which resulted in mishandling of 4-byte
5119 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5121 * grub-core/term/terminfo.c: Add Home and End key sequences.
5123 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5125 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5126 Fix formula for computing total number of bytes.
5128 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5131 image processing, fix big-endian and support grayscale.
5133 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5135 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5136 Correctly will with maximum transparency when using index color.
5138 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5140 * grub-core/video/readers/png.c: Support grayscale
5142 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5144 * grub-core/video/readers/jpeg.c: Support grayscale.
5146 2013-09-26 Jon McCune <jonmccune@google.com>
5148 * grub-core/commands/loadenv.c: Support skipping signature check
5149 and variable names filtering.
5151 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5153 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5154 * grub-core/kern/emu/hostfs.c: Likewise.
5155 * util/getroot_unix.c: Likewise.
5157 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5159 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5160 Migrate all explicit defines to this new one.
5162 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5164 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5165 grub_util_fd_strerror when using grub_util_fd_*.
5166 (grub_util_fd_open_device): Likewise.
5167 (grub_util_biosdisk_read): Likewise.
5168 (grub_util_biosdisk_write): Likewise.
5169 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5170 (grub_util_fd_strerror): Likewise.
5171 (grub_util_fd_sync): Likewise.
5172 (grub_util_fd_close): Likewise.
5173 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5174 (grub_util_fd_close): Likewise.
5175 (grub_util_fd_strerror): Likewise.
5176 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5177 function proto rather than macro.
5178 (grub_util_fd_sync): Likewise.
5179 (grub_util_fd_open): Likewise.
5180 (grub_util_fd_strerror): New proto.
5182 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5184 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5185 platforms on which it doesn't work.
5187 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5190 stat immediately to where it's used.
5192 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5194 * util/getroot.c (grub_util_check_block_device): Move to ...
5195 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5196 * util/getroot.c (grub_util_check_char_device): Move to ...
5197 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5199 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5201 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5204 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5206 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5208 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5210 * docs/grub.texi (File name syntax): Document ZFS filenames
5211 (/volume@snapshot/...).
5213 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5215 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5216 Always return full path. Fixes a problem with mkrelpath.
5218 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5220 * util/grub-install.in: Add GPT PReP support.
5221 * util/grub-probe.c (probe): Support GPT partition type.
5222 (main): Support -t gpt_parttype.
5224 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5226 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5228 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5230 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5232 2013-09-23 Tim Hardeck <thardeck>
5234 * util/grub.d/10_hurd.in: Filter out character for the class.
5235 * util/grub.d/10_kfreebsd.in: Likewise.
5236 * util/grub.d/10_linux.in: Likewise.
5237 * util/grub.d/20_linux_xen.in: Likewise.
5239 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5241 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5244 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5246 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5249 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5251 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5252 doesn't use posix_wrap. Keep literal -fno-builtin however.
5254 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5256 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5258 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5261 * configure.ac: Do not enable -Wmissing-noreturn as its
5262 usefulness is limited and creates problems on some OS notably with
5263 code generated by bison.
5265 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5268 * configure.ac: Do not explicitly enable -Waddress as it's not
5269 supported by all gcc and when it is, it's already enabled by -Wall.
5271 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5273 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5274 desactivated use of EDID at all.
5276 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5279 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5280 video if no text is available.
5282 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5285 * configure.ac: Substitute TARGET_RANLIB.
5287 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5290 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5292 Based on patches from AROS.
5294 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5297 * grub-core/Makefile.am: Override STRIP and RANLIB.
5298 * configure.ac: compute TARGET_RANLIB.
5299 * INSTALL: Document TARGET_RANLIB
5301 Based on patches from AROS.
5303 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5305 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5306 that floppies are unpartitioned.
5308 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5310 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5311 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5313 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5316 less nice but more portable.
5317 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5319 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5323 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5325 (grub_cryptodisk_cheat_insert): Likewise.
5326 (grub_cryptodisk_close): Likewise.
5328 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5330 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5331 Use windows path for DEFAULT_DIRECTORY.
5333 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5335 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5336 difference was likely just gcc version, not anything mingw-related.
5338 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5340 Use Winapi on both cygwin and mingw32 to share more code between both.
5342 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5344 * util/grub-install.in: Add --grub-editenv option.
5345 * util/grub-install_header (grub_compress_file): Explicitly check for
5346 plain file to avoid cp error.
5348 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5350 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5351 names; fix LVM driver name (lvm, not lv).
5352 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5355 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5357 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5358 files rather than one file with loads of #if's.
5359 * util/getroot.c: Likewise.
5361 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5363 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5365 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5367 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5368 GNU/Hurd to the list of checked PRNG.
5370 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5372 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5374 2013-09-21 Ales Nesrsta <starous@volny.cz>
5376 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5378 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5380 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5381 * grub-core/disk/lvm.c: Add LVM UUIDs.
5382 * util/getroot.c: Use LVM UUIDs whenever possible.
5384 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5386 * docs/grub.texi (Networking commands): Add documentation for
5387 network related commands.
5389 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5391 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5392 to determine if device is handled by devmapper.
5393 (convert_system_partition_to_system_disk): Likewise.
5394 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5395 already done in grub_util_open_dm.
5397 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5399 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5400 Clean up stack manipulation (sync_caches_armv*)
5402 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5404 * util/lvm.c: Remove since unused. Remove remaining references.
5406 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5408 Handle the case of partitioned LVM properly.
5410 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5411 Stop on meeting LVM, mpath or DMRAID.
5412 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5413 (read_device_map): Likewise.
5414 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5415 device is full disk rather than erroring out on LVM and similar cases.
5417 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5419 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5421 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5423 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5425 Reported by: Leif Lindholm
5427 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5428 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5430 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5433 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5435 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5436 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5438 2013-09-18 Douglas Ray <dougray@cpan.org>
5440 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5443 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5445 * docs/grub.texi: Fix broken link.
5447 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5449 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5450 to break endless loop.
5452 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5454 * util/grub-fstest.c: Fix several printf formats.
5455 * util/grub-mkimage.c: Likewise.
5456 * util/grub-mkimagexx.c: Likewise.
5457 * util/grub-script-check.c: Likewise.
5459 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5461 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5464 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5466 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5468 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5470 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5471 removed in current versions cygwin_conv_*.
5473 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5475 * configure.ac: Disable efiemu runtime on cygwin.
5477 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5479 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5480 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5482 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5484 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5487 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5489 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5491 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5494 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5496 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5497 when on x86 and not cygwin.
5498 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5501 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5503 * configure.ac: Set CPP to build one when checkoing for freetype for
5506 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5508 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5509 [!GRUB_BUILD]: Remove has_argument.
5511 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5513 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5514 Replace with a dummy.
5516 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5518 * configure.ac: Don't change host_os from mingw to cygwin.
5520 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5522 * configure.ac: Change target_os from windows to cygwin.
5524 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5526 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5528 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5529 (build-grub-gen-asciih): Likewise.
5530 (build-grub-gen-widthspec): Likewise.
5531 * Makefile.util.def (grub-pe2elf): Remove.
5532 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5533 * configure.ac: Separate tests for build.
5534 Move ./build-grub-pe2elf to grub-core.
5536 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5537 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5539 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5541 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5542 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5543 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5545 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5547 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5548 mingw32 as well based on grub_util_get_disk_size.
5549 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5550 grub_util_get_fd_size.
5552 (fsync): Moved to ...
5553 * grub-core/kern/emu/misc.c (fsync): ... here.
5555 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5557 * include/grub/mm.h (grub_extend_alloc): Remove.
5558 * grub-core/loader/i386/pc/plan9.c: Use own version of
5559 grub_extend_alloc with appropriate types.
5561 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5563 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5565 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5567 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5569 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5571 Fix dependencies on cygwin.
5573 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5574 dependencies when used and defined.
5575 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5577 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5579 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5580 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5582 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5584 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5585 implementation available to cause compile-time rather than runtime
5588 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5590 * util/grub-fstest.c: Don't check for symlinks on windows.
5592 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5594 * INSTALL: Mention unavailability of man pages when cross-compiling.
5596 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5598 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5600 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5602 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5604 * INSTALL: Document cross-compilation.
5605 * acinclude.m4: Determine whether nm support -P and --defined-only.
5606 * configure.ac: Add TARGET_ to all variables pertaining to target
5607 that don't have it yet.
5608 * gentpl.py: Likewise.
5609 * grub-core/Makefile.am: Likewise.
5610 * grub-core/genmod.sh.in: Likewise.
5611 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5614 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5616 * configure.ac: Remove -Wempty-body. It's not essential and needs
5619 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5621 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5622 * util/getroot.c: Likewise.
5624 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5626 * grub-core/disk/ahci.c: Add needed explicit cast.
5627 * grub-core/lib/backtrace.c: Likewise.
5628 * grub-core/net/ip.c: Likewise.
5629 * grub-core/net/tcp.c: Likewise.
5630 * grub-core/net/udp.c: Likewise.
5632 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5634 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5636 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5638 * util/import_gcry.py: Add final newline in visibility.h.
5640 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5642 * conf/Makefile.common: Fix typo.
5644 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5646 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5648 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5650 * Makefile.am (widthspec.h): Fix typo.
5651 * util/grub-gen-widthspec.c: Likewise.
5653 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5655 Move ascii.h and widthspec.h generation to a separate build-time-only
5658 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5660 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5661 Always fill bootdisk info and improve check for NetBSD disklabel.
5663 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5665 * conf/Makefile.extra-dist: Add util/bin2h.c.
5666 Reported by: floppym.
5668 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5670 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5672 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5674 * configure.ac: Disable unifont and starfield if no freetype was found.
5676 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5679 on NetBSD and OpenBSD.
5681 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5683 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5685 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5687 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5688 reduced. Inheritant options are processed during the theme loading.
5690 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5692 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5694 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5696 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5698 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5700 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5703 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5705 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5706 remove-potcdate.sed.
5708 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5710 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5711 unused attribute from pull argument.
5713 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5715 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5718 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5720 * util/getroot.c (pull_lvm_by_command): add --separator option
5721 to vgs call to disable padding of output to 10 characters.
5723 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5725 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5727 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5730 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5732 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5735 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5737 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5738 full Canadian cross. Tested with build=x86_64, host=arm,
5739 target=ppc-ieee1275.
5741 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5743 * configure.ac: Error if no $BUILD_CC could be found.
5746 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5748 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5751 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5753 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5754 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5756 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5758 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5759 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5760 falling back to the partition device, otherwise a later call to this
5761 function may fail spuriously.
5762 Reported by Axel Beckert. Fixes Debian bug #708614.
5764 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5766 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5768 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5770 Prevent shadowing of stdlib's devname(3) on BSD.
5772 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5773 and devlast to diskname and disklast, respectively.
5775 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5777 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5779 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5781 * docs/grub.texi: Introduce terminal window position options:
5782 terminal-left: terminal window's left position
5783 terminal-top: terminal window's top position
5784 terminal-width: terminal window's width
5785 terminal-height: terminal window's height
5786 terminal-border: terminal window's border width
5787 * grub-core/gfxmenu/theme-loader.c: Likewise.
5788 * include/grub/gfxmenu_view.h: Likewise.
5789 * po/exlude.pot: Likewise.
5790 * grub-core/gfxmenu/view.c: Likewise.
5791 Also updated minimal window size.
5792 Also terminal_sanity_check function has been introduced.
5793 * grub-core/tests/checksums.h: Update (terminal window height
5794 is adjusted now for low resolution screen)
5796 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5798 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5801 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5803 * po/exclude.pot: Add few recent exceptions.
5805 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5807 * tests/grub_func_test.in: Add unicode.pf2.
5809 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5811 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5812 standard rather than noral color, in line with other terminals.
5814 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5816 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5819 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5821 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5823 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5825 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5826 inappropriate printf.
5828 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5830 * .bzrignore: Remove grub-core/lib/dtc-grub,
5831 grub-core/Makefile.libfdt.def
5832 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5834 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5836 * include/grub/video.h (grub_video_register): Keep double-linked as
5837 well as single-linked invariants.
5838 Reported by: qwertial.
5840 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5842 * grub-core/commands/nativedisk.c (get_uuid): Handle
5843 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5845 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5847 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5848 maximum of NW, N, NE heights instead of N's height and maximum of
5849 NW, W, SW widths instead of W's width. (So the box will be always
5852 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5854 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5855 Fix misuse of variable count.
5857 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5858 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5859 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5861 New ports to arm-uboot and arm-efi.
5862 Mostly by Leif Lindholm with some additions from
5863 Francesco Lavra and cleanup by Vladimir Serbinenko.
5865 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5867 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5869 Reported by: Leon Drugi.
5871 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5873 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5874 Reported by: Paulo Flabiano Smorigo.
5876 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5878 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5880 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5882 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5884 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5886 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5888 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5890 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5892 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5894 * grub-core/net/bootp.c: Export net_* variables.
5895 * grub-core/net/net.c: Likewise.
5897 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5899 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5901 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5903 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5905 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5907 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5909 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5911 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5913 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5915 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5918 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5920 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5923 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5925 * grub-core/fs/zfs/zfs_lz4.c: New file.
5926 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5928 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5930 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5932 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5934 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5935 (check_pool_label): Likewise.
5936 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5938 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5940 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5942 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5944 * docs/grub.texi (Commands): Document postition parameters
5945 for menuentry command.
5947 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5949 * util/grub-mknetdir.in: Remove stray line from help output.
5951 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5953 Remove early sm712 init as there is no reason for it (the "watchdog"
5954 effect was due to wrong GPIO map).
5956 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5958 * grub-core/commands/pcidump.c: Remove static variables.
5960 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5962 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5964 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5966 * configure.ac: Move delimiter after the infos.
5968 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5970 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5972 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5974 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5975 not filling whole 8x16 space.
5977 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5979 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5981 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5983 * configure.ac: Indicate which liblzma is used if any.
5985 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5986 2013-06-21 Craig Sanders <savannah@taz.net.au>
5988 * util/grub-reboot.in: Document submenu usage.
5990 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5992 * .bzrignore: Update with a number of new test-related files.
5994 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5996 * util/grub-script-check.c: Fail on scripts containing no
5997 commands, to guard against corrupted grub-mkconfig setups that
5998 produce no useful output.
5999 * tests/grub_script_no_commands.in: New test.
6000 * Makefile.util.def (grub_script_no_commands): Add.
6001 Reported by Hans Putter. Fixes Debian bug #713886.
6003 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6005 * grub-core/disk/diskfilter.c: Forgot to remove comment
6006 from previous commit.
6008 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6010 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6011 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6013 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6015 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6017 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6019 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6020 rescan diskfilter devices until nothing new is found.
6022 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6024 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6026 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6028 Don't try to detect cbfs on *-emu.
6030 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6032 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6034 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6036 Add support for processed coreboot payload chainloading.
6038 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6040 Enable coreboot information commands even when not loaded as
6041 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6043 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6045 Support for cbfs. Also factor out the part which is common
6046 for all archives to a separate module. This splits tar from cpio
6047 as they are very different but keeps cpio, cpio_be, odc and newc
6048 together since they're very similar.
6050 2013-06-15 David Michael <fedora.dm0@gmail.com>
6052 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6053 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6055 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6057 * tests/grub_script_eval.in: Really add the eval test.
6059 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6061 Move flavour-specific parts out of common cpio.c file and
6062 rename remaining to cpio_common.c
6064 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6066 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6067 off new function grub_script_execute_new_scope. Change callers to use
6068 either of them as appropriate.
6069 * grub-core/commands/eval.c: New command eval.
6070 * docs/grub.texi (Commands): Document it.
6072 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6074 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6075 to fetch values when listing.
6077 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6079 Fix make dist on non-pc.
6081 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6083 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6084 without a device name.
6086 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6088 Remove enable_executable_check as it's not needed anymore.
6089 Reported by: dougray.
6091 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6093 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6094 ambigouos RAID before discovering RAIDs on top of it.
6097 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6099 Fix typo (failback vs fallback).
6101 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6103 * util/grub.d/30_os-prober.in: Add support for probing EFI
6104 System Partition (as of os-prober 1.58).
6106 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6108 * configure.ac: Add yet another path to unifont. For parabola.
6110 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6112 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6113 handling to copy the killed characters to the kill buffer as
6114 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6115 stored as char. Eliminates UCS4 truncation and corruption
6116 observed when killing characters with Ctrl-u and yanking them
6119 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6121 Detach optional parts of gfxterm and integrate in with coreboot init.
6123 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6125 Move blit and fill dispatcher to appropriate files to decrease export
6126 and relocation overhead.
6128 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6130 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6133 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6135 * grub-core/Makefile.am: Fix compilation problem with some
6138 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6140 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6142 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6144 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6147 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6149 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6152 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6154 * grub-core/partmap/dfly.c: New partition map.
6156 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6158 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6160 Reported by: Francesco Lavra.
6162 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6164 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6165 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6167 * conf/Makefile.common: define dist_grubconf_DATA
6169 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6171 Progressively skip menu elements on small terminals rather
6174 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6176 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6177 to avoid losing last column.
6179 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6181 * po/exclude.pot: Add missing string "%C".
6183 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6185 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6188 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6190 * util/grub-install.in: Gettextize "Not found" message.
6192 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6195 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6197 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6199 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6201 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6203 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6205 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6207 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6209 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6210 attribute since structure is not necessarily aligned.
6212 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6214 * docs/grub.texi (Device syntax): Clarify description of network
6217 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6219 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6220 for vasprintf presence.
6222 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6224 * util/grub-install.in: Handle efibootmgr presence check.
6225 Reported by: Leif Lindholm.
6227 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6229 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6230 new strings to translate.
6232 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6234 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6235 yet another string (pun intended) to translate.
6237 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6239 * po/POTFILES-shell.in: Autogenerate it.
6241 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6243 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6245 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6247 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6250 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6252 * docs/grub.texi (Network): Add description of net_default_interface,
6253 net_default_ip and net_default_mac. Rewrite variables description
6254 to emphasize that they are per-interface.
6256 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6258 New test: cmdline and cat.
6260 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6262 * grub-core/commands/cat.c: Show UTF-8 characters.
6264 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6266 * conf/Makefile.common: Poison float and double on non-emu.
6268 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6270 * configure.ac: Don't disable extended registers on emu.
6272 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6274 * configure.ac: Don't use extended registers on x86_64.
6275 Reported by: Peter Jones.
6277 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/term/efi/console.c: Fix compile error.
6281 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6283 Compressed HFS+ support.
6285 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6287 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6290 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6294 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6296 * grub-core/tests/setjmp_test.c: New test.
6298 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6300 New variables 'net_default_*' to determine MAC/IP of default interface.
6302 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6304 * tests/gettext_strings_test.in: A test to check for strings not
6305 marked for translation.
6307 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6309 * autogen.sh: Exclude unused libgcrypt files from translation.
6311 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6313 Simplify few strings.
6315 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6317 Mark few forgotten strings for translation.
6319 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6321 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6324 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6326 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6328 * grub-core/video/readers/tga.c: Likewise.
6330 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6332 * tests/priority_queue_unit_test.cc: New test.
6334 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6336 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6339 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6341 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6342 variable for one time boot menu entry.
6344 2013-05-05 Bean <bean123ch@gmail.com>
6346 * grub-core/commands/testspeed.c: New command testspeed.
6348 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6350 Factor-out human-size printing.
6352 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6354 Agglomerate more mallocs to speed-up gfxterm.
6356 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6358 Speed-up gfxterm by slightly agglomerating mallocs.
6360 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6364 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6366 Speed-up gfxterm by saving intermediate results in index+alpha
6369 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6371 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6374 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6376 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6377 line of timeout as it may contain the rest of long line.
6379 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6381 * grub-core/normal/main.c: Fix freed memory dereference.
6383 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6385 Fix several memory leaks.
6387 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6389 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6391 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6393 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6395 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6397 Fix test -a and -o precedence.
6398 Reported by: adrian15.
6400 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6402 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6404 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6406 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6407 and add it as source to functional_test module.
6409 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6411 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6413 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6415 New series of tests for gfxterm and gfxmenu.
6417 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6419 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6420 the theme path relative to $prefix/themes.
6422 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6424 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6426 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6428 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6430 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6433 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6435 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6436 grub_gfxmenu_timeout_notifications.
6437 (grub_gfxmenu_view_destroy): Likewise.
6439 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6441 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6443 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6445 Several fixes to ieee1275 and big-endian video.
6447 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6449 Add missing exports on mips.
6451 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6453 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6454 if no unifont is found.
6455 Restore original keyboard.
6457 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6459 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6460 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6462 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6464 First automated video test (running videotest and comparing results)
6466 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6468 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6469 instead of 2 to have full RGB/CMY test pattern.
6471 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6475 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6477 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6478 ARCS. All users updated.
6480 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6482 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6484 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6486 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6488 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6490 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6491 Reported by: qwertial.
6493 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6495 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6496 with syntax "XXX deg"/"XXX °".
6498 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6500 Make PCI init in i386-qemu port more robust.
6502 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6504 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6505 cached view is reused.
6506 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6509 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6511 Unify more code in grub-install_header.
6513 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6517 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6519 Enforce disabling of firmware disk drivers when native drivers kick in.
6521 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6523 * grub-core/commands/nativedisk.c: Customize the list of modules on
6524 platform. Don't try to search for disks already using native drivers.
6526 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6528 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6531 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6533 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6534 handling of variables containing backslash.
6536 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6538 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6540 Reported by: qwertial.
6542 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6544 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6546 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6548 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6550 Reported by: qwertial.
6552 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6554 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6556 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6558 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6560 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6562 New command `nativedisk'.
6564 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6566 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6567 * grub-core/loader/i386/bsd.c: Likewise.
6569 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6571 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6573 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6575 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6576 grub_get_unaligned16 rather than shifts.
6578 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6580 * grub-core/kern/file.c: Use const char * rather than casting to
6583 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/commands/probe.c: Add missing grub_device_close.
6587 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6589 * INSTALL: Document linguas.sh.
6591 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6593 Remove POTFILES.in and regenerate it in autogen.sh.
6595 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6597 Move --directory/--override-directorry to grub-install_header and unify.
6599 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/term/morse.c: Macroify dih and dah.
6603 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6605 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6607 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6609 * grub-core/term/ns8250.c: Systematically probe ports by writing
6610 to SR before using them.
6612 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6614 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6616 (check_sas): Get sas_adress info.
6618 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6620 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6623 2013-04-27 Leon Drugi <eyak>
6625 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6628 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6630 Core compression test.
6632 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6634 Implement grub_machine_get_bootlocation for ARC.
6636 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6638 Improve AHCI detection and command issuing.
6640 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6644 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6646 Make 'make check' work on emu.
6648 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6650 Replace libcurses with our own vt100 handling for the ease of testing
6651 and decreasing prerequisites.
6653 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6657 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6659 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6660 compile when not needed.
6662 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6664 * tests/pseries_test.in: New test.
6666 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6668 Add test to check that different boot mediums work.
6670 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6672 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6673 ofw limited ISO support.
6675 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6677 * configure.ac: Fix loongson conditional.
6679 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6683 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6685 Add serial on ARC platform.
6687 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6689 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6692 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6694 * tests/partmap_test.in: Add missing double semicolon.
6696 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6698 * util/grub-mkrescue.in: Fix loongson filename.
6700 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6702 * util/grub-mkrescue.in: Move all files that don't have a location
6703 set in stone under /boot/grub. Use ISO hard links rather than copies
6706 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6708 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6711 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6713 Make check work on mips-arc.
6715 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6717 * util/grub-mkrescue.in: Alias sashARCS as sash.
6719 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6721 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6724 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6726 * util/grub-install.in: Fix target fo qemu_mips.
6727 Fix extension on EFI.
6729 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6731 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6732 in front of chosen entry to mark it even if highlighting is lost.
6734 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6736 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6737 gfxpayload=keep if cbfb is active.
6739 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6741 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6743 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6745 Add missing video ids to coreboot and ieee1275 video.
6747 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6749 * util/grub-mkrescue.in: Add mips-arc support.
6751 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6753 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6755 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6757 Move mips-arc link address. Previous link address was chosen
6758 in belief that RAM on SGI platforms grows down while in fact it
6759 grows up from an unusual base.
6761 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6763 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6764 Fix a type which prevented CD-ROM and floppy boot.
6766 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6768 Support coreboot framebuffer.
6770 * grub-core/video/i386/coreboot/cbfb.c: New file.
6772 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6774 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6775 detecting too small regions.
6777 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6781 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6783 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6785 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6787 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6789 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6790 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6791 * grub-core/loader/powerpc/ieee1275/linux.c
6792 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6794 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6796 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6797 Look for /boot-rom as well as /rom/boot-rom.
6799 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6801 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6802 handling when creating text_layer failed.
6803 * grub-core/video/video.c (grub_video_create_render_target):
6804 Set result to 0 on error.
6805 (grub_video_delete_render_target): Do not dereference NULL.
6807 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6809 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6810 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6811 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6812 (grub_linux_load64): Mask out 2 high bits.
6814 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6816 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6819 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6821 Add support for pseries and other bootinfo machines to grub-mkrescue.
6823 Tested by: Paulo Flabiano Smorigo.
6825 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6827 * util/grub-mkrescue.in: Add GPT for EFI boot.
6829 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6831 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6832 It improves performance in qemu.
6834 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6836 * build-aux/snippet: Add missing gnulib files.
6838 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6840 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6842 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6844 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6846 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6847 2013-04-15 Peter Jones <pjones@redhat.com>
6849 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6851 Based on patch by Peter Jones.
6853 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6855 Fix DMRAID partition handling.
6857 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6859 * tests/grub_cmd_date.in: Skip on sparc64.
6861 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6863 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6864 firmware error messages.
6866 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6868 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6869 source and destination differ.
6871 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6873 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6876 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6878 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6879 match config-util.h to avoid warnings and increase compatibility.
6881 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6882 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6884 Add option to compress files on install/image creation.
6886 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6888 * docs/grub-dev.texi: Rearrange menu to match the section order.
6889 Reported by: Bryan Hundven.
6891 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6893 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6895 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6897 Move GRUB out of system area when using xorriso 1.2.9 or later.
6899 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6901 * tests/grub_cmd_date.in: Add missing exit 1.
6903 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6905 * tests/partmap_test.in: Skip on sparc64.
6907 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6909 Support grub-shell on sparc64.
6911 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6913 Support mkrescue on sparc64.
6915 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6917 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6918 Needed on OpenBIOS due to incomplete device tree.
6920 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6922 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6923 would be otherwise excluded.
6925 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6927 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6928 Inline name defines used only once.
6930 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6932 Fix memory leaks in ofnet.
6933 Reported by: Francesco Lavra.
6935 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6937 * docs/man/grub-glue-efi.h2m: Add missing file.
6939 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6941 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6943 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6945 Better support Apple Intel Macs on CD.
6947 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6949 Replace stpcpy with grub_stpcpy in tools.
6951 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6953 Handle Japanese special keys.
6954 Reported by: Hiroyuki YAMAMORI.
6955 Codes supplied by: Hiroyuki YAMAMORI.
6957 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6959 * util/grub-mkimage.c: Document memdisk implying --prefix.
6961 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6963 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6964 much we can do about it anyway.
6966 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6968 Fix handling of split transfers.
6970 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6972 * grub-core/net/http.c: Fix bad free.
6974 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6976 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6979 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6981 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6983 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6985 * tests/util/grub-shell.in: Fix it on powerpc.
6987 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6989 Turn off QEMU ACPI-way since new releases don't have shutdown port
6992 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6994 * docs/grub.texi: Update coreboot status info.
6996 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6998 * tests/grub_cmd_date.in: New test for datetime.
7000 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7002 * tests/partmap_test.in: Fix missing qemudisk setting.
7004 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7006 Support i386-ieee1275 grub-mkrescue and make check on it.
7008 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7010 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7013 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7015 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7016 GRUB_CMDLINE_XEN_DEFAULT.
7017 Reported by: Marc Warne (GigaTux) <gigatux>
7019 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7023 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7025 Use ACPI shutdown intests as traditional port was removed.
7027 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7029 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7032 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7034 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7035 Fix few warining messages and leaks while on it.
7037 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7039 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7040 links under grub-core/lib/libgcrypt-grub/mpi.
7042 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7044 Fix ia64-efi image generation on big-endian machines. Deduplicate
7045 some code while on it.
7046 Reported by: Leif Lindholm.
7048 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7050 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7053 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7055 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7057 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7059 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7062 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7064 * grub-core/normal/term.c: Few more fixes for menu entry editor
7066 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7068 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7070 * grub-core/normal/term.c: Few more fixes for menu entry editor
7072 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7074 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7076 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7077 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7079 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7081 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7082 instead of hardcoding grub.mo.
7084 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7086 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7088 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7090 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7091 grub-core/disk/geli.c.
7093 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7095 * util/grub-mkfont.c: Prefer enum to #define.
7097 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7101 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7103 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7105 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7107 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7109 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7111 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7113 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7115 * include/grub/bsdlabel.h: Use enums.
7117 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7119 Move GRUB_CHAR_BIT to types.h.
7121 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7123 * docs/grub.texi: Document more user commands.
7125 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7127 * docs/grub.texi: Document menuentry --id option.
7129 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7131 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7133 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7135 Unify file copying setup across different install scripts. Add
7136 options for performing partial install.
7138 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7139 2013-04-04 Peter Jones <pjones@redhat.com>
7141 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7143 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7145 Use TSC as a possible time source on i386-ieee1275.
7147 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7149 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7152 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7154 * util/grub-setup.c (setup): Handle some corner cases.
7156 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7158 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7160 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7162 * grub-core/commands/verify.c: Save verified file to avoid it being
7163 tampered with after verification was done.
7165 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7167 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7168 reported width by one to compensate for curesor algorithm problem.
7170 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7172 Fix screen corruption in menu entry editor and simplify the code
7175 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7177 * util/grub-mount.c (fuse_init): Return error if fuse_main
7180 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7182 * include/grub/elf.h: Add missing ARM relocation codes and fix
7185 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7187 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7189 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7190 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7192 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7193 into account when calculating radius.
7195 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7197 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7199 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7201 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7203 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7205 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7206 missing closing bracket.
7208 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7210 * INSTALL: Mention xorriso requirement.
7212 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7214 * grub-core/commands/verify.c: Fix hash algorithms values for
7215 the first three hashes - they start with 1, not with 0.
7217 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7219 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7220 Try terminating EFI services several times due to quirks in some
7223 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7225 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7226 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7227 BankField extended opcodes.
7228 (get_sleep_type): Add minimal scope handling (just enough to
7229 handle setting the scope to the root path).
7230 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7231 * include/grub/acpi.h: Add enumeration values for Event, Device,
7232 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7234 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7236 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7239 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7241 * grub-core/disk/ahci.c: Give more time for AHCI request.
7243 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7245 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7248 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7250 Replace the region at 0 from coreboot tables to available in BSD
7253 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7255 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7258 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7260 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7263 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7265 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7266 handling of multi-device filesystems.
7268 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7270 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7273 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7275 Add new 'proc' filesystem framework and put luks_script into it.
7277 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7279 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7282 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7284 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7286 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7288 Add ability to generate newc additions on runtime.
7290 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7292 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7295 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7297 * po/POTFILES.in: Regenerate.
7299 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/commands/verify.c (hashes): Add several hashes
7304 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7306 Slight improve in USB-related boot-time checkpoints.
7308 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7310 * grub-core/commands/boottime.c: Fix copyright header.
7312 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7314 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7315 coreboot tables content. Support for cbmemc.
7317 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7319 Fix a conflict between ports structures with 2 controllers of
7322 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7324 * include/grub/boottime.h: Add missing file.
7326 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7328 Initialize USB ports in parallel to speed-up boot.
7330 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7332 Fix USB devices not being detected when requested
7333 due to delayed attach.
7335 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7337 Implement boot time analysis framework.
7339 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7341 Remove get_endpoint_descriptor and change all functions needing
7342 descriptor to just receive it as argument rather than endpoint
7345 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7347 Better estimate the maximum USB transfer size.
7349 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7351 Resend a packet if we got the wrong buffer in status.
7353 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7355 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7356 multiplication rather than division.
7358 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7360 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7363 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7365 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7366 operations to have intended shifts and not divisions.
7368 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7370 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7371 intended shifts rather than division.
7373 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7375 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7376 computation for some years before epoch. Avode confusing division
7379 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7381 * grub-core/video/i386/pc/vbe.c
7382 (grub_video_vbe_print_adapter_specific_info): Replace division by
7385 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7387 Adjust types in gdb module to have intended unsigned shifts rather than
7390 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7392 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7393 maximum size is 4G - 1 on hfs
7395 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7397 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7399 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7401 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7404 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7406 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7407 causing gcc error with gcc 4.7.1.
7409 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7411 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7412 dereference null pointer. While the code is technically correct, gcc
7413 may eliminate a null check if pointer is already dereferenced.
7415 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7417 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7419 * grub-core/normal/term.c (read_terminal_list): Likewise.
7421 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7423 Lift up core size limits on some platforms. Fix potential memory
7424 corruption with big core on small memory systems. Document remaining
7427 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7429 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7432 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7434 Remove all trampoline support. Add -Wtrampolines when
7435 present. Remove symbols used for trampolines to make
7436 link fail if trampolines are present.
7438 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7440 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7441 append out of its parent.
7443 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7445 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7448 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7450 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7451 all vars to a macro. All users updated.
7453 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7455 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7458 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7460 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7462 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7464 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7466 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7468 Move to more hookless approach in IEEE1275 devices handling.
7470 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7472 * grub-core/kern/term.c (grub_term_normal_color),
7473 (grub_term_highlight_color): Add back lost defaults.
7475 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7477 Make elfload not use hooks. Opt for flags and iterators instead.
7479 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7482 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7484 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7486 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7488 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7490 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7491 hook pass-through parameter. All users updated and unnested.
7493 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7495 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7498 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7500 * grub-core/fs/hfs.c: Remove nested functions.
7502 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7504 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7505 the context through.
7506 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7508 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7510 * util/grub-editenv.c (list_variables): Move print_var out of its
7513 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7515 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7518 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7520 * grub-core/gentrigtables.c: Make tables const.
7522 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7524 Remove nested functions from videoinfo iterators.
7526 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7528 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7529 for 64-bit platforms.
7531 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7533 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7534 a FOR_CHILDREN macro.
7536 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7538 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7539 platform from firmware path.
7541 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7543 Enable linux16 on non-BIOS systems for i.a. memtest.
7545 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7547 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7549 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7552 Fix end of table condition.
7554 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7559 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7561 * grub-core/fs/jfs.c: Remove nested functions.
7563 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7565 * grub-core/fs/minix.c: Remove nested functions.
7567 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7569 * grub-core/fs/iso9660.c: Remove nested functions.
7571 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7573 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7576 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7578 * util/grub-fstest.c: Remove nested functions.
7580 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7582 * grub-core/loader/machoXX.c: Remove nested functions.
7584 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7586 Remove nested functions from disk and file read hooks.
7588 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7589 (struct grub_disk): Add read_hook_data member.
7590 * include/grub/file.h (struct grub_file): Likewise.
7591 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7596 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7598 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7599 Fix off by one error in enumerating extended partitions.
7601 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7603 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7604 memory leak if device name is not found.
7606 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7608 * grub-core/normal/menu_entry.c (update_screen): remove
7609 unused variable `off' which caused scroll down arrow to be always shown.
7611 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7613 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7614 access to unallocated memory.
7616 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7618 * Makefile.util.def: Add partmap/msdos.c to common library.
7619 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7620 * grub-core/disk/ldm.c: Check for existence of
7621 GRUB_PC_PARTITION_TYPE_LDM.
7623 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7626 sizes and display sector size.
7628 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7630 Implement new command cmosdump.
7632 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7634 Support Openfirmware disks with non-512B sectors.
7636 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7638 * (grub_ofdisk_get_block_size): New function.
7639 * (grub_ofdisk_prepare): Use the correct block size.
7640 * (grub_ofdisk_read): Likewise.
7641 * (grub_ofdisk_write): Likewise.
7642 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7645 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7647 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7649 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7651 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7654 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7656 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7659 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7661 Implement USBDebug (full USB stack variant).
7663 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7665 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7666 unless they have unexpected values.
7668 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7670 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7673 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7675 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7676 zero-out of port structure.
7678 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7680 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7681 of extended attributes.
7683 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7685 * util/grub-install.in: change misleading comment about
7688 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7690 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7691 when menu highlight color isn't set.
7693 2013-01-27 C. Masloch <pushbx@38.de>
7695 Improve FreeDOS direct loading support compatibility.
7697 * include/grub/i386/relocator.h (grub_relocator16_state):
7699 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7701 (grub_relocator16_boot): Handle %ebp.
7702 * grub-core/lib/i386/relocator16.S: Likewise.
7703 * grub-core/loader/i386/pc/freedos.c:
7704 Load BPB to pass kernel which partition to load from.
7705 Check that kernel file is not too large.
7706 Set register dl to BIOS unit number as well.
7708 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7710 * util/grub-reboot.in (usage): Document the need for
7712 * util/grub-set-default.in (usage): Likewise.
7713 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7715 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7717 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7718 than defining WORDS_BIGENDIAN manually.
7720 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7722 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7725 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7727 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7729 (blit_comb: add_device_width): Likewise.
7731 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7733 Remove nested functions from USB iterators.
7735 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7736 (grub_usb_controller_iterate_hook_t): Likewise.
7737 (grub_usb_iterate): Add hook_data argument.
7738 (grub_usb_controller_iterate): Likewise.
7739 (struct grub_usb_controller_dev.iterate): Likewise.
7741 Update all implementations and callers.
7743 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7745 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7746 margin when not needed.
7748 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7750 Make color variables global instead of it being per-terminal.
7752 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7754 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7757 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7759 Fix powerpc and sparc64 build failures caused by un-nesting memory
7762 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7764 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7765 parameter declarations.
7767 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7769 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7771 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7773 Improve spkmomdem reliability by adding a separator between bytes.
7775 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7777 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7778 an Acer registration utility with several sightings in the wild.
7779 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7781 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7783 Remove nested functions from filesystem directory iterators.
7785 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7786 (struct grub_fs.dir): Add hook_data argument.
7788 Update all implementations and callers.
7790 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7792 * docs/grub.texi (Multi-boot manual config): Fix typo for
7795 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7797 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7798 until after its use in generate_image.
7800 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7802 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7803 initrd size to addr_min, since the initrd will be allocated after
7806 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7808 * conf/Makefile.common: Fix autogen rules to pass definition
7809 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7811 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7813 * include/grub/elf.h: Update ARM definitions based on binutils.
7815 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7817 Split long USB transfers into short ones.
7819 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7821 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7822 is interrupted by ESC.
7824 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7826 * util/grub-script-check.c (main): Uniform the error message.
7828 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7830 Remove nested functions from ELF iterators.
7832 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7834 Remove nested functions from device iterators.
7836 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7837 (grub_arc_iterate_devs): Add hook_data argument.
7838 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7839 (struct grub_ata_dev.iterate): Add hook_data argument.
7840 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7841 (grub_device_iterate): Add hook_data argument.
7842 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7843 (struct grub_disk_dev.iterate): Add hook_data argument.
7844 (grub_disk_dev_iterate): Likewise.
7845 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7847 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7849 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7851 (struct grub_partition_map.iterate): Add hook_data argument.
7852 (grub_partition_iterate): Likewise.
7853 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7854 (struct grub_scsi_dev.iterate): Add hook_data argument.
7858 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7860 Fix typos for "developer" and "development".
7862 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7864 Add license header to spkmodem-recv.c.
7866 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7868 Rewrite spkmodem to use PIT for timing. Double the speed.
7870 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7872 Add new command pcidump.
7874 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7876 New terminal outputs using serial: morse and spkmodem.
7878 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7880 Improve bidi handling in entry editor.
7882 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7884 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7885 argument to prevent name collision.
7887 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7889 Remove nested functions from script reading and parsing.
7891 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7892 getline_data argument, passed to getline.
7893 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7894 getline_data argument, passed to grub_parser_split_cmdline.
7895 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7896 lexerstate->getline_data to lexerstate->getline.
7897 (grub_script_lexer_init): Add getline_data argument, saved in
7898 lexerstate->getline_data.
7899 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7900 argument, passed to grub_script_parse.
7901 * grub-core/script/script.c (grub_script_parse): Add getline_data
7902 argument, passed to grub_script_lexer_init.
7903 * include/grub/parser.h (grub_parser_split_cmdline): Update
7904 prototype. Update all callers to pass appropriate getline data.
7905 (struct grub_parser.parse_line): Likewise.
7906 (grub_rescue_parse_line): Likewise.
7907 * include/grub/reader.h (grub_reader_getline_t): Add void *
7909 * include/grub/script_sh.h (struct grub_lexer_param): Add
7910 getline_data member.
7911 (grub_script_parse): Update prototype. Update all callers to pass
7912 appropriate getline data.
7913 (grub_script_lexer_init): Likewise.
7914 (grub_normal_parse_line): Likewise.
7916 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7918 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7919 static instead of nested. Rename to ...
7920 (grub_parser_execute_getline): ... this.
7921 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7923 * grub-core/normal/main.c (read_config_file: getline): Make static
7924 instead of nested. Rename to ...
7925 (read_config_file_getline): ... this.
7926 (grub_normal_read_line): Add unused data argument.
7927 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7928 getline): Make static instead of nested. Rename to ...
7929 (grub_script_execute_sourcecode_getline): ... this.
7930 * util/grub-script-check.c (main: get_config_line): Make static
7933 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7935 Remove nested functions from memory map iterators.
7937 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7938 argument, passed to hook.
7939 * grub-core/kern/i386/coreboot/mmap.c
7940 (grub_linuxbios_table_iterate): Likewise.
7941 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7943 (grub_machine_mmap_iterate): Add hook_data argument.
7944 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7945 Add hook_data argument, passed to hook.
7946 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7948 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7950 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7952 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7954 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7956 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7958 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7959 (grub_machine_mmap_iterate): Likewise.
7960 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7961 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7963 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7964 Remove NESTED_FUNC_ATTR from here and from all users.
7965 (grub_mmap_iterate): Update prototype.
7966 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7967 pass appropriate hook data.
7968 (grub_machine_mmap_iterate): Likewise.
7970 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7971 static instead of nested.
7972 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7974 (lsmmap_hook): ... this.
7975 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7977 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7978 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7979 heap_init): Likewise.
7980 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7982 (mmap_iterate_hook): ... this.
7983 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7985 * grub-core/lib/ieee1275/relocator.c
7986 (grub_relocator_firmware_get_max_events: count): Likewise.
7987 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7989 (grub_relocator_firmware_fill_events_iter): ... this.
7990 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7991 hook): Likewise. Rename to ...
7992 (grub_relocator_alloc_chunk_align_iter): ... this.
7993 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7995 (generate_e820_mmap_iter): ... this.
7996 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7998 (count_hook): ... this.
7999 (grub_linux_boot: hook): Likewise. Rename to ...
8000 (grub_linux_boot_mmap_find): ... this.
8001 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8002 (grub_linux_boot_mmap_fill): ... this.
8003 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8004 hook): Likewise. Rename to ...
8005 (grub_fill_multiboot_mmap_iter): ... this.
8006 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8007 hook): Likewise. Rename to ...
8008 (count_hook): ... this.
8009 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8010 hook): Likewise. Rename to ...
8011 (grub_fill_multiboot_mmap_iter): ... this.
8012 * grub-core/loader/powerpc/ieee1275/linux.c
8013 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8014 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8015 Likewise. Rename to ...
8016 (alloc_phys_choose): ... this.
8017 (determine_phys_base: get_physbase): Likewise.
8018 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8019 find_hook): Likewise.
8020 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8021 (malloc_hook: count_hook): Likewise.
8022 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8023 Likewise. Rename to ...
8024 (lower_hook): ... this.
8025 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8026 (upper_hook): ... this.
8027 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8028 (post64_hook): ... this.
8029 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8030 Likewise. Rename to ...
8031 (lower_hook): ... this.
8032 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8033 (upper_hook): ... this.
8034 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8035 (grub_mmap_iterate: fill_hook): Likewise.
8036 (fill_mask): Pass addr and mask within a single struct.
8037 (grub_cmd_badram: hook): Make static instead of nested. Rename
8039 (badram_iter): ... this.
8040 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8041 (cutmem_iter): ... this.
8043 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8045 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8046 delimit path in strings using quotes.
8047 * util/getroot.c (grub_guess_root_devices): Likewise.
8048 (grub_make_system_path_relative_to_its_root): Likewise.
8049 * util/grub-probe.c (probe): Likewise.
8050 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8051 (xrealpath): Likewise.
8053 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8055 Fix compilation with older compilers.
8057 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8058 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8060 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8061 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8062 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8064 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8065 * include/grub/crypto.h: Add type defines.
8066 * util/import_gcrypth.sed: Remove duplicate type defines.
8068 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8070 New command list_trusted.
8072 * grub-core/commands/verify.c (grub_cmd_list): New function.
8074 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8076 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8079 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8081 Remove nested functions from PCI iterators.
8083 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8084 passed to hook. Update all callers to pass appropriate hook data.
8085 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8086 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8087 Remove NESTED_FUNC_ATTR from here and from all users.
8088 (grub_pci_iterate): Update prototype.
8089 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8090 instead of nested. Rename to ...
8091 (grub_cs5536_find_iter): ... this.
8092 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8093 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8095 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8097 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8099 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8101 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8102 * grub-core/video/radeon_fuloong2e.c
8103 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8104 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8105 find_card): Likewise.
8106 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8109 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8111 * grub-core/commands/verify.c: Mark messages for translating.
8113 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8115 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8118 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8120 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8123 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8125 * autogen.sh: Do not try to delete nonexistant files.
8126 * util/import_gcrypth.sed: Add some missing header removals.
8128 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8130 Clean up dangling references to grub-setup.
8131 Fixes Ubuntu bug #1082045.
8133 * docs/grub.texi (Images): Refer generally to grub-install rather
8134 than directly to grub-setup.
8135 (Installing GRUB using grub-install): Remove direct reference to
8137 (Device map) Likewise.
8138 (Invoking grub-install): Likewise.
8139 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8140 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8141 * util/grub-install.in (usage): Likewise.
8143 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8144 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8146 * configure.ac: Remove grub_setup output variable.
8148 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8150 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8151 grub-setup to grub-sparc64-setup.
8153 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8155 Import gcrypt public-key cryptography and implement signature checking.
8157 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8159 * grub-core/fs/ntfs.c: Ue more appropriate types.
8160 * grub-core/fs/ntfscomp.c: Likewise.
8161 * include/grub/ntfs.h: Likewise.
8163 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8165 Support Apple FAT binaries on non-Apple platforms.
8167 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8168 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8170 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8173 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8175 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8178 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8180 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8181 explicitly zeroing elements.
8182 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8183 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8184 of elements in a structure already allocated using grub_zalloc.
8185 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8187 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8189 * docs/grub.texi (grub_cpu): New subsection.
8190 (grub_platform): Likewise.
8192 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8194 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8196 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8198 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8201 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8203 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8204 * grub-core/fs/ntfscomp.c: Likewise.
8205 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8206 (grub_ntfs_comp): Likewise.
8208 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8210 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8212 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8213 of groups_per_block. All users updated.
8215 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8217 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8218 grub_error properly.
8219 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8220 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8222 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8224 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8225 always in /boot/zfs.
8226 Reported by: Yuta Satoh.
8228 2013-01-03 Yuta Satoh <nigoro>
8230 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8233 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8235 * configure.ac: Extend -Wno-trampolines to host.
8237 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8239 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8242 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8244 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8245 (Invoking grub-script-check): Likewise.
8247 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8249 * docs/grub.texi (Invoking grub-mount): New section.
8250 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8252 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8254 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8255 test failures, so that a failing unit test correctly causes 'make
8258 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8260 Fix failing printf test.
8262 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8263 '$' in the correct order when collecting type information.
8265 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8267 * docs/grub.texi (configfile): Explain environment variable
8269 (source): New section.
8270 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8272 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8274 Remove several trivially-unnecessary uses of nested functions.
8276 * grub-core/commands/i386/pc/sendkey.c
8277 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8279 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8281 (legacy_file_getline): ... this.
8282 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8284 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8285 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8287 (probe_dummy_iter): ... this.
8288 * grub-core/kern/i386/coreboot/mmap.c
8289 (grub_linuxbios_table_iterate: check_signature): Likewise.
8290 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8291 check_varstate): Likewise. Mark inline.
8292 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8293 an additional parameter.
8294 (find_long: fnd_long): Likewise. Pass two additional parameters.
8295 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8296 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8297 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8298 Likewise. Rename to ...
8299 (grub_cmos_find_port_iter): ... this.
8300 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8302 (find_rtc_iter): ... this.
8304 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8305 function directly into the function body, since it is only called
8308 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8310 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8311 __attribute__ ((unused)).
8312 * grub-core/video/bochs.c (find_card): Likewise.
8313 * grub-core/video/cirrus.c (find_card): Likewise.
8314 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8315 * grub-core/video/sis315pro.c (find_card): Likewise.
8316 * grub-core/video/sm712.c (find_card): Likewise.
8318 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8320 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8321 Fixes Savannah bug #37821.
8323 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8325 Apply program name transformations at build-time rather than at
8326 run-time. Fixes Debian bug #696465.
8328 * acinclude.m4 (grub_TRANSFORM): New macro.
8329 * configure.ac: Create output variables with transformed names for
8331 * util/bash-completion.d/grub-completion.bash.in: Use
8332 pre-transformed variables for program names.
8333 * util/grub-install.in: Likewise.
8334 * util/grub-kbdcomp.in: Likewise.
8335 * util/grub-mkconfig.in: Likewise.
8336 * util/grub-mkconfig_lib.in: Likewise.
8337 * util/grub-mknetdir.in: Likewise.
8338 * util/grub-mkrescue.in: Likewise.
8339 * util/grub-mkstandalone.in: Likewise.
8340 * util/grub-reboot.in: Likewise.
8341 * util/grub-set-default.in: Likewise.
8342 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8343 * tests/util/grub-shell-tester.in: Remove unused assignment.
8344 * tests/util/grub-shell.in: Likewise.
8345 * util/grub.d/00_header.in: Likewise.
8347 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8349 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8351 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8353 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8355 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8357 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8358 Reported by: Eriks Latosheks <foresterlv>.
8360 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8362 * docs/grub.texi (Network): Update instructions on generating netboot
8365 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8367 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8368 around device name if necessarry.
8370 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8372 * util/grub-install.in: Follow the symbolic link parameter added
8373 to the file command.
8375 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8377 * util/grub-install.in: Remove stale TODO.
8379 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8381 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8382 dynamic allocation for the bootpath buffer.
8384 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8386 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8389 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8391 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8392 argument rather than font name. All users updated.
8393 (grub_gfxterm_set_window): Likewise.
8395 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8397 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8400 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8402 * util/getroot.c (convert_system_partition_to_system_disk): Support
8405 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8407 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8408 infinite loop on corrupted FS.
8410 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8412 Fix big-endian mtime.
8414 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8415 together sec and usec.
8416 (grub_ufs_dir): Use correct byteswapping for UFS time.
8418 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8420 Support big-endian UFS1.
8422 * Makefile.util.def (libgrubmods): Add ufs_be.c
8423 * grub-core/Makefile.core.def (ufs1_be): New module.
8424 * grub-core/fs/ufs_be.c: New file.
8425 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8428 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8430 * include/grub/types.h: Fix functionality unaffecting typo in
8431 GRUB_TARGET_WORDSIZE conditional macro.
8433 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8435 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8437 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8439 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8440 that /netbsd appears first (when it exists).
8442 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8444 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8445 Fixes Savannah bug #37558.
8447 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8449 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8450 description of extract_entries_configfile.
8452 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8454 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8456 (grub_cmd_linux): Likewise.
8457 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8458 preferred_lifetime. Update all users.
8460 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8462 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8463 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8465 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8467 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8468 errors from grub-probe to /dev/null, not stdout.
8470 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8472 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8475 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8477 * util/grub-install.in: Make the error message if $source_dir
8478 doesn't exist more useful.
8480 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8482 Fix grub-emu build on FreeBSD.
8484 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8485 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8487 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8488 implementation is currently Linux-specific.
8489 * util/getroot.c (exec_pipe): Define only on Linux or when either
8490 libzfs or libnvpair is unavailable.
8491 (find_root_devices_from_poolname): Remove unused path variable.
8493 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8495 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8496 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8497 should fit before end == 63.
8499 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8501 * util/grub-setup.c (write_rootdev): Remove unused core_img
8502 parameter. Update all callers.
8503 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8504 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8507 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8509 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8510 (grub_add_tab): New function.
8511 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8512 * util/grub.d/10_illumos.in: Likewise.
8513 * util/grub.d/10_kfreebsd.in: Likewise.
8514 * util/grub.d/10_linux.in: Likewise.
8515 * util/grub.d/10_netbsd.in: Likewise.
8516 * util/grub.d/10_windows.in: Likewise.
8517 * util/grub.d/10_xnu.in: Likewise.
8518 * util/grub.d/20_linux_xen.in: Likewise.
8519 * util/grub.d/30_os-prober.in: Likewise.
8521 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8523 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8524 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8525 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8526 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8527 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8529 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8530 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8532 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8536 Reported by: BURETTE, Bernard.
8538 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8540 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8543 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8545 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8546 IEEE1275 machines. Fixes powerpc-emu compilation.
8547 * include/grub/terminfo.h: Likewise.
8549 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8551 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8553 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8555 (efiemu_set_variable): Make vendor_guid a const pointer.
8557 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8559 Don't require grub-mkconfig_lib to generate manpages for programs.
8561 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8562 dependencies, don't add grub-mkconfig_lib.
8563 (program): Pass empty adddeps.
8564 (script): Pass grub-mkconfig_lib as adddeps.
8566 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8568 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8569 * util/getroot.c (grub_find_device): Likewise.
8570 (get_mdadm_uuid): Likewise.
8571 (grub_util_is_imsm): Likewise.
8572 (grub_util_pull_device): Likewise.
8573 * util/grub-probe.c (probe): Likewise.
8575 2012-09-10 Benoit Gschwind <gschwind>
8577 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8578 (devs): Add devpath_8.
8580 2012-09-08 Peter Jones <pjones@redhat.com>
8582 * grub-core/Makefile.core.def (efifwsetup): New module.
8583 * grub-core/commands/efi/efifwsetup.c: New file.
8584 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8585 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8587 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8589 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8591 * configure.ac: Add SuSe path.
8593 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8597 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8599 * util/import_gcry.py: Sort cipher_files, to make build system
8600 generation more deterministic.
8602 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8605 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8606 (grub_set_datetime): Likewise.
8608 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8610 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8613 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8615 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8617 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8619 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8621 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8623 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8624 required for checkouts from bzr, but it may be useful for users or
8625 distributors wishing to update translations against a tarball
8626 distribution, and it can be helpful for the tarball to be a superset
8629 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8631 * Makefile.am (EXTRA_DIST): Add
8632 grub-core/tests/boot/linux.init-mips.S,
8633 grub-core/tests/boot/linux.init-ppc.S, and
8634 grub-core/tests/boot/linux-ppc.cfg.
8636 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8638 * grub-core/mmap/mips/loongson: Remove empty directory.
8640 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8642 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8645 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8647 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8650 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8652 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8654 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8656 * po/POTFILES.in: Regenerated.
8658 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8660 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8661 (NetBSD): New subsection.
8663 2012-07-22 Ales Nesrsta <starous@volny.cz>
8665 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8666 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8668 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8670 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8671 * util/grub.d/10_hurd.in: Add missing quoting.
8672 * util/grub.d/10_illumos.in: Likewise.
8673 * util/grub.d/10_kfreebsd.in: Likewise.
8674 * util/grub.d/10_linux.in: Likewise.
8675 * util/grub.d/20_linux_xen.in: Likewise.
8677 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8679 New command `lsefi'.
8681 * grub-core/Makefile.core.def (lsefi): New module.
8682 * grub-core/commands/efi/lsefi.c: New file.
8683 * include/grub/efi/api.h: Add more GUIDs.
8685 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8687 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8688 (grub_bsd_elf32_hook): Likewise.
8689 (grub_bsd_elf64_size_hook): Likewise.
8690 (grub_bsd_elf64_hook): Likewise.
8691 (grub_bsd_load_elf): Likewise.
8693 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8695 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8696 if hash function is unavailable.
8697 (dec_stream_header): Likewise.
8699 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8701 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8704 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8706 Fix coreboot compilation.
8708 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8709 (grub_vga_text_init_real): ... this.
8710 (grub_vga_text_fini): Rename to ...
8711 (grub_vga_text_fini_real): ... this.
8713 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8715 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8717 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8719 * grub-core/lib/legacy_parse.c: Support clear and testload.
8721 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8723 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8725 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8727 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8729 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8731 * grub-core/net/tftp.c (ack): Fix endianness problem.
8732 (tftp_receive): Likewise.
8733 Reported by: Michael Davidsaver.
8735 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8737 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8739 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8741 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8742 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8743 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8745 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8747 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8749 Reported by: Stuart Hayes.
8751 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8753 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8755 * grub-core/Makefile.core.def (mda_text): New module.
8756 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8757 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8758 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8759 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8761 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8762 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8763 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8765 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8767 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8769 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8771 * grub-core/term/i386/vga_common.c: Removed.
8772 * include/grub/i386/vga_common.h: Likewise.
8773 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8774 (grub_vga_cr_bw_read): Likewise.
8775 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8776 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8777 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8778 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8779 grub_vga_cr_read/grub_vga_cr_write.
8780 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8782 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8784 * configure.ac: Bump version to 2.00.
8785 * grub-core/normal/main.c (features): Add feature_200_final.
8787 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8788 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8790 * NEWS: Fix unclarity and language mistakes.
8792 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8794 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8795 additional size to 3 pages.
8796 Reported by: Stuart Hayes.
8798 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8800 * NEWS: Add 2.00 entry.
8802 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8804 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8805 put explicit "/" for empty path.
8806 (wildcard_expand): Improve dprintf.
8808 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8810 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8811 it's equal to currnode. This can happen with "" symlink.
8813 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8815 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8816 echo shell command by printf command.
8818 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8820 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8821 the value returned by firmware is the maximal position, not diumension.
8822 (grub_terminfo_output_state): Use a more sane fallback.
8824 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8828 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8830 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8831 frequency to 150 MHz.
8833 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8837 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8839 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8841 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8843 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8845 Handle slash in HFS label.
8847 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8848 (grub_hfs_dir): Tanslate slash.
8849 (grub_hfs_label): Don't translate slash.
8851 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8853 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8854 network protocol listing since it introduces problematic dependency on
8857 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8859 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8861 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8863 Init video early on yeeloong to avoid being rebooted by watchdog.
8865 * grub-core/Makefile.am (gensm712): New target.
8866 (sm712_start.S): Likewise.
8867 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8868 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8869 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8871 * include/grub/vga.h: Move registry definitions to...
8872 * include/grub/vgaregs.h: ... here.
8874 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8876 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8879 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8881 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8882 platforms with firmware disk drivers in the core.
8884 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8886 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8887 informative verbose message.
8888 (read_lv): Handle 64-bit segment size.
8890 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8892 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8894 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8896 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8897 character but still remove trainling spaces.
8898 (grub_fat_label): Ignore archive flag.
8900 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8902 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8903 cast between linux_kernel_header and linux_kernel_params.
8905 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8907 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8909 (grub_raid6_recover_func_t): Likewise.
8910 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8911 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8913 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8915 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8917 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8921 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8922 [__NetBSD__]: Add explicit cast before bitshift.
8924 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8926 * configure.ac: Bump to 2.00~rc1.
8928 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8930 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8933 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8934 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8936 * docs/grub.texi: Fix search syntax.
8937 (Multi-boot manual config): Put msdos rather than GPT example.
8938 Grammar corrections.
8940 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8942 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8944 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8946 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8948 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8950 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8951 message on double free. Put the value of magic in case of mismatch.
8953 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8955 Speed-up video on yeeloong.
8957 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8959 (grub_video_sm712_video_fini): Unmap cached_ptr.
8960 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8961 (grub_video_sm712_set_active_render_target): Removed.
8962 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8963 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8966 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8968 Avoid flushing the same line multiple times on loongson.
8970 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8971 Step in 32 bytes and not 1 byte.
8972 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8975 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8977 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8982 Implement flow control for http.
8984 * grub-core/net/http.c (parse_line): Handle response 206.
8985 (http_receive): Stall if too many packets are in the queue.
8986 (http_establish): Fix range header.
8987 (http_seek): Fix double free.
8988 (http_close): Likewise.
8989 (http_packets_pulled): New function.
8990 (grub_http_protocol): Set http_seek
8991 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8992 (ack_real): Set window depending on i_stall.
8993 (grub_net_send_tcp_packet): Likewise.
8994 (grub_net_tcp_stall): New function.
8995 (grub_net_tcp_unstall): Likewise.
8996 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8997 (grub_net_tcp_unstall): Likewise.
8999 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9001 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9003 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9005 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9007 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9009 * tests/util/grub-shell.in: Fix a typo.
9011 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9013 Implement flow control for tftp.
9015 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9016 packets but stop only if stop condition is satisfied.
9017 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9018 `stall' instead of `eof' as stop condition.
9019 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9020 (http_err): Likewise.
9021 * grub-core/net/tftp.c (ack): Replace the first argument with data
9023 (tftp_receive): Stall if too many packets are in wait queue.
9024 (tftp_packets_pulled): New function.
9025 (grub_tftp_protocol): Set packets_pulled.
9026 * include/grub/net.h (grub_net_packets): New field count.
9027 (grub_net_put_packet): Increment count.
9028 (grub_net_remove_packet): Likewise.
9029 (grub_net_app_protocol): New field `packets_pulled'.
9030 (grub_net): New field `stall'.
9032 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9034 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9035 sync part to handle them.
9037 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9039 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9040 * grub-core/net/drivers/ieee1275/ofnet.c
9041 (grub_ieee1275_net_config_real): Likewise.
9043 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9045 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9046 the direct route for server/gateway.
9048 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9050 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9051 IP address to server name since we may not hame the DNS.
9053 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9055 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9056 freeing random buffer on failure.
9057 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9059 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9061 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9063 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9065 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9067 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9068 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9069 Handle malloc error correctly.
9071 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9073 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9076 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9078 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9081 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9083 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9084 none is explicitly specified.
9086 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9088 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9091 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9093 Respect netmask from bootp/dhcp.
9095 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9096 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9097 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9099 (grub_net_add_ipv4_local): ... this.
9100 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9101 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9102 (grub_net_add_ipv4_local): New proto.
9104 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9106 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9107 determining EFI memory map size.
9109 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9111 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9113 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9115 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9116 when looking for partition separator.
9118 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9120 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9123 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9125 Restructure FAT driver to avoid hook in label reading as it hits a
9128 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9129 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9130 (grub_fat_iterate_dir): Split into ...
9131 (grub_fat_iterate_init): ... this, ...
9132 (grub_fat_iterate_fini): ... this, ...
9133 (grub_fat_iterate_dir_next): ... and this. All users updated.
9135 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9137 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9138 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9139 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9140 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9141 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9142 New fields last_key and last_key_time.
9143 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9144 extended key-esc into extended key-extended key.
9146 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9148 Avoid unnecessary memcpy of whole video buffer.
9150 * grub-core/video/fb/video_fb.c (dirty): New struct.
9151 (framebuffer): Add members current_dirty and previous_dirty.
9152 (dirty): New function.
9153 (grub_video_fb_fill_rect): Update dirty.
9154 (common_blitter): Likewise.
9155 (grub_video_fb_scroll): Likewise.
9156 (doublebuf_blit_update_screen): Copy only dirty part.
9157 (doublebuf_pageflipping_update_screen): Likewise.
9158 (grub_video_fb_doublebuf_blit_init): Init dirty.
9159 (doublebuf_pageflipping_init): Likewise.
9160 (grub_video_fb_setup): Likewise.
9162 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9164 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9167 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9169 Fix wildcard regexp dot and other special characters handling.
9170 Reported by: Robert Mabee.
9172 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9173 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9174 (split_path): Trigger expansion on '?'.
9175 (unescape): New function.
9176 (wildcard_expand): Unescape parts copied without globbing.
9177 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9178 (grub_script_arglist_to_argv): Don't unescape expansions.
9180 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9182 * include/grub/net.h (grub_net_card): New member txbufsize.
9183 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9184 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9185 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9186 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9188 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9189 compatible property to check for macs. Set
9190 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9191 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9192 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9193 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9194 (send_card_buffer): Use txbuf.
9195 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9196 nested function out of the parent while on it.
9198 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9200 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9202 (grub_ieee1275_net_config_real): Fix config pointer.
9204 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9206 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9207 filename parsing to non-block devices.
9209 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9211 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9213 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9215 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9218 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9220 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9221 UUID search command even if hints probing failed.
9223 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9225 * po/POTFILES.in: Regenerated.
9227 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9229 Speed-up video on fuloong.
9231 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9233 (grub_pci_device_unmap_range): Handle non-cached address.
9234 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9236 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9237 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9238 (grub_video_sis315pro_set_active_render_target): Removed.
9239 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9240 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9241 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9243 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9246 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9248 * docs/grub.texi (Multi-boot manual config): New section.
9250 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9252 Avoid slow read-back from VRAM.
9254 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9256 * grub-core/video/fb/video_fb.c
9257 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9258 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9259 (front_target): Remove front_target. Add pages.
9260 (grub_video_fb_init): Skip setting front_pages.
9261 (grub_video_fb_fini): Likewise.
9262 (doublebuf_blit_update_screen): Use pages.
9263 (grub_video_fb_doublebuf_blit_init): Likewise.
9264 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9265 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9266 (grub_video_fb_setup): Prefer doublebuffing.
9268 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9270 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9273 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9277 * tests/util/grub-shell.in: Handle loongson.
9278 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9280 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9281 Reboot instead of shutdown if REBOOT is defined.
9283 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9285 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9286 sized ports since unlike on real hardware qemu supports only 32-bit
9289 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9291 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9292 * util/grub-mkrescue.in: Handle loongson.
9294 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9296 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9297 Set is_part appropriately.
9298 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9299 names. Canonicalize partition without full disk.
9301 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9303 Revert usb-quiesce since it's wrong.
9305 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9306 (grub_ofdisk_init): Don't do quiesce.
9308 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9311 PowerMac workaround to Xserves as well.
9312 Information supplied by: Benjamin Herrenschmidt.
9314 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9316 Don't assume that beginning address is also the entry point on ppc.
9318 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9319 (grub_linux_boot): Use linux_entry.
9320 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9321 (grub_linux_load64): Likewise.
9323 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9325 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9327 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9329 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9330 needlessly lose the console.
9332 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9334 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9337 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9339 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9340 than current grub_get_rtc() not implemented when booted with
9341 coreboot without TSC.
9343 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9344 Add machine/time.h to kernel headers on loongson.
9345 * grub-core/Makefile.core.def (kernel): Remove
9346 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9347 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9348 (grub_get_rtc): Likewise.
9349 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9350 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9351 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9352 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9353 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9354 rather than installing known non-working time source.
9355 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9356 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9357 * include/grub/time.h: Don't include machine/time.h.
9358 * include/grub/efi/time.h: Removed.
9359 * include/grub/i386/efi/time.h: Likewise.
9360 * include/grub/i386/ieee1275/time.h: Likewise.
9361 * include/grub/powerpc/ieee1275/time.h: Likewise.
9362 * include/grub/sparc64/ieee1275/time.h: Likewise.
9363 * include/grub/x86_64/efi/time.h: Likewise.
9365 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9367 Remove dot on i and j when combining with above diacritics.
9369 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9371 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9372 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9373 with dotless variants when any combining above is present.
9375 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9377 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9378 text and not binary.
9380 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9382 Stop polling as soon as we have the packet we were waiting for.
9384 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9386 * grub-core/net/arp.c (have_pending): New var.
9387 (pending_req): Likewise.
9388 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9390 (grub_net_arp_receive): Set have_pending.
9391 * grub-core/net/dns.c (recv_data): New field stop.
9392 (recv_hook): Set stop.
9393 (grub_net_dns_lookup): Init stop and use as stop condition.
9394 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9396 * grub-core/net/net.c (grub_net_poll_cards): New argument
9397 stop_condition. Stop when it goes true.
9398 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9400 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9402 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9404 Keep TX and RX buffers on EFI rather than always allocate new ones.
9406 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9407 card. All users updated.
9408 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9409 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9410 (get_card_packet): Likewise.
9411 (grub_efinet_findcards): Init new fields.
9413 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9415 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9416 compilation error on sparc64.
9418 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9420 Use ITC on IA64 rather than broken routine based on daytime.
9422 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9424 (grub_get_rtc) [__ia64__]: Likewise.
9425 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9426 (get_itc): New function.
9427 (grub_rtc_get_time_ms): Likewise.
9428 (grub_machine_init): Calibrate ITC.
9429 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9430 Keep only on non-ia64. Don't export since it's broken and used only
9431 if TSC is unavailable.
9433 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9435 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9437 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9438 Skip if parent is unused.
9440 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9442 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9444 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9446 Fix wildcard escaping.
9448 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9449 * grub-core/script/execute.c (wildcard_escape): .. to here.
9451 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9452 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9454 * grub-core/script/execute.c (gettext_append): Always escape.
9455 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9456 * grub-core/script/yylex.l: Don't cut away the escaping.
9457 * tests/grub_script_echo1.in: Add tests with wildcard.
9459 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9461 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9462 (ftdi_hw_configure): Likewise.
9463 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9465 (real_config): Handle 1.5 stop bits.
9466 (pl2303_hw_configure): Likewise.
9468 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9470 * Makefile.am: Add ppc linux bootcheck.
9471 * grub-core/tests/boot/linux-ppc.cfg: New file.
9472 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9474 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9476 * tests/grub_script_expansion.in: Skip network protocols.
9478 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9480 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9482 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9484 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9488 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9490 ESCC serial driver for conducting sautomated tests in qemu.
9491 Not tested on real hardware.
9493 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9494 * grub-core/term/ieee1275/escc.c: New file.
9495 * grub-core/Makefile.core.def (escc): New module.
9497 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9499 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9501 (serial_hw_fetch): Don't read invalid handle.
9502 (serial_hw_put): Don't write into invalid handle.
9504 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506 Add a 1.5 stop bits value.
9508 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9509 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9510 GRUB_SERIAL_STOP_BITS_1_5.
9512 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9515 value rather than let it uninited.
9517 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9519 * grub-core/commands/wildcard.c (+check_file): New function.
9520 (wildcard_expand): Don't expand to non-existing files, expand with
9521 suffix and not attempt to expand if not needed.
9523 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9525 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9526 out of partitions containing other partitions.
9528 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9530 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9531 on some qemu versions with GRUB.
9533 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9535 (grub_openbsd_bootarg_pcibios): New struct.
9536 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9539 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9541 * tests/util/grub-shell.in: Trim firmware output on EFI.
9543 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9545 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9546 and coreboot since it's already in kernel.
9548 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9550 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9551 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9552 to here. New return value start. All users updated.
9553 Recursively scan linear mappings.
9554 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9556 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9557 Use grub_util_get_dm_node_linear_info.
9558 * util/getroot.c (convert_system_partition_to_system_disk): Use
9559 grub_util_info rather than grub_dprintf.
9560 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9562 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9564 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9566 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9567 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9569 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9571 * include/grub/types.h (grub_set_unaligned64): New function.
9572 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9575 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9577 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9578 (grub_ofdisk_fini): Quiesce USB devices.
9580 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9582 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9585 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9587 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9589 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9591 * grub-core/disk/pata.c (grub_pata_pio_read)
9592 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9593 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9595 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9597 Extend automated tests to qemu-mips.
9599 * Makefile.am: reorganise tests and enable qemu-mips.
9600 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9601 * grub-core/tests/boot/linux.init-mips.S: New file.
9602 * tests/partmap_test.in: Handle ata0 disks.
9603 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9606 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9608 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9610 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9613 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9616 (grub_halt): Likewise.
9617 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9619 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9621 * grub-core/term/serial.c (grub_serial_register)
9622 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9623 the behaviour in line with x86 platforms.
9625 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9627 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9628 (grub_ata_strncpy): Likewise.
9629 (grub_ata_identify): Add missing byteswaps.
9631 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9633 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9635 (screen_read_char): Likewise.
9636 (grub_vga_text_cls): Likewise.
9638 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9640 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9642 (make_file_path): Likewise.
9644 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9648 Tested by: Paulo Flabiano Smorigo.
9649 Crucial information about API supplied by: Coleen <Last name unknown>.
9650 Reviewed by: Coleen <Last name unknown>.
9652 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9654 * util/grub-mkimage.c: Disable -Wcast-align.
9656 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9658 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9661 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9663 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9665 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9667 * util/grub-probe.c (escape_of_path): Fix double free.
9669 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9671 * grub-core/commands/videoinfo.c (hook): Show pitch.
9673 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9675 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9677 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9679 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9680 (probe): Add ieee1275 to OFW devices.
9682 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9684 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9686 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9688 Handle IBM OFW path.
9690 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9692 (of_path_of_scsi): Handle vdevice.
9694 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9696 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9697 Allocate in multiples of 16 to avoid adding a few bytes free region the
9700 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9702 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9703 Allocate in multiples of 16 to avoid adding a few bytes free region the
9705 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9707 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9709 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9711 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9712 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9714 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9716 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9718 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9720 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9721 resulted in \\ at the end of the line.
9723 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9725 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9726 (grub_parser_cmdline_state): Likewise.
9727 (grub_parser_split_cmdline): Likewise.
9729 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9731 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9732 /dev/root and /dev/dm-*.
9734 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9736 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9737 fix partially stale display.
9739 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9741 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9744 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9746 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9747 Fix MBR remapping workaround.
9748 (grub_util_biosdisk_read) [__linux__]: Likewise.
9750 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9752 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9754 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9756 * configure.ac: Bump to beta6.
9758 2012-05-31 Christer Weinigel <christer@weinigel.se>
9760 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9762 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9764 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9765 (grub_cmd_linux): Likewise.
9767 2012-05-31 Christer Weinigel <christer@weinigel.se>
9771 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9772 (GRUB_EHCI_MULT_TWO): Likewise.
9773 (GRUB_EHCI_MULT_THREE): Likewise.
9774 (GRUB_EHCI_CMASK_MASK): New enum value.
9775 (GRUB_EHCI_SMASK_MASK): Likewise.
9776 (GRUB_EHCI_CMASK_OFF): Likewise.
9777 (GRUB_EHCI_SMASK_OFF): Likewise.
9778 (grub_ehci_pci_iter): Enable periodic schedule.
9779 (grub_ehci_parse_notrun): Likewise.
9780 (grub_ehci_restore_hw): Likewise.
9781 (grub_ehci_setup_qh): Set flags for low speed transfers.
9782 (grub_ehci_find_qh): Use periodic list for low speed.
9783 (grub_ehci_setup_transfer): Check periodic queue as well.
9784 (grub_ehci_check_transfer): Likewise.
9785 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9787 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9789 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9792 2012-05-31 Peter Jones <pjones@redhat.com>
9794 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9795 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9796 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9798 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9800 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9801 uninited variable. Allocate at least setup_sects.
9803 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9805 Fix handling of EFI with big memory maps.
9807 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9808 (real_mode_mem): Likewise.
9809 (real_mode_target): Likewise.
9810 (real_mode_pages): Likewise.
9811 (prot_mode_pages): Likewise.
9812 (linux_params): New var.
9813 (linux_cmdline): Likewise.
9814 (free_pages): Don't set real mode variables.
9815 (allocate_pages): Don't allocate real mode memory.
9816 (grub_e820_add_region): Remove the limit.
9817 (grub_linux_boot): Allocate and copy real mode memory.
9818 (grub_linux_unload): Free linux_cmdline.
9819 (grub_cmd_linux): Use temporary storage for parameters.
9820 (grub_cmd_initrd): Likewise.
9821 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9822 (linux_kernel_params): Make it 1K big.
9824 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9826 * Makefile.util.def: Remove -Wno-format.
9827 * grub-core/Makefile.core.def: Likewise.
9829 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9831 * tests/cmp_unit_test.c: Add missing failure message.
9832 * tests/example_unit_test.c: Likewise.
9833 * tests/printf_unit_test.c: Likewise.
9835 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9837 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9838 relaxation of protective MBR requirements.
9840 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9842 * configure.ac: Add condition for COND_HOST_XNU.
9843 * Makefile.util.def (10_xnu): New script.
9844 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9846 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9848 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9851 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9853 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9854 Binary on other platforms stays identical.
9856 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9858 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9861 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9863 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9865 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9867 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9868 rather than defining size_t ourselves to avoid conflict.
9870 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9872 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9873 initialisation to avoid __bzero reference.
9875 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9877 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9879 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9880 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9881 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9882 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9883 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9885 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9887 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9888 * grub-core/kern/misc.c: Likewise.
9889 * grub-core/loader/i386/xnu.c: Likewise.
9890 * include/grub/i386/tsc.h: Likewise.
9891 * include/grub/symbol.h: Likewise.
9893 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9895 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9896 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9899 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9901 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9902 Implement Apple flavour.
9903 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9905 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9907 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9908 (memmove) [__APPLE__]: Likewise.
9909 (memcpy) [__APPLE__]: Likewise.
9910 (memset) [__APPLE__]: Likewise.
9911 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9912 (memmove) [__APPLE__]: Likewise.
9913 (memcpy) [__APPLE__]: Likewise.
9914 (memset) [__APPLE__]: Likewise.
9916 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9918 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9921 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9923 * grub-core/normal/main.c (read_config_file): Provide config_file and
9925 * util/grub.d/41_custom.in: Use config_directoy when available.
9927 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9929 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9930 (grub_bfs_dir): Likewise.
9932 2012-05-27 Peter Jones <pjones@redhat.com>
9934 The old code gives arguments to a printf function which can't work
9935 correctly, and the compiler complains.
9937 * grub-core/tests/example_functional_test.c (example_test): Add
9939 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9940 * include/grub/test.h (grub_test_assert_helper): New declaration.
9941 (grub_test_assert): Use grub_test_assert_helper.
9943 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9945 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9946 (exfctest): ... this to avoid overlong filenames.
9949 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9951 Handle "." and ".." on squashfs.
9953 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9954 Make inode numbers into stack.
9955 (grub_squash_read_symlink): Use stack.
9956 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9957 (make_root_node): Fill stack.
9958 (grub_squash_open): Use stack.
9960 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9962 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9965 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9967 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9968 stderr on test calls.
9970 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9972 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9974 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9976 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9978 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9980 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9983 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9985 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9986 (grub_hfsplus_iterate_dir): Add "." and "..".
9988 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9990 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9991 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9993 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9995 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9996 (find_path): Handle "." and "..".
9998 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10000 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10001 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10002 (grub_affs_iterate_dir): Handle hardlinks.
10004 2012-05-26 Matthew Garrett <mjg@redhat.com>
10006 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10007 (grub_efi_console_fini): Likewise.
10008 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10009 (grub_video_gop_fill_mode_info): Rename to ...
10010 (grub_video_gop_fill_real_mode_info): ... this.
10011 (grub_video_gop_fill_mode_info): New function.
10012 (grub_video_gop_setup): Setup double framebuffer.
10013 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10015 (grub_video_gop_swap_buffers): Copy framebuffer.
10016 (grub_video_gop_fini): Free offscreen buffer.
10017 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10019 (grub_efi_gop_blt_pixel): New struct.
10021 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10023 * gentpl.py: Remove error disabling for objconv.
10025 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10027 * configure.ac: Remove -Wunitialized as it's not available on older
10030 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10032 Fix extent overflow comparator.
10034 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10035 (grub_hfsplus_read_block): Set type.
10036 (grub_hfsplus_cmp_extkey): Compare type.
10038 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10040 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10042 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10044 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10047 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10049 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10050 (dejavu_bold_14.pf2): New target.
10052 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10054 * configure.ac: Fix djvu font detection.
10056 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10058 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10059 ext* instead of ext2.
10061 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10063 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10066 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10068 * docs/grub-dev.texi: Remove dot from .png.
10070 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10072 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10073 protective entry in any slot.
10074 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10075 if protective entry is found in any slot.
10077 Protective entry in non-first slot make no sense but is a widespread
10080 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10082 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10084 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10086 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10088 (grub_reiserfs_open): Don't free root.
10090 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10092 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10093 after freeing for safety.
10095 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10097 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10098 Reported by: Jordan Uggla.
10100 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10102 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10103 actual implementation. Specifically, clarify that the grub menu will
10104 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10107 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10109 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10112 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10114 Remove unjustified hard dependency of normal.mod on gfxterm.
10116 * include/grub/term.h (grub_term_output): New member fullscreen.
10117 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10118 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10119 (grub_gfxterm): Set .fullscreen.
10120 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10121 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10123 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10125 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10126 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10127 Mention case-insensitive AFFS, SFS and JFS.
10129 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10131 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10133 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10135 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10138 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10140 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10141 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10143 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10146 (grub_jfs_mount): Fill caseins.
10147 (grub_jfs_find_file): Respect caseins.
10149 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10151 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10154 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10156 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10157 New argument origpath. All users updated.
10159 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10161 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10162 (read_attr): Ensure that we read start of possibly compressed block.
10164 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10166 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10167 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10170 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10172 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10173 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10174 (dejavu.pf2): Replace with ...
10175 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10178 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10180 * util/grub.d/20_linux_xen.in: Add missing line.
10182 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10184 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10185 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10186 (grub_utf16_to_utf8): Likewise.
10188 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10190 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10191 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10192 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10193 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10194 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10195 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10197 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10199 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10202 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10204 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10205 (grub_udf_read_symlink): Handle read_string failure.
10207 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10209 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10212 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10214 Fix handling of UDF symlinks.
10216 * grub-core/fs/udf.c (read_string): New argument outbuf.
10218 (grub_ufs_read_symlink): Rename to ...
10219 (grub_udf_read_symlink): ... this. All users updated.
10220 Handle symlinks with more than one component.
10222 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10224 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10225 symlinks. Replace leading colon with a slash.
10227 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10229 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10232 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10234 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10235 match in inner node.
10237 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10239 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10240 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10241 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10242 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10243 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10244 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10245 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10246 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10247 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10249 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10251 Use grub-probe and not cmp to check that disk is empty.
10253 * util/grub-install.in: Use grub-probe for zero-check.
10254 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10255 (probe): Handle PRINT_ZERO_CHECK.
10256 (argp_parser): Handle -t zero_check.
10258 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10260 Flush block cache on adding disk to device map.
10262 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10263 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10265 (read_device_map): Likewise.
10266 (open_device): Flush on opening.
10268 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10270 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10271 (handle_symlink): Fix off-by-one error.
10272 Canonicalize the target.
10273 (grub_cpio_dir): Canonicalize the name.
10276 (grub_cpio_open): Canonicalize the name.
10278 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10280 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10283 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10285 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10286 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10288 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10290 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10291 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10294 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10296 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10299 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10301 Fix UFS1 big file support.
10303 * grub-core/fs/ufs.c (INODE): Removed.
10304 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10306 (INODE_MODE): Simplify.
10307 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10308 (grub_ufs_lookup_symlink): Don't use INODE.
10310 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10312 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10314 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10315 (grub_minix_data): Replace log_block_size with block_size.
10316 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10317 (grub_minix_mount): Fill block_size.
10319 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10321 * configure.ac: Bump to beta5.
10323 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10325 Fix wrapped HFS+ handling.
10327 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10328 blocks_start. All users updated.
10329 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10331 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10333 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10335 Fix long symlinks on reiserfs.
10337 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10338 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10339 (grub_reiserfs_iterate_dir): Save size for non-directories.
10340 (grub_reiserfs_open): Don't reread stat block as we already know the
10342 (grub_reiserfs_read): Split into...
10343 (grub_reiserfs_read_real): ... and ...
10344 (grub_reiserfs_read): ...this.
10346 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10348 Fix non-indexed JFS.
10350 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10351 (grub_jfs_data): New field namecomponentlen.
10352 (grub_jfs_mount): Fill namecomponentlen.
10353 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10355 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10357 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10358 * tests/grub_script_echo1.in: Add tests.
10360 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10362 * util/grub-install.in: Ignore empty devicetree directory.
10364 2012-05-08 Bean <bean123ch@gmail.com>
10366 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10368 (free_rsm): Free header as well.
10369 (free_old_fragments): Fix memory leak.
10370 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10371 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10372 (destroy_pq): Likewise.
10373 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10375 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10377 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10378 resulting hash as a precaution.
10380 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10382 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10383 '_' in variable names.
10384 * grub-core/net/net.c (grub_net_network_level_interface_register):
10387 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10389 Fix AFFS with non-512B blocks.
10391 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10392 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10393 (grub_affs_data): Replace blocksize with log_blocksize.
10394 (grub_affs_read_block): Fix non-512B blocks.
10395 (grub_affs_read_symlink): Likewise.
10396 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10397 (grub_affs_read): Fix non-512B blocks.
10398 (grub_affs_label): Likewise.
10399 (grub_affs_mtime): Likewise.
10400 (grub_affs_mount): Fix block detection routine.
10402 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10404 Add filesystem mtime to AFFS.
10406 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10407 (aftime2ctime): New function.
10408 (grub_affs_dir): Use aftime2ctime.
10409 (grub_affs_label): Fix return value.
10410 (grub_affs_mtime): New function.
10411 (grub_affs_fs): Add mtime.
10413 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10415 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10418 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10420 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10423 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10425 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10427 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10429 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10431 (FLAGS_CASE_SENSITIVE): New enum value.
10432 (cache_entry): New struct.
10433 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10434 cache_size and cache.
10435 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10436 Add log_blocksize and fshelp_flags.
10437 (grub_sfs_read_extent): Handle non-512 blocks.
10438 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10439 (grub_sfs_read_file): Handle non-512 blocks.
10440 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10442 (grub_sfs_read_symlink): Handle non-512 blocks.
10443 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10444 (grub_sfs_dir): Free cache.
10445 (grub_sfs_close): Likewise.
10447 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10449 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10452 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10454 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10456 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10458 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10460 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10462 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10463 (grub_sfs_read_extent): Likewise.
10464 (grub_sfs_read_block): Likewise.
10465 (grub_sfs_mount): Likewise.
10466 (grub_sfs_iterate_dir): Likewise.
10467 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10468 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10470 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10472 Fix errors on compressed NTFS with 512B clusters.
10474 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10476 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10478 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10479 Relax check for inline extents.
10480 (ntfscomp): Return correct -1 on error and not 0.
10482 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10484 * util/grub-install.in: Fix handling of prefix containing spaces.
10486 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10488 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10489 (grub_squash_read_data): Fix offset byte-swapping.
10491 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10493 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10494 per common usage and preffered in several parts of code.
10495 (grub_memcmp): Likewise.
10496 (grub_strncmp): Likewise.
10497 * include/grub/misc.h (grub_strcasecmp): Likewise.
10498 (grub_strncasecmp): Likewise.
10499 * Makefile.util.def (cmp_test): New test.
10500 (grub_script_strcmp): Likewise.
10501 * tests/cmp_unit_test.c: New file.
10502 * tests/grub_script_strcmp.in: Likewise.
10503 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10505 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10507 * include/grub/pci.h: Move enums into no-asm part.
10509 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10511 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10513 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10515 * util/getroot.c (find_hurd_root_device): Try to make error message
10516 and comments to translators clearer.
10518 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10520 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10522 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10524 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10527 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10529 * docs/grub.cfg: Update.
10531 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10533 * docs/grub.texi (PXE): Remove not present variables.
10535 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10537 * grub-core/net/net.c (defserver_set_env): New function.
10538 (defserver_get_env): Likewise.
10539 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10541 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10543 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10546 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10549 * grub-core/kern/emu/hostdisk.c: Likewise.
10551 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10553 Handle hurd userspace partitions.
10555 * util/getroot.c (find_hurd_root_device): New function.
10556 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10558 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10560 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10562 Reported by: Bastian Blank.
10564 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10566 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10567 crossing page boundary.
10569 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10571 Fix B-tree search in BFS, especially in presence of non-ASCII
10574 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10575 (find_in_b_tree): Use standard bsearch + btree algorithm.
10577 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10579 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10582 2012-05-03 Matthew Garrett <mjg@redhat.com>
10583 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10585 Suspend broadcom cards in order to stop their DMA.
10587 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10588 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10589 (pci): Don't build on x86 EFI.
10590 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10591 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10593 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10594 stop_broadcom if running on EFI.
10595 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10596 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10597 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10598 (grub_pci_find_capability): New proto.
10600 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10602 * docs/grub.texi: Remove dot from the extension as it apparently
10603 doesn't work with some makeinfo versions.
10605 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10607 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10608 with GRUB expectance.
10610 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10612 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10614 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10616 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10617 zero after directory block since last entry may be not 0-terminated if
10618 it ends on block boundary. Use continue instead of if spanning whole
10621 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10623 Support 4K sectors UDF inline files.
10625 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10626 (grub_udf_extended_file_entry): Likewise.
10627 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10629 (get_fshelp_size): New function.
10630 (grub_udf_read_icb): Read whole block.
10631 (grub_udf_iterate_dir): Likewise.
10632 (grub_udf_dir): Likewise.
10633 (grub_udf_open): Likewise.
10635 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10637 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10639 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10641 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10642 inline symlinks in addition to workaround.
10644 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10646 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10648 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10650 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10652 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10654 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10656 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10658 Fix reiserfs big seek times.
10660 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10661 exact. All users updated.
10662 (grub_reiserfs_read): Use nearest btree search for seeking.
10663 Fix return value on error.
10665 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10667 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10669 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10670 * docs/grub.texi: Update menuentry description.
10672 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10674 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10675 crash when embedding onto filesystem.
10677 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10679 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10682 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10684 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10686 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10688 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10691 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10692 2012-05-01 Bean <bean123ch@gmail.com>
10694 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10696 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10698 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10699 Special behaviour for len = 0 to read whole file isn't used anywhere and
10700 can cause buffer ovewrflows in several places.
10702 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10706 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10708 Handle RAIDZ on non-512B sectors.
10710 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10711 max_children_ashift.
10712 (fill_vdev_info_real): Fill max_children_ashift.
10713 (read_device): Use max_children_ashift.
10715 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10717 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10719 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10721 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10723 * docs/grub.texi: Update device.map parts.
10725 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10727 Don't scan into non-diskfilter devices having diskfilter names.
10729 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10730 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10732 (scan_disk_hook): New function.
10734 2012-04-29 Bean <bean123ch@gmail.com>
10736 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10739 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10741 * configure.ac: Detect starfield theme font path
10742 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10744 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10746 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10747 geometry on serial consoles.
10749 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10751 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10752 because of network consoles.
10754 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10756 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10759 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10761 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10762 falls on Q syndrom.
10764 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10766 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10767 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10769 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10771 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10772 Allocate at lest 8192 for temporary buffer as required for lzo.
10774 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10776 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10777 to cluster_bits, since it's already added in.
10778 (grub_fat_read_data): Likewise.
10780 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10782 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10783 as long as cluster size is multiple of 512 bytes.
10785 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10787 * util/grub-mkrescue.in: Fix locale directory.
10789 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10791 * grub-core/kern/emu/hostdisk.c (map): Make static.
10793 2012-04-23 Bean <bean123ch@gmail.com>
10795 * util/grub-fstest.c (fstest): Add missing break.
10797 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10801 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10802 not define nr variable.
10803 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10804 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10805 grub_find_device): Do not define.
10807 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10809 Fix kfreebsd compile and behaviour.
10811 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10813 * util/getroot.c: Fix wait.h include.
10814 (grub_guess_root_devices): Error if grub_find_device fails.
10815 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10816 (grub_util_get_dev_abstraction): Likewise.
10817 (grub_util_pull_device): Likewise.
10818 (grub_util_get_grub_dev): Likewise.
10819 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10821 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10823 Fix and unify wholedisk detection.
10825 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10826 is_part. All users updated.
10827 (device_is_wholedisk): Removed.
10828 (grub_util_biosdisk_get_grub_dev): Use is_part.
10830 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10832 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10835 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10837 * configure.ac: Bump to beta4.
10839 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10841 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10842 --fs-uuid --set UUID syntax.
10844 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10846 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10849 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10851 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10853 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10855 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10857 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10859 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10861 2012-04-18 Bean <bean123ch@gmail.com>
10863 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10866 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10868 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10870 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10871 corresponding to GRUB partitions.
10872 (grub_util_biosdisk_write): Likewise.
10874 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10876 Scan mdraid before LVM.
10878 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10879 (grub_diskfilter_register_front): ... this.
10880 (grub_diskfilter_register_back): New function.
10881 All users of grub_diskfilter_register updated.
10883 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10885 * util/grub-install.in: Fix an automatic target detection bug.
10887 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10889 * util/grub-install.in: New option --efi-directory.
10891 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10893 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10894 boot services if we have no other choice.
10896 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10898 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10900 * tests/util/grub-shell.in: Update to --directory.
10902 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10904 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10906 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10908 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10909 (grub_minix_read_file): Likewise.
10910 (grub_minix_read_inode): Likewise.
10911 (grub_minix_find_file): Likewise.
10912 (grub_minix_dir): Likewise.
10914 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10916 * util/grub-setup.c (setup): Fix partition handling and blocklist
10919 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10921 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10922 redundant buggy overlap check.
10924 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10926 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10929 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10931 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10932 kh.loadflags on pre-2.00 kernels.
10934 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10936 Terminate UNDI and PXE before launching the payload to avoid problems
10939 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10940 (grub_loader_flags): ... this. All users updated.
10941 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10942 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10943 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10944 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10946 (grub_pxe_restore): Likewise.
10947 (fini_hnd): New var.
10948 (GRUB_MOD_INIT): Register shutdown hook.
10949 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10950 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10951 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10952 (grub_loader_set): Rename second argument to flags.
10954 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10956 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10958 (grub_get_num_of_utf8_bytes): New function.
10959 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10960 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10962 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10963 (grub_ucs4_to_utf8): Change return type.
10965 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10967 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10969 * grub-core/fs/bfs.c (hop_level): Likewise.
10970 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10972 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10974 * grub-core/lib/adler32.c: Recode due to license unclearness.
10976 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10978 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10979 (test_header): Likewise.
10981 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10983 Fix --help formatting.
10985 * util/grub-mkconfig_lib.in (print_option_help): New function.
10986 (grub_fmt): Likewise.
10987 * util/grub-install.in: Use print_option_help and grub_fmt.
10988 * util/grub-kbdcomp.in: Likewise.
10989 * util/grub-mkconfig.in: Likewise.
10990 * util/grub-mknetdir.in: Likewise.
10991 * util/grub-mkrescue.in: Likewise.
10992 * util/grub-mkstandalone.in: Likewise.
10993 * util/grub-reboot.in: Likewise.
10994 * util/grub-set-default.in: Likewise.
10995 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10997 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10999 * linguas.sh: Remove autogenerated *.po.
11001 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11003 * po/README: Move language fetcing to ...
11004 * linguas.sh: ... here.
11005 * po/README: Point to linguas.sh.
11007 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11009 * po/README: Exclude ko.po due to disclaimer problems.
11011 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11013 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11015 (grub_gettext_translate_real): Handle 0th string.
11016 (grub_gettext_translate): Ensure that "" isn't translated.
11018 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11020 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11021 TRANSLATORS comment.
11022 (grub_diskfilter_print_partmap): Propagate changing of error into
11025 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11027 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11028 to uint64_t to prevent overflow.
11029 (grub_diskfilter_lv): Increase start_extent and extent_count
11030 to uint64_t to prevent overflow.
11032 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11034 * configure.ac: Increase version.
11036 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11038 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11040 * po/Rules-translit: New file.
11041 * po/arabic.sed: Likewise.
11042 * po/cyrillic.sed: Likewise.
11043 * po/greek.sed: Likewise.
11044 * po/hebrew.sed: Likewise.
11045 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11046 * po/Makefile.in.in: Add extra_dist4.
11048 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11050 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11052 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11053 modify names. Introduce MODE_BIGENDIAN.
11054 * grub-core/fs/minix_be.c: New file.
11055 * grub-core/fs/minix2_be.c: Likewise
11056 * grub-core/fs/minix3_be.c: Likewise.
11057 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11059 * grub-core/Makefile.core.def (minix_be): New module.
11060 (minix2_be): Likewise.
11061 (minix3_be): Likewise.
11063 2012-04-01 Felix <email@hamburg.de>
11065 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11066 (devs): Add MBP 2011.
11068 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11070 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11072 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11074 * grub-core/normal/cmdline.c (print_completion): New field
11076 (grub_cmdline_get): Handle width properly.
11078 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11080 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11082 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11084 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11085 after 29th of February.
11087 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11089 Fix exfat endianness handling.
11091 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11092 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11093 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11094 Byte-swap utf16 when necessary.
11095 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11097 2012-03-31 Anton Blanchard <anton@samba.org>
11098 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11100 Fix btrfs endianness handling.
11102 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11103 (lower_bound): Make root uint64_t. Use root in le.
11104 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11105 (find_path): Fix template key init.
11106 (grub_btrfs_dir): Fix mtime byteswap.
11107 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11109 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11111 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11112 recursion_depth. Break infinite resursions. All users updated.
11114 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11116 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11118 Reported by: Peter Jones.
11120 2012-03-31 Anton Blanchard <anton@samba.org>
11122 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11125 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11127 * util/grub-install.in: Fix nvram call for PreP.
11129 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11131 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11132 the error when some elements are missing into a warning.
11134 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11136 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11138 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11140 * docs/grub.texi (Invoking grub-probe): New section.
11141 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11143 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11145 Fix tab and wide character handling in editor and menu.
11147 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11148 agglomerate control characters with combining marks.
11149 (bidi_line_wrap): Allow break on tab.
11150 (grub_unicode_get_comb_start): New function.
11151 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11153 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11155 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11156 fixed_tab_size. All users updated.
11157 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11158 (grub_term_getcharwidth): Handle \t.
11159 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11162 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11164 Handle big-endian mdraid.
11166 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11167 * grub-core/Makefile.core.def (mdraid09_be): New module.
11168 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11169 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11170 * grub-core/disk/mdraid_linux_be.c: New file.
11172 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11174 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11176 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11178 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11179 missing quotes which caused confusion among translators.
11181 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11183 * util/grub-mkconfig_lib.in: Fix typo.
11185 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11187 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11189 * tests/grub_script_leading_whitespace.in: New file.
11190 * Makefile.util.def (grub_script_leading_whitespace): New test.
11192 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11194 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11197 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11199 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11200 starts with control character.
11202 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11204 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11206 (grub_gdb_outbuf): Likewise.
11208 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11210 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11211 zero terminator. Fixes a crash.
11213 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11215 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11217 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11218 images independently of preffered adderss field.
11220 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11222 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11223 * grub-core/commands/regexp.c: Likewise.
11224 * grub-core/loader/i386/linux.c: Likewise.
11225 * grub-core/partmap/msdos.c: Likewise.
11226 * grub-core/script/execute.c: Likewise.
11227 * grub-core/term/gfxterm.c: Likewise.
11229 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11231 Add variable parsing in $"..." and fix several mismatches with bash.
11233 * Makefile.util.def (grub_script_gettext): New test.
11234 * grub-core/script/execute.c (parse_string): New function.
11235 (gettext_append): Likewise.
11236 (grub_script_arglist_to_argv): Use gettext_append.
11237 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11238 * tests/grub_script_gettext.in: New file.
11240 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11242 Fix handling of leading spaces in scripts.
11244 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11246 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11247 other than skipping \r. All users updated.
11248 * tests/grub_script_echo1.in: Add space-related tests.
11249 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11251 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11253 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11255 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11257 * configure.ac: Bump up the version to beta2.
11259 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11261 Fix gettext reload bugs (e.g. inability to disable gettext
11264 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11265 main_context and secondary_context. All functions updated.
11266 (grub_gettext_translate): Rename to ...
11267 (grub_gettext_translate_real): ... this. Return NULL on failed
11269 (grub_gettext_translate): Handle secondary context.
11270 (grub_gettext_delete_list): Close file and zero-out the context.
11271 (grub_mofile_open): Don't call grub_gettext_delete_list.
11273 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11274 if locale="" to avoid pointless error message.
11275 (grub_gettext_env_write_lang): Update lang even if load fails.
11276 Handle secondary context.
11277 (grub_gettext_reread_prefix): New function.
11278 (read_main): Likewise.
11279 (read_secondary): Likewise.
11280 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11281 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11282 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11283 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11285 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11287 * configure.ac: Decrease warning level to avoid spurious warnings and
11288 to be able to compile with GCC 4.2.
11289 * Makefile.util.def: Remove -Wno-error=logical-op.
11291 2012-03-10 William Bittner <william.bittner@gmail.com>
11293 * util/import_unicode.py: Add missing brackets around string for
11296 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11298 Fix efi chainloader on network root.
11300 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11302 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11305 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11307 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11308 unused show_text member.
11309 * docs/grub.texi: Document "text" property.
11311 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11313 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11316 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11318 Fix IMSM handling on Fedora.
11320 * util/getroot.c (grub_util_is_imsm): New function.
11321 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11323 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11325 * Makefile.am: Strip gold section.
11326 * conf/Makefile.common: Likewise.
11327 * gentpl.py: Likewise.
11328 * grub-core/Makefile.core.def: Likewise.
11329 * grub-core/genmod.sh.in: Likewise.
11331 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11333 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11334 * util/grub.d/20_linux_xen.in: Likewise.
11335 Based on Debian patch.
11337 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11339 * util/grub.d/10_linux.in: Fix syntax error resulting in
11340 Richard Laager's patch.
11341 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11343 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11345 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11348 2012-03-10 Richard Laager <rlaager@wiktel.com>
11350 * util/grub.d/10_linux.in: Fix ZFS root passing.
11352 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11354 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11355 * grub-core/commands/xnu_uuid.c: Likewise.
11356 * grub-core/loader/efi/appleloader.c: Likewise.
11357 * grub-core/script/execute.c: Likewise.
11358 * grub-core/script/main.c: Likewise.
11359 * util/grub-mkfont.c: Likewise.
11361 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11363 * util/grub-mkfont.c (options): Use more appropriate "select" that
11364 "set" for face index.
11366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11368 * util/grub-editenv.c (options): Gettextize command summaries.
11370 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11373 "out of memory" error messagge.
11375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11377 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11378 of diskfilter for diskfilter on diskfilter support.
11380 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11382 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11384 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11386 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11389 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11391 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11393 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11395 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11399 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11402 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11404 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11406 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11408 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11410 * util/grub-install.in: Fix and gettextize error message.
11412 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11414 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11416 * util/grub-mount.c (options): Likewise.
11418 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11420 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11422 * grub-core/commands/search_wrap.c (options): Likewise.
11424 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11426 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11428 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11430 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11432 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11435 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11437 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11438 "temporary" since it's used in identifier and is limited in space.
11440 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11442 * po/POTFILES.in: Regenerate. Include *.h since they contain
11443 translatable strings as well.
11445 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11447 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11448 byte-swap on big-endian.
11449 Reported by: Lennart Sorensen
11451 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11453 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11454 (allocate_pages): Improve dprintf.
11455 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11456 code32_start. Fill code32_start and kernel_alignment in params.
11457 (grub_cmd_initrd): Use prot_init_space.
11459 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11461 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11463 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11465 * util/grub-install.in: Add missing dot at the end of sentence.
11467 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11469 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11470 * grub-core/commands/videotest.c: Likewise.
11471 * grub-core/loader/i386/linux.c: Likewise.
11473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11475 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11477 Reported by: Milo Casagrande.
11479 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11481 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11482 * grub-core/commands/gptsync.c: Likewise.
11483 * grub-core/commands/hashsum.c: Likewise.
11484 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11485 * grub-core/commands/legacycfg.c: Likewise.
11486 * grub-core/io/gzio.c: Likewise.
11487 * grub-core/net/net.c: Likewise.
11488 * grub-core/term/gfxterm.c: Likewise.
11489 * grub-core/term/terminfo.c: Likewise.
11490 * grub-core/tests/test_blockarg.c: Likewise.
11491 * grub-core/video/video.c: Likewise.
11492 * util/grub-install.in: Likewise.
11493 * util/grub-mkfont.c: Likewise.
11495 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11497 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11499 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11501 * grub-core/commands/search_wrap.c (options): Fix a typo.
11502 Reported by: David Prévot.
11504 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11506 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11509 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11511 * util/grub-script-check.c (main): Fix a syntax error message which was
11514 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11516 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11518 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11520 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11523 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11525 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11527 * util/grub-mount.c (options): Likewise.
11529 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11531 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11533 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11535 * grub-core/net/http.c: Add TRANSLATORS comments.
11536 * grub-core/normal/cmdline.c: Likewise.
11537 * grub-core/normal/misc.c: Likewise.
11538 * grub-core/partmap/msdos.c: Likewise.
11539 * grub-core/parttool/msdospart.c: Likewise.
11540 * grub-core/script/execute.c: Likewise.
11541 * grub-core/script/main.c: Likewise.
11542 * grub-core/term/terminfo.c: Likewise.
11543 * grub-core/video/bitmap.c: Likewise.
11544 * util/grub-install.in: Likewise.
11545 * util/grub-mkimage.c: Likewise.
11546 * util/grub-mklayout.c: Likewise.
11547 * util/grub-setup.c: Likewise.
11549 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11551 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11552 with similar messages in grub-fstest.
11554 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11556 * util/grub-install.in: Unify "option requires an argument" message
11557 with similar messages in other files.
11558 * util/grub-mkconfig.in: Likewise.
11560 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11562 * util/grub-set-default.in: Replace printf with gettext_printf (the
11563 string in in question is already translated from grub-reboot)
11565 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11567 * configure.ac: Bump up the version to beta1.
11569 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11571 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11572 case when min_align = 0.
11574 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11576 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11577 and fix a case when line_start overflows.
11579 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11581 * util/grub-reboot.in (usage): Mention id posibility.
11582 * util/grub-set-default.in (usage): Likewise.
11584 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11586 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11587 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11588 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11589 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11590 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11591 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11592 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11594 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11596 * grub-core/commands/menuentry.c (options): Remove
11597 GRUB_ARG_OPTION_REPEATABLE.
11598 Reported by: Andreas Vogel
11600 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11602 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11604 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11606 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11609 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11611 Use sort -V by the idea of Georgi Georgiev.
11613 * util/grub-mkconfig_lib.in (version_sort): New function.
11614 (version_test_numeric): Use version_sort.
11616 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11618 Use submenus in grub-mkconfig.
11620 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11621 * util/grub-mkconfig_lib.in (grub_quote): New function.
11622 (gettext_printf): Use gettext and not gettext_quoted to fix several
11624 * util/grub.d/10_hurd.in: Use submenus.
11625 * util/grub.d/10_kfreebsd.in: Likewise.
11626 * util/grub.d/10_linux.in: Likewise.
11627 * util/grub.d/10_netbsd.in: Likewise.
11628 * util/grub.d/20_linux_xen.in: Likewise.
11629 * util/grub.d/30_os-prober.in: Likewise.
11630 * util/grub.d/10_illumos.in: Add missing quoting.
11631 * util/grub.d/10_windows.in: Likewise.
11633 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11635 Fix menu title instability bug.
11637 * grub-core/commands/menuentry.c (options): New option --id.
11638 (grub_normal_add_menu_entry): New argument id. All users updated.
11639 (grub_cmd_menuentry): Handle --id.
11640 (grub_menu_init): Accept unknown arguments.
11641 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11642 feature_menuentry_options.
11643 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11645 (get_entry_number): Match with id as well.
11646 * include/grub/menu.h (grub_menu_entry): New member id.
11647 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11648 * util/grub.d/00_header.in: Define menuentry_id_option.
11649 * util/grub.d/10_hurd.in: Define id.
11650 * util/grub.d/10_illumos.in: Likewise.
11651 * util/grub.d/10_kfreebsd.in: Likewise.
11652 * util/grub.d/10_linux.in: Likewise.
11653 * util/grub.d/10_netbsd.in: Likewise.
11654 * util/grub.d/10_windows.in: Likewise.
11655 * util/grub.d/20_linux_xen.in: Likewise.
11656 * util/grub.d/30_os-prober.in: Likewise.
11658 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11660 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11661 "scope" with "body".
11663 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11665 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11666 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11667 prot_size and prot_file_size.
11669 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11671 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11672 All users updated. If easily=1 require raid-5/-6 to be full.
11673 (is_node_readable): Likewise.
11674 (scan_devices): Scan incomplete but readable LVs at the end.
11675 (grub_diskfilter_memberlist): Pull missing devices.
11676 (insert_array): Skip scanning until device is complete or scan is
11678 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11680 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11681 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11683 2012-03-03 Matthew Garrett <mjg@redhat.com>
11684 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11686 Avoid EFI boot services when loading Linux.
11688 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11689 avoid_efi_bootservices. All users updated.
11690 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11691 argument avoid_efi_bootservices. All users updated.
11692 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11693 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11694 align, min_align, relocatable, prefered_address. All users updated.
11695 Allocate avoiding boot services if kernel is relocatable.
11696 (grub_cmd_linux): Check if kernel is relocatable.
11697 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11698 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11699 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11700 avoid_efi_boot_services.
11701 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11702 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11703 (linux_kernel_params): Likewise.
11705 2012-03-03 Matthew Garrett <mjg@redhat.com>
11706 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11710 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11712 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11713 modes. Set gop_handle.
11714 (grub_video_gop_get_edid): New function.
11715 (grub_gop_get_preferred_mode): Likewise.
11716 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11717 (grub_video_efi_gop_adapter): Set .get_edid.
11718 * include/grub/efi/edid.h: New file.
11719 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11721 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11723 * util/grub-install.in: Load efivars unconditionally.
11725 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11727 * po/Rules-piglatin: Change suffix from .po-update-en to
11728 .po-update-en-piglatin.
11730 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11734 * po/piglatin.sed: New file.
11735 * po/en@piglatin.header: Likewise.
11736 * po/Rules-piglatin: Likewise.
11737 * po/README: Add en@piglatin to autogenerated languages.
11739 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11741 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11743 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11744 "Check" since we don't check anything.
11745 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11747 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11748 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11749 (grub_md_sha512_real): Likewise.
11751 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11753 * grub-core/commands/gptsync.c: Fix typographic quoting.
11754 * grub-core/commands/ieee1275/suspend.c: Likewise.
11755 * grub-core/commands/parttool.c: Likewise.
11756 * grub-core/commands/search_wrap.c: Likewise.
11757 * grub-core/commands/videoinfo.c: Likewise.
11758 * grub-core/gfxmenu/gui_label.c: Likewise.
11759 * grub-core/hello/hello.c: Likewise.
11760 * grub-core/kern/emu/main.c: Likewise.
11761 * grub-core/net/net.c: Likewise.
11762 * grub-core/normal/menu.c: Likewise.
11763 * grub-core/normal/menu_text.c: Likewise.
11764 * grub-core/normal/misc.c: Likewise.
11765 * util/grub-editenv.c: Likewise.
11766 * util/grub-install.in: Likewise.
11767 * util/grub-kbdcomp.in: Likewise.
11768 * util/grub-mkconfig.in: Likewise.
11769 * util/grub-mknetdir.in: Likewise.
11770 * util/grub-mkrescue.in: Likewise.
11771 * util/grub-mkstandalone.in: Likewise.
11772 * util/grub-reboot.in: Likewise.
11773 * util/grub-set-default.in: Likewise.
11774 * util/grub-setup.c: Likewise.
11775 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11777 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11779 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11780 * grub-core/commands/keystatus.c: Likewise.
11781 * grub-core/commands/loadenv.c: Likewise.
11782 * grub-core/commands/probe.c: Likewise.
11783 * grub-core/commands/regexp.c: Likewise.
11784 * grub-core/commands/true.c: Likewise.
11785 * grub-core/commands/videoinfo.c: Likewise.
11786 * grub-core/disk/cryptodisk.c: Likewise.
11787 * grub-core/disk/ldm.c: Likewise.
11788 * grub-core/disk/loopback.c: Likewise.
11789 * grub-core/disk/luks.c: Likewise.
11790 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11791 * grub-core/kern/disk.c: Likewise.
11792 * grub-core/kern/emu/hostdisk.c: Likewise.
11794 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11796 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11797 * util/grub-install.in: Add missing quote in the comment.
11799 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11801 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11802 * grub-core/commands/lsmmap.c: Likewise.
11803 * grub-core/commands/minicmd.c: Likewise.
11804 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11805 * grub-core/commands/regexp.c: Likewise.
11806 * grub-core/gdb/gdb.c: Likewise.
11807 * grub-core/term/gfxterm.c: Likewise.
11808 * util/grub-mkconfig.in: Likewise.
11809 * util/grub-mkfont.c: Likewise.
11810 * util/grub-mklayout.c: Likewise.
11811 * util/grub-mknetdir.in: Likewise.
11812 * util/grub-mkrescue.in: Likewise.
11813 * util/grub.d/30_os-prober.in: Likewise.
11815 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11817 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11818 with "Direct color" and "Packed" with "Packed pixel".
11819 (grub_cmd_videoinfo): Simplify legend.
11821 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11823 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11824 absolutely unclear error message.
11826 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11828 * util/grub-mkstandalone.in: Remove confusing leftover print.
11830 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11832 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11834 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11835 (GRUB_MOD_INIT): Likewise.
11836 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11838 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11840 * util/grub-install.in (usage): Likewise.
11841 Spell ID in whole letters.
11842 Add missing ending dot.
11844 * util/grub-reboot.in: Fix capitalisation.
11845 * util/grub-set-default.in: Likewise.
11847 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11849 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11850 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11851 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11852 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11853 Disable -Werror for -Wdeprecated-declarations.
11854 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11855 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11856 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11857 (grub_util_get_grub_dev): Make luks handling dependent on
11858 HAVE_DEVICE_MAPPER and not __linux__.
11859 (get_win32_path): Fix format security.
11860 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11861 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11862 Don't try grub_find_zpool_from_dir.
11863 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11864 #ifdef-out paresdir.
11866 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11868 * util/grub-pe2elf.c (usage): Add missing noreturn.
11869 (write_section_data): Rename name to shname to avoid shadowing.
11870 (write_symbol_table): Rename name to symname to avoid shadowing.
11871 Fix write_reloc_section call.
11873 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11875 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11876 to ensure that it's after the last byte of .text.
11878 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11880 * util/ieee1275/ofpath.c (my_isdigit): New function.
11881 (trailing_digits): Use my_isdigit.
11882 (strip_trailing_digits): Likewise.
11884 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11886 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11887 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11889 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11891 * grub-core/kern/i386/pc/startup.S: Define __start.
11893 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11895 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11896 strip already transforms he format.
11898 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11900 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11904 * util/grub-install.in: Add missing gettext init.
11905 * util/grub-kbdcomp.in: Likewise.
11906 * util/grub-mkconfig.in: Likewise.
11907 * util/grub-mknetdir.in: Likewise.
11908 * util/grub-mkrescue.in: Likewise.
11909 * util/grub-mkstandalone.in: Likewise.
11910 * util/grub-reboot.in: Likewise.
11911 * util/grub-set-default.in: Likewise.
11912 * util/grub.d/00_header.in: Likewise.
11913 * util/grub.d/10_hurd.in: Likewise.
11914 * util/grub.d/10_windows.in: Likewise.
11915 * util/grub.d/30_os-prober.in: Likewise.
11916 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920 * po/Rules-swiss: Fix header comment.
11922 2012-02-29 Andreas Vogel <anvoit>
11924 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11925 resulted in leak of arguments.
11927 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11929 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11930 reed_solomon_size const definition instead of computing it since
11931 Apple assembler doesn't support the later.
11933 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11935 * gentpl.py (kernel): Rewrite Apple part.
11937 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11939 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11943 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11945 (load_image): Likewise.
11947 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11949 * configure.ac: Fix a typo in previous commit.
11951 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11953 Don't add -Wl,-N on Apple platform.
11955 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11956 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11960 * grub-core/Makefile.core.def (lzma_decompress): Use
11961 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11965 * grub-core/genmod.sh.in: Rewrite the Apple part.
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11969 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11974 * acinclude.m4 (grub_CHECK_PIC): New test.
11975 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11979 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11980 to avoid the warning.
11982 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11984 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11985 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11986 after. All users updated.
11988 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11990 Use the common size routine in hostfs so we can read disks as well.
11992 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11993 (grub_util_get_fd_size): ... this. Return size in bytes.
11995 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11996 grub_util_get_fd_size.
11998 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12000 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12001 Add blocksize retrieval.
12003 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12005 * configure.ac: Restore CFLAGS after efiemu check.
12007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12009 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12014 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12018 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12019 (grub_cmd_halt): Likewise.
12021 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12023 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12024 for local arithmetics.
12025 Break %sp init into 2 instructions.
12026 Add 0 byte at the end.
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12030 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12033 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12035 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040 * grub-core/disk/ldm.c (make_vg): Init part.name.
12041 (grub_ldm_detect): Silence spurious warning.
12042 (grub_util_is_ldm): Likewise.
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12046 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12047 sane value to avoid a spurious warning.
12049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12051 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12052 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12054 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12056 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12057 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12059 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12061 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12062 hardcoding the relevant info.
12064 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12067 missing const qualifiers.
12068 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12070 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12072 * util/getroot.c [__APPLE__]: Add missing includes.
12073 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12075 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12077 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12079 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12081 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12086 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12088 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12091 and grub_file_close call.
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095 Add LZSS Mach-O support (needed for new xnu kernelcache).
12097 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12098 * grub-core/loader/lzss.c: New file.
12099 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12100 on Mach-O open failure.
12101 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12102 Don't free cmdsXX in uncompressedXX is set.
12103 (grub_macho_file): Init new fields.
12104 New argument is_64bit. All users updated.
12105 Handle compressed. Error out if no suitable architecture is found.
12107 (grub_macho_open): New argument is_64bit. All users updated.
12108 * grub-core/loader/macho32.c: Add defines for new fields.
12109 * grub-core/loader/macho64.c: Likewise.
12110 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12111 (grub_macho_parse): Handle compressed.
12112 Defer actual processing if compressed.
12113 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12114 "filename". All users updated.
12115 (grub_macho_size): New argument "filename". All users updated.
12116 (grub_macho_get_entry_point): Likewise.
12117 (grub_macho_load): Handle compressed.
12118 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12119 (GRUB_MACHO_LZSS_OFFSET): New define.
12120 (grub_decompress_lzss): New proto.
12121 * include/grub/machoload.h (grub_macho_file): New fields to handle
12123 (grub_macho_contains_macho64): Remove proto.
12124 (grub_macho_contains_macho32): Likewise.
12125 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12131 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12135 * Makefile.am (starfield_theme_files): New var.
12136 (starfield_DATA): Use starfield_theme_files.
12137 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12138 Add bootcheck-related files.
12139 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12140 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12141 and font_char_metrics.txt.
12142 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12143 (setjmp): Add lib/ia64/longjmp.S.
12144 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12145 * po/POTFILES.in: Regenerate.
12146 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12147 DISTFILES.common.extra1.
12148 * util/devicemap.c: Removed.
12149 * grub-core/lib/i386/relocator_backward.S: Likewise.
12150 * util/import_gcry.py: Remove unused files. Add extra_dist for
12153 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12155 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12156 grub_gettext_delete_list before changing grub_gettext_max to avoid
12157 running out of array bounds.
12159 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12161 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12162 grub_vga_text_init/grub_vga_text_fini.
12164 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12166 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12168 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12170 * configure.ac: Bump to 2.00~beta0.
12172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12174 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12175 missing initialisation.
12177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12179 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12183 Support v2 xnu boot arguments.
12185 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12186 New argument fsbfreq_out.
12187 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12188 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12190 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12192 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12193 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12194 (grub_xnu_boot_params): Rename to ...
12195 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12196 (grub_xnu_boot_params_v2): New struct.
12198 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12200 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12201 zeroing of CRC field before computing CRC.
12203 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12205 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12206 Change order of allocations to decrease fragmentation.
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12210 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12212 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12214 Use write-combining MTRR to speed up video with buggy BIOSes.
12216 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12217 (cpuid): New define.
12220 (mtrr_base): Likewise.
12221 (mtrr_mask): Likewise.
12222 (grub_vbe_enable_mtrr_entry): New function.
12223 (grub_vbe_enable_mtrr): Likewise.
12224 (grub_vbe_disable_mtrr): Likewise.
12225 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12226 control off to BIOS.
12227 (grub_video_vbe_init): Fill mtrr.
12228 (grub_video_vbe_fini): Disable mtrr.
12229 (grub_video_vbe_get_info_and_fini): Likewise.
12230 (grub_video_vbe_setup): Enable mtrr.
12232 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12234 * include/grub/partition.h (grub_partition_map): Change prototype of
12235 embed to take a maximum value for nsectors.
12236 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12237 * include/grub/fs.h (grub_fs): Likewise.
12238 * grub-core/partmap/msdos.c (embed_signatures): New array.
12239 (pc_partition_map_embed): Check for and avoid sectors matching any
12240 of the signatures in embed_signatures, up to max_nsectors.
12241 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12242 returned sector map to max_nsectors.
12243 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12244 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12245 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12246 * util/grub-setup.c (setup): Allow for the embedding area being
12247 split into multiple blocklists. Tell dest_partmap->embed the
12248 maximum number of sectors we care about.
12250 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12252 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12253 Specify blocklist_install and reserver_first_sector for all fs.
12254 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12257 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12259 * util/grub-install.in: Clarify strings.
12260 Fix source dir check.
12262 2012-02-27 Richard Laager <rlaager@wiktel.com>
12264 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12265 "zfs" and "fuse.zfs" as synonyms.
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12269 * configure.ac: Put platform and target_cpu substitutions back since
12270 they are used for directories.
12272 2012-02-27 Richard Laager <rlaager@wiktel.com>
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12276 * util/grub.d/20_linux_xen.in: Likewise.
12278 2012-02-27 Richard Laager <rlaager@wiktel.com>
12280 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12283 2012-02-27 Richard Laager <rlaager@wiktel.com>
12285 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12288 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12290 Don't use insecure popen in getroot.
12292 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12293 (exec_pipe): ... here.
12294 (find_root_devices_from_poolname): Use exec_pipe.
12296 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12298 Remove platform and target_cpu replacement.
12300 * configure.ac: Remove platform and target_cpu substitutions.
12301 * tests/util/grub-shell.in: Use modinfo.
12302 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12305 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12307 Autodetect platform in grub-install but allow override.
12309 * util/grub-install.in: Autodetect platform. Support --target and
12310 --directory. Read platform from modinfo.sh.
12312 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12314 Support btrfs multi-volume probe.
12316 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12317 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12318 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12319 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12320 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12321 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12322 grub_find_root_devices_from_btrfs if on btrfs.
12324 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12326 Remove any awareness of *.c util files about target.
12328 * Makefile.util.def (grub-setup): Split to ...
12329 (grub-bios-setup): ... and this.
12330 (grub-sparc64-setup): ... and this.
12331 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12332 * docs/man/grub-setup.h2m: Split into ...
12333 * docs/man/grub-sparc64-setup.h2m: ... this.
12334 * docs/man/grub-bios-setup.h2m: ... and this.
12335 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12336 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12337 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12338 (grub_target_addr_t): Remove.
12339 (grub_target_size_t): Remove.
12340 (grub_target_ssize_t): Remove.
12341 * util/grub-install.in: Use new grub-*-setup.
12342 * util/grub-mkimagexx.c (Elf_Word): New define.
12343 (Elf_Half): Likewise.
12344 (Elf_Section): Likewise.
12345 (ELF_ST_TYPE): Likewise.
12346 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12347 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12349 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12351 Replace grub_target_addr with more appropriate types.
12353 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12354 grub_target_addr with grub_addr.
12355 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12356 grub_target_addr with grub_port.
12357 (grub_cmd_write): Likewise.
12358 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12359 grub_target_addr with grub_addr.
12360 (grub_cmd_write): Likewise.
12361 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12363 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12365 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12366 const qualifier for vendor_guid.
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12372 (efiemu_memequal): Likewise.
12373 (find_variable): Likewise.
12375 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12377 Fix missing console prototype on qemu-mips.
12379 * include/grub/mips/qemu_mips/console.h: New file.
12381 2012-02-27 Matthew Garrett <mjg@redhat.com>
12382 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12384 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12385 * include/grub/efi/efi.h: Likewise.
12386 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12387 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12388 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12389 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12390 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12391 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12393 2012-02-27 Matthew Garrett <mjg@redhat.com>
12395 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12397 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12399 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12402 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12404 * configure.ac: Remove inappropriate use of program_transform_name
12405 on grubdir and bootdir but allow explicit specification of those
12408 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12410 * util/grub-mknetdir.in (grub_prefix): Removed.
12411 (subdir): Use @bootdirname@ and @grubdirname@.
12413 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12415 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12417 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12419 * po/POTFILES.in: Regenerated.
12421 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12423 Remove improper use of program_transform_name on pkglibrootdir.
12425 * configure.ac (pkglibrootdir): Removed.
12426 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12427 * util/grub-mkimage.c: Likewise.
12429 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12431 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12434 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12436 * util/grub-install.in: Use file identifier if no UUID is available
12437 or user explicitly prompted for it.
12439 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12441 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12442 (freebsd_get_zfs): New function.
12443 (grub_freebsd_boot): Pass zfs UUID.
12444 (grub_cmd_freebsd): Set zfs UUID.
12446 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12448 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12451 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12453 Add configure flag to control libzfs integration.
12455 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12457 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12459 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12461 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12464 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12466 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12467 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12468 be used on non-modules.
12470 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12471 Rename to grub_boot_init.
12472 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12473 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12474 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12475 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12476 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12477 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12478 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12479 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12481 (grub_machine_init): Remove empty inits.
12482 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12484 (grub_machine_init): Remove empty inits.
12485 * grub-core/term/arc/console.c: Remove explicit proto.
12486 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12487 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12488 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12489 grub_at_keyboard_fini.
12490 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12491 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12492 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12494 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12495 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12496 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12498 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12499 * grub-core/term/serial.c (GRUB_MOD_INIT)
12500 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12501 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12503 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12504 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12505 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12506 grub_terminfo_fini.
12507 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12508 (GRUB_MOD_FINI): Likewise.
12509 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12510 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12511 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12512 grub_video_radeon_fuloong2e_fini.
12513 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12514 [LOONGSON]: Rename to grub_video_sis315pro_init.
12515 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12516 grub_video_sis315pro_fini.
12517 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12518 [LOONGSON]: Rename to grub_video_sm712_init.
12519 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12520 grub_video_sm712_fini.
12521 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12522 (grub_at_keyboard_fini): Likewise.
12523 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12524 Don't declare grub_{modname}_init.
12525 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12526 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12528 (grub_keylayouts_fini) [!EMU]: Likewise.
12529 * include/grub/serial.h (grub_serial_init) [!EMU]:
12531 (grub_serial_fini) [!EMU]: Likewise.
12532 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12534 (grub_terminfo_fini) [!EMU]: Likewise.
12535 * include/grub/video.h (grub_font_init) [!EMU]:
12537 (grub_font_fini) [!EMU]: Likewise.
12538 (grub_gfxterm_init) [!EMU]: Likewise.
12539 (grub_gfxterm_fini) [!EMU]: Likewise.
12540 (grub_video_sm712_init) [!EMU]: Likewise.
12541 (grub_video_sm712_fini) [!EMU]: Likewise.
12542 (grub_video_sis315pro_init) [!EMU]: Likewise.
12543 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12544 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12545 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12547 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12549 Make nand a prefix for nand devices.
12551 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12553 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12555 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12556 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560 * include/grub/env.h (grub_env_find): Remove prototype.
12561 * grub-core/kern/env.c (grub_env_find): Make static.
12562 (grub_env_set): Remove useless set.
12564 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12566 * grub-core/kern/i386/realmode.S: Remove useless align.
12568 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570 * include/grub/dl.h (grub_dl_load_file): Don't export.
12572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12574 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12577 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12579 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12581 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12582 not reloading whole superblock but only the part which is really needed.
12583 Remove useless grub_errors.
12584 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12587 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12589 Don't export grub_get_rtc.
12591 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12592 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12594 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12596 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12598 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12600 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12601 argument since it can be deduced from diskfilter. All users updated.
12603 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12607 * include/grub/list.h (grub_prio_list): Removed.
12608 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12609 GRUB_COMMAND_PRIO_MASK.
12610 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12611 GRUB_COMMAND_FLAG_ACTIVE.
12612 (grub_prio_list_insert): Removed.
12613 (grub_prio_list_remove): Likewise.
12614 (GRUB_AS_PRIO_LIST): Likewise.
12615 (GRUB_AS_PRIO_LIST_P): Likewise.
12616 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12617 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12618 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12619 * grub-core/kern/command.c (grub_register_command_prio): Inline
12620 the prio_list code.
12621 (grub_unregister_command): Likewise.
12623 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12625 Fix interrupt mixup from previous commit.
12627 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12628 (grub_realidt): New var.
12629 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12631 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12633 (grub_relocator16_boot): Set grub_relocator16_idt.
12634 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12635 (LOCAL(realidt)): ... this.
12636 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12637 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12638 (grub_realidt): New variable.
12640 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12642 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12643 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12644 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12645 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12647 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12648 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12649 * po/POTFILES.in: Regenerate.
12651 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12653 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12656 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12658 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12660 (add_length): Likewise.
12662 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12663 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12665 GDB serial and backtrace support.
12667 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12668 (prot_to_real): Likewise.
12669 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12670 * grub-core/Makefile.core.def (backtrace): New module.
12672 * grub-core/gdb/cstub.c: New file.
12673 * grub-core/gdb/gdb.c: Likewise.
12674 * grub-core/gdb/i386/idt.c: Likewise.
12675 * grub-core/gdb/i386/machdep.S: Likewise.
12676 * grub-core/gdb/i386/signal.c: Likewise.
12677 * grub-core/lib/i386/backtrace.c: Likewise.
12678 * grub-core/lib/backtrace.c: Likewise.
12679 * include/grub/backtrace.h: Likewise.
12680 * include/grub/gdb.h: Likewise.
12681 * include/grub/i386/gdb.h: Likewise.
12683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12685 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12687 (add_length): Likewise.
12688 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12689 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12691 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12692 __argp_get_display_len.
12694 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12696 $"..." support in scripts.
12698 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12699 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12700 * grub-core/script/yylex.l: Likewise.
12701 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12704 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12706 * gentpl.py: Remove obsolete pkglib_DATA handling.
12708 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12710 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12713 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12714 * util/grub-kbdcomp.in: Likewise.
12715 * util/grub-mkconfig.in: Likewise.
12716 * util/grub-mkconfig_lib.in: Likewise.
12717 * util/grub-mknetdir.in: Likewise.
12718 * util/grub-mkrescue.in: Likewise.
12719 * util/grub-mkstandalone.in: Likewise.
12720 * util/grub-reboot.in: Likewise.
12721 * util/grub-set-default.in: Likewise.
12722 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726 Remove GRUB_PREFIX.
12728 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12729 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12730 used for backward compatibility.
12732 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12734 Add new all_video module.
12736 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12737 * grub-core/Makefile.core.def (all_video): New module.
12738 * grub-core/genmoddep.awk: Generate dependency of all_video from
12740 * grub-core/lib/fake_module.c: New file.
12741 * grub-core/normal/main.c (features): Add feature_all_video_module.
12742 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12743 don't do explicit search again.
12744 insmod all_video in load_video if available.
12746 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12748 Another round of string clarification and adding TRANSLATORS comments.
12750 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12752 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12754 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12758 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12759 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12761 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12763 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12764 trailing newline implicitly. All users updated.
12766 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12768 Implement serial on IEEE1275 and EFI.
12770 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12771 on emu. Mention arc and emu as the only platforms without serial
12773 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12774 ieee1275 platforms.
12775 * grub-core/term/efi/serial.c: New file.
12776 * grub-core/term/ieee1275/serial.c: Likewise.
12777 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12778 specification if no ns8250 driver is available.
12779 (grub_cmd_serial): Likewise.
12780 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12781 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12782 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12783 (grub_efi_parity_type_t): New type.
12784 (grub_efi_stop_bits_t): Likewise.
12785 (grub_efi_serial_io_interface): New struct.
12786 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12787 available for all interfaces.
12788 Add EFI and IEEE1275 fields.
12789 (grub_ofserial_init): New proto.
12790 (grub_efiserial_init): Likeiwse.
12791 * util/grub.d/00_header.in: Don't check for the presence of serial
12794 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12796 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12797 name as if it was an alias.
12799 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12801 * grub-core/commands/lsacpi.c (options): Fix typo.
12803 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12805 Convert grub-emu to argp.
12807 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12809 * util/argp_common.c: Rename to ...
12810 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12811 Add missing includes.
12812 * grub-core/kern/emu/main.c: Convert to argp.
12813 * po/POTFILES.in: Regenerate.
12814 * util/grub-install.in (usage): Make first letter lowcase in messages
12816 * util/grub-setup.c (options): Likewise.
12818 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12820 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12821 Put back accidently commented-out code.
12823 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12825 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12826 loop check using Brent algorithm.
12827 (grub_hfsplus_btree_search): Likewise.
12829 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12831 * util/grub-install.in: Fix usage of wrong device for PreP install.
12833 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12835 * conf/Makefile.common (CFLAGS_GNULIB): Add
12836 -Wno-unsafe-loop-optimizations.
12837 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12839 * grub-core/commands/legacycfg.c: Add pragma to skip
12840 -Wunsafe-loop-optimizations.
12841 (check_password_md5_real): Fix loop counter type.
12842 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12844 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12845 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12847 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12848 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12849 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12851 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12852 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12853 avoid possible infinite loops.
12854 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12855 and -Wunsafe-loop-optimizations.
12856 * grub-core/script/yylex.l: Likewise.
12857 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12858 (print_glyphs): Avoid infinite loops.
12859 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12861 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12863 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12864 to avoid infinite loop.
12865 (disp_acpi_rsdt_table): Likewise.
12867 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12869 * grub-core/font/font.c (grub_font_load): Add support for default
12870 path for fonts ($prefix/fonts).
12871 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12872 for checking if string is a path.
12873 * grub-core/normal/main.c (features): Add feature_default_font_path.
12874 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12875 * util/grub.d/00_header.in: Use default directory if possible.
12876 * util/grub-install.in: Install unicode.pf2.
12878 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12880 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12881 * po/Rules-swiss: New file.
12882 * po/swiss.sed: Likewise.
12884 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12886 * grub-core/fs/btrfs.c (find_device): Fix typos.
12887 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12888 * util/grub-mkrelpath.c (argp_parser): Likewise.
12889 Reported by: Yuri Chornoivan.
12891 2012-02-23 Dalet Omega <daletomega@gmail.com>
12893 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12894 for usual informative messages.
12896 2012-02-23 Dalet Omega <daletomega@gmail.com>
12900 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12901 * conf/Makefile.common: Define starfielddir.
12902 * configure.ac: Configure starfield.
12903 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12904 * themes/starfield/README: Likewise.
12905 * themes/starfield/blob_w.png: Likewise.
12906 * themes/starfield/boot_menu_c.png: Likewise.
12907 * themes/starfield/boot_menu_e.png: Likewise.
12908 * themes/starfield/boot_menu_n.png: Likewise.
12909 * themes/starfield/boot_menu_ne.png: Likewise.
12910 * themes/starfield/boot_menu_nw.png: Likewise.
12911 * themes/starfield/boot_menu_s.png: Likewise.
12912 * themes/starfield/boot_menu_se.png: Likewise.
12913 * themes/starfield/boot_menu_sw.png: Likewise.
12914 * themes/starfield/boot_menu_w.png: Likewise.
12915 * themes/starfield/slider_c.png: Likewise.
12916 * themes/starfield/slider_n.png: Likewise.
12917 * themes/starfield/slider_s.png: Likewise.
12918 * themes/starfield/src/blob_nw.xcf: Likewise.
12919 * themes/starfield/src/bootmenu/: Likewise.
12920 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12921 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12922 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12923 * themes/starfield/src/slider_c.xcf: Likewise.
12924 * themes/starfield/src/slider_n.xcf: Likewise.
12925 * themes/starfield/src/slider_s.xcf: Likewise.
12926 * themes/starfield/src/terminalbox/: Likewise.
12927 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12928 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12929 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12930 * themes/starfield/starfield.png: Likewise.
12931 * themes/starfield/terminal_box_c.png: Likewise.
12932 * themes/starfield/terminal_box_e.png: Likewise.
12933 * themes/starfield/terminal_box_n.png: Likewise.
12934 * themes/starfield/terminal_box_ne.png: Likewise.
12935 * themes/starfield/terminal_box_nw.png: Likewise.
12936 * themes/starfield/terminal_box_s.png: Likewise.
12937 * themes/starfield/terminal_box_se.png: Likewise.
12938 * themes/starfield/terminal_box_sw.png: Likewise.
12939 * themes/starfield/terminal_box_w.png: Likewise.
12940 * themes/starfield/theme.txt: Likewise.
12942 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12944 * util/grub.d/00_header.in: Add missing export theme.
12946 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12948 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12950 Reported by: Eren D.
12952 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12954 * conf/Makefile.common (grubdatadir): Removed.
12955 (Makefile.am): Move eveything grubdata to pkgdata.
12957 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12959 * grub-core/commands/acpihalt.c (get_sleep_type):
12960 Remove unused variable.
12962 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12964 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12965 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12966 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12967 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12968 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12969 i18n with gettext no-op.
12970 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12971 GRUB_ACPI_OPCODE_STRING_CONST.
12972 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12973 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12975 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12977 * po/POTFILES.in: Regenerate.
12979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12981 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12982 -Wno-error=missing-noreturn.
12984 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12986 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12987 condition to avoid possibly infinite loops.
12988 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12989 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12991 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12993 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12994 condition to avoid possibly infinite loops.
12996 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12998 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13001 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13003 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13005 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13007 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13009 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13011 * util/bin2h.c (usage): Add missing attribute noreturn.
13013 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13015 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13016 if the size isn't divisible by 512.
13018 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13020 Make list_push and list_remove functions rather than inline functions
13021 to decrease size and avoid aliasing violations.
13023 * include/grub/list.h (grub_list_push): Move to ...
13024 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13025 * include/grub/list.h (grub_list_remove): Move to ...
13026 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13028 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13030 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13031 and -Wunused-result.
13033 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13035 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13036 Reported by: Seth Goldberg
13038 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13040 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13042 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13044 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13045 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13047 * docs/grub.texi (Simple configuration): Document
13048 GRUB_CMDLINE_GNUMACH.
13050 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13052 * conf/Makefile.common (platform_SCRIPTS): New variable.
13053 (platform_PROGRAMS): Likewise.
13054 * gentpl.py: Mark *,module and *.image for install.
13055 * grub-core/gdb_grub.in: Add a notice of expected environment.
13056 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13057 (gmodule.pl): Likewise.
13059 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13061 Replace grub_checkkey with grub_getkey_noblock.
13063 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13064 (grub_getkey_noblock): ... this. All users updated.
13066 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13068 * grub-core/kern/emu/console.c: Move to ...
13069 * grub-core/term/emu/console.c: ...here.
13070 (grub_ncurses_getkey): Fix return value if no key is detected.
13072 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13074 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13075 (grub_unit_test_fini): Likewise.
13076 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13078 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13080 * include/grub/test.h (GRUB_UNIT_TEST)
13082 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13084 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13085 Better error handling.
13086 (grub_script_return): Likewise.
13087 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13089 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13091 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13092 rimplicit redifinition.
13094 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13096 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13099 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13101 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13102 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13105 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13107 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13108 as GRUB_ERR_BUG. Don't malloc if no device is available.
13110 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13112 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13113 Mark calling with invalid term as GRUB_ERR_BUG.
13115 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13117 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13118 packets rather than raising an error.
13120 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13122 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13125 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13127 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13128 diagnostic to dprintf.
13129 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13131 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13133 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13136 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13138 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13139 (grub_ntfs_iterate_dir): Likewise.
13141 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13143 Efiemu stylistic fixes and gettext.
13145 * grub-core/efiemu/i386/loadcore32.c
13146 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13147 * grub-core/efiemu/i386/loadcore64.c
13148 (grub_arch_efiemu_relocate_symbols64): Likewise.
13149 * grub-core/efiemu/i386/pc/cfgtables.c
13150 (grub_machine_efiemu_init_tables): Likewise.
13151 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13152 (grub_efiemu_loadcore_initXX): Add a filename argument.
13154 Improved error message.
13155 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13156 Add a filename argument.
13158 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13159 Reclassify double relocation as GRUB_ERR_BUG.
13161 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13163 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13166 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13168 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13171 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13173 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13175 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13177 Improve string. Gettextize.
13179 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13181 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13183 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13185 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13187 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13188 [GRUB_UTIL]: New function.
13189 (insert_array) [GRUB_UTIL]: Store partmaps.
13190 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13192 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13193 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13194 (probe_abstraction): Print diskfilter and not raid.
13195 Reported by: Lennart Sorensen
13197 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13199 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13200 * util/grub-mkimagexx.c (MASK3): New define.
13201 (add_value_to_slot_20b): Use MASK3.
13202 (add_value_to_slot_21): Likewise.
13203 (relocate_addresses): Fix format specification.
13204 (load_image): Explicitly init symtab_section.
13206 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13208 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13209 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13211 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13213 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13215 Reported by: Lennart Sorensen
13217 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13219 * gentpl.py: Add missing license header.
13220 * docs/grub.texi: Update copyright year.
13222 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13224 Source grub-mkconfig_lib from the build directory at build time.
13225 Suggested by: Vladimir Serbinenko.
13227 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13228 * util/grub-install.in: Define pkgdatadir if not already set, and source
13229 grub-mkconfig_lib from there.
13230 * util/grub-kbdcomp.in: Likewise.
13231 * util/grub-mkconfig.in: Likewise.
13232 * util/grub-mknetdir.in: Likewise.
13233 * util/grub-mkrescue.in: Likewise.
13234 * util/grub-mkstandalone.in: Likewise.
13235 * util/grub-reboot.in: Likewise.
13236 * util/grub-set-default.in: Likewise.
13237 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13239 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13241 Increase warning level.
13243 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13244 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13245 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13246 (TARGET_CFLAGS): Likewise.
13247 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13248 * grub-core/Makefile.core.def (decompressor_xz): Add
13249 -Wno-unreachable-code.
13250 (normal): Add -Wno-redundant-decls.
13251 (xzio): Add -Wno-unreachable-code.
13252 (lzopio): Add -Wno-redundant-decls -Wno-error.
13253 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13254 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13255 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13256 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13257 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13258 * grub-core/kern/i386/coreboot/init.c: Add exception to
13259 -Wsuggest-attribute=noreturn.
13260 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13261 * grub-core/kern/ia64/dl_helper.c: Likewise.
13262 * grub-core/kern/mips/dl.c: Likewise.
13263 * grub-core/kern/sparc64/dl.c: Likewise.
13264 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13265 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13266 (memcmp): Likewise.
13267 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13268 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13269 * grub-core/loader/mips/linux.c: Likewise.
13270 * grub-core/loader/multiboot_elfxx.c: Likewise.
13271 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13272 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13273 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13274 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13276 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13277 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13280 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13282 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13285 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13287 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13288 Avoid improper use of strings.
13289 (grub_cmd_legacy_initrdnounzip): Likewise.
13291 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13293 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13295 (grub_util_info): Likewise.
13296 (grub_util_error): Likewise.
13298 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13300 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13301 * util/grub-fstest.c (fstest): Likewise.
13303 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13305 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13306 (grub_md_sha512_real): Likewise.
13307 (grub_util_get_geli_uuid): Likewise.
13308 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13309 (grub_util_biosdisk_open): Fix format specification.
13310 Respect format security.
13311 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13312 (xrealloc): Likewise.
13313 (xasprintf): Likewise.
13315 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13317 * util/import_gcry.py: Include grub/crypto.h in init.c.
13319 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13321 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13322 (generate_image): Make prefix a const char *.
13323 Fix format specifications. Respect format security.
13324 Avoid void * arithmetics.
13326 (argp_parser): Remove unused variable. Respect format security.
13327 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13328 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13329 (count_funcs): Remove unused variable.
13330 (relocate_addresses): Fix format specification.
13331 Disable x86-64 with elf32. Remove unused variables.
13332 (add_fixup_entry): Avoid shadowing.
13333 (make_reloc_section): Fix format specification.
13335 (locate_sections): Fix format specifications.
13336 (load_image): Avoid shadowing.
13338 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13340 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13341 Fix format specifications. Respect format security.
13342 Don't translate already translated grub_errmsg.
13343 (argp_parser): Remove unused variable
13345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13349 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13352 (main): Likewise. Use xmalloc. Respect format security.
13354 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13358 (argp_parser): Remove unused variable.
13360 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13362 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13363 (add_pixel): Make static.
13364 (add_font): Likewise.
13365 (write_string_section): Make name and str a const char *.
13366 (write_be16_section): Make name a const char *.
13367 (print_glyphs): Make static.
13368 (write_font_ascii_bitmap): Likewise.
13369 (write_font_width_spec): Likewise.
13370 (write_font_pf2): Likewise.
13371 (argp_parser): Remove unused variable.
13372 Respect format security.
13373 (main): Avoid shadowing. Respect format security.
13375 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13377 * util/grub-editenv.c (argp_parser): Make static.
13378 (create_envblk_file): Use xmalloc.
13379 (open_envblk_file): Likewise.
13380 Resepect format security.
13381 (set_variables): Respect format security.
13383 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13385 * util/getroot.c (grub_find_device): Respect format security.
13386 (get_mdadm_uuid): Remove unused variable.
13387 (grub_util_pull_device): Dont call gettext on already translated
13389 (find_system_device): Remove unused variable.
13390 (grub_util_get_grub_dev): Likewise.
13391 (grub_make_system_path_relative_to_its_root): Respect format security.
13393 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13395 * util/grub-fstest.c (execute_command): Make first argument
13397 (read_file): Avoid shadowing.
13398 Reuse underlying error message if device open fails.
13399 (cmd_cmp): Respect format security.
13400 (root): Make const char *.
13401 (fstest): Remove args argument and use global copy.
13402 Respect format security.
13403 (argp_parser): Make static.
13404 (main): Make default_root const char *.
13406 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13408 * util/grub-mount.c (root): Make const char *.
13409 (execute_command): Make first argument a const char *.
13410 (fuse_init): Respect format security.
13411 (argp_parser): Make static. Remove unused variable.
13412 (main): Make default_root a const char *.
13413 Respect format security.
13415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13417 * util/grub-probe.c (probe): Don't call gettext on already translated
13419 Remove unused variables.
13420 (argp_parser): Remove unused variable.
13422 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13424 * util/grub-script-check.c (argp_parser): Remove unused variable.
13425 (main): Rename read to curread to avoid shadowing.
13427 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13429 * util/misc.c (grub_util_write_image_at): Fix format specification.
13430 (grub_util_write_image): Likewise.
13431 (grub_script_execute_argument_to_string): Removed (unused).
13432 (grub_script_execute_menuentry): Likewise.
13433 (grub_putchar): Likewise.
13435 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13437 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13438 (FUNCTION) [GRUB_UTIL]: Likewise.
13439 (VARIABLE) [GRUB_UTIL]: Likewise.
13441 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13443 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13444 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13448 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13451 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13453 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13454 (LzmaEnc_SaveState): Removed (unused).
13455 (LzmaEnc_RestoreState): Likewise.
13456 (LzmaEnc_InitPriceTables): Made static.
13457 (LzmaEnc_Construct): Likewise.
13458 (LzmaEnc_FreeLits): Likewise.
13459 (LzmaEnc_Destruct): Likewise.
13460 (LzmaEnc_Init): Likewise.
13461 (LzmaEnc_InitPrices): Likewise.
13462 (LzmaEnc_Finish): Likewise.
13463 (LzmaEnc_PrepareForLzma2): Removed (unused).
13464 (LzmaEnc_MemPrepare): Likewise.
13465 (LzmaEnc_GetNumAvailableBytes): Likewise.
13466 (LzmaEnc_GetCurBuf): Likewise.
13467 (LzmaEnc_CodeOneMemBlock): Likewise.
13469 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13471 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13472 (grub_util_ldm_embed): Likewise.
13474 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13476 * util/grub-editenv.c (print_var): Rename name to varname to
13478 (main): Rename index to curindex to avoid shadowing.
13479 Make filename a const char *.
13481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13483 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13484 to arg_getline to avoid shadowing.
13486 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13488 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13489 disk_ to avoid shadowing.
13491 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13494 curindex to avoid shadowing.
13496 (MatchFinder_GetNumAvailableBytes): Make static.
13498 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13500 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13503 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13505 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13506 argument from encrypt to do_encrypt to avoid shadowing.
13508 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13510 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13511 incorrect nesting of #if's.
13513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13515 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13516 checks which are always false on some platforms.
13517 (grub_cmd_lsacpi): Likewise.
13518 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13519 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13522 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13524 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13525 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13527 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13529 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13530 re_dfa_t to avoid breaking alignment invariants.
13531 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13532 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13534 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13537 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13541 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13544 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13546 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13547 conserve alignment invariants.
13548 (grub_ehci_ehcc_read16): Likewise.
13549 (grub_ehci_oper_read32): Likewise.
13550 (grub_ehci_oper_write32): Likewise.
13551 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13552 Conserve alignment invariants.
13554 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13556 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13557 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13560 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13562 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13563 Remove unused variable.
13565 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13567 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13570 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13572 * include/grub/net.h: Remove double declarations.
13574 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13576 Remove "payload" command in ia64 Linux loader since I couldn't
13577 find any evidence of it being used for anything.
13578 Replace "relocate" command with an environment variable
13580 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13582 (ia64_boot_payload): Removed.
13583 (last_payload): Likewise.
13584 (RELOCATE_OFF): Likewise.
13585 (RELOCATE_ON): Likewise.
13586 (RELOCATE_FORCE): Likewise.
13587 (relocate): Likewise.
13588 (free_pages): Don't free payloads.
13589 (grub_load_elf64): Use common error messages.
13590 Use "linux_relocate" variable.
13591 Increase the space after boot_params.
13592 (grub_cmd_payload): Removed.
13593 (grub_cmd_relocate): Likewise.
13594 (grub_cmd_fpswa): Improve messages.
13595 (cmd_payload): Removed.
13596 (cmd_relocate): Likewise.
13597 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13598 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13600 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13602 Convert UHCI to DMA framework.
13604 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13605 (grub_uhci_pci_iter): Fill new members
13606 (grub_alloc_td): Use P2V and V2P functions.
13607 (grub_free_queue): Likewise.
13608 (grub_alloc_qh): Likewise.
13609 (grub_uhci_setup_transfer): Likewise.
13610 (grub_uhci_check_transfer): Likewise.
13612 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13614 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13615 Remove assignment in if while on it.
13617 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13619 * util/grub-mkstandalone.in: Fix modules directory.
13621 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13623 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13625 (argp_parser): Accept "auto" as compression specification.
13627 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13629 Fix `help' with unloaded modules.
13631 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13632 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13633 (grub_dyncmd_dispatcher): Small stylistic fix.
13634 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13635 explicit help is requested.
13637 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13639 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13640 Explicitly init restart while on it.
13642 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13644 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13647 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13649 * util/grub-mknetdir.in: Use . rather than source for POSIX
13652 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13654 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13656 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13658 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13661 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13663 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13666 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13668 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13670 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13672 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13673 iteration of partitions.
13675 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13677 Improve gettext support. Stylistic fixes and error handling fixes while
13680 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13682 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13683 part. Instead setup the correct stack in RM.
13684 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13686 * include/grub/i386/relocator_private.h: New file.
13688 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13690 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13692 * util/grub-fstest.c (options): Add missing DEVICE part.
13694 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13696 Clarify and unify messages.
13698 * grub-core/commands/hashsum.c (options): Unify messages.
13699 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13700 literal-only message as translatable.
13701 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13702 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13703 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13705 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13706 key, not the key used to unlock. Clarify what it's used for.
13707 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13708 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13709 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13710 * util/grub-editenv.c (options): Unify "verbose" message.
13711 * util/grub-fstest.c (read_file): Unify error message.
13712 (fstest): Add quotes around commands.
13713 (options): Unify "verbose" message.
13714 * util/grub-install.in: Add quotes around variable name.
13715 * util/grub-kbdcomp.in: Unify error message.
13716 * util/grub-mkfont.c (main): Likewise.
13717 * util/grub-mkrescue.in: Likewise.
13718 * util/grub-mklayout.c (options): Unify "verbose" message.
13719 * util/grub-mkstandalone.in: Unify help and verbose messages.
13720 * util/grub-mount.c (options): Unify "verbose" message.
13721 * util/grub-probe.c (options): Likewise.
13722 * util/grub-script-check.c (options): Likewise.
13723 * util/grub-setup.c (setup): Unify no-terminator message.
13724 (options): Use DEVICE and not DEV.
13725 Unify "verbose" message.
13726 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13728 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13730 Improve and unify messages.
13732 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13733 name. All users updated.
13734 Print filename in error.
13735 (read_device_map): Print filename in error.
13736 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13737 (grub_util_get_os_disk): Likewise.
13738 (grub_util_biosdisk_get_grub_dev): Likewise.
13739 (grub_util_check_block_device): Likewise.
13740 (grub_util_check_char_device): Likewise.
13741 (grub_make_system_path_relative_to_its_root): Likewise.
13742 * util/grub-editenv.c (create_envblk_file): Likewise.
13743 (open_envblk_file): Likewise.
13744 (write_envblk): Likewise.
13745 * util/grub-fstest.c (cmd_cp): Likewise.
13746 (cmd_cat): Likewise.
13747 (cmd_cmp): Likewise.
13748 * util/grub-menulst2cfg.c (main): Likewise.
13749 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13750 (write_font_width_spec): Likewise.
13751 (write_font_pf2): Likewise.
13752 * util/grub-mkimage.c (generate_image): New argument outname.
13754 Remove unreacheable message.
13755 (options): Unify messages.
13756 (help_filter): Likewise.
13757 * util/grub-mklayout.c (usage): Removed (unused).
13758 (main): Print filename in error.
13759 * util/grub-mkrescue.in: Fix wrong quoting.
13760 * util/grub-setup.c (setup): Print filename in error.
13761 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13762 (check_sas): Likewise.
13763 * util/misc.c (grub_util_get_fp_size): Removed.
13764 (grub_util_get_image_size): Print filename in error.
13765 (grub_util_read_at): Removed.
13766 (grub_util_read_image): Print filename in error.
13767 (grub_util_load_image): Likewise.
13768 (grub_util_write_image_at): New argument filename. All users updated.
13769 Print filename in error.
13770 (grub_util_write_image): New argument filename. All users updated.
13771 Print filename in error.
13772 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13773 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13775 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13777 * grub-core/Makefile.core.def (pxechain): New module.
13778 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13779 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13781 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13782 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13784 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13786 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13787 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13788 * include/grub/err.h (grub_error_saved): New struct.
13789 (grub_errmsg): Make array size explicit.
13790 * include/grub/misc.h (grub_error_save): New function.
13791 (grub_error_load): Likewise.
13792 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13793 (grub_error_push): Update `errno' member name.
13794 (grub_error_pop): Likewise
13795 * grub-core/net/tftp.c (tftp_data): New member save_err.
13796 (tftp_receive): Save error.
13797 (tftp_open): Restore error.
13799 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13801 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13802 to real mode down to execute A20-related code in protected mode as
13805 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13807 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13808 NULL when the argument `level' has an unexpected value.
13810 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13812 Move platform-dependent files from $prefix to $prefix/$platform.
13814 * config.h.in (GRUB_TARGET_CPU): New definition.
13815 (GRUB_PLATFORM): Likewise.
13816 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13817 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13818 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13819 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13820 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13821 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13822 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13823 * grub-core/normal/term.c (read_terminal_list): Likewise.
13824 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13826 (grub_gettext_init_ext): Likewise.
13827 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13829 * util/grub-install.in: Update directories.
13830 * util/grub-mknetdir.in: Likewise.
13831 * util/grub-mkrescue.in: Likewise.
13833 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13835 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13836 grub_error framework. All users updated.
13838 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13840 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13841 lists (by always binsearching), improve caching (cache strings
13842 used for binsearch, not only results), improve
13843 maintainability (by using more structured binary search) and correct
13846 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13848 * grub-core/script/execute.c (grub_script_return): Fix warning.
13850 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13852 * grub-core/script/execute.c (grub_script_return): Fix potential
13854 Reported by: Jim Meyering.
13856 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13858 * po/POTFILES.in: Regenerate.
13859 * util/grub-install.in: Gettextize the strings missed in first pass.
13861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13863 * Makefile.util.def (grub-mkdevicemap): Removed.
13864 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13865 * include/grub/util/deviceiter.h: Removed.
13866 * util/deviceiter.c: Likewise.
13867 * util/getroot.c (grub_util_get_os_disk): New function.
13868 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13869 replacement for EFI.
13870 * util/grub-mkdevicemap.c: Removed.
13871 * util/grub-probe.c (probe): Handle PRINT_DISK.
13872 (argp_parser): Handle -t disk.
13874 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13876 * util/grub-mkfont.c: Migrate to argp.
13877 * util/grub-mklayout.c: Likewise.
13878 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13879 * util/grub-mkrelpath.c: Likewise.
13880 * util/grub-probe.c: Likewise.
13881 * util/grub-script-check.c: Likewise.
13883 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13885 * util/grub-reboot.in: Add missing datarootdir.
13886 Add missing newline.
13887 * util/grub-set-default.in: Add missing datarootdir.
13888 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13889 * util/grub-mkrescue.in: Likewise.
13891 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13893 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13895 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13897 * util/grub-kbdcomp.in: Add decent help and gettextize.
13898 * docs/man/grub-kbdcomp.h2m: New file.
13900 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13902 Migrate grub-mkimage.c to argp.
13904 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13905 (grub-setup): Likewise.
13906 * util/grub-setup.c (print_version): Move to ...
13907 * util/argp_common.c (print_version): ... here.
13908 * util/grub-setup.c (argp_program_version_hook): Move to ...
13909 * util/argp_common.c (argp_program_version_hook): ... here.
13910 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13912 * util/grub-mkimage.c (main): Migrate to argp.
13914 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13916 * util/grub-mkrescue.in: Use same message as
13917 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13918 for better translations.
13920 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13922 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13923 options with generic grub-mkrescue.in with the goal of future
13926 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13928 * grub-core/kern/mm.c: Add missing include of i18n.h
13929 * grub-core/lib/relocator.c: Likewise.
13931 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13933 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13935 (allocate_pages): Check return value.
13936 Replace fatal with error.
13937 (grub_linux_boot): Replace printf with dprintf.
13938 Check find_mmap_size return value.
13939 Replace fatal with error.
13940 Don't call grub_machine_fini.
13941 (grub_load_elf64): Replace printf with dprintf.
13942 (grub_cmd_linux): Likewise.
13943 (grub_cmd_initrd): Likewise.
13944 (grub_cmd_payload): Likewise.
13946 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13948 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13950 * grub-core/video/radeon_fuloong2e.c
13951 (grub_video_radeon_fuloong2e_setup): Likewise.
13952 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13953 * grub-core/video/video.c (grub_video_set_mode): Don't override
13954 standard out of memory message.
13956 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13958 NetBSD disk wedge support.
13960 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13961 [__NetBSD__]: Handle NetBSD disk wedges.
13962 * util/getroot.c (convert_system_partition_to_system_disk)
13963 [__NetBSD__]: Likewise.
13965 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13967 * util/grub-mkconfig.in: Use umask rather than chmod to create
13968 grub.cfg.new to avoid insecure grub.cfg.
13970 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13972 * grub-core/commands/ls.c: Gettextize.
13973 * grub-core/commands/setpci.c: Likewise.
13974 * grub-core/commands/videotest.c: Likewise.
13975 * grub-core/disk/geli.c: Likewise.
13976 * grub-core/kern/mm.c: Likewise.
13977 * grub-core/lib/relocator.c: Likewise.
13978 * grub-core/loader/efi/appleloader.c: Likewise.
13979 * grub-core/loader/i386/xnu.c: Likewise.
13980 * grub-core/loader/ia64/efi/linux.c: Likewise.
13981 * grub-core/loader/xnu.c: Likewise.
13982 * grub-core/net/dns.c: Likewise.
13983 * grub-core/net/net.c: Likewise.
13984 * grub-core/script/lexer.c: Likewise.
13985 * grub-core/script/parser.y: Likewise.
13986 * grub-core/script/yylex.l: Likewise.
13987 * util/getroot.c: Likewise.
13988 * util/grub-setup.c: Likewise.
13990 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13992 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13995 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13997 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13999 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14001 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14003 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14004 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14008 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14009 * util/grub-install.in: Gettextize.
14010 * util/grub-mkconfig.in: Likewise.
14011 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14013 (grub_warn): Gettextize.
14014 * util/grub-mknetdir.in: Gettextize.
14015 * util/grub-mkrescue.in: Likewise.
14016 * util/grub-mkstandalone.in: Likewise.
14017 * util/grub-reboot.in: Likewise.
14018 * util/grub-set-default.in: Likewise.
14019 * util/grub.d/00_header.in: Likewise.
14020 * util/grub.d/10_hurd.in: Likewise.
14021 * util/grub.d/10_kfreebsd.in: Likewise.
14022 * util/grub.d/10_linux.in: Likewise.
14023 * util/grub.d/10_netbsd.in: Likewise.
14024 * util/grub.d/10_windows.in: Likewise.
14025 * util/grub.d/20_linux_xen.in: Likewise.
14026 * util/grub.d/30_os-prober.in: Likewise.
14027 * po/POTFILES-shell.in: Regenerate.
14029 2012-02-03 Richard Laager <rlaager@wiktel.com>
14031 * util/grub-mkimage.c (main): Fix format-security warning.
14032 * util/grub-mkrelpath.c (main): Likewise.
14033 * util/grub-probe.c (main): Likewise.
14035 2012-02-03 Richard Laager <rlaager@wiktel.com>
14037 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14039 Put back lost PRINT_DRIVE.
14041 2012-02-03 Richard Laager <rlaager@wiktel.com>
14043 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14044 (grub_guess_root_devices): Replace strlen with sizeof.
14046 (find_root_devices_from_poolname): Remove unused variable.
14049 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14051 Support install on multi-device filesystems.
14053 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14054 (grub_guess_root_devices): ...this. Return char **. All users updated.
14055 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14057 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14058 (find_root_devices_from_poolname): ... here.
14059 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14061 (grub_guess_root_device): Rename to ...
14062 (grub_guess_root_devices): ... this. Return char **. All users updated.
14063 * util/grub-install.in: Handle multi-device filesystems.
14064 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14065 argument. All users updated.
14066 Handle multi-device filesystems.
14067 Use 'delim' as separator.
14068 Remove device check to allow filesystems on file.
14069 (main): Support -0 argument. Handle multi-device.
14070 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14071 Fix a cross-device check while on it.
14072 (arguments): Remove root_dev.
14073 (argp_parser): Remove -r.
14074 (main): Remove root_dev.
14076 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14078 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14080 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14082 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14084 Reported by: NODA, Kai <nodakai>.
14086 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14090 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14092 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14093 (grub_ehci_setup_qh): Likewise.
14094 (grub_ehci_find_qh): Likewise.
14095 (grub_ehci_transaction): Likewise.
14096 (grub_ehci_setup_transfer): Likewise.
14097 (grub_ehci_check_transfer): Likewise.
14098 (grub_ehci_portstatus): Likewise.
14099 (grub_ehci_detect_dev): Likewise.
14100 (grub_ehci_transfer_controller_data): New field td_last_phys.
14101 (grub_ehci_setup_transfer): Fill td_last_phys.
14102 (grub_ehci_check_transfer): Use td_last_phys.
14104 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14106 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14107 if no submenu is present.
14109 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14113 * include/grub/usb.h (grub_usbms_protocol_t): New values
14114 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14115 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14116 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14117 (grub_usbms_dev): Add subclass, protocol and intrpt.
14118 Remove in_maxsz and out_maxsz.
14119 (grub_usbms_reset): Rename to ...
14120 (grub_usbms_bo_reset): .. this.
14121 (grub_usbms_cbi_cmd): New function.
14122 (grub_usbms_cbi_reset): Likewise.
14123 (grub_usbms_reset): Likewise.
14124 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14125 (grub_usbms_transfer): Rename to ...
14126 (grub_usbms_transfer_bo): ... this.
14127 (grub_usbms_transfer_cbi): Likewise.
14128 (grub_usbms_transfer): Likewise.
14130 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14131 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14133 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14134 the support for the CS5536 modification thereos and few bugfixes.
14136 * grub-core/Makefile.core.def (ehci): New module.
14137 * grub-core/bus/usb/ehci.c: New file.
14138 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14139 port and hubaddr. All users updated.
14140 Save port and hubaddr into dev structure.
14141 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14143 * include/grub/pci.h (grub_dma_phys2virt): New function.
14144 (grub_dma_virt2phys): Likewise.
14145 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14147 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14149 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14150 check as some mkfs implementations omit it.
14152 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14154 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14156 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14158 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14159 Add new member volname2.
14160 (grub_jfs_label): Use volname2 if available.
14162 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14164 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14165 over last_mounted as seen in image generated by mkfs.nilfs2.
14166 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14168 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14170 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14171 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14172 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14174 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14176 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14179 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14181 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14182 subvolume name (by removing a bogus and useless check).
14184 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14186 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14187 sizeof while on it.
14189 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14192 (grub_scsi_read_capacity10): ... this.
14193 (grub_scsi_read_capacity16): New function.
14194 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14196 Fix off-by-one error.
14197 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14199 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14200 (grub_scsi_read_capacity10): ... this.
14201 (grub_scsi_read_capacity_data): Rename to ...
14202 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14203 (grub_scsi_read_capacity16): New struct.
14204 (grub_scsi_read_capacity16_data): Likewise.
14205 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14206 grub_scsi_cmd_read_capacity10.
14207 New command grub_scsi_cmd_read_capacity16.
14209 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14211 SCSI >2TiB support.
14213 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14214 (grub_scsi_write16): Likewise.
14215 (grub_scsi_read): Use read16 when necessary.
14216 (grub_scsi_write): Likewise.
14217 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14218 (grub_scsi_write16): Likewise.
14219 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14221 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14223 SCSI write support (for usbms mainly).
14225 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14227 (grub_scsi_write): Implement.
14228 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14230 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14232 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14235 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14237 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14241 * po/POTFILES.in: Regenerate.
14243 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14245 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14246 with grub_printf to avoid unnecessary fatal failure.
14248 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14250 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14251 (INT_MAX): Likewise.
14252 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14253 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14254 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14255 (strcpy): Likewise.
14256 (strstr): Likewise.
14257 (strchr): Likewise.
14258 (strncpy): Likewise.
14259 (strcat): Likewise.
14260 (strncat): Likewise.
14261 (strcoll): Likewise.
14262 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14263 (GRUB_INT_MAX): Likewise.
14265 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14267 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14269 (optimize_utf8): Likewise.
14270 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14272 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14274 * grub-core/boot/i386/pc/lnxboot.S: Use
14275 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14276 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14278 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14280 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14282 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14284 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14285 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14286 now to avoid double free.
14287 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14289 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14290 * util/grub-probe.c (escape_of_path): Always return a new copy.
14291 (print_full_name): Escape path.
14292 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14293 Fix hints on abstractions.
14295 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14297 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14298 Don't add "root" line if no compatibility hont is available.
14299 Suggested by: Seth Goldberg.
14301 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14303 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14304 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14305 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14306 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14308 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14310 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14314 * util/grub-pe2elf.c (ehdr): Make static.
14316 (num_sections): Likewise.
14317 (offset): Likewise.
14319 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14321 Eliminate ofpath limits and possible overflows.
14323 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14324 (OF_PATH_MAX): Removed.
14325 (MAX_DISK_CAT): New const.
14326 (find_obppath): Use allocated rather than preallocated buffer.
14327 Return result. Argument of_path removed. All users updated.
14328 Add missing fdstat.
14329 (xrealpath): New function.
14330 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14331 Allocate rather than use preallocated buffer. All users updated.
14332 (__of_path_common): Use allocated rather than preallocatecd buffer.
14333 Return result. Argument of_path removed. All users updated.
14334 (vendor_is_ATA): Read only needed part form the file.
14335 (check_sas): Allocate depending on contents rather than fixed.
14336 (main) [STANDALONE]: Handle NULL result.
14338 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14340 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14342 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14344 Cryptodisk write support.
14346 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14347 (grub_cryptodisk_decrypt): Moved logic to ...
14348 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14349 (grub_cryptodisk_write): Implement.
14350 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14351 (grub_util_fd_write): ... this. Make global.
14352 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14354 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14356 * include/grub/list.h (grub_list_remove): Don't crash if element is
14359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14361 Rename ofconsole to console.
14363 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14364 as sysnonym to console.
14365 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14366 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14367 Rename grub_ofconsole_ to grub_console_. All users updated
14368 (grub_console_term_output): Rename "ofconsole" to "console".
14369 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14372 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14374 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14376 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14377 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14378 GRUB_DISK_DEVICE_FILE_ID.
14380 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14382 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14383 and improve performance.
14385 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14387 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14388 missing ieee1275/ prefix on whole disk.
14390 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14392 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14393 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14395 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14397 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14399 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14401 Merge common RAID and LVM logic to an abstract diskfilter.
14402 Add LDM support using the same framework.
14404 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14405 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14406 (libgrubmods): Remove grub-core/disk/raid.c and
14407 grub-core/partmap/gpt.c.
14408 * grub-core/Makefile.core.def (ldm): New module.
14409 (raid): Renamed to diskfilter. All users updated.
14410 * grub-core/disk/raid.c: Moved to ...
14411 * grub-core/disk/diskfilter.c: ... here.
14412 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14414 (find_array): Renamed to ...
14415 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14416 (grub_is_array_readable): Renamed to ...
14417 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14418 (insert_array): New argument id.
14419 (is_node_readable): New function.
14420 (scan_device): Rename to ...
14421 (scan_disk): .. this. Restrict to one disk.
14422 (scan_devices): New function.
14423 (grub_diskfilter_iterate): Support multi-LV.
14424 Skip invisible and nameless LVs.
14425 (grub_diskfilter_memberlist): Support multi-LV.
14426 (grub_diskfilter_read_node): New function.
14427 (grub_raid_read): Most of logic moved to ...
14428 (read_segment): ... here
14429 (read_lv): New function.
14430 (grub_diskfilter_get_vg_by_uuid): New function.
14431 (grub_diskfilter_make_raid): Likewise.
14432 * grub-core/disk/ldm.c: New file.
14433 * grub-core/disk/lvm.c (vg_list): Removed.
14434 (lv_count): Likewise.
14435 (scan_depth): Likewise.
14436 (is_lv_readable): Likewise.
14437 (grub_lvm_getvalue): Advance pointer past the number.
14438 (find_lv): Removed.
14439 (do_lvm_scan): Refactored into ...
14440 (grub_lvm_detect): ... this. Support raid.
14441 (grub_lvm_iterate): Removed.
14442 (grub_lvm_memberlist): Likewise.
14443 (grub_lvm_open): Likewise.
14444 (grub_lvm_close): Likewise.
14445 (read_lv): Likewise.
14446 (read_node): Likewise.
14447 (is_node_readable): Likewise.
14448 (is_lv_readable): Likewise.
14449 (grub_lvm_read): Likewise.
14450 (grub_lvm_write): Likewise.
14451 (grub_lvm_dev): Use diskfilter
14452 (GRUB_MOD_INIT): Likewise.
14453 (GRUB_MOD_FINI): Likewise.
14454 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14456 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14457 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14458 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14459 grub_diskfilter_read_node.
14460 Fix a bug with xor.
14461 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14462 grub_diskfilter_read_node.
14463 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14464 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14465 (grub_disk_dev_iterate): Move from here...
14466 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14467 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14469 (grub_hostdisk_find_partition_start): Likewise.
14470 (grub_hostdisk_os_dev_to_grub_drive): New function.
14471 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14472 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14473 * util/getroot.c (make_device_name): ... here.
14474 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14476 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14477 * grub-core/kern/emu/hostdisk.c
14478 (convert_system_partition_to_system_disk): Move to ...
14479 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14480 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14481 * util/getroot.c (device_is_wholedisk): ... here.
14482 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14483 * util/getroot.c (find_system_device): ... here.
14484 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14486 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14487 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14489 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14491 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14493 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14494 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14495 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14497 * include/grub/raid.h: Renamed to ...
14498 * include/grub/diskfilter.h: ... this.
14499 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14500 (GRUB_RAID_LAYOUT_*): Make into array.
14501 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14502 (grub_diskfilter_vg): New struct.
14503 (grub_diskfilter_pv_id): Likewise.
14504 (grub_raid_member): Removed.
14505 (grub_raid_array): Likewise.
14506 (grub_diskfilter_pv): New struct.
14507 (grub_diskfilter_lv): Likewise.
14508 (grub_diskfilter_segment): Likewise.
14509 (grub_diskfilter_node): Likewise.
14510 (grub_diskfilter_get_vg_by_uuid): New proto.
14511 (grub_raid_register): Inline.
14512 (grub_diskfilter_unregister): Likewise.
14513 (grub_diskfilter_make_raid): New proto.
14514 (grub_diskfilter_vg_register): Likewise.
14515 (grub_diskfilter_read_node): Likewise.
14516 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14517 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14518 (grub_util_is_ldm): Likewise.
14519 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14520 (grub_hostdisk_find_partition_start): Likewise.
14521 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14522 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14524 (grub_gpt_partition_map_iterate): New proto.
14525 * include/grub/lvm.h (grub_lvm_vg): Removed.
14526 (grub_lvm_pv): Likewise.
14527 (grub_lvm_lv): Likewise.
14528 (grub_lvm_segment): Likewise.
14529 (grub_lvm_node): Likewise.
14530 * util/getroot.c [...]
14531 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14532 (probe_abstraction): Likewise.
14533 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14534 (main): Remove dead logic.
14536 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14538 Simplify root device discover and don't fail when trying to open
14541 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14543 (get_diskname_from_path): Likewise.
14544 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14547 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14549 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14551 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14553 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14556 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14558 * util/grub-install.in: Add missing \.
14559 Reported by: gentoofan
14561 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14563 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14564 (direct_read): Use correct compressed size.
14565 (grub_squash_read_data): Likewise.
14567 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14569 * docs/grub.texi (Platform limitations): New section.
14570 (Platform-specific operations): Likewise.
14571 * docs/grub-dev.texi (Porting): Likewise.
14573 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14575 IEEE1275 disk write support.
14577 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14579 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14580 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14581 and seek loginc to ...
14582 (grub_ofdisk_prepare): ... here.
14583 (grub_ofdisk_write): Implement.
14585 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14587 ARC disk write support.
14589 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14590 (reopen): New argument writable. All users updated.
14591 Handle required access mode.
14592 (grub_arcdisk_write): Implement.
14593 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14594 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14596 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14598 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14599 (read_sblock): Don't attempt to read superblocks outside the disk size.
14601 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14603 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14604 first superblock to find the second one when possible.
14606 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14608 * util/grub-install.in: Fix an ARC bug.
14609 Print a warning if no platform-specific setup is available.
14611 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14613 Use static allocation rather than scratch pointer in reed_solomon.
14614 It decreases its size significantly and avoids a variable in .text.
14616 * grub-core/lib/reed_solomon.c (scratch): Removed.
14617 (chosenstat): New const or static array.
14619 (errpot): Likewise.
14620 (errpos): Likewise.
14623 (errvals): Likewise.
14624 (eqstat): Likewise.
14625 (pol_evaluate): Replace x with log_x argument. All users updated.
14626 (syndroms): Removed.
14627 (gauss_solve): Use statically allocated arrays.
14628 (rs_recover): Likewise.
14629 Calculate syndroms directly.
14630 (decode_block): Use statically allocated arrays.
14631 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14632 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14634 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14636 Eliminate fixed limit on reed solomon decoder length.
14638 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14639 rather than hardcoding the address.
14640 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14641 no_reed_solomon_length.
14642 Move gate_a20 to no-reed-solomon part.
14643 Don't force a particular size of no reed-solomon part.
14644 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14646 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14647 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14649 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14651 * grub-core/commands/wildcard.c (match_files): Handle filenames
14652 without explicit device.
14653 (wildcard_expand): Don't add explicit device if not already present.
14654 * tests/grub_script_echo1.in: Add a new expansion test.
14656 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14658 Replace single-linked with double-linked lists. It results in more
14659 compact and more efficient code.
14661 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14662 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14663 (grub_list_remove): Moved from here ...
14664 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14665 (grub_prio_list_insert): Set prev.
14666 * include/grub/list.h (grub_list): Add prev. All users updated.
14668 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14670 Handle newer autotools. Add some missing quotes while on it.
14672 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14673 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14674 (pkgdata_DATA): ... here.
14675 * Makefile.util.def (update-grub_lib): Removed.
14676 * conf/Makefile.common (pkglib_DATA): Removed.
14677 (pkglib_SCRIPTS): Likewise.
14678 (pkgdata_DATA): New variable.
14679 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14681 Add missing quotes.
14682 Remove unused variable while on it.
14683 * tests/util/grub-shell.in: Likewise.
14684 * util/grub-install.in: Likewise.
14685 * util/grub-mkconfig.in: Likewise.
14686 * util/grub-mknetdir.in: Likewise.
14687 * util/grub-mkrescue.in: Likewise.
14688 * util/grub-mkstandalone.in: Likewise.
14689 * util/grub.d/00_header.in: Likewise.
14690 * util/grub.d/10_hurd.in: Likewise.
14691 * util/grub.d/10_illumos.in: Likewise.
14692 * util/grub.d/10_kfreebsd.in: Likewise.
14693 * util/grub.d/10_linux.in: Likewise.
14694 * util/grub.d/10_netbsd.in: Likewise.
14695 * util/grub.d/10_windows.in: Likewise.
14696 * util/grub.d/20_linux_xen.in: Likewise.
14697 * util/grub.d/30_os-prober.in: Likewise.
14698 * util/update-grub_lib.in: Removed.
14700 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14702 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14703 a workaround for intel problem.
14705 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14706 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14707 2012-01-23 pfsmorigo
14709 * util/grub-install.in: Support dd'in into PreP partition.
14710 * util/grub-probe.c (probe): Support discovering partition type.
14711 (main): Support -t msdos_parttype.
14713 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14715 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14716 infinite recursion using counter.
14717 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14718 init to skip it if the magic check fails.
14719 (dec_stream_header): Init s->crc32.
14721 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14722 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14723 2012-01-22 Richard Laager <rlaager@wiktel.com>
14725 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14727 (find_bestub): Determine correct size.
14728 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14729 (scan_disk): Align the size down.
14730 Call check pool before find_bestub to have ashift.
14732 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14734 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14735 dprintf in no-malloc zone.
14737 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14739 * configure.ac: Add back in test for limits.h.
14741 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14743 Support 4K-sector NTFS.
14745 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14746 (grub_ntfs_data): Remove blocksize.
14747 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14748 Remove data argument. All users updated.
14750 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14752 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14753 being in .text to avoid dprel references.
14754 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14755 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14756 (grub_arch_highmemsize): Likewise.
14757 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14758 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14759 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14761 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14763 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14765 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14766 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14768 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14770 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14772 (grub_set_datetime_cmos): Likewise.
14774 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14776 Make XZ compression parameters dependent on target and not host CPU.
14778 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14779 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14781 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14783 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14784 set but not used variable.
14786 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14788 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14789 created when no uuid support is compiled into mkfs.reiser.
14791 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14793 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14794 (utf8_to_macroman): Do the opposite.
14795 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14797 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14799 * configure.ac: Refise build qemu_mips w/o unifont.
14801 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14803 Eliminate grub_min/grub_max prone to overflow usage.
14805 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14806 (poll_nonroot_hub): Likewise.
14807 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14808 (grub_affs_label): Likewise.
14809 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14810 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14811 (grub_hfs_label): Likewise.
14812 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14813 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14814 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14815 (zap_leaf_array_get): Likewise.
14816 (dnode_get_path): Likewise.
14817 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14818 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14819 * grub-core/script/execute.c (grub_script_break): Likewise.
14820 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14822 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14823 * include/grub/misc.h (grub_min): Removed.
14824 (grub_max): Likewise.
14826 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14828 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14831 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14833 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14835 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14837 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14839 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14841 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14842 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14844 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14846 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14847 rather than a hack for grub_strncasemap.
14849 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14851 Support multiple initrds
14852 Note: part of this was accidently committed in r3739.
14854 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14856 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14857 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14858 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14859 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14860 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14862 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14864 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14865 disks with unknown size.
14866 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14868 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14870 Remove defines pertaining to arbitrary limits not affecting GRUB
14873 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14874 (EXT2_MAX_SYMLINKCNT): Likewise.
14875 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14876 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14877 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14878 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14879 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14880 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14881 (DN_MAX_OBJECT_SHIFT): Likewise.
14882 (DN_MAX_OFFSET_SHIFT): Likewise.
14883 (DN_MAX_OBJECT): Likewise.
14884 (DNODES_PER_LEVEL_SHIFT): Likewise.
14885 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14886 (SPA_MAXBLOCKSIZE): Likewise.
14887 (SPA_BLOCKSIZES): Likewise.
14888 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14889 (MZAP_MAX_BLKSZ): Likewise.
14891 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14893 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14894 handle NULL appropriately.
14897 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14901 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14903 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14904 * configure.ac: Fix efiemu check.
14906 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14908 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14910 Reported by: adamwill
14912 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14914 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14916 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14918 Fix handling of wide characters in gfxterm.
14920 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14921 (clear_char): Likewise.
14922 (paint_char): Skip code == NULL chars.
14923 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14925 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14927 * grub-core/normal/charset.c: Move comment to right place.
14929 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14931 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14932 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14933 (grub_affs_mount): Revert the correct version checking.
14935 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14937 * docs/grub.texi (Unicode): Mention several other unsupported features.
14939 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14941 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14942 case statements as compile-time one.
14943 (direct_read): Prevent spurious warnings.
14944 (grub_squash_read_data): Likewise.
14946 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14948 Various squash4 fixes and LZO and XZ support.
14950 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14951 Add xzembed source files.
14952 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14953 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14954 (grub_squash_inode): New subtype long_dir.
14955 (SQUASH_TYPE_LONG_DIR): New inode type.
14956 (COMPRESSION): New enum.
14957 (XZBUFSIZ): New const.
14958 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14959 (read_chunk): Use data->decompress.
14960 (zlib_decompress): New function.
14961 (lzo_decompress): Likewise.
14962 (xz_decompress): Likewise.
14963 (squash_mount): Set new data fields.
14964 (grub_squash_iterate_dir): Handle long dir.
14965 (squash_unmount): Free xzdec and xzbuf.
14966 (grub_squash_open): Check ino type.
14967 (direct_read): Stylistic fixes. Use data->decompress.
14968 (grub_squash_read_data): Likewise.
14969 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14970 (get_byte): Likewise.
14971 (grub_zlib_disk_read): Removed.
14972 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14973 (GRUB_POSIX_BOOL_DEFINED): New define.
14974 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14975 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14976 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14977 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14979 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14981 Don't override more informative errors.
14983 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14984 * grub-core/font/font.c (open_section): Likewise.
14985 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14986 filename. Don't override errors.
14987 (grub_cmd_openbsd_ramdisk): Don't override errors.
14988 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14989 (grub_cmd_initrd): Likewise.
14990 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14991 (grub_cmd_initrd): Likewise.
14992 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14993 (grub_cmd_linux): Likewise.
14994 (grub_cmd_initrd): Likewise.
14995 (grub_cmd_payload): Likewise.
14996 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14997 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14998 (grub_cmd_module): Likewise.
14999 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15000 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15001 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15002 (grub_cmd_xnu_mkext): Likewise.
15003 (grub_cmd_xnu_ramdisk): Likewise.
15004 (grub_xnu_check_os_bundle_required): Likewise.
15005 (grub_xnu_load_kext_from_dir): Likewise.
15006 (grub_cmd_xnu_kextdir): Likewise.
15007 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15009 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15011 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15012 as 1024 in block size field. Found on one of my test images.
15013 Small optimisation while on it.
15015 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15017 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15018 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15019 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15020 performance fixes while on it.
15021 (grub_sfs_close): Fix memory leak while on it.
15022 (grub_sfs_label): Convert Latin1 to UTF-8.
15024 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15026 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15027 space to avoid overflows.
15028 (grub_hfs_label): Convert from macroman to UTF-8.
15030 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15032 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15034 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15036 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15038 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15040 * unicode: Import Unicode 6.0 data.
15042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15044 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15047 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15049 Avoid cutting in the middle of UTF-8 character.
15051 * include/grub/charset.h (grub_getend): New function.
15052 * grub-core/script/function.c (grub_script_function_find): Use
15054 * grub-core/normal/completion.c (add_completion): Likewise.
15056 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15058 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15059 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15060 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15061 (GRUB_UNICODE_TAG_END): Likewise.
15062 (GRUB_UNICODE_LAST_VALID): Likewise.
15064 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15066 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15067 len and make it smaller. All users updated.
15068 * util/import_unicode.py: Put length and not end character.
15071 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15073 Make better Unicode-compliant and unify some UTF-8 code pathes.
15075 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15077 (grub_is_valid_utf8): Use grub_utf8_process.
15078 Check resulting code range.
15079 (grub_utf8_to_ucs4): Use grub_utf8_process.
15080 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15083 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15085 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15087 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15089 * docs/grub.texi (Filesystems): Mention AFS.
15091 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15093 * docs/grub.texi (Filesystems): Clarify restrictions.
15094 (Regexp): Mention non-Unicode regexp behaviour.
15095 (Other): Mention non-Unicode matching behaviour.
15097 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15099 Make HFS implementation use MacRoman.
15101 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15102 (macroman): New const array.
15103 (macroman_to_utf8): New function.
15104 (utf8_to_macroman): Likewise.
15105 (grub_hfs_find_dir): Use utf8_to_macroman.
15106 (grub_hfs_dir): Use macroman_to_utf8.
15107 Set case_insensitive.
15109 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15111 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15113 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15115 Integrate hints into autogeneration scripts.
15117 * docs/grub.texi (Filesystems): Add a hostdisk example.
15118 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15119 (grub-probe): Add ofpath.
15120 * gentpl.py: Remove group nosparc64.
15121 * grub-core/commands/search.c (cache_entry): New struct.
15123 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15124 * grub-core/commands/search_wrap.c (options): Add platform-specific
15126 (grub_cmd_search): Handle platform-specific hints.
15127 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15128 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15129 (grub_util_biosdisk_data): Likewise.
15130 (grub_util_biosdisk_open): Set device_map.
15131 (read_device_map): Handle "" as indication of no map.
15133 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15134 (grub_util_biosdisk_get_compatibility_hint): New function.
15135 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15136 * include/grub/emu/hostdisk.h
15137 (grub_util_biosdisk_get_compatibility_hint): New proto.
15138 * util/grub-install.in: Don't call grub-mkdevicemap.
15139 Add platform-specific hint to load.cfg.
15140 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15141 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15142 hints. Set root preliminary to compatibility hint, not to OS name.
15143 * util/grub-probe.c (PRINT_*): Add hints.
15144 (print): Make static.
15145 (escape_of_path): New function.
15146 (guess_bios_drive): Likewise.
15147 (guess_efi_drive): Likewise.
15148 (guess_baremetal_drive): Likewise.
15149 (print_full_name): Likewise.
15150 (probe): Handle hints.
15152 * util/ieee1275/devicemap.c: Removed.
15153 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15155 (grub_util_devname_to_ofpath): Return NULL on failure.
15157 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15159 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15161 * po/POTFILES.in: Regenerated.
15163 Allow purely long options
15165 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15166 (SHORT_ARG_USAGE): Likewise.
15167 (grub_arg_show_help): Compare opt with help_options.
15168 (parse_option): Receive opt as argument. If makes big simplificatons.
15171 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15173 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15174 Restructure to avoid warning.
15176 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15178 * util/grub-install.in: Account for possible escaped comma in device
15181 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15183 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15186 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15188 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15189 allocation and zero-setting.
15190 (grub_ieee1275_get_devname): Check that alias is complete.
15192 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15194 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15195 unaligned segments.
15197 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15199 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15201 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15202 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15203 Add ieee1275 prefix.
15205 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15207 * docs/grub.texi (Filesystems): Update.
15209 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15211 Support odc, newc and bigendian cpio formats.
15213 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15214 * grub-core/Makefile.core.def (newc): New module.
15216 (cpio_be): Likewise.
15217 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15219 (MAGIC2): Likewise.
15220 (head) [MODE_ODC]: Adapt for the format.
15221 (head) [MODE_NEWC]: Likewise.
15222 (head) [!MODE_*]: Write fields of interest as arrays.
15223 (MAGIC_USTAR): Removed.
15224 (read_number) [MODE_NEWC]: Change to hex.
15225 (read_number) [!MODE_*]: Parse binary arrays.
15226 (grub_cpio_find_file): Factor out the code for better structure and
15227 always use read_number.
15228 (grub_cpio_mount): Use MAGIC and MAGIC2.
15229 (grub_cpio_dir): Exit on first hook non-0 return.
15230 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15231 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15232 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15233 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15234 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15235 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15236 * grub-core/fs/newc.c: New file.
15237 * grub-core/fs/odc.c: Likewise.
15238 * grub-core/fs/cpio_be.c: Likewise.
15240 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15242 Fix handling of tar numbers occupying the whole field.
15244 * grub-core/fs/cpio.c (read_number): New function.
15245 (grub_cpio_find_file): Use read_number instead of strtoull.
15247 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15249 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15250 occupying the whole field size.
15252 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15254 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15256 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15258 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15260 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15262 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15263 TARGET_IMG_LDFLAGS.
15265 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15267 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15268 (mountinfo_entry): Increase the field size to take escaping into
15270 (find_root_device_from_libzfs): Add one byte to size of strings for
15273 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15275 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15277 * util/grub-setup.c (setup): Likewise.
15279 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15281 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15284 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15286 * docs/grub.texi (Internationalisation): New section.
15288 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15290 * docs/grub.texi (Loopback booting): New section.
15292 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15294 * util/grub-mkstandalone.in: Fix minor typo errors.
15296 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15298 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15300 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15301 net/icmp.c and net/icmp6.c.
15302 (http): New module.
15303 (priority_queue): Likewise.
15304 * grub-core/io/bufio.c: Rewritten.
15305 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15306 TYPE_WITH_CONFIGFILE_OPTION.
15307 (legacy_commands): Add bootp and dhcp.
15308 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15309 (grub_legacy_parse): Likewise.
15310 * grub-core/lib/priority_queue.c: New file.
15311 * grub-core/net/arp.c: Add missing license header.
15312 (arp_find_entry): Removed.
15313 (arp_find_entry): Likewise.
15314 (grub_net_arp_resolve): Rename to ...
15315 (grub_net_arp_send_request): ...this.
15316 (grub_net_arp_receive): New card argument.
15317 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15318 Set router and DNS server.
15319 (grub_net_configure_by_dhcp_ack): Handle routing information.
15320 (grub_cmd_bootp): Set checksum.
15321 (grub_bootp_init): Remove net_dhcp.
15322 * grub-core/net/dns.c: New file.
15323 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15325 (get_card_packet): Handle allocation.
15326 (grub_efinet_findcards): Set mtu.
15327 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15328 (get_card_packet): Handle allocation.
15329 (emucard): Set mtu.
15330 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15331 (GRUB_MOD_INIT): Set mtu.
15332 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15334 (get_card_packet): Handle allocation.
15335 (grub_ofnet_findcards): Set mtu.
15336 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15338 (grub_net_recv_ethernet_packet): Handle IPv6.
15339 * grub-core/net/http.c: New file.
15340 * grub-core/net/icmp.c: Likewise.
15341 * grub-core/net/icmp6.c: Likewise.
15342 * grub-core/net/ip.c (ip6addr): New type.
15343 (ip6hdr): Likewise.
15344 (reassemble): Likewise.
15345 (cmp): New function.
15346 (reassembles): New variable.
15347 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15348 (id): New variable.
15349 (send_fragmented): New function.
15350 (grub_net_send_ip_packet): Rename to ...
15351 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15353 (grub_net_recv_ip_packets): Rename to ...
15354 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15355 (free_rsm): New function.
15356 (free_old_fragments): Likewise.
15357 (grub_net_recv_ip4_packets): New function.
15358 (grub_net_send_ip6_packet): Likewise.
15359 (grub_net_send_ip_packet): Likewise.
15360 (grub_net_recv_ip6_packets): Likewise.
15361 (grub_net_recv_ip_packets): Likewise.
15362 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15363 (LINK_LAYER_CACHE_SIZE): New const.
15364 (link_layer_find_entry): New function.
15365 (grub_net_link_layer_add_address): Likewise.
15366 (grub_net_link_layer_resolve_check): Likewise.
15367 (grub_net_link_layer_resolve): Likewise.
15368 (grub_net_ipv6_get_slaac): Likewise.
15369 (grub_net_ipv6_get_link_local): Likewise.
15370 (grub_cmd_ipv6_autoconf): Likewise.
15371 (parse_ip): Handle one number representation.
15372 (parse_ip6): New functoion.
15373 (match_net): Handle IPv6.
15374 (grub_net_resolve_address): Handle IPv6 and DNS.
15375 (grub_net_resolve_net_address): Handle IPv6.
15376 (route_cmp): New function.
15377 (grub_net_route_address): Find best route.
15378 (grub_net_addr_to_str): Handle IPv6.
15379 (grub_net_addr_cmp): New function.
15380 (grub_net_add_addr): Register local route.
15381 (print_net_address): Handle net address.
15382 (grub_net_poll_cards): Retransmit TCP.
15383 (grub_net_poll_cards_idle_real): Likewise.
15384 (have_ahead): New function.
15385 (grub_net_seek_real): Use underlying seek.
15386 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15387 * grub-core/net/tcp.c: New file.
15388 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15389 (cmp): New function.
15391 (tftp_receive): Handle unordered input.
15392 (destroy_pq): New function.
15393 (tftp_close): Close pq.
15394 * grub-core/net/udp.c: Put missing license header.
15395 (grub_net_udp_socket): New function.
15396 (udp_socket_register): Likewise.
15397 (grub_net_udp_close): Likewise.
15398 (grub_net_recv_udp_packet): Check checksum.
15399 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15400 * include/grub/misc.h (grub_memchr): New function.
15401 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15402 (grub_net_card_driver): Return buf in recv.
15403 (grub_net_slaac_mac_list): New struct.
15404 (grub_network_level_protocol_id): Add ipv6.
15405 (grub_net_network_level_addr): Likewise.
15406 (grub_net_network_level_net_addr): Likewise.
15407 (grub_net_app_protocol): Add seek.
15408 (grub_net_socket): Removed.
15409 (grub_net_sockets): Likewise.
15410 (grub_net_socket_register): Likewise.
15411 (grub_net_socket_unregister): Likewise.
15412 (FOR_NET_SOCKETS): Likewise.
15413 (grub_net_add_addr): Add const.
15414 (GRUB_NET_BOOTP_*): New enum.
15415 (grub_net_addr_cmp): New proto.
15416 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15417 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15418 (grub_net_hwaddr_to_str): NEw proto.
15419 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15420 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15421 (grub_dns_init): New proto.
15422 (grub_dns_fini): Likewise.
15423 (grub_net_tcp_retransmit): Likewise.
15424 (grub_net_link_layer_add_address): Likewise.
15425 (grub_net_link_layer_resolve_check): Likewise.
15426 (grub_net_link_layer_resolve): Likewise.
15427 (grub_net_dns_lookup): Likewise.
15428 (grub_net_add_dns_server): Likewise.
15429 (grub_net_remove_dns_server): Likewise.
15430 (GRUB_NET_TRIES): New const.
15431 (GRUB_NET_INTERVAL): Likewise.
15432 * include/grub/net/arp.h: Mostly rewritten.
15433 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15434 * include/grub/net/ip.h: Mostly rewritten.
15435 * include/grub/net/netbuff.h: Indent.
15436 * include/grub/net/tcp.h: New file.
15437 * include/grub/net/udp.h: Mostly rewritten.
15438 * include/grub/priority_queue.h: New file.
15439 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15440 (grub_swap_bytes64_compile_time): Likewise.
15441 (grub_cpu_to_be16_compile_time): Likewise.
15442 (grub_cpu_to_be32_compile_time): Likewise.
15443 (grub_cpu_to_be64_compile_time): Likewise.
15444 (grub_be_to_cpu64_compile_time): Likewise.
15446 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15448 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15449 UINT_TO_PTR with cast.
15451 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15453 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15456 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15458 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15461 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15463 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15466 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15468 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15469 Add missing const attribute.
15470 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15472 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15475 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15477 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15479 (serpent_setkey): Likewise.
15480 (serpent_encrypt_internal): Likewise.
15481 (serpent_decrypt_internal): Likewise.
15482 (serpent_encrypt): Don't put an alignment-increasing cast.
15483 (serpent_decrypt): Likewise.
15484 (serpent_test): Likewise.
15486 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15488 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15490 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15492 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15494 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15496 (PTR_TO_UINT64): Likewise.
15497 (PTR_TO_UINT32): Likewise.
15499 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15501 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15503 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15506 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15508 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15509 text_width > available width a bit more gracefully.
15511 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15513 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15514 current address calculation.
15516 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15518 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15520 (encode_block): Likewise.
15522 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15524 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15527 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15529 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15530 non-RS part to avoid RS messing with GDT.
15531 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15532 Increase to suit in realmode routines.
15534 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15536 * grub-core/kern/i386/realmode.S: Increase alignment.
15537 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15539 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15541 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15543 (syndroms): Compute 0 syndrom.
15544 (rs_recover): Use 0 syndrom.
15546 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15548 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15550 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15552 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15555 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15557 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15559 (get_top_pad): Likewise.
15560 (get_right_pad): Likewise.
15561 (get_bottom_pad): Likewise.
15563 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15565 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15567 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15569 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15570 attribute as the structure isn't guaranteed to be properly aligned.
15571 (grub_efi_pci_device_path): Likewise.
15572 (grub_efi_pccard_device_path): Likewise.
15573 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15574 specify the size of `memory_type'.
15575 (grub_efi_vendor_device_path): Likewise.
15576 (grub_efi_controller_device_path): Likewise.
15577 (grub_efi_acpi_device_path): Likewise.
15578 (grub_efi_expanded_acpi_device_path): Likewise.
15579 (grub_efi_atapi_device_path): Likewise.
15580 (grub_efi_scsi_device_path): Likewise.
15581 (grub_efi_fibre_channel_device_path): Likewise.
15582 (grub_efi_1394_device_path): Likewise.
15583 (grub_efi_usb_device_path): Likewise.
15584 (grub_efi_usb_class_device_path): Likewise.
15585 (grub_efi_i2o_device_path): Likewise.
15586 (grub_efi_mac_address_device_path): Likewise.
15587 (grub_efi_ipv4_device_path): Likewise.
15588 (grub_efi_ipv6_device_path): Likewise.
15589 (grub_efi_infiniband_device_path): Likewise.
15590 (grub_efi_uart_device_path): Likewise.
15591 (grub_efi_vendor_messaging_device_path): Likewise.
15592 (grub_efi_hard_drive_device_path): Likewise.
15593 (grub_efi_cdrom_device_path): Likewise.
15594 (grub_efi_vendor_media_device_path): Likewise.
15595 (grub_efi_file_path_device_path): Likewise.
15596 (grub_efi_protocol_device_path): Likewise.
15597 (grub_efi_piwg_device_path): Likewise.
15598 (grub_efi_bios_device_path): Likewise.
15600 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15602 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15603 (grub_ucs4_to_utf8_alloc): Likewise.
15604 (grub_ucs4_to_utf8): Likewise.
15605 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15606 (grub_ucs4_to_utf8_alloc): Likewise.
15608 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15610 AFFS never uses unicode.
15612 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15613 (grub_latin1_to_utf8): New inline function.
15614 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15616 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15618 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15621 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15623 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15624 (grub_squash_dirent_header): Likewise.
15625 (read_chunk): Don't double swap.
15626 (grub_squash_iterate_dir): Fix swap sizes.
15628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15630 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15635 (grub_hfs_iterate_dir): Likewise.
15637 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15639 Fix video on platforms where unaligned access is forbidden.
15640 Make several optimisations while on it.
15642 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15643 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15644 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15645 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15647 (grub_video_fbblit_replace_16bit_1bit):
15648 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15649 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15650 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15651 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15652 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15653 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15654 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15655 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15656 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15657 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15658 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15659 (grub_video_fbblit_replace_index_RGB888): Likewise.
15660 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15661 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15662 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15663 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15664 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15665 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15666 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15668 (grub_video_fbblit_blend_XXX565_1bit):
15669 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15670 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15671 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15673 * grub-core/video/fb/video_fb.c (common_blitter)
15674 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15675 (grub_video_fb_create_render_target_from_pointer)
15676 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15677 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15678 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15680 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15682 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15684 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15685 HH22 and HM10 relocations.
15687 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15689 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15691 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15693 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15694 allocation succeeded.
15696 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15699 argument a u8 pointer. All users updated.
15700 Handle unaligned buffers.
15702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15704 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15705 add_part to workaround compiler bug.
15707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15709 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15711 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15713 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15714 Reserve alignment invariants.
15715 (grub_multiboot_load): Likewise.
15716 (retrieve_video_parameters): Likewise.
15717 (grub_multiboot_make_mbi): Likewise.
15719 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15721 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15724 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15726 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15727 (grub_pata_pio_write): Likewise.
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15731 Add noreturn attributes and remove unreachable code.
15733 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15735 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15736 code. Mark as noreturn.
15737 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15738 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15739 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15741 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15742 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15743 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15744 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15745 * include/grub/kernel.h (grub_main): Mark as noreturn.
15746 * include/grub/reader.h (grub_rescue_run): Likewise.
15748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15750 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15751 redundant declaration.
15753 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15755 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15756 redundant declaration.
15757 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15761 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15762 to ensure alignment.
15763 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15764 alignment. Ensure tmp alignment.
15765 (grub_cmd_hdparm): Ensure buf alignment.
15766 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15767 to ensure alignment.
15768 (grub_ata_dumpinfo): Ensure text alignment.
15769 (grub_atapi_identify): Preserve alignment invariant.
15770 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15772 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15774 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15775 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15776 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15777 * include/grub/misc.h (grub_reboot)
15778 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15779 (grub_halt) [__mips__]: Likewise.
15781 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15783 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15784 Remove redundant declaration.
15785 (grub_mmap_get_post64): Likewise.
15786 (grub_mmap_get_upper): Likewise.
15787 (grub_mmap_get_lower): Likewise.
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15791 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15792 uint32_t * to ensure alignment.
15793 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15795 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15797 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15798 uint16_t * to ensure alignment.
15799 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15804 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15805 to ensure alignment.
15806 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15811 Handle unaligned pointers.
15814 (fixup): Use byte access instead of v16at.
15815 (find_attr): Fix imporper usage of v32at.
15816 (read_data): Likewise.
15817 (list_file): Handle byte-swapping and unaligned strings.
15818 (grub_ntfs_label): Likewise.
15820 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15822 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15823 as it's not necessarily aligned.
15825 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15827 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15828 redundant declaration.
15829 (grub_serial_init): Likewise.
15830 (grub_terminfo_init): Likewise.
15832 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15834 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15836 (ZAP_HASH_IDX): Likewise.
15837 (ZAP_LEAF_HASH_SHIFT): Likewise.
15838 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15839 (LEAF_HASH): Likewise.
15840 (ZAP_LEAF_NUMCHUNKS): Likewise.
15841 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15842 alignment invariants. Return pointer. All users updated.
15843 (ZAP_LEAF_ENTRY): Make into inline function.
15846 (xor_out): Use grub_crypto_xor.
15847 (dnode_get_path): Use grub_get_unaligned.
15848 (nvlist_find_value): Likewise.
15849 (grub_zfs_nvlist_lookup_uint64): Likewise.
15850 (grub_zfs_nvlist_lookup_string): Likewise.
15851 (get_nvlist_size): Likewise.
15852 (grub_zfs_open): Likewise.
15853 (fill_fs_info): Likewise.
15854 (grub_zfs_dir): Likewise.
15855 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15856 alignment invariants.
15857 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15858 necessarily aligned.
15860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15864 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15866 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15867 arithmetic to conserve alignment invariants.
15869 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15871 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15872 redundant declaration.
15873 (grub_efiemu_mm_obtain_request): Likewise.
15874 (grub_efiemu_prepare): Likewise.
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15883 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15884 case of aunaligned recptr.
15885 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15887 (grub_hfsplus_btree_search): Handle unaligned index.
15889 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15891 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15892 to get freetag and skip.
15894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15896 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15898 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15899 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15903 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15904 name for checksum and fix allocation algorithm.
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15908 * include/grub/types.h (grub_properly_aligned_t): New type.
15909 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15910 (grub_get_unaligned16): Add explicit casts.
15911 (grub_get_unaligned32): Likewise.
15912 (grub_get_unaligned64): Likewise.
15913 (grub_set_unaligned16): New function.
15914 (grub_set_unaligned32): Likewise.
15916 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15918 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15920 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15923 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15924 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15926 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15928 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15931 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15933 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15934 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938 Unify and improve RAID and crypto xor.
15940 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15941 changed to grub_crypto_xor
15942 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15943 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15944 Use bigger types when possible.
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15948 * grub-core/disk/raid.c (scan_devices): Fix condition.
15950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15952 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15953 Make name a const ptr.
15955 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15957 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15958 first argument a const pointer.
15959 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15960 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15962 (grub_children_iterate): Likewise.
15963 (grub_machine_mmap_iterate): Remove redundant declaration.
15965 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15967 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15968 (grub_cmd_acpi) [!x86]: Disable EBDA.
15970 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15972 Enable UTF8 in gnulib regexp.
15974 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15975 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15976 (isupper): Use grub_isupper.
15977 (isascii): New inline function.
15978 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15979 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15980 * grub-core/normal/charset.c (grub_utf8_process): New function.
15981 (grub_utf8_to_utf16): Use grub_utf8_process.
15982 (grub_encode_utf8_character): New function.
15983 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15984 * include/grub/charset.h (grub_utf8_process): New declaration.
15985 (grub_encode_utf8_character): Likewise.
15986 * include/grub/misc.h (grub_islower): New inline function.
15987 (grub_isupper): Likewise.
15988 (grub_strchrsub): Moved down to fix the definitions.
15990 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15992 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15995 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15997 * include/grub/loader.h (grub_loader_register_preboot_hook):
15998 Use struct preboot * and not void * for handle. All users updated.
15999 (grub_loader_unregister_preboot_hook): Likewise.
16001 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16003 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16004 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16005 UTF-16-BE. All users updated.
16006 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16007 (grub_hfsplus_iterate_dir): Likewise.
16008 (grub_hfsplus_label): Likewise.
16010 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16012 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16014 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16016 Add missing const qualifiers.
16018 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16019 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16020 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16021 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16022 (grub_lvm_check_flag): Likewise.
16023 * grub-core/efiemu/i386/coredetect.c
16024 (grub_efiemu_get_default_core_name): Likewise
16025 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16026 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16027 * grub-core/fs/ntfs.c (fixup): Likewise.
16028 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16029 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16030 (fzap_lookup): Likewise.
16031 (zap_lookup): Likewise.
16032 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16033 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16034 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16035 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16036 (grub_freebsd_add_meta_module): Likewise.
16037 (grub_cmd_freebsd_module): Likewise.
16038 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16039 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16040 (grub_xnu_writetree_get_size): Likewise.
16041 (grub_xnu_writetree_toheap_real): Likewise.
16042 (grub_xnu_find_key): Likewise.
16043 (grub_xnu_create_key): Likewise.
16044 (grub_xnu_create_value): Likewise.
16045 (grub_xnu_register_memory): Likewise.
16046 (grub_xnu_check_os_bundle_required): Likewise.
16047 (grub_xnu_scan_dir_for_kexts): Likewise.
16048 (grub_xnu_load_kext_from_dir): Likewise.
16049 * grub-core/normal/color.c (color_list): Likewise.
16050 * grub-core/normal/completion.c (current_word): Likewise.
16051 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16052 * grub-core/term/serial.c (grub_serial_find): Likewise.
16053 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16054 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16056 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16057 (grub_freebsd_add_meta_module): Likewise.
16058 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16059 * include/grub/net.h (grub_net_card_driver): Likewise.
16060 (grub_net_card): Likewise.
16061 (grub_net_app_protocol): Likewise.
16062 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16063 * include/grub/serial.h (grub_serial_find): Likewise.
16064 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16065 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16066 (grub_xnu_create_value): Likewise.
16067 (grub_xnu_find_key): Likewise.
16068 (grub_xnu_scan_dir_for_kexts): Likewise.
16069 (grub_xnu_load_kext_from_dir): Likewise.
16071 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16072 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16073 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16074 Moved from here ...
16075 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16077 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16079 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16081 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16083 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16084 (read_device): Fix size calculation.
16086 2011-11-25 Robert Millan <rmh@gnu.org>
16088 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16089 (find_root_device_from_libzfs): Add zpool output parser to be used
16090 as fallback when libzfs isn't available.
16092 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16094 * po/Makefile.in.in: Add missing escape-continuation.
16096 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16098 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16100 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16102 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16104 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16106 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16108 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16110 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16112 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16114 * grub-core/lib/adler32.c: Add missing license specification.
16115 * grub-core/lib/crc64.c: Likewise.
16116 * grub-core/loader/i386/pc/plan9.c: Likewise.
16117 * grub-core/partmap/plan.c: Likewise.
16119 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16121 Add facility to debug GRUB with gdb under qemu.
16123 * grub-core/gdb_grub.in: New file.
16124 * grub-core/gmodule.pl.in: Likewise.
16125 * grub-core/Makefile.core.def (gmodule.pl): New script.
16126 (gdb_grub): Likewise.
16128 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16130 * util/grub-mount.c (argp_parser): Accept relative pathes.
16131 * util/grub-fstest.c (argp_parser): Likewise.
16133 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16137 * Makefile.util.def (libgrubmods): Add
16138 grub-core/partmap/plan.c.
16139 * docs/grub.texi: Notice Plan9 support.
16140 * grub-core/Makefile.core.def (plan9): New module.
16141 (part_plan): Likewise.
16142 * grub-core/loader/i386/pc/plan9.c: New file.
16143 * grub-core/partmap/plan.c: Likewise.
16144 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16146 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16147 * include/grub/mm.h (grub_extend_alloc): New inline function.
16149 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16151 Make Reed-Solomon faster by using power of generator representation of
16154 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16155 (gf_double_t): Likewise.
16156 (gf_invert): Removed.
16157 (gf_powx): New array.
16158 (gf_powx_inv): Likewise.
16159 (scratch): Move higher.
16160 (gf_reduce): Removed.
16161 (gf_mul): Use powx.
16162 (gf_invert): Likewise.
16163 (init_inverts): Replaced with ...
16164 (init_powx): ...this. All users updated.
16165 (pol_evaluate): Replace multiplications with additions.
16166 (rs_encode): Likewise.
16167 (gauss_eliminate): Call gf_invert.
16168 (grub_reed_solomon_add_redundancy): Call init_powx.
16169 (grub_reed_solomon_recover): Call init_powx unconditionally.
16171 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16173 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16175 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16177 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16178 disk->partiton for safety.
16180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16182 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16184 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16186 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16188 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16190 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16192 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16194 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16196 Fix spaces handling in proc/self/mountinfo.
16198 * util/getroot.c (unescape): New function.
16199 (grub_find_root_device_from_mountinfo): Use unescape.
16201 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16203 Support ZFS embedding.
16205 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16206 (grub_zfs_fs): Register grub_zfs_embed.
16208 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16210 Fix MIPS compilation.
16212 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16213 * include/grub/offsets.h: Rename decompressor fields from
16214 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16215 * util/grub-mkimage.c (image_targets): Use new names.
16217 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16219 Defer multiboot device parsing until we're in compressed part.
16221 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16222 bsd_part. setdevice has fallen into disuse.
16223 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16224 (bsd_part): Likewise.
16225 (boot_dev): New variable.
16226 (multiboot_trampoline): Don't parse multiboot device.
16227 Pass multiboot device in %edx.
16228 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16230 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16232 * grub-core/kern/i386/pc/startup.S: Save edx.
16233 (grub_boot_drive): Removed.
16234 (grub_install_dos_part): Likewise.
16235 (grub_install_bsd_part): Likewise.
16236 (grub_boot_device): New variable.
16237 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16238 (grub_install_bsd_part): Likewise.
16239 (grub_boot_drive): Likewise.
16240 (grub_boot_device): New variable.
16241 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16243 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16244 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16245 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16246 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16247 * util/grub-install.in: Remove redundant condition.
16249 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16251 Fix bug introduced by previous commit.
16253 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16255 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16257 Use decompressors framework on i386-pc. It increases core size
16258 by 46 bytes but improves compatibility and maintainability.
16260 * grub-core/Makefile.core.def (lzma_decompress): New image.
16261 (kernel): Add i386_pc_ldflags.
16262 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16263 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16264 to real_to_prot, prot_to_real and device info.
16265 * include/grub/offsets.h: Renamed decompressor offsets.
16266 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16267 (image_target_desc): Remove raw_size and rename decompressor fields.
16268 (compress_kernel): Handle lzma.
16269 (generate_image): Handle decompressors on i386-pc.
16271 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16273 * configure.ac: Add -fno-asynchronous-unwind-tables.
16275 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16277 Move assembly code to C by using intwrap. It increases core size
16278 by 88 bytes but improves compatibility and maintainability.
16280 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16281 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16282 ... here. Translated to C.
16283 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16284 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16285 ... here. Translated to C.
16286 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16287 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16288 ... here. Translated to C.
16289 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16290 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16291 ... here. Translated to C.
16292 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16293 * grub-core/term/i386/pc/console.c (grub_console_cls):
16294 ... here. Translated to C.
16295 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16296 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16297 ... here. Translated to C.
16298 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16299 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16301 * grub-core/term/i386/pc/console.c (int10_9): New function.
16302 (grub_console_putchar): Likewise.
16303 * include/grub/i386/pc/console.h: Removed the not anymore shared
16306 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16308 Move grub_chainloader_real_boot out of the kernel.
16310 * grub-core/Makefile.am: Remove machine/loader.h.
16311 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16313 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16315 (grub_relocator16_keep_a20_enabled): Likewise.
16316 (grub_relocator16_boot): Fill new variables.
16317 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16318 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16320 (grub_chainloader_unload): Likewise.
16321 (grub_chainloader_cmd): Likewise.
16322 * include/grub/i386/pc/loader.h: Removed.
16323 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16324 and esi. All initialisers updated.
16326 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16327 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16329 * Makefile.util.def (grub-mount): New util.
16330 * .bzrignore: Add grub-mount.
16331 * configure.ac: Check for fuse and enable grub-mount if available.
16332 * docs/man/grub-mount.h2m: New file.
16333 * util/grub-mount.c: Likewise.
16335 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16337 * grub-core/commands/efi/fixvideo.c: Gettextize.
16338 * grub-core/commands/hashsum.c: Likewise.
16339 * grub-core/commands/i386/cmostest.c: Likewise.
16340 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16341 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16342 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16343 * grub-core/commands/lsmmap.c: Likewise.
16344 * grub-core/commands/menuentry.c: Likewise.
16345 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16346 * grub-core/commands/setpci.c: Likewise.
16347 * grub-core/loader/i386/bsd.c: Likewise.
16348 * grub-core/loader/i386/linux.c: Likewise.
16349 * util/getroot.c: Likewise.
16350 * util/grub-editenv.c: Likewise.
16351 * util/grub-fstest.c: Likewise.
16352 * util/grub-mkfont.c: Likewise.
16353 * util/grub-mkimage.c: Likewise.
16354 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16355 * util/grub-pe2elf.c: Likewise.
16356 * util/grub-probe.c: Likewise.
16357 * util/grub-setup.c: Likewise.
16358 * util/ieee1275/ofpath.c: Likewise.
16359 * util/misc.c: Likewise.
16360 * util/raid.c: Likewise.
16362 2011-11-11 Robert Millan <rmh@gnu.org>
16364 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16365 __attribute__((unused)) from `os_dev', which *is* being used.
16367 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16369 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16371 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16372 GRUB_IA64_DL_GOT_ALIGN.
16373 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16374 GRUB_IA64_DL_TRAMP_ALIGN.
16376 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16378 Replace grub_fatal with normal errors in i386 linux loader.
16380 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16381 (allocate_pages): Check find_efi_mmap_size return value.
16382 (grub_e820_add_region): Return error.
16383 (grub_linux_boot): Check mmap return value.
16385 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16387 * grub-core/commands/acpihalt.c: Gettextized.
16388 * grub-core/commands/cacheinfo.c: Likewise.
16389 * grub-core/commands/cmp.c: Likewise.
16390 * grub-core/commands/efi/loadbios.c: Likewise.
16391 * grub-core/commands/gptsync.c: Likewise.
16392 * grub-core/commands/ieee1275/suspend.c: Likewise.
16393 * grub-core/commands/legacycfg.c: Likewise.
16394 * grub-core/commands/memrw.c: Likewise.
16395 * grub-core/commands/minicmd.c: Likewise.
16396 * grub-core/commands/parttool.c: Likewise.
16397 * grub-core/commands/time.c: Likewise.
16398 * grub-core/commands/videoinfo.c: Likewise.
16399 * grub-core/disk/geli.c: Likewise.
16400 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16401 * grub-core/disk/luks.c: Likewise.
16402 * grub-core/disk/lvm.c: Likewise.
16403 * grub-core/font/font_cmd.c: Likewise.
16404 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16405 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16406 * grub-core/gfxmenu/view.c: Likewise.
16407 * grub-core/kern/emu/hostdisk.c: Likewise.
16408 * grub-core/kern/emu/main.c: Likewise.
16409 * grub-core/kern/emu/misc.c: Likewise.
16410 * grub-core/kern/emu/mm.c: Likewise.
16411 * grub-core/kern/mips/arc/init.c: Likewise.
16412 * grub-core/kern/mips/loongson/init.c: Likewise.
16413 * grub-core/kern/partition.c: Likewise.
16414 * grub-core/lib/i386/halt.c: Likewise.
16415 * grub-core/lib/mips/arc/reboot.c: Likewise.
16416 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16417 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16418 * grub-core/loader/i386/xnu.c: Likewise.
16419 * grub-core/loader/multiboot.c: Likewise.
16420 * grub-core/net/bootp.c: Likewise.
16421 * grub-core/net/net.c: Likewise.
16422 * grub-core/normal/term.c: Likewise.
16423 * grub-core/partmap/bsdlabel.c: Likewise.
16424 * grub-core/parttool/msdospart.c: Likewise.
16425 * grub-core/term/gfxterm.c: Likewise.
16426 * grub-core/term/terminfo.c: Likewise.
16427 * grub-core/video/i386/pc/vbe.c: Likewise.
16428 * util/grub-menulst2cfg.c: Likewise.
16429 * util/grub-mkdevicemap.c: Likewise.
16430 * util/grub-mklayout.c: Likewise.
16431 * util/grub-mkrelpath.c: Likewise.
16432 * util/grub-script-check.c: Likewise.
16433 * util/ieee1275/grub-ofpathname.c: Likewise.
16434 * util/resolve.c: Likewise.
16436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16438 Support %1$d syntax.
16440 * tests/printf_unit_test.c: New file.
16441 * Makefile.util.def (printf_test): New test.
16442 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16444 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16446 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16449 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16451 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16453 * grub-core/font/font.c (grub_font_load): Likewise.
16455 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16457 * util/grub-macho2img.c: Add comment concerning gettext.
16458 * grub-core/lib/legacy_parse.c: Likewise.
16460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16462 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16463 (grub_xvasprintf): Likewise.
16465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16467 Add const keyword to grub_env_get and gettextize week days.
16469 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16470 (grub_read_hook_datetime): Return const char *.
16471 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16473 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16475 (grub_get_weekday_name): Return const char *. Call gettext.
16476 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16477 char * and len as the argument. All users updated.
16478 (grub_script_argv_split_append): Receive const char *.
16479 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16480 * include/grub/env.h (grub_env_get): Likewise.
16481 (grub_env_read_hook_t): Return const char *.
16482 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16483 (grub_script_argv_split_append): Likewise.
16485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16487 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16489 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16491 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16492 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16494 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16496 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16499 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16501 Fix mips compilation.
16503 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16505 (hashes): Use in embed decoder as well (for sizes).
16506 (dec_stream_header): Fix embed decompressor logic.
16507 (dec_stream_footer): Likewise.
16509 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16511 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16512 an error and not a fatal on unrecognised relocation types.
16514 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16516 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16517 Issue error rather than printf on unknown arguments.
16519 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16521 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16526 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16531 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16532 leftover debug printf.
16534 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16536 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16538 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16540 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16543 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16545 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16547 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16549 Allow all modules to perform serial IO
16551 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16552 * include/grub/serial.h (grub_serial_port_configure): New inline
16554 (grub_serial_port_fetch): Likewise.
16555 (grub_serial_port_put): Likewise.
16556 (grub_serial_port_fini): Likewise.
16557 (grub_serial_find): New proto.
16559 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16561 Put symlink at the end of the node and fix a potential
16564 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16565 Make symlink into an array.
16566 (set_rockridge): Set have_symlink and alloc_dirents.
16567 (grub_iso9660_read_symlink): Use new layout.
16568 (grub_iso9660_iterate_dir): Fix memory corruption.
16570 (grub_iso9660_dir): Set have_symlink.
16571 (grub_iso9660_open): Likewise.
16573 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16575 Remove local keyword.
16577 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16578 (version_test_gt): Likewise.
16579 (version_find_latest): Likewise.
16580 (gettext_printf): Likewise.
16581 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16583 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16585 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16587 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16589 Fix ZFS memory and resource leaks.
16591 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16594 (fill_vdev_info): New parameter inserted. All users updated.
16595 (check_pool_label): Likewise.
16596 (scan_disk): Likewise.
16597 (scan_devices): Close non-inserted disks.
16598 (fzap_iterate): Free l.
16599 (unmount_device): Free children descripto memory.
16601 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16603 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16604 argument (access out of bounds).
16606 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16608 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16611 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16613 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16616 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16618 Fix several memory leaks.
16620 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16621 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16622 (grub_cpio_dir): Likewise.
16623 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16624 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16625 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16626 (grub_romfs_label): Likewise.
16627 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16628 (squash_unmount): New function.
16629 (grub_squash_dir): Fix memory leak.
16630 (grub_squash_open): Likewise.
16631 (grub_squash_read): Likewise.
16632 (grub_squash_mtime): Likewise.
16633 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16634 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16635 * util/grub-fstest.c (fstest): Likewise.
16637 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16639 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16640 avoid accessing beyond the array.
16642 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16644 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16646 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16648 Several AFFS fixes.
16650 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16651 (GRUB_AFFS_FLAG_FFS): Removed.
16652 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16653 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16654 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16655 (grub_fshelp_node): Make block 32-bit.
16656 Add block_cache and last_block_cache.
16657 (grub_affs_read_block): Fill and use block cache.
16658 (grub_affs_read_file): Removed.
16659 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16661 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16663 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16665 (grub_affs_close): Free block cache.
16666 (grub_affs_read): Use grub_fshelp_read_file directly.
16668 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16670 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16673 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16675 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16677 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16680 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16682 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16684 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16685 byteswap when needed.
16687 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16689 Fix FreeBSD compilation.
16691 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16692 to avoid circular dependency.
16693 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16694 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16695 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16697 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16699 Fix ZFS crypto error types.
16701 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16702 (grub_gcm_decrypt): Likewise.
16703 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16706 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16710 * Makefile.util.def (10_illumos): New script.
16711 * configure.ac: Set COND_HOST_ILLUMOS.
16712 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16713 Support Illumos calls.
16714 (find_partition_start) [__sun__]: Likewise.
16715 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16716 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16717 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16718 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16720 * util/grub-probe.c (probe) [__sun__]: Do character check.
16721 * util/grub.d/10_illumos.in: New file.
16723 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16725 Support escaped commas in hostdisk.
16727 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16728 (find_grub_drive): Use unescape_cmp.
16729 (make_device_name): Escape commas.
16731 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16733 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16735 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16737 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16740 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16742 Support trampoline jumps on powerpc.
16744 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16746 (grub_dl_load_segments): Set mod->sz.
16747 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16749 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16751 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16753 (trampoline): New struct.
16754 (trampoline_template): New const.
16755 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16756 * include/grub/dl.h (grub_dl): Add sz element.
16757 [__powerpc__]: Follow __ia64__.
16758 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16759 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16760 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16761 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16763 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16765 ZFS crypto support.
16767 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16768 * grub-core/Makefile.core.def (zfscrypt): New module.
16769 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16770 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16771 it. All users updated.
16772 (grub_zfs_decrypt): New var.
16773 (grub_zfs_load_key): Likewise.
16774 (zio_checksum_functions): Add SHA256+MAC.
16775 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16776 (zio_read): Handle encrypted blocks.
16777 (zap_verify): Remove incorrect check.
16778 (fzap_iterate): Handle non-standard fzap.
16779 (zap_iterate): Likewise.
16780 (zap_iterate_u64): New function.
16781 (dnode_get_fullpath): Load keys.
16782 * grub-core/fs/zfs/zfscrypt.c: New file.
16783 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16784 (grub_crypto_ecb_encrypt): Make input const.
16785 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16786 (grub_crypto_ecb_encrypt): Make input const.
16787 (GRUB_CIPHER_AES): New macro.
16788 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16789 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16790 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16791 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16792 prefix. All users updated.
16793 (grub_zfs_add_key): New proto.
16794 (grub_zfs_decrypt): Likewise.
16795 (grub_zfs_load_key): Likewise.
16796 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16797 * util/grub-fstest.c (options): Add -K option.
16798 (argp_parser): Likewise.
16800 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16802 Support zle compression on ZFS.
16804 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16805 (decomp_table): Add zle.
16806 * include/grub/zfs/zio.h (zio_compress): Add zle.
16808 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16810 Support BtrFS embedding.
16812 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16813 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16814 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16815 * util/grub-setup.c (setup): Use fs embedding if available.
16816 Add additional sanity check.
16818 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16820 * util/grub-install.in: Fix condition for config_opt.
16822 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16824 Support third redundancy strip on raidz3.
16826 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16827 Return error on singularity. All users updated.
16828 (read_device): Don't stop on 3rd failure on raidz3.
16830 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16832 Support case-insensitive ZFS subvolumes.
16834 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16836 (zap_hash): Likewise.
16837 (name_cmp): New function.
16838 (zap_leaf_array_equal): New parameter case_insensitive.
16840 (zap_leaf_lookup): Likewise.
16841 (fzap_lookup): Likewise.
16842 (zap_lookup): Likewise.
16843 (dnode_get_path): New parameter case_insensitive. Retrieve case
16844 sensitiviness of a volume. All users updated.
16845 (dnode_get_fullpath): New parameter case_insensitive.
16847 (grub_zfs_dir): Set info.case_insensitiveness.
16849 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16851 Support second redundancy strip on raidz(2,3).
16853 * grub-core/fs/zfs/zfs.c (powx): New array.
16854 (powx_inv): Likewise.
16856 (xor_out): New function.
16857 (gf_mul): Likewise.
16858 (recovery): Likewise.
16859 (read_device): Use second redundancy strip.
16861 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16863 Use a power of generator representation of GF(256) multiplication group
16864 to save space time and complexity.
16866 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16867 (raid6_table2): Likewise.
16869 (powx_inv): Likewise.
16871 (grub_raid_block_mul): Replace with ...
16872 (grub_raid_block_mulx): ...this.
16873 (grub_raid6_init_table): Rewritten.
16874 (grub_raid6_recover): Use power of generator representation.
16876 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16878 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16879 for the right device.
16881 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16883 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16884 expected by grub-mkimage and it's more clear since there is no implicit
16887 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16889 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16891 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16893 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16895 * util/grub-mkrescue.in: Fix handling xorriso option.
16897 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16899 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16902 2011-11-03 crocket <crockabiscuit@gmail.com>
16904 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16906 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16908 XZ CRC64 and SHA256 support.
16910 * Makefile.util.def (libgrubmods): Add crc64.c.
16911 * grub-core/Makefile.core.def (crc64): New module.
16912 * grub-core/lib/crc64.c: New file.
16913 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16914 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16916 (MAX_HASH_SIZE): New define.
16917 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16918 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16919 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16920 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16921 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16922 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16923 Handle non-crc32 hashes.
16924 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16925 (dec_stream_header): Handle non-crc32 hashes.
16926 (dec_stream_footer): Likewise.
16927 (dec_block_header): Likewise.
16928 (dec_main): Likewise.
16929 (xz_dec_init): Likewise.
16930 (xz_dec_reset): Likewise.
16931 (xz_dec_end): Likewise.
16932 * util/import_gcry.py: Add CRC64 line.
16934 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16936 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16939 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16941 Make reiserfs label retrieval similar to other *_label functions.
16943 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16944 (REISERFS_MAX_LABEL_LENGTH): Removed.
16945 (REISERFS_LABEL_OFFSET): Likewise.
16946 (grub_reiserfs_label): Rewritten.
16948 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16950 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16953 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16955 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16957 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16959 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16960 drive failure on both raidz and raidz2.
16962 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16964 Fix RAIDZ(2) for >= 5 devices.
16966 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16967 asize argument. All users updated.
16969 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16973 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16974 (fill_vdev_info_real): Set ashift.
16975 (read_device): Rewrite RAIDZ part based on reverse engineering.
16977 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16979 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16980 don't report potentially unavialiable fields in debug output.
16981 (find_path): Fix double-free and memory leak.
16983 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16985 Read label on UFS1.
16987 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16988 (grub_ufs_fs): Always set .label.
16990 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16994 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16995 (grub_ufs_data): New field log2_blksz.
16996 (grub_ufs_read_file): Use shifts.
16997 (grub_ufs_mount): Check block size and logarithm it.
16999 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17001 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17004 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17006 Handle symlinks and long names on tar and cpio.
17008 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17009 (ATTR_FILE): Likewise.
17010 (ATTR_DIR): Likewise.
17011 (ATTR_LNK): Likewise.
17012 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17013 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17015 (grub_cpio_mount): Zero-fill data.
17016 (handle_symlink): New function.
17017 (grub_cpio_dir): Handle symlinks.
17018 (grub_cpio_open): Likewise.
17019 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17021 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17023 Fix iso9660 filename limitations and fix memory leaks.
17025 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17026 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17028 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17030 Fix JFS file name length limitations.
17032 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17033 (grub_jfs_diropen): Fix maximum filename length.
17034 (grub_jfs_getent): Fix filename length.
17035 (grub_jfs_lookup_symlink): Fix size checks.
17037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17039 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17042 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17044 Leverage BFS implementation to read AFS.
17046 * Makefile.util.def (libgrubmods): Add afs.c.
17047 * grub-core/Makefile.core.def (afs): New module
17048 * grub-core/fs/afs.c: New file.
17049 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17051 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17053 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17055 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17057 * grub-core/fs/bfs.c: Run indent.
17059 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17061 BFS implementation based on the specification.
17063 * grub-core/fs/bfs.c: New file.
17064 * Makefile.util.def (libgrubmods): Add bfs.c.
17065 * grub-core/Makefile.core.def (bfs): New module.
17067 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17069 * util/grub-fstest.c (cmd_cp): Clarify error message.
17070 (cmd_cmp): Likewise.
17072 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17074 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17077 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17079 Remove afs and befs because of copyright problem.
17081 * grub-core/fs/afs.c: Removed.
17082 * grub-core/fs/afs_be.c: Removed.
17083 * grub-core/fs/befs.c: Removed.
17084 * grub-core/fs/befs_be.c: Removed.
17085 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17086 * grub-core/Makefile.core.def (afs): Removed.
17087 (afs_be): Likewise.
17089 (befs_be): Likewise.
17091 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17093 Prefer rockridge over Joliet.
17095 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17097 (set_rockridge): ... here.
17098 (grub_iso9660_mount): Check rockridge on the primary label when
17099 discovering. Ignore Joliet if Rockridge is present.
17101 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17103 Use shifts in nilfs2.
17105 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17106 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17107 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17108 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17109 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17110 (grub_nilfs2_entries_per_block): Replaced with ...
17111 (grub_nilfs2_log_entries_per_block_log): ... this.
17112 (grub_nilfs2_blocks_per_group): Replaced with ...
17113 (grub_nilfs2_blocks_per_group_log): ... this.
17114 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17115 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17116 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17117 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17118 (grub_nilfs2_palloc_entry_offset): Replaced ...
17119 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17120 (grub_nilfs2_dat_translate): Use shifts.
17121 (grub_nilfs2_read_inode): Likewise.
17122 (GRUB_MOD_INIT): Ensure that logs are correct.
17124 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17126 Use shifts in minix filesystem.
17128 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17129 (GRUB_MINIX_ZONE2SECT): Likewise.
17130 (grub_minix_data): Replace block_size with log_block_size.
17131 (grub_minix_read_file): Use shifts.
17132 (grub_minix_mount): Check block size and take a logarithm.
17134 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17136 Use shifts in squash4.
17138 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17139 (squash_mount): Check block size and take logarithm.
17140 (direct_read): Use shifts.
17142 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17144 Correct befs block counting logic.
17146 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17147 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17148 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17149 (grub_afs_read_inode): Use block_shift.
17150 (RANGE_SHIFT): New definition.
17151 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17152 unexpected conditions, use shifts and appropriate types.
17153 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17155 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17157 * grub-core/disk/raid.c (scan_devices): Check partition.
17158 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17160 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17162 Support BFS (befs) UUID.
17164 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17165 (grub_afs_small_data_element_header): New struct.
17166 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17167 (grub_afs_read_attribute) [MODE_BFS]: New function.
17168 (grub_afs_iterate_dir): Allocate for complete inode.
17169 (grub_afs_mount): Likewise.
17170 (grub_afs_uuid) [MODE_BFS]: New function.
17171 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17173 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17175 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17176 (zfs_unmount): Fix memory leak.
17178 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17180 Support NTFS reparse points.
17182 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17183 (symlink_descriptor): New struct.
17184 (grub_ntfs_read_symlink): New function.
17185 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17186 (grub_ntfs_open): Likewise.
17188 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17190 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17192 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17194 fstest xnu_uuid subcommand.
17196 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17197 grub-core/commands/xnu_uuid.c.
17198 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17199 (fstest): Handle xnu_uuid.
17200 (options): Document xnu_uuid.
17201 (argp_parser): Parse xnu_uuid.
17203 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17205 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17206 -l argument. Add newline at the end if printing.
17207 (GRUB_MOD_INIT): Document -l.
17209 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17211 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17213 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17215 ZFS multi-device and version 33 support.
17217 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17218 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17219 (grub_zfs_data): Add multidev-ice-related fields.
17220 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17221 (dva_get_offset): Make dva const.
17222 (zfs_fetch_nvlist): New function.
17223 (fill_vdev_info_real): Likewise.
17224 (fill_vdev_info): Likewise.
17225 (check_pool_label): Likewise.
17226 (scan_disk): Likewise.
17227 (scan_devices): Likewise.
17228 (read_device): Likewise.
17229 (read_dva): Likewise.
17230 (zio_read_gang): Use read_dva.
17231 (zio_read_data): Likewise.
17232 (zap_leaf_lookup): Add missing endian conversion.
17233 (zap_verify): Add missing endian conversion. All users updated.
17234 (fzap_lookup): Likewise.
17235 (fzap_iterate): Likewise.
17236 (dnode_get_path): Handle SA bonus.
17237 (nvlist_find_value): Make input const. All users updated.
17238 (unmount_device): New function.
17239 (zfs_unmount): Use unmount_device.
17240 (zfs_mount): Use scan_disk.
17241 (zfs_mtime): New function.
17242 (grub_zfs_open): Handle system attributes.
17243 (fill_fs_info): Likewise.
17244 (grub_zfs_dir): Likewise.
17245 (grub_zfs_fs): Add mtime.
17246 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17247 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17248 (SA_MTIME_OFFSET): Likewise.
17249 (SA_SYMLINK_OFFSET): Likewise.
17250 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17251 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17252 (fstest): Support zfsinfo.
17253 (argp_parser): Likewise.
17255 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17257 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17260 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17264 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17265 sharing the same block. Iterate over correct number of indices.
17266 (dnode_get_path): Handle symlinks correctly.
17268 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17270 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17272 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17274 Read label on HFS+.
17276 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17277 (grub_hfsplus_btree_search): Fix types.
17278 (grub_hfsplus_label): Implement.
17280 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17282 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17288 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17290 Fix symlink handling on iso9660.
17292 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17294 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17295 (grub_iso9660_read_symlink): Moved most of code ...
17296 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17298 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17300 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17301 Use union to avoid breaking strict-aliasing rules.
17303 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17305 Support multi-extent iso files.
17307 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17309 (grub_fshelp_node): Revamp. All users updated.
17310 (FLAG_*): New enum.
17311 (read_node): New function.
17312 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17314 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17315 (get_node_size): New function.
17316 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17318 Fix memory leak on . and ..
17319 (grub_iso9660_read): Use read_node.
17320 (grub_iso9660_close): Free node.
17322 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17324 Fix tar 4G limit and handle paths containing dot.
17326 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17327 (canonicalize): New function.
17328 (grub_cpio_find_file): Use canonicalize. Store offs in
17330 (grub_cpio_dir): Use grub_disk_addr_t.
17331 (grub_cpio_open): Likewise.
17333 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17335 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17337 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17339 (grub_squash_inode): Add long_file and block_size.
17340 (grub_squash_cache_inode): New struct.
17341 (grub_squash_dirent): Make types into enum.
17342 (SQUASH_TYPE_LONG_REGULAR): New type.
17343 (grub_squash_frag_desc): Add field size.
17344 (SQUASH_BLOCK_FLAGS): New enum.
17345 (grub_squash_data): Use grub_squash_cache_inode.
17346 (grub_fshelp_node): Make ino_chunk 64-bit.
17347 (read_chunk): Minor argument change. All users updated.
17348 (squash_mount): Use correct le_to_cpu.
17349 (grub_squash_open): Handle LONG_REGULAR.
17350 (direct_read): New function.
17351 (grub_squash_read_data): Handle blocks correctly.
17353 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17355 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17357 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17359 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17361 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17363 Fix 2G limit on ZFS.
17365 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17367 (uberblock_verify): Likewise.
17368 (dmu_read): Likewise.
17369 (grub_zfs_read): Likewise. Remove invalid cast.
17371 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17373 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17374 (grub_jfs_blkno): Fix incorrect shift.
17375 (grub_jfs_read_file): Use more appropriate types.
17377 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17379 Support triple indirect on minix2 and minix3.
17381 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17382 Declare triple_indir_zone.
17383 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17386 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17390 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17391 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17392 Rename ctime to mtime. All users updated.
17393 (grub_minix_get_file_block): Fix types and double indirect computations.
17395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17397 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17398 if no label is found.
17399 (grub_fat_iterate_dir): Fix file size type.
17400 (grub_fat_iterate_dir): Likewise.
17402 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17404 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17406 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17407 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17409 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17411 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17413 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17415 * util/import_gcry.py: Accept space between # and include.
17417 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17419 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17421 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17423 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17425 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17426 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17428 * grub-core/script/yylex.l: Add fine-grained #pragma.
17430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17432 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17433 New inline function.
17434 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17436 (memset) [GRUB_UTIL]: Likewise.
17437 (memcmp) [GRUB_UTIL]: Likewise.
17439 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17441 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17442 inline function rather than a define.
17444 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17446 * util/grub-setup.c: Add missing include.
17448 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17450 * util/ieee1275/grub-ofpathname.c: Add missing include.
17452 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17454 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17455 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17458 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17460 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17463 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17465 * util/grub-install.in: Add datarootdir as per automake manual
17467 * util/grub-mknetdir.in: Likewise.
17469 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17471 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17473 * util/grub.d/10_kfreebsd.in: Likewise.
17474 * util/grub.d/10_linux.in: Likewise.
17475 * util/grub.d/10_netbsd.in: Likewise.
17476 * util/grub.d/10_windows.in: Likewise.
17477 * util/grub.d/20_linux_xen.in: Likewise.
17479 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17481 Remove redundant grub_kernel_image_size.
17483 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17485 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17486 the small code. It moves it only by few bytes but simplifies the code.
17487 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17489 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17490 (grub_kernel_image_size): Removed.
17491 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17492 (grub_kernel_image_size): Removed.
17493 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17494 compiled with Apple toolchain.
17495 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17496 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17497 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17498 (grub_total_module_size): Likewise.
17499 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17501 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17502 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17503 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17504 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17505 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17506 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17507 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17508 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17510 (grub_total_module_size): Removed.
17511 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17512 (image_targets): Likewise.
17513 Set .compressed_size to no field on sparc.
17514 (generate_image): Remove kernel_image_size handling.
17516 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17518 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17519 NULL pointer dereference.
17521 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17523 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17524 done with a dedicated section.
17526 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17527 Ensure the correct position of boot_path.
17528 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17529 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17531 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17532 * include/grub/boot.h: Removed. All references removed.
17533 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17535 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17537 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17539 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17542 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17544 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17546 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17548 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17549 Don't add the bogus brackets.
17551 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17555 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17556 * grub-core/Makefile.core.def (exfat): New module.
17557 * grub-core/fs/exfat.c: New file.
17558 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17559 (GRUB_FAT_ATTR_*): Make into an enum.
17560 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17561 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17562 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17563 (GRUB_FAT_MAXFILE): Removed.
17564 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17565 (grub_current_fat_bpb_t): New type.
17566 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17567 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17568 (grub_fat_dir_node_t): New type.
17569 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17570 (fat_log2) [MODE_EXFAT]: Removed.
17571 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17572 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17573 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17574 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17575 (grub_fat_label) [MODE_EXFAT]: New function.
17576 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17577 reserved_first_sector to 0.
17579 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17581 Move grub_reboot out of the kernel.
17583 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17584 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17585 * grub-core/lib/efi/reboot.c: ... here.
17586 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17587 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17588 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17589 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17590 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17591 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17592 * grub-core/lib/ieee1275/reboot.c: ... here.
17593 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17594 * grub-core/lib/mips/arc/reboot.c: ... here.
17595 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17596 * grub-core/lib/mips/loongson/reboot.c: ...here.
17597 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17598 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17599 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17600 * include/grub/i386/reboot.h: New file.
17601 * include/grub/mips/loongson/ec.h: Fix includes.
17602 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17603 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17604 * grub-core/lib/i386/reboot.c: New file.
17606 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17608 Make grub_prefix into module to fix the arbitrary limit and save
17611 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17612 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17613 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17614 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17615 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17616 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17617 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17618 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17619 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17620 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17621 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17622 * include/grub/ia64/efi/kernel.h: Removed.
17623 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17624 (grub_prefix): Removed.
17625 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17626 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17627 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17628 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17629 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17630 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17631 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17632 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17633 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17634 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17635 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17636 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17637 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17638 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17639 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17640 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17641 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17642 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17643 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17644 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17645 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17646 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17647 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17648 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17649 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17650 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17651 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17652 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17653 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17655 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17657 (image_targets): Likewise.
17658 (generate_image): Put prefix as a module.
17660 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17662 Replace grub_module_iterate with FOR_MODULES.
17664 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17665 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17666 (grub_efi_modules_addr): ...this.
17667 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17668 (grub_efi_init): Set grub_modbase.
17669 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17670 (grub_modbase): New variable.
17671 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17672 (grub_modbase): New variable.
17673 (grub_machine_init): Set grub_modbase.
17674 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17675 (grub_modbase): New variable.
17676 (grub_machine_init): Set grub_modbase.
17677 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17678 (grub_modbase): New variable.
17679 (grub_machine_init): Set grub_modbase.
17680 * grub-core/kern/main.c (grub_module_iterate): Remove.
17681 (grub_modules_get_end): Use grub_modbase.
17682 (grub_load_modules): Use FOR_MODULES.
17683 (grub_load_config): Likewise.
17684 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17685 (grub_modbase): New variable.
17686 (grub_machine_init): Set grub_modbase.
17687 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17688 (grub_modbase): New variable.
17689 (grub_machine_init): Set grub_modbase.
17690 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17692 (grub_modbase): New variable.
17693 (grub_machine_init): Set grub_modbase.
17694 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17695 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17696 (grub_module_iterate): Likewise.
17697 (grub_modbase): New variable declaration.
17698 (FOR_MODULES): New macro.
17700 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17702 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17703 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17705 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17707 Fix few obvious type discrepancies.
17709 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17710 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17711 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17713 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17714 and connected types.
17715 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17717 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17718 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17719 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17720 and connected types.
17722 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17724 Fix python 3.x incompatibilities.
17726 * gentpl.py: Put brackets around print strings.
17727 * util/import_gcry.py: Open explicitly as utf-8.
17728 Use in instead of has_key.
17730 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17732 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17733 (GRUB_XFS_INO_AGBITS): Make into inline function.
17734 (GRUB_XFS_INO_INOINAG): Likewise.
17735 (GRUB_XFS_INO_AG): Likewise.
17736 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17737 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17738 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17739 (GRUB_XFS_EXTENT_SIZE): Likewise.
17740 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17741 (GRUB_XFS_NEXT_DIRENT): Likewise.
17742 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17743 (grub_xfs_read_file): Fix offset type.
17745 2011-10-15 Robert Millan <rmh@gnu.org>
17747 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17749 2011-10-15 Robert Millan <rmh@gnu.org>
17751 Fix build problem on FreeBSD and GNU/kFreeBSD.
17753 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17755 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17757 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17759 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17761 (grub_hfsplus_btree_recoffset): Likewise.
17762 (grub_hfsplus_btree_recptr): Likewise.
17763 (grub_hfsplus_find_block): Likewise.
17764 (grub_hfsplus_btree_search): Likewise.
17765 (grub_hfsplus_read_block): Likewise.
17766 (grub_hfsplus_read_file): Likewise.
17767 (grub_hfsplus_mount): Likewise.
17768 (grub_hfsplus_btree_iterate_node): Likewise.
17769 (grub_hfsplus_btree_search): Likewise.
17770 (grub_hfsplus_iterate_dir): Likewise.
17771 (grub_hfsplus_read): A small code simplification.
17773 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17775 * grub-core/kern/emu/hostdisk.c
17776 (convert_system_partition_to_system_disk): Don't assume that children
17777 of mapper nodes are mapper nodes.
17779 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17781 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17782 * include/grub/misc.h (grub_isxdigit): New function.
17783 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17784 switched to grub_isxdigit.
17785 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17786 number starting with a letter.
17788 2011-10-09 Robert Millan <rmh@gnu.org>
17790 LVM support for FreeBSD and GNU/kFreeBSD.
17792 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17794 (LVM_DEV_MAPPER_STRING): Move from here ...
17795 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17796 * util/getroot.c: Include `<grub/util/lvm.h>'.
17797 (grub_util_get_dev_abstraction): Enable
17798 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17799 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17800 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17801 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17803 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17805 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17806 when LVM abstraction is required for ${GRUB_DEVICE}.
17808 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17810 Add support for LZO compression in GRUB:
17811 - import of minilzo library,
17812 - LZO decompression for btrfs,
17813 - lzop files decompression.
17815 * grub-core/io/lzopio.c: New file.
17816 * grub-core/lib/adler32.c: Likewise.
17817 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17818 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17819 * grub-core/lib/minilzo/minilzo.c: Likewise.
17820 * grub-core/lib/minilzo/minilzo.h: Likewise.
17821 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17822 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17823 grub-core/lib/minilzo/minilzo.c to common.
17824 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17825 cflags in cppflags.
17826 * grub-core/Makefile.core.def (btrfs): Likewise.
17827 * grub-core/Makefile.core.def (lzopio): New module.
17828 (adler32): Likewise.
17829 * grub-core/fs/btrfs.c: Include minilzo.h.
17830 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17831 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17832 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17833 (grub_btrfs_lzo_decompress): New function.
17834 (grub_btrfs_extent_read): Add support for LZO compression type.
17835 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17836 (GRUB_USHRT_MAX): Likewise.
17837 (GRUB_UINT_MAX): Likewise.
17838 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17839 (UINT_MAX): Likewise.
17840 (CHAR_BIT): Likewise.
17841 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17842 grub-core/lib/posix_wrap/limits.h
17843 (UCHAR_MAX): Likewise.
17844 * include/grub/file.h (grub_file_filter_id): New compression filter
17845 GRUB_FILE_FILTER_LZOPIO.
17846 * include/grub/file.h (grub_file_filter_id): Set
17847 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17848 * include/grub/types.h (grub_get_unaligned16): New function.
17849 (grub_get_unaligned32): Likewise.
17850 (grub_get_unaligned64): Likewise.
17851 * util/import_gcry.py (cryptolist): Add adler32.
17853 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17855 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17856 in perspective decreases the complexity of build system and fixes
17857 compilation right now.
17859 2011-10-01 Ales Nesrsta <starous@volny.cz>
17861 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17862 (fixed problem related to using UHCI with coreboot).
17864 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17866 * gentpl.py: Use Autogen macros so that the output template file
17867 (Makefile.tpl) size is reduced.
17869 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17871 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17874 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17876 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17877 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17879 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17881 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17884 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17886 Remove extra declaration of sleep for mingw32.
17888 * util/misc.c (sleep) [__MINGW32__]: Removed.
17889 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17891 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17893 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17895 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17897 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17898 (grub_netbsd_btinfo_bootwedge): New struct.
17899 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17901 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17903 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17905 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17908 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17910 Fix incorrect identifiers in bash-completion.
17912 * util/bash-completion.d/grub-completion.bash.in
17913 (_grub_mkpasswd-pbkdf2): Rename to ...
17914 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17915 (_grub_script-check): Rename to ...
17916 (_grub_script_check): ... this. All users updated.
17918 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17920 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17921 Return 0 if disk isn't biosdisk.
17923 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17925 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17927 * Makefile.util.def (grub-fstest): Likewise.
17929 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17931 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17932 Get sector size from disk label.
17934 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17936 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17937 */README* as well as README*.
17938 Reported by: Axel Beckert.
17940 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17942 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17943 case of less than 256 MiB of RAM.
17945 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17947 * grub-core/commands/wildcard.c (make_regex): Handle @.
17949 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17951 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17953 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17955 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17956 AC_LANG_CONFTEST macros.
17958 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17960 Add grub-fstest option to uncompress data for commands.
17962 * util/grub-fstest.c (uncompress): New var.
17963 (options): New option -u.
17965 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17967 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17968 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17970 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17972 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17973 file type was not recognized correctly (not gzip or corrupted).
17975 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17977 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17978 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17980 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17982 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17984 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17985 video_radeon_fuloong2e.
17986 * grub-core/video/radeon_fuloong2e.c: New file.
17987 * include/grub/video.h (grub_video_id_t): Add new ID
17988 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17990 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17992 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17994 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17995 that PRID matches the detected subplatform and reset the subplatform
17998 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18000 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18002 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18004 Fix PCI iterating on functions >= 4.
18006 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18007 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18009 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18010 (grub_pci_read): Fix bitmask.
18011 (grub_pci_read_word): Likewise.
18012 (grub_pci_read_byte): Likewise.
18013 (grub_pci_write): Likewise.
18014 (grub_pci_write_word): Likewise.
18015 (grub_pci_write_byte): Likewise.
18017 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18019 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18020 can still be specified in TARGET_CFLAGS)
18022 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18024 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18026 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18027 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18028 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18029 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18030 (FULOONG): Rename to ...
18031 (FULOONG2F): ... this. All users updated.
18032 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18033 (machtype_fuloong2f_str): ... this.
18034 (machtype_fuloong2e_str): New string.
18035 Check for machtype_fuloong2e_str.
18036 * grub-core/loader/mips/linux.c (loongson_machtypes)
18037 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18038 * grub-core/term/serial.c (loongson_defserial)
18039 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18040 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18041 loongson_defserial.
18042 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18044 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18045 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18046 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18047 to IMAGE_FULOONG2F_FLASH. All users updated.
18048 (image_targets): Rename images.
18049 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18051 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18053 Make enable of disk cache statistics code configurable.
18055 * configure.ac: --enable-cache-stats added.
18056 * config.h.in (DISK_CACHE_STATS): New define.
18057 * grub-core/Makefile.core.def (cacheinfo): New command.
18058 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18059 * grub-core/commands/cacheinfo.c: New file.
18060 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18061 moved to cacheinfo.c.
18062 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18064 * include/grub/disk.h: Likewise.
18066 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18068 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18069 * grub-core/Makefile.am: Likewise.
18071 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18073 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18076 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18078 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18080 (grub_jfs_lookup_symlink): Use correct starting inode.
18082 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18084 * util/grub-setup.c (main): Add missing gcry initialisation.
18086 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18088 Don't accept text modes on EFI when booting Linux.
18090 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18091 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18093 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18094 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18096 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18097 use of "/path/.." as in grub-install for EFI as well as handling
18098 symlinks correctly.
18099 Fixes Debian bug #637768.
18101 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18103 * util/grub-probe.c: Remove duplicate #include.
18105 2011-08-10 Robert Millan <rmh@gnu.org>
18107 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18109 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18111 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18112 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18114 2011-08-03 Robert Millan <rmh@gnu.org>
18116 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18117 la_array as packed.
18118 Reported by: Zachary Bedell
18120 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18122 * configure.ac: The Loongson port requires grub-mkfont due to its
18123 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18126 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18128 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18129 processing arguments (otherwise help2man fails when GRUB has not yet
18132 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18134 New script grub-mkstandalone.
18136 * Makefile.util.def (grub-mkstandalone): New script.
18137 * docs/man/grub-mkstandalone.h2m: New file.
18138 * util/grub-mkstandalone.in: Likewise.
18140 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18142 Support ATA disks with 4K sectors.
18144 * include/grub/ata.h (grub_ata): New member log_sector_size.
18145 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18146 (grub_ata_identify): Read sector size.
18147 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18149 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18151 * util/grub-install.in: Don't use uhci outside of x86.
18153 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18155 * util/grub-mkrescue.in: Add missing quotes.
18157 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18159 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18162 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18164 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18166 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18168 * include/grub/video.h: add missing EXPORT_FUND on
18169 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18171 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18173 * include/grub/mips/kernel.h: Fix define conflict.
18175 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18177 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18180 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18182 Preferred resolution detection for VBE.
18184 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18185 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18186 the Flat Panel extension, in line with the X.org VESA driver.
18187 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18189 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18190 (grub_vbe_bios_read_edid): Likewise.
18191 (grub_vbe_get_preferred_mode): Likewise.
18192 (grub_video_vbe_setup): When the mode is "auto", try to get the
18193 preferred mode from VBE, and use the largest mode that is no larger
18194 than the preferred mode (some BIOSes expose a preferred mode that is
18195 not in their mode list!). If this fails, fall back to 640x480 as a
18196 safe conservative choice.
18197 (grub_video_vbe_get_edid): New function.
18198 (grub_video_vbe_adapter): Add get_edid.
18199 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18200 (struct grub_video_adapter): Add get_edid.
18201 (grub_video_edid_checksum): Add prototype.
18202 (grub_video_edid_preferred_mode): Likewise.
18203 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18206 * grub-core/commands/videoinfo.c (print_edid): New function.
18207 (grub_cmd_videoinfo): Print EDID if available.
18209 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18210 is more appropriate on a wider range of platforms than 640x480.
18211 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18214 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18216 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18218 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18220 * po/POTFILES.in: Regenerate.
18222 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18224 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18225 incorrect memory usage.
18227 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18229 * util/grub-install.in: Source grub-mkconfig_lib.
18231 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18233 Remove getroot.c from core on emu platform.
18235 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18237 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18239 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18240 * util/getroot.c (get_win32_path): ... here.
18241 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18242 * util/getroot.c (fini_libzfs): ... here.
18243 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18244 * util/getroot.c (grub_get_libzfs_handle): ... here.
18245 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18247 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18248 * grub-core/kern/emu/misc.c
18249 (grub_make_system_path_relative_to_its_root): Moved from here...
18250 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18251 * grub-core/kern/emu/getroot.c: Moved from here ...
18252 * util/getroot.c: ... here. All users updated.
18253 * grub-core/kern/emu/raid.c: Moved from here ...
18254 * util/raid.c: ... here. All users updated.
18256 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18258 * po/POTFILES.in: Regenerate.
18260 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18262 Fix compilation on GNU/Linux.
18264 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18266 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18267 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18268 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18270 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18271 2011-07-07 Michael Gorven <michael@gorven.za.net>
18272 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18274 LUKS and GELI support.
18276 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18277 grub-core/disk/luks.c, grub-core/disk/geli.c,
18278 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18279 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18280 grub-core/lib/arg.c.
18281 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18282 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18283 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18284 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18285 (grub-bin2h): Add libgcry.a.
18286 (grub-mkimage): Likewise.
18287 (grub-mkrelpath): Likewise.
18288 (grub-script-check): Likewise.
18289 (grub-editenv): Likewise.
18290 (grub-mkpasswd-pbkdf2): Likewise.
18291 (grub-pe2elf): Likewise.
18292 (grub-fstest): Likewise.
18293 (grub-mkfont): Likewise.
18294 (grub-mkdevicemap): Likewise.
18295 (grub-probe): Likewise.
18296 (grub-ofpath): Likewise.
18297 (grub-mklayout): Likewise.
18298 (example_unit_test): Likewise.
18299 (grub-menulst2cfg): Likewise.
18300 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18301 * grub-core/Makefile.core.def (cryptodisk): New module.
18304 * grub-core/disk/AFSplitter.c: New file.
18305 * grub-core/disk/cryptodisk.c: Likewise.
18306 * grub-core/disk/geli.c: Likewise.
18307 * grub-core/disk/luks.c: Likewise.
18308 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18310 (grub_util_get_dm_abstraction): New function.
18311 (grub_util_follow_gpart_up): Likewise.
18312 (grub_util_get_geom_abstraction): Likewise.
18313 (grub_util_get_dev_abstraction): Use new functions.
18314 (grub_util_pull_device): Pull GELI and LUKS.
18315 (grub_util_get_grub_dev): Handle LUKS and GELI.
18316 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18317 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18318 (follow_geom_up): Removed.
18319 (grub_util_fd_seek): New function.
18320 (open_device): Use grub_util_fd_seek.
18321 (nread): Rename to ..
18322 (grub_util_fd_read): ... this. All users updated.
18323 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18324 (grub_crypto_cbc_decrypt): Likewise.
18325 (grub_crypto_hmac_write): Likewise.
18326 (grub_crypto_hmac_buffer): Likewise.
18327 (grub_password_get): Extend to util.
18328 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18329 New member modname.
18330 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18331 * include/grub/cryptodisk.h: New file.
18332 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18333 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18335 (grub_util_follow_gpart_up): New proto.
18336 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18337 (grub_util_fd_read): Likewise.
18338 (grub_cryptodisk_cheat_mount): Likewise.
18339 (grub_util_cryptodisk_print_uuid): Likewise.
18340 (grub_util_get_fd_sectors): Likewise.
18341 * util/grub-fstest.c (mount_crypt): New var.
18342 (fstest): Mount crypto if requested.
18343 (options): New option -C.
18344 (argp_parser): Parse -C.
18345 (main): Init and fini gcry.
18346 * util/grub-install.in: Support cryptodisk install.
18347 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18348 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18350 (prepare_grub_to_access_device): Likewise.
18351 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18352 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18353 (probe_cryptodisk_uuid): New function.
18354 (probe_abstraction): Likewise.
18355 (probe): Use new functions.
18356 * util/import_gcry.py: Create Makefile.utilgcry.def.
18357 Add modname member.
18359 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18361 Lazy device scanning.
18363 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18364 (grub-setup): Remove util/raid.c.
18365 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18366 * grub-core/disk/lvm.c (scan_depth): New variable.
18367 (grub_lvm_iterate): Rescan if necessary.
18368 (find_lv): New function based on grub_lvm_open.
18369 (grub_lvm_open): Use find_lv. Rescan on error.
18370 (is_node_readable): New function.
18371 (is_lv_readable): Likewise.
18372 (grub_lvm_scan_device): Skip already found disks.
18373 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18374 Stop if searched device is found and readable.
18375 * grub-core/disk/raid.c (inscnt): New variable.
18376 (scan_depth): Likewise.
18377 (scan_devices): New function based on grub_raid_register. Abort if
18378 looked for device is found.
18379 (grub_raid_iterate): Rescan if needed.
18380 (find_array): NEw function based on -grub_raid_open.
18381 (grub_raid_open): Use find_array and rescan.
18382 (insert_array): Set became_readable_at.
18383 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18384 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18386 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18387 (grub_util_pull_device): New function.
18388 (grub_util_get_grub_dev): Call grub_util_pull_device.
18389 * util/raid.c: Moved to ..
18390 * grub-core/kern/emu/raid.c: ... here.
18391 (grub_util_raid_getmembers): New parameter "bootable".
18392 All users updated. Support 1.x.
18393 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18395 * include/grub/disk.h (grub_disk_pull_t): New enum.
18396 (grub_disk_dev): Change iterate prototype.
18398 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18400 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18401 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18402 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18403 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18405 * include/grub/util/raid.h: Removed.
18407 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18409 * po/POTFILES.in: Regenerate.
18411 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18413 Unify sparc init with other ieee1275.
18415 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18416 instead of kern/sparc64/ieee1275/init.c.
18417 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18418 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18419 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18420 grub/machine/kernel.h.
18421 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18422 (grub_claim_heap) [__sparc__]: Use sparc version.
18423 (grub_machine_init): Moved args parsing to
18424 (grub_parse_cmdline): ...this.
18425 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18426 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18428 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18430 Move BOOTP to separate file.
18432 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18433 * grub-core/net/net.c: Move all BOOTP functions to
18434 * grub-core/net/bootp.c: ... here.
18436 Use frame interface on PXE.
18438 * grub-core/Makefile.core.def (pxecmd): Removed.
18439 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18440 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18441 * grub-core/i386/pc/pxe.c: Moved from here ...
18442 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18443 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18444 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18446 EFI network support.
18448 * grub-core/Makefile.core.def (efinet): New module.
18449 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18451 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18453 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18454 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18455 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18456 * grub-core/net/drivers/efi/efinet.c: New file.
18457 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18458 (grub_efi_net_config): New extern var.
18460 Various cleanups and bugfixes.
18462 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18464 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18465 disk declared as partition.
18466 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18468 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18469 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18470 (grub_debug_zalloc): Likewise.
18471 (grub_debug_realloc): Likewise.
18472 (grub_debug_memalign): Likewise.
18473 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18474 Check that target is IPv4.
18475 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18476 local-mac-address as fallback.
18477 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18479 * grub-core/net/ip.c (ipchksum): Rename to ...
18480 (grub_net_ip_chksum): ... this. All users updated.
18481 (grub_net_recv_ip_packets): Special handling for DHCP.
18482 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18484 Unify prefix handling
18486 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18487 (grub_machine_get_bootlocation): ... this.
18488 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18489 (grub_machine_get_bootlocation): ... this.
18490 (grub_prefix): New variable.
18492 (root_dev): New variable.
18494 (main): Use new variables.
18495 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18497 (grub_machine_get_bootlocation): ... this.
18498 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18499 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18500 (grub_machine_get_bootlocation): ... this.
18501 (grub_machine_set_prefix): Removed.
18502 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18503 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18505 (grub_machine_get_bootlocation): ... this.
18506 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18507 (grub_set_prefix_and_root): ... this. All users updated.
18508 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18510 (grub_machine_get_bootlocation): ... this.
18511 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18512 (grub_machine_get_bootlocation): New proto.
18513 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18515 Less intrusive and more reliable seek on network implementation.
18517 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18518 (grub_file_seek): Don't call grub_file_net_seek.
18519 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18520 (grub_net_fs_read_real): .. this.
18521 (grub_net_seek_real): Use net->offset.
18522 (grub_net_fs_read): Seek if necessary.
18524 Unify IEEE1275 netwotk config with the other platforms.
18526 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18528 (grub_machine_get_bootlocation): Support network.
18529 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18530 Support type and device parsing.
18531 (grub_ieee1275_get_device_type): New function.
18532 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18534 (grub_ieee1275_net_config_real): ... this.
18535 (grub_ofnet_probecards): Removed.
18536 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18537 * include/grub/ieee1275/ofnet.h: Removed.
18538 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18540 (grub_ieee1275_get_device_type): New function.
18542 Unify network device closing across platforms and make more robust.
18544 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18546 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18548 * grub-core/net/net.c (grub_net_network_level_interface_register):
18550 (grub_net_card_unregister): Close all interfaces.
18551 (receive_packets): Don't poll if no iterfaces are registered.
18553 (grub_net_fini_hw): New function.
18554 (grub_net_restore_hw): Likewise.
18555 (fini_hnd): New variable.
18556 (GRUB_MOD_INIT): Register preboot hook.
18557 (GRUB_MOD_FINI): Run and unregister preboot hook.
18559 Poll network cards when idle.
18561 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18562 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18563 * grub-core/net/net.c (receive_packets): Save last poll time.
18564 (grub_net_poll_cards_idle_real): New function.
18565 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18566 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18567 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18569 Rename ofnet interfaces.
18571 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18572 (grub_ofnet_findcards): Use ofnet_%s names.
18574 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18576 Cleanup socket opening.
18578 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18579 (grub_net_fs_close): Likewise.
18580 (grub_net_fs_read_real): Use eof member.
18581 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18582 (+grub_net_udp_close): New inline function.
18584 * include/grub/net/tftp.h: Moved to the top of ...
18585 * grub-core/net/tftp.c: ... here.
18586 * include/grub/net/ip.h: Moved mostly to the top of ...
18587 * grub-core/net/ip.c: ... here.
18588 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18589 * grub-core/net/ethernet.c: ... here.
18591 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18593 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18596 * include/grub/net/ip.h (ipv4_ini): Removed.
18597 (ipv4_fini): Likewise.
18599 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18600 (grub_net_send_ip_packets): Likewise.
18602 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18604 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18605 grub_read_cmos prototype.
18607 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18609 VGA text support in qemu-mips
18611 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18612 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18613 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18615 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18616 * grub-core/kern/vga_init.c: ... this.
18617 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18618 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18619 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18621 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18622 GRUB_MACHINE_PCI_IO_BASE.
18624 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18626 MIPS qemu flash support.
18628 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18630 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18631 (grub_machine_init): Probe memory if its size isn't known.
18632 * util/grub-mkimage.c (image_targets): Add flash targets.
18633 (generate_image): Handle flash targets.
18635 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18637 MIPS qemu at_keyboard support.
18639 * gentpl.py (videoinkernel): Add qemu-mips.
18640 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18641 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18642 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18644 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18645 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18646 * grub-core/term/serial.c (grub_serial_register)
18647 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18649 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18651 CMOS support on sparc.
18653 * gentpl.py (cmos): Add powerpc and sparc.
18654 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18656 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18657 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18658 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18659 grub_set_datetime_cmos.
18660 * grub-core/lib/ieee1275/cmos.c: New file.
18661 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18662 (find_rtc): Set no_ieee1275_rtc on error.
18663 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18664 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18665 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18666 fail. Move value to argument. All users updated
18667 (grub_cmos_write): Likewise.
18668 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18669 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18670 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18671 grub_get_datetime_cmos and grub_set_datetime_cmos.
18673 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18675 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18676 sourcing grub-mkconfig_lib.
18677 * util/update-grub_lib.in: Likewise.
18678 * util/grub.d/00_header.in: Likewise.
18679 * util/grub.d/10_hurd.in: Likewise.
18680 * util/grub.d/10_kfreebsd.in: Likewise.
18681 * util/grub.d/10_linux.in: Likewise.
18682 * util/grub.d/10_netbsd.in: Likewise.
18683 * util/grub.d/10_windows.in: Likewise.
18684 * util/grub.d/20_linux_xen.in: Likewise.
18685 * util/grub.d/30_os-prober.in: Likewise.
18687 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18689 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18690 default_bg_color rather than black.
18691 (grub_gfxterm_fullscreen): Likewise.
18692 (grub_gfxterm_background_color_cmd): Save new background color in
18695 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18697 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18699 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18701 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18704 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18706 Chainloading on coreboot support.
18708 * grub-core/Makefile.core.def (chain): Add coreboot.
18709 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18711 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18713 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18716 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18718 Implement time command.
18720 * grub-core/Makefile.core.def (time): New module.
18721 * grub-core/commands/time.c: New file.
18722 * grub-core/script/parser.y: Remove "time" keyword.
18723 * grub-core/script/yylex.l: Likewise.
18725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18727 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18729 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18731 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18732 when handling leftovers.
18734 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18736 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18737 so that help2man doesn't fail.
18739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18741 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18742 type in pointers on sparc64.
18743 (get_card_packet): Likewise.
18745 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18747 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18749 (grub_cmd_videoinfo): Fetch current video mode.
18751 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18753 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18754 because of underlying system restrictions.
18756 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18758 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18761 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18763 Coreboot video support.
18765 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18767 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18768 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18770 * grub-core/kern/i386/int.S: ... here.
18771 * grub-core/video/i386/pc/vbe.c: Updated includes.
18772 * grub-core/video/i386/pc/vga.c: Likewise.
18773 * include/grub/i386/coreboot/memory.h
18774 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18775 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18776 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18777 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18778 Disable interrupts.
18779 * include/grub/i386/pc/vga.h: Removed. All users updated.
18781 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18783 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18784 definitions for dprintf.
18785 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18787 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18789 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18791 (get_card_packet): Likewise.
18793 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18795 Display the path of the file when file is not found
18797 * grub-core/fs/fat.c: Display the filename when file is not found.
18798 * grub-core/fs/fshelp.c: Likewise.
18799 * grub-core/fs/hfs.c: Likewise.
18800 * grub-core/fs/jfs.c: Likewise.
18801 * grub-core/fs/minix.c: Likewise.
18802 * grub-core/fs/ufs.c: Likewise.
18803 * grub-core/fs/btrfs.c: Likewise.
18804 * grub-core/commands/i386/pc/play.c: Likewise.
18806 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18808 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18809 pointer checks before calling grub_free().
18810 * grub-core/commands/wildcard.c (match_devices): Likewise.
18811 * grub-core/commands/wildcard.c (match_files): Likewise.
18812 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18813 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18814 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18815 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18816 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18817 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18818 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18819 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18820 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18822 2011-06-25 Patrick <p55@mailinator.com>
18824 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18826 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18828 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18829 (grub_pxe_send): Likewise.
18830 (GRUB_MOD_INIT): Fix types.
18832 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18834 * grub-core/io/xzio.c: Fix code style issues
18836 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18837 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18839 Network infrastructure.
18840 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18842 * include/grub/net/arp.h: New file.
18843 * include/grub/net/device.h: Likewise.
18844 * include/grub/net/ethernet.h: Likewise.
18845 * include/grub/net/ip.h: Likewise.
18846 * include/grub/net/netbuff.h: Likewise.
18847 * include/grub/net/tftp.h: Likewise.
18848 * include/grub/net/udp.h: Likewise.
18849 * include/grub/ieee1275/ofnet.h: Likewise.
18850 * include/grub/emu/export.h: Likewise.
18851 * include/grub/net.h: Likewise.
18852 * grub-core/net/arp.c: Likewise.
18853 * grub-core/net/ethernet.c: Likewise.
18854 * grub-core/net/ip.c: Likewise.
18855 * grub-core/net/udp.c: Likewise.
18856 * grub-core/net/tftp.c: Likewise.
18857 * grub-core/net/netbuff.c: Likewise.
18858 * grub-core/net/net.c: Likewise.
18859 * grub-core/net/drivers/emu/emunet.c: Likewise.
18860 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18861 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18863 * grub-core/Makefile.core.def (net): New module.
18866 (emunet): Likewise.
18867 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18869 * grub-core/kern/device.c (grub_net_open) : New variable.
18870 (grub_device_open): Handle network device.
18871 (grub_device_close): Likewise.
18872 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18873 (grub_grubnet_fini): Likewise.
18874 (grub_file_seek): Seek in network device.
18875 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18876 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18878 (grub_machine_fini): Call grub_grubnet_fini.
18879 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18881 (grub_ieee1275_get_aliasdevname): New function.
18882 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18883 Add unofficial Solaris network info.
18884 (grub_multiboot_make_mbi): Likewise.
18885 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18886 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18887 * include/grub/device.h (grub_fs): Removed.
18888 * include/grub/err.h (grub_err_t): Add network-related values.
18889 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18890 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18891 (grub_ieee1275_get_aliasdevname): New proto.
18892 * include/grub/net.h: Rewritten.
18894 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18896 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18899 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18901 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18902 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18903 it truncates the output.
18904 Reported by: Ximin Luo.
18906 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18908 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18910 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18912 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18913 partmap before abstraction.
18915 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18917 * util/grub-mkconfig_lib.in: Add missing quotes.
18919 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18921 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18922 old method if mountinfo would return /dev/root and /dev/root doesn't
18925 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18929 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18930 (decomp_table): Add zlib entries.
18931 (zio_read): USe 8 bits for compression function rather than 3.
18932 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18934 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18936 * grub-core/disk/ahci.c: Add missing license statements.
18937 * grub-core/fs/romfs.c: Likewise.
18938 * grub-core/lib/ia64/setjmp.S: Likewise.
18939 * grub-core/loader/i386/pc/freedos.c: Likewise.
18940 * grub-core/loader/ia64/efi/linux.c: Likewise.
18941 * grub-core/video/colors.c: Likewise.
18942 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18944 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18948 * grub-core/Makefile.core.def (ata_pthru): Removed.
18949 (ahci): New module.
18951 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18953 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18955 (grub_hdparm_do_check_powermode_cmd): Likewise.
18956 (grub_hdparm_do_smart_cmd): Likewise.
18957 (grub_hdparm_set_val_cmd): Likewise.
18958 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18959 * grub-core/disk/ahci.c: New file.
18960 * grub-core/disk/ata.c: Factor out the low-level part into ...
18961 * grub-core/disk/pata.c: ... here.
18962 * grub-core/disk/ata_pthru.c: Contents moved to ...
18963 * grub-core/disk/pata.c: ... here.
18964 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18965 (grub_scsi_iterate): Use grub_scsi_names.
18966 (grub_scsi_open): Likewise.
18967 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18968 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18969 (grub_ata_regs_t): New struct.
18970 (grub_disk_ata_pass_through_parms): Likewise.
18971 (grub_ata_device): Renamed to ...
18972 (grub_ata): ... this.
18973 (grub_ata_dev): New struct.
18974 Removed all low-level inline functions.
18975 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18976 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18977 iterate hooks and open. All users updated.
18978 * util/grub-install.in: Handle AHCI disk module.
18980 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18982 Add support for DRI and RSTn markers in JPEG files.
18984 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18985 (JPEG_MARKER_RST0): Likewise.
18986 (JPEG_MARKER_RST1): Likewise.
18987 (JPEG_MARKER_RST2): Likewise.
18988 (JPEG_MARKER_RST3): Likewise.
18989 (JPEG_MARKER_RST4): Likewise.
18990 (JPEG_MARKER_RST5): Likewise.
18991 (JPEG_MARKER_RST6): Likewise.
18992 (JPEG_MARKER_RST7): Likewise.
18993 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18994 (grub_jpeg_decode_dri): New function.
18995 (grub_jpeg_decode_sos): Move image data related part into
18996 grub_jpeg_decode_data function.
18997 (grub_jpeg_decode_data): New function.
18998 (grub_jpeg_reset): New function.
18999 (grub_jpeg_decode_jpeg): Handle new markers.
19001 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19003 * util/ieee1275/ofpath.c (check_sas): Close fd.
19004 (main): Free of_path.
19005 Reported by: David Volgyes <dvolgyes>.
19007 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19009 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19010 Reported by: David Volgyes <dvolgyes>.
19012 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19014 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19016 Reported by: David Volgyes <dvolgyes>.
19018 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19020 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19022 Reported by: David Volgyes <dvolgyes>.
19024 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19026 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19027 Prevent memory leak.
19029 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19031 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19032 (main): Close file.
19033 Reported by: David Volgyes <dvolgyes>.
19035 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19037 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19038 to continue if allocation is failed.
19040 Reported by: David Volgyes <dvolgyes>.
19042 2011-06-23 David Volgyes <dvolgyes>
19044 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19047 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19049 Fix spurious warning.
19051 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19052 (acorn_partition_map_find): Use .bin member.
19054 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19056 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19057 /dev/root as a valid device.
19059 2011-06-23 Jim Meyering <meyering@redhat.com>
19061 Avoid NULL deref in grub_device_open.
19063 * grub-core/kern/device.c (grub_device_open): Don't dereference
19064 a NULL pointer upon failed grub_env_get.
19066 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19068 Support non-512B sectors and agglomerate reads.
19070 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19071 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19072 (disk_io_guid): Removed.
19073 (make_devices): Locate solely by BlockIO.
19074 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19075 (grub_efidisk_read): Use read_blocks.
19076 (grub_efidisk_write): Use write_blocks.
19077 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19079 (get_safe_sectors): Handle non-512B sectors.
19080 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19082 (grub_biosdisk_write): Handle non-512B sectors.
19083 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19084 (grub_scsi_read): Remove special non-512B block handling (now handled
19086 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19087 and do sanity checks.
19088 (grub_disk_adjust_range): Handle non-512B sectors.
19089 (transform_sector): New function.
19090 (grub_disk_read_small): Likewise.
19091 (grub_disk_read): Rewritten.
19092 (grub_disk_write): Handle non-512B sectors.
19093 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19095 (open_device): Use log_sector_size.
19096 (grub_util_biosdisk_read): Likewise.
19097 (grub_util_biosdisk_write): Likewise.
19098 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19100 (pc_partition_map_embed): Likewise.
19101 * include/grub/disk.h (grub_disk): New field log_sector_size.
19102 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19103 (GRUB_DISK_CACHE_BITS): Increased to 6.
19104 * util/grub-fstest.c (fstest): New command testload.
19105 (argp_parser): Likewise.
19107 2011-06-16 Robert Millan <rmh@gnu.org>
19109 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19110 `ata' driver on kernel of FreeBSD 9.
19112 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19113 (get_ataraid_disk_name): New functions.
19114 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19115 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19116 get_ataraid_disk_name() and get_ada_disk_name().
19118 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19120 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19123 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19125 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19126 `ftp.gnu.org' for `alpha.gnu.org'.
19128 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19130 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19131 partitions under /dev/disk/by-id/.
19133 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19135 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19136 after ten consecutive open failures. Scanning all the way up to
19137 10000 is excessive and can cause serious performance problems in
19138 some configurations.
19139 Fixes Ubuntu bug #787461.
19141 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19143 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19146 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19147 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19149 Don't stat devices unless we have to.
19151 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19152 dir == /dev/mapper.
19153 (grub_guess_root_device): Use already known os_dev if possible.
19154 * grub-core/kern/emu/hostdisk.c
19155 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19156 if device is known to be a dm one.
19158 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19160 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19161 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19162 Reported by: Pawel Tecza.
19164 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19166 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19167 (lsefisystab): Likewise.
19169 (lsefimmap): Likewise.
19170 (hdparm): Enable on qemu-mips.
19171 (setjmp): Add ia64 nodist.
19172 (serial): Simplify tags.
19174 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19176 * Makefile.util.def (grub-ofpathname): Install manual page.
19178 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19180 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19182 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19184 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19186 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19188 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19191 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19193 Use full 64-bit division.
19195 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19196 (grub_divmod64): ... this.
19197 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19200 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19202 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19205 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19207 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19208 to avoid accidents when debugging with 'sh -x'.
19209 * grub-core/gensyminfo.sh.in: Likewise.
19210 * tests/example_scripted_test.in: Likewise.
19211 * tests/grub_cmd_regexp.in: Likewise.
19212 * tests/grub_script_blanklines.in: Likewise.
19213 * tests/grub_script_dollar.in: Likewise.
19214 * tests/grub_script_expansion.in: Likewise.
19215 * tests/grub_script_final_semicolon.in: Likewise.
19216 * tests/partmap_test.in: Likewise.
19217 * tests/util/grub-shell-tester.in: Likewise.
19218 * tests/util/grub-shell.in: Likewise.
19220 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19222 Move gfxmenu color handling to video, so that gfxterm can use it
19225 * grub-core/gfxmenu/named_colors.c: Move to ...
19226 * grub-core/video/colors.c: ... here. Rename
19227 grub_gui_get_named_color to grub_video_get_named_color.
19228 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19229 * grub-core/video/colors.c (my_isxdigit): ... here.
19230 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19232 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19233 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19235 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19237 * include/grub/gui.h (grub_gui_color_t): Move to ...
19238 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19239 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19240 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19241 * include/grub/gui.h (grub_gui_map_color): Move to ...
19242 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19243 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19245 * include/grub/video.h (grub_video_get_named_color): ... here.
19246 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19247 * include/grub/video.h (grub_video_parse_color): ... here.
19249 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19251 (gfxmenu): Remove gfxmenu/named_colors.c.
19252 (video) [videomodules]: Add video/colors.c.
19254 Add a background_color command.
19256 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19258 (GRUB_MOD_INIT): Register background_color command.
19259 (GRUB_MOD_FINI): Unregister background_color command.
19260 (redraw_screen_rect): Allow blend/replace of text layer to be
19261 controlled independently from whether there is a background bitmap.
19262 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19265 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19267 Patch BPB in ntldr and chainloader --bpb.
19269 * grub-core/fs/fat.c: Include grub/fat.h.
19270 (grub_fat_bpb): Moved to ...
19271 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19272 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19274 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19276 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19278 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19280 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19281 (GRUB_MOD_INIT): Show --bpb.
19282 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19283 * grub-core/normal/main.c (features): New variable.
19284 (GRUB_MOD_INIT): Set feature_* variables.
19285 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19287 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19289 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19291 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19294 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19296 FreeDOS direct loading support.
19298 * docs/grub.texi (Supported OS): Add FreeDOS.
19299 * grub-core/Makefile.core.def (freedos): New module.
19300 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19302 (grub_relocator16_boot): Handle %ebx.
19303 * grub-core/lib/i386/relocator16.S: Likewise.
19304 * grub-core/loader/i386/pc/freedos.c: New file.
19306 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19308 Long Linux command line support.
19310 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19311 (maximal_cmdline_size): New variable.
19312 (allocate_pages): Use maximal_cmdline_size.
19313 (grub_cmd_linux): Set and use maximal_cmdline_size.
19314 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19315 (allocate_pages): Use maximal_cmdline_size.
19316 (grub_cmd_linux): Set and use maximal_cmdline_size.
19317 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19318 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19321 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19322 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19324 Improve devmapper support
19326 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19327 (grub_util_is_lvm): New function.
19328 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19329 than lvm if not dmraid.
19330 Handle mapped md nodes.
19331 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19332 (grub_util_device_is_mapped): ... this. Make always available. All users
19334 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19335 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19337 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19339 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19341 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19343 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19344 * grub-core/modinfo.sh.in: New file.
19345 * grub-core/Makefile.core.def (modinfo.sh): New script.
19346 * util/grub-mknetdir.in: Use modinfo.sh.
19347 * util/grub-mkrescue.in: Likewise.
19349 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19351 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19352 Fix potential usage of Elf32 instead of Elf64 when compiling on
19353 32-bit architecture. Add endianness macros while on it.
19355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19357 Use mipsel- rather than mips- in directories involving mipsel ports to
19358 allow both endiannesses coexist.
19360 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19361 mips. All conditions adjusted.
19362 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19364 * util/grub-install.in: Adjust conditions to take renaming into account.
19365 * util/grub-mkimage.c (image_targets): Likewise. New target
19366 mips-qemu_mips-elf for bigendian mips.
19368 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19370 Avoid unnecessary copying on MIPS.
19372 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19373 early if src == dest.
19374 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19375 compression is none.
19377 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19379 Reduce memory footprint on SGI by putting modules before the kernel
19380 as opposed to after.
19382 * grub-core/Makefile.core.def (kernel): Increase linking address.
19383 (none_decompress): Likewise.
19384 (xz_decompress): Likewise.
19385 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19387 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19389 (grub_arch_modules_addr): New function.
19390 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19391 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19392 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19394 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19395 (grub_total_modules_size): ... this. Make global.
19396 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19397 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19399 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19400 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19401 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19402 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19403 * util/grub-mkimage.c (image_target_desc): New flag
19404 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19405 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19406 (generate_image): Handle images with modules before kernel.
19408 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19410 Prevent potential loss of memory map by overwrite on qemu-mips.
19412 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19413 Save ram size in $s4.
19414 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19415 All users changed to grub_arch_memsize.
19416 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19418 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19419 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19420 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19423 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19425 * .bzrignore: Remove grub-dumpbios.
19427 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19429 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19430 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19431 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19432 existing options which append).
19433 * docs/grub.texi (Simple configuration): Document new options.
19434 Reported by: Ian Jackson. Fixes Debian bug #617538.
19436 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19438 * util/grub-fstest.c (cmd_cat): New function.
19439 (fstest): Handle CMD_CAT.
19440 (options): Add cat.
19441 (argp_parser): Handle cat.
19443 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19445 * Makefile.util.def (grub-bin2h): Don't install.
19446 * docs/man/grub-bin2h.h2m: Remove.
19448 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19450 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19453 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19455 Reenable qemu-mips port.
19457 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19458 Fix small arc bug while on it.
19459 * gentpl.py: Handle qemu_mips.
19460 * grub-core/Makefile.am: Likewise.
19461 * grub-core/Makefile.core.def: Likewise.
19462 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19463 inappropriate includes.
19464 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19465 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19466 * grub-core/kern/main.c (grub_modules_get_end)
19467 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19468 * grub-core/kern/mips/qemu-mips: Moved to ..
19469 * grub-core/kern/mips/qemu_mips: ... this.
19470 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19471 (grub_machine_init): Call terminfo_init and serial_init.
19472 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19473 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19475 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19477 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19478 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19479 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19480 * include/grub/mips/qemu_mips/cmos.h: New file.
19481 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19482 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19484 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19485 Use correct mips-style address.
19486 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19487 (GRUB_TICKS_PER_SECOND): Removed.
19488 (grub_get_rtc): Likewise.
19489 (grub_cpu_idle): Likewise.
19490 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19492 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19493 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19494 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19495 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19496 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19497 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19498 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19499 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19501 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19505 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19506 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19508 * configure.ac: New target mips-arc.
19509 * gentpl.py: Likewise.
19510 * grub-core/Makefile.am: Likewise.
19511 * grub-core/Makefile.core.def: Likewise.
19512 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19513 (none_decompress): Likewise.
19514 (lsdev): New module.
19515 (datetime): Use lib/arc/datetime.c on ARC.
19516 (part_dvh): New module.
19517 * grub-core/commands/arc/lsdev.c: New file.
19518 * grub-core/disk/arc/arcdisk.c: Likewise.
19519 * grub-core/kern/mips/arc/init.c: Likewise.
19520 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19522 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19524 (grub_arch_dl_relocate_symbols): Likewise.
19525 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19526 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19527 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19529 * grub-core/lib/arc/datetime.c: New file.
19530 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19531 pci.h on non-loongson.
19532 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19533 (grub_linux_boot): Set unused registers to 0.
19534 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19535 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19536 * grub-core/mmap/mips/uppermem.c: ...here.
19537 * grub-core/partmap/dvh.c: New file.
19538 * grub-core/term/arc/console.c: Likewise.
19539 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19540 (grub_terminfo_set_current): Add terminal "arc".
19541 (grub_terminfo_readkey): Support ARC sequences.
19542 * include/grub/arc/arc.h: New file.
19543 * include/grub/arc/console.h: Likewise.
19544 * include/grub/disk.h (grub_disk_dev_id): Add
19545 GRUB_DISK_DEVICE_ARCDISK_ID.
19546 * include/grub/mips/arc/kernel.h: New file.
19547 * include/grub/mips/arc/memory.h: Likewise.
19548 * include/grub/mips/arc/time.h: Likewise.
19549 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19550 * include/grub/mips/kernel.h (grub_halt): ... here.
19551 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19553 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19554 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19555 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19556 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19558 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19560 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19561 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19562 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19563 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19564 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19565 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19566 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19567 (grub_phys_addr_t): Moved from here ...
19568 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19569 (grub_vtop): Moved from here ...
19570 * include/grub/mips/memory.h (grub_vtop): ... here.
19571 (grub_map_memory): Moved from here ...
19572 * include/grub/mips/memory.h (grub_map_memory): ... here.
19573 (grub_unmap_memory): Moved from here ...
19574 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19575 (grub_machine_mmap_iterate): Moved from here ...
19576 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19577 (grub_mmap_get_lower): Moved from here ...
19578 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19579 (grub_mmap_get_upper): Moved from here ...
19580 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19581 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19583 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19584 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19586 * include/grub/mips/time.h (grub_get_rtc): ... here.
19587 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19589 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19590 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19592 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19593 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19595 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19596 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19597 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19598 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19599 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19600 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19601 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19602 (GRUB_MACHINE_LINK_ADDR): Likewise.
19603 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19605 * util/grub-install.in: Run dvhtool on ARC.
19606 * util/grub-mkimage.c (image_targets): Add mips-arc.
19607 (generate_image): Handle ECOFF output for mips-arc.
19609 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19611 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19614 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19616 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19617 after enabling port.
19619 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19621 Skip incorrect USB devices.
19623 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19625 * include/grub/usb.h (grub_usb_err_t): New enum value
19626 GRUB_USB_ERR_BADDEVICE.
19628 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19630 Fuloong video init support.
19632 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19634 (grub_vga_read_arx): New function.
19635 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19637 (framebuffer): New members io, mmioptr and mmiobase.
19638 (read_sis_cmd): New function.
19639 (write_sis_cmd): Likewise.
19640 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19641 rather than 640x400.
19642 * grub-core/video/sis315_init.c: New file.
19644 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19646 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19648 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19649 to grub_dl_register_symbol.
19651 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19653 Fix compilation errors.
19655 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19656 potentially unused.
19657 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19658 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19659 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19660 to loongson machines.
19662 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19664 Several FS mtime support.
19666 * grub-core/fs/affs.c (grub_affs_time): New struct.
19667 (grub_affs_file): New field mtime.
19668 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19669 type. Removed 'size'. New field 'di'. All users updated.
19670 (grub_affs_mount): Simplify checsum checking.
19671 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19672 (grub_affs_dir): Handle mtime.
19673 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19674 (grub_cpio_dir): Likewise.
19675 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19676 (grub_hfs_filerec): New field mtime.
19677 (grub_hfs_dir): Handle mtime.
19678 (grub_hfs_mtime): New function.
19679 (grub_hfs_fs): Register grub_hfs_mtime.
19680 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19681 (grub_iso9660_dir): New field mtime.
19682 (grub_fshelp_node): New field dirent.
19683 (iso9660_to_unixtime): New function.
19684 (iso9660_to_unixtime2): Likewise.
19685 (grub_iso9660_read_symlink): Use node->dirent.
19686 (grub_iso9660_iterate_dir): Likewise.
19687 (grub_iso9660_dir): Set mtime.
19688 (grub_iso9660_mtime): New function.
19689 (grub_iso9660_fs): Register grub_iso9660_mtime.
19690 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19691 (grub_jfs_inode): New fields atime, ctime and mtime.
19692 (grub_jfs_dir): Set mtime.
19693 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19694 * grub-core/fs/ntfs.c (list_file): Set mtime.
19695 (grub_ntfs_dir): Likewise.
19696 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19697 (grub_reiserfs_iterate_dir): Set mtime.
19698 (grub_reiserfs_dir): Likewise.
19699 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19700 (grub_fshelp_node): Likewise.
19701 (grub_sfs_iterate_dir): Set mtime.
19702 (grub_sfs_dir): Likewise.
19703 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19704 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19705 (grub_xfs_inode): New fields atime, mtime, ctime.
19706 (grub_xfs_dir): Set mtime.
19707 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19708 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19709 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19711 Support UDF symlinks.
19713 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19714 (grub_ufs_read_symlink): New function. All users updated.
19716 Check amiga partmap checksum.
19718 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19719 (grub_amiga_partition): Likewise.
19720 (amiga_partition_map_checksum): New function.
19721 (amiga_partition_map_iterate): Check checksum.
19723 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19727 * Makefile.util.def (libgrubmods.a): Add romfs.
19728 * grub-core/Makefile.core.def (romfs): New module.
19729 * grub-core/fs/romfs.c: New file.
19731 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19733 Squashfs v4 support.
19735 * Makefile.util.def (libgrubmods.a): Add squash4.
19736 * grub-core/Makefile.core.def (squash4): New module.
19737 * grub-core/fs/squash4.c: New file.
19738 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19739 disk_input_start, disk_input.
19740 (get_byte): Handle disk_input.
19741 (grub_zlib_disk_read): New function.
19742 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19744 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19745 2011-05-15 Feiran Zheng <famcool@gmail.com>
19747 * Makefile.util.def (libgrubmods.a): Add minix3.
19748 * grub-core/Makefile.core.def (minix3): New module.
19749 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19750 (GRUB_MINIX_BSIZE): Removed.
19751 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19752 (grub_minix_ino_t): New type.
19753 (grub_minix_le_to_cpu_ino): New macro.
19754 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19755 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19756 (grub_minix_data): New field block_size.
19757 (grub_minix_read_file): Handle 64-bit correctly.
19758 * grub-core/fs/minix3.c: New file.
19760 2011-05-15 Tristan Gingold <gingold@free.fr>
19761 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19762 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19766 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19767 * configure.ac: Add ia64-efi target.
19768 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19769 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19770 * gentpl.py: Add ia64_efi platform.
19771 Rename x86_efi to efi and Add ia64-efi. All users updated.
19772 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19773 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19774 Remove kern/generic/rtc_get_time_ms.c on EFI.
19775 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19776 kern/ia64/dl_helper.c on ia64-efi.
19777 Add kern/emu/cache.c on emu.
19778 (linux): Use on loader/ia64/efi/linux.c on ia64.
19779 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19780 whether symbol is a function.
19781 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19782 (grub_symbol): New field 'isfunc'.
19783 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19784 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19785 (grub_dl_load_segments): Place all sections into the same region.
19786 [__ia64__]: Create trampolines and got.
19787 [GRUB_MACHINE_EMU]: Call mprotect.
19788 (grub_dl_resolve_symbols): Resolve symbol type as well.
19789 [__ia64__]: Create function descriptors.
19790 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19791 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19792 (grub_get_rtc): New function.
19793 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19794 * grub-core/kern/emu/cache.S: Renamed to ...
19795 * grub-core/kern/emu/cache_s.S: ... this.
19796 [__ia64__]: Add a nop.
19797 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19798 [__ia64__]: New function.
19799 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19800 * grub-core/kern/ia64/dl.c: New file.
19801 * grub-core/kern/ia64/dl_helper.c: Likewise.
19802 * grub-core/kern/ia64/efi/init.c: New file.
19803 * grub-core/kern/ia64/efi/startup.S: Likewise.
19804 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19805 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19806 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19807 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19808 * grub-core/loader/ia64/efi/linux.c: New file.
19809 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19810 (GRUB_MOD_DEP): Likewise.
19811 (grub_dl) [__ia64__]: New fields got and tramp.
19812 (grub_dl): New field 'base'.
19813 (grub_dl_register_symbol): New argument isfunc. All users updated.
19814 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19815 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19816 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19817 (grub_ia64_dl_get_tramp_got_size): New proto.
19818 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19819 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19820 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19821 * include/grub/efi/api.h: Skip call wrappers on ia64.
19822 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19823 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19824 * include/grub/elf.h (ELF_ST_INFO): New definition.
19825 * include/grub/ia64/efi/kernel.h: New file.
19826 * include/grub/ia64/efi/memory.h: Likewise.
19827 * include/grub/ia64/efi/time.h: Likewise.
19828 * include/grub/ia64/kernel.h: Likewise.
19829 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19830 * include/grub/ia64/time.h: New file.
19831 * include/grub/ia64/types.h: Likewise.
19832 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19833 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19835 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19836 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19837 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19838 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19840 (EFI64_HEADER_SIZE): New definition. All users updated.
19841 (image_targets): Add ia64-efi.
19842 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19843 jumpers_addr. All users updated.
19844 Create function descriptors.
19845 (count_funcs): New function.
19846 (unaligned_uint32): New struct.
19847 (MASK20): New definition.
19848 (MASK19): Likewise.
19849 (MASKF21): Likewise.
19850 (add_value_to_slot_20b): New function.
19851 (add_value_to_slot_21_real): Likewise.
19852 (add_value_to_slot_21): Likewise.
19853 (ia64_kernel_trampoline): New struct.
19854 (nopm): New variable.
19856 (make_trampoline): New function.
19857 (relocate_addresses): Handle ia64.
19858 (make_reloc_section): Likewise.
19859 (load_image): Likewise.
19861 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19863 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19864 warning. Move variables before code while on it.
19866 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19870 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19871 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19872 * grub-core/boot/mips/loongson/fuloong.S: New file.
19873 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19874 Explicitly init CS5536.
19875 [FULOONG]: Don't use serial until CS5536 is available.
19876 Set GPIO based on dumps.
19877 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19878 [FULOONG]: Handle GPIO and memory controller differences.
19879 Parse machine type in $a2.
19880 * grub-core/boot/mips/startup_raw.S: Determine and save the
19882 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19883 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19884 init on architecture type.
19885 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19886 SIS315E. Don't init at_keyboard on fuloong.
19887 (grub_halt): Support Fuloong.
19888 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19889 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19890 (loongson_machtypes): New array.
19891 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19893 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19894 config. All users updated. Handle CS5536 serial.
19895 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19896 default port on machine type. Register serial as inactive.
19897 * grub-core/video/sis315pro.c: New file.
19898 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19900 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19901 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19902 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19903 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19904 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19905 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19907 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19908 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19910 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19911 (grub_arch_machine): New extern var.
19912 * include/grub/mips/loongson/serial.h
19913 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19914 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19915 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19916 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19917 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19918 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19919 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19920 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19921 * include/grub/term.h (grub_term_register_input_inactive): New inline
19923 (grub_term_register_output_inactive): Likewise.
19924 * include/grub/video.h (grub_video_driver_id): New value
19925 GRUB_VIDEO_DRIVER_SIS315PRO.
19926 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19927 New field "names". All users updated.
19928 New field value IMAGE_FULOONG_FLASH.
19929 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19931 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19933 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19934 and add some clarification.
19936 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19938 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19939 platforms if kernel is compressed.
19941 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19943 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19944 unused modules since currently referrence counter isn't reliable and
19945 there isn't much memory to recover there anyway.
19947 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19949 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19950 rather than resetting it to allow modules to reference themselves
19953 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19955 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19956 counter on dependencies since grub_dl_unref already handles this.
19958 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19960 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19961 on error if not already done.
19963 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19965 Fix few potential memory misusage.
19967 * grub-core/font/font.c (load_font_index): Don't free char_index to
19969 (grub_font_load): Zero-fill font at alloc for safety.
19970 Close file on error.
19971 (free_font): Free bmp_idx.
19973 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19975 * docs/grub.texi (Installation): Fix several outdated claims.
19977 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19979 Handle module_license on windows.
19981 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19983 (insert_string): Make argument const char * instead of char *.
19984 (write_section_data): Handle long section names.
19985 Handle module_license.
19987 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19989 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19990 handle class-free menuentries.
19991 (grub_normal_add_menu_entry): Add a check to be sure.
19993 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19995 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19998 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20000 * configure.ac: Bump version to 1.99.
20002 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20004 Give ATA device a bit more time on first try in order to allow disks
20007 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20008 if dev->present is 1. Reset dev->present on failure.
20009 (grub_ata_device_initialize): Set dev->present to 1.
20010 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20011 (grub_ata_device): New member 'present'.
20013 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20015 * util/grub-mkimage.c (generate_image): Update hash.
20017 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20019 Flush caches on DMA memory.
20021 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20022 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20023 (grub_dma_free): Likewise.
20024 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20026 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20028 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20029 to avoid asm treating ld and sd as macros.
20031 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20033 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20036 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20038 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20039 grub_decompress_core since later would fail if grub_decompress_core
20042 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20044 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20045 R_MIPS_JALR since it's used by newer compiler.
20047 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20049 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20051 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20053 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20054 file_path to 0 for surety.
20055 (grub_chainloader_boot): Set exit_data to NULL.
20056 Unset the loader once done.
20057 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20059 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20061 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20062 unknown key into a dprintf.
20064 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20066 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20067 on first non-existant partition.
20069 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20071 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20073 Reported by: Mark Korenberg.
20075 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20077 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20080 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20082 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20083 before closing to ensure that it will be readable by grub-setup.
20085 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20087 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20088 (devpath_1): Use MAKE_PIWG_PATH.
20089 (devpath_2): Likewise.
20090 (devpath_3): Likewise.
20091 (devpath_4): Likewise.
20092 (devpath_5): Likewise.
20093 (devpath_6): Likewise.
20095 The appleldr.mod was checked that to be binary identical to previous
20098 2011-05-05 Zach <mikezackles>
20100 Support 2010 Macbooks.
20102 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20103 (devs): Add devpath_6.
20105 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20107 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20108 /dev/random. /dev/urandom is good enough for our purposes (salting).
20110 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20112 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20114 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20116 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20119 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20121 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20122 and not 0 on failure.
20124 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20126 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20127 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20128 disk; otherwise grub_fs_probe will not fall back to the next
20130 (grub_pxefs_open): Likewise, for consistency.
20131 Reported and tested by: Ezekiel Grave.
20133 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20135 * tests/partmap_test.in: Don't hardcode path to parted.
20136 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20138 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20140 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20141 of `ls' to find out which devices are available.
20143 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20145 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20146 than source address for efi mmap buffer.
20148 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20150 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20151 wrong action on non-detecting the magic.
20153 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20155 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20156 already supplied by another part of the module (fixes compilation on
20159 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20161 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20162 match the one used by mdadm.
20164 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20166 * po/README: Add instructions for creating po/LINGUAS.
20168 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20170 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20173 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20174 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20175 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20176 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20177 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20178 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20179 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20180 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20181 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20182 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20183 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20184 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20185 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20186 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20187 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20188 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20189 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20190 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20191 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20192 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20193 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20194 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20196 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20198 * grub-core/kern/emu/getroot.c
20199 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20200 test that was incorrectly reintroduced in r3214.
20201 Reported by: Ian Dall. Fixes Savannah bug #33133.
20203 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20205 Fix stack pointer handling in 16-bit relocator.
20207 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20208 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20209 Fixes Ubuntu bug #683904.
20211 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20213 * configure.ac: Bump version to 1.99~rc2.
20215 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20217 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20218 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20219 * grub-core/lib/x86_64/setjmp.S: Likewise.
20220 * grub-core/lib/mips/setjmp.S: Likewise.
20221 * grub-core/lib/powerpc/setjmp.S: Likewise.
20222 * grub-core/lib/sparc64/setjmp.S: Likewise.
20224 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20226 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20227 * grub-core/lib/efi/datetime.c: Likewise.
20229 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20231 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20233 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20234 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20235 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20237 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20239 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20241 (grub_gfxterm_term_init): Likewise.
20243 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20245 Take into account the decorations the computing menu entry width.
20247 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20248 (grub_gfxmenu_create_box): Register get_border_width.
20249 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20251 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20254 2011-04-18 Endres Puschner <code@e7p.de>
20256 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20257 Don't skip first class.
20259 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20261 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20263 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20265 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20267 Complete 64-bit division support.
20269 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20270 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20271 * include/grub/misc.h (grub_divmod64): Rename to ...
20272 (grub_divmod64_full): ... this.
20273 (grub_divmod64): New inline function.
20275 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20277 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20279 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20281 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20282 performing the necessary test.
20284 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20286 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20287 (kfreebsd.elf): Likewise.
20288 (pc-chainloader.elf): Likewise.
20289 (ntldr.elf): Likewise.
20291 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20293 Identify RAID by its UUID rather than (guessed) name.
20295 * grub-core/disk/raid.c (ascii2hex): New function.
20296 (grub_raid_open): Accept mduuid/%s specification.
20297 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20298 (get_mdadm_uuid): ... this.
20299 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20301 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20303 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20306 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20308 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20310 * util/grub.d/20_linux_xen.in: Likewise.
20312 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20314 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20315 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20317 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20318 Build a list of relevant visible mounts using the mnt_id and
20319 parent_mnt_id fields, and then scan that list at the end.
20321 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20323 * docs/grub.texi (normal): New section.
20324 (normal_exit): New section.
20325 (Embedded configuration): Add reference to normal.
20326 (GRUB only offers a rescue shell): Likewise.
20327 * docs/grub-dev.texi (Error Handling): Fix typo.
20329 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20331 * NEWS: Drop obsolete entry about probe-only btrfs support.
20333 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20335 * util/import_gcry.py: Fix typo.
20337 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20339 * NEWS: Add btrfs support.
20341 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20342 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20344 BtrFS support. Written by me (Vladimir) with important bugfixes and
20345 even more important testing by Colin.
20347 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20348 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20349 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20350 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20351 mem_input_off and mem_input. All users updated to accept in-RAM input.
20352 (gzio_seek): New function.
20353 (test_zlib_header): Likewise.
20354 (grub_gzio_read): Likewise.
20355 (grub_zlib_decompress): Likewise.
20356 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20357 Accept partial and non-virtual mounts.
20358 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20359 avoid receiving /dev/dm-X as device.
20360 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20361 Handle bind and partial mounts.
20362 * grub-core/lib/crc.c: New file.
20363 * include/grub/deflate.h: Likewise.
20364 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20366 * include/grub/lib/crc.h: New file.
20368 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20370 Implement automatic module license checking according to new GNU
20373 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20374 (grub_dl_load_core): Use grub_dl_check_license.
20375 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20376 (GRUB_MOD_LICENSE): Likewise.
20377 (GRUB_MOD_DUAL_LICENSE): Likewise.
20378 All modules updated.
20380 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20382 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20383 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20385 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20387 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20389 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20391 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20393 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20396 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20398 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20399 parenthesis in the middle of the filename.
20401 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20403 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20404 rather than trying to put initrd way too high.
20405 Reported by: Ryan Lortie <desrt@desrt.ca>
20407 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20409 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20410 improperly removed string.
20412 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20414 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20416 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20417 (open_device) Likewise.
20418 (grub_util_biosdisk_close): Likewise.
20419 Reported by: Mark Korenberg.
20421 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20423 * util/grub-mkconfig_lib.in: Add missing quotes.
20425 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20427 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20430 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20432 Dynamically count the number of lines for the lower banner.
20434 * grub-core/normal/menu_entry.c (per_term_screen): New member
20436 (print_down): Use num_entries.
20437 (update_screen): Likewise.
20438 (grub_menu_entry_run): Set num_entries.
20439 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20441 (grub_print_message_indented): Move real part to ...
20442 (grub_print_message_indented_real): ... here. Additional argument
20444 (draw_border): Additional argument num_entries.
20445 (print_message): Additional argument dry_run.
20446 (print_entries): Receive menu viewer data.
20447 (grub_menu_init_page): New argment num_entries.
20448 (menu_text_set_chosen_entry): Use num_entries.
20449 (grub_menu_try_text): Likewise.
20450 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20452 (grub_ucs4_count_lines): New function.
20453 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20454 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20455 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20456 (grub_term_border_height): Likewise.
20457 (grub_term_num_entries): Likewise.
20459 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20461 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20462 Remove now unused string.
20464 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20466 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20468 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20470 (Comment): Fix typo.
20471 (Getting started): General copy-editing.
20472 (Typical Development Experience): Likewise.
20473 (Error Handling): Likewise.
20474 (Video API): Likewise.
20476 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20478 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20483 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20486 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20488 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20489 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20492 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20494 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20495 grub_strcpy since the lines aren't necessarily 0-terminated.
20497 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20499 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20502 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20504 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20505 (GRUB_MOD_INIT): DEVICE isn't optional.
20507 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20509 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20510 word on new line if it's too long anyway. Fixes a hang.
20512 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20514 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20516 * util/grub-setup.c (main): Reuse md device name if available.
20517 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20518 not GRUB name as argument.
20519 Based on patch by: Florian Wagner <fwagner>.
20521 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20523 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20524 Place mbi on low memory for better compatibility.
20526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20528 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20530 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20531 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20533 * autogen.sh: Ensure that collate and ctype locale is C.
20534 * conf/Makefile.common: Likewise.
20536 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20538 * grub-core/normal/menu.c: Add missing include.
20540 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20542 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20544 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20546 * util/grub-mkconfig.in: Ignore emacsen backup.
20548 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20550 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20552 (grub_util_biosdisk_close): Likewise.
20554 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20556 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20557 const attribute and use grub_isdigit.
20559 2011-04-06 Andrey <dev_null@ukr.net>
20561 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20564 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20566 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20567 useful grub_dprintf's.
20569 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20571 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20573 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20575 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20577 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20579 Output errors if theme loading failed.
20581 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20582 grub_gfxterm_fullscreen on error paths to ...
20583 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20584 theme loading error.
20586 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20588 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20589 space for older compilers.
20590 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20592 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20594 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20595 and report them as not RAID members since they are useless for GRUB.
20596 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20598 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20600 Increase LVM implementation robustness in order not to crash on
20601 configurations like pvmove. Previously code assumed that in some places
20602 only lvs or only pvs are used whereas it seems that they are used
20605 * grub-core/disk/lvm.c (read_node): New function.
20606 (read_lv): Use read_node.
20607 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20608 Match volumes only at the end when all lvs are found. Take both
20609 pvs (first) and lvs (second) into account.
20610 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20611 mirror_* into node_*. All users updated.
20612 (grub_lvm_stripe): Merge this ...
20613 (grub_lvm_mirror): ... and this ...
20614 (grub_lvm_node): ... into this. All users updated.
20616 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20618 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20619 of function to allow further scanning for LVMs.
20621 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20623 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20624 on failed seek as it breaks open fd reusage.
20626 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20628 * util/grub-install.in: Add a recommendation to use --recheck before
20631 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20633 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20636 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20638 GRUB developper manual based on existing Internals section and
20639 contributions by the various authors with active copyright assignment.
20641 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20642 * docs/font_char_metrics.png: New file.
20643 * docs/font_char_metrics.txt: Likewise.
20644 * docs/grub-dev.texi: Likewise.
20645 * docs/grub.texi (Internals): Move from here ...
20646 * docs/grub-dev.texi: ... here.
20648 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20650 Store the loopback device as data on loopback grub_disk structures,
20651 rather than the file it points to. This fixes use of freed memory
20652 if an existing loopback device is replaced.
20654 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20655 disk->data, not dev->file.
20656 (grub_loopback_read): Adjust file assignment to match.
20657 Fixes Ubuntu bug #742967.
20659 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20661 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20662 when replacing an existing device.
20664 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20666 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20667 memory corruptions.
20669 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20671 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20672 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20673 (grub_jfs_read_inode): Likewise.
20674 (grub_jfs_opendir): Likewise. Remove now useless casts.
20675 (grub_jfs_getent): Likewise.
20676 Make ino a grub_uint32_t rather than int.
20677 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20678 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20679 division and module with bit operations.
20680 (grub_jfs_find_file): Make ino a grub_uint32_t.
20681 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20683 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20685 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20686 warning. (This was in fact always initialised before use, but GCC
20687 wasn't smart enough to prove that.)
20688 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20690 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20692 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20694 (efi_wrap_1): Likewise.
20695 (efi_wrap_2): Likewise.
20696 (efi_wrap_3): Likewise.
20697 (efi_wrap_4): Likewise.
20698 (efi_wrap_5): Likewise.
20699 (efi_wrap_6): Likewise.
20700 (efi_wrap_10): Likewise.
20701 Based on information by: Red Hat/Peter Jones.
20703 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20705 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20706 set-but-not-used variable.
20708 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20710 * docs/grub.texi (Simple configuration): Be more explicit about
20711 GRUB_DEFAULT, and add an example.
20712 Reported by: Leslie Rhorer.
20714 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20716 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20719 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20721 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20722 * util/grub.d/20_linux_xen.in: Likewise.
20724 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20726 * util/grub.d/10_linux.in: Try alternative config filenames where
20727 we parse config file.
20728 * util/grub.d/20_linux_xen.in: Likewise.
20730 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20732 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20733 * util/grub.d/20_linux_xen.in: Likewise.
20735 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20737 * grub-core/disk/raid.c (insert_array): Add few potentially
20738 useful grub_util_info.
20739 (grub_raid_register): Likewise.
20741 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20743 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20744 Preserve partition number in mdadm code path.
20746 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20748 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20749 few potentially useful grub_util_info.
20751 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20753 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20755 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20757 * docs/grub.texi (default): Use @example rather than nested
20758 itemized lists to avoid breaking gendocs.
20760 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20762 * docs/grub.texi (Future): Update.
20764 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20766 * docs/grub.texi (Environment): New chapter.
20767 (Changes from GRUB Legacy): Link to "Environment block" section for
20768 details of limitations.
20769 (Simple configuration): Likewise. Link to documentation of gfxmode
20770 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20772 (Shell-like scripting): Note that normal variables are stored in the
20774 (gettext): Link to documentation of lang and locale_dir.
20775 (list_env): New section.
20776 (load_env): New section.
20777 (save_env): New section.
20779 (Reporting bugs): Fix typo.
20781 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20783 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20786 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20788 * grub-core/term/at_keyboard.c (set_scancodes)
20789 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20791 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20793 * docs/grub.texi (Menu-specific commands): Remove some semantics
20794 that were true in GRUB Legacy but not in GRUB 2.
20795 (submenu): New section.
20796 (false): New section.
20797 (read): New section.
20798 (true): New section.
20800 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20802 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20804 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20806 * docs/grub.texi (Simple configuration): Explain some of the
20807 current limitations of grub-mkconfig.
20808 Reported by: Leslie Rhorer.
20810 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20812 Old macs search for boot.efi rather than for bootia32.efi.
20814 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20815 * util/grub-mkrescue.in: Likewise.
20816 Suggested by: Peter Jones.
20818 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20820 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20822 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20824 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20825 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20826 (grub_lvm_mirror): New struct.
20827 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20828 (grub_lvm_iterate): Iterate only visible volumes.
20829 (grub_lvm_read): Factor out to ..
20830 (read_lv): ... this. Support mirrors.
20831 (grub_lvm_read): New wrapper function.
20832 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20833 stripped or mirrored.
20835 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20837 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20839 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20841 * docs/grub.texi (loopback): New section.
20843 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20845 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20848 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20850 * docs/grub.texi (BIOS installation): New section, partly based on
20851 previous text in other sections.
20852 (Installing GRUB using grub-install): Replace BIOS discussion with a
20854 (Images): Likewise.
20856 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20858 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20859 [HAVE_DIOCGDINFO]: Add safety checks.
20861 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20863 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20864 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20866 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20868 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20869 real_sb->size is zero (e.g. RAID-0), get the disk size from
20870 real_sb->data_size instead.
20871 Fixes Ubuntu bug #743136.
20873 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20875 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20876 printf clauses for printing size and start.
20878 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20880 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20881 Reported and tested by: Timothy Nikkel.
20883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20885 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20886 (dirty_region_add_real): ... this.
20887 (dirty_region_add): Don't discard margin refresh when performing
20890 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20892 * grub-core/lib/relocator.c (allocate_regstart)
20893 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20894 terminals are capabple of malloc-free operation.
20895 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20896 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20898 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20900 * util/grub-setup.c: Copy the partition table zone if floppy support
20901 is disabled, even if no partition table is found.
20903 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20904 during POST if an invalid partition table is contained in the PBR
20905 of the active partition when GRUB is installed to a partition.
20907 2011-03-28 Colin Watson <cjwatson@debian.org>
20909 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20912 2011-03-28 Colin Watson <cjwatson@debian.org>
20914 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20915 to be specific about what kind of RAID device we're scanning for.
20917 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20919 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20920 return freed string.
20922 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20924 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20926 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20928 Use libgeom on FreeBSD to detect partitions.
20930 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20931 (grub-mkrelpath): Likewise.
20932 (grub-script-check): Likewise.
20933 (grub-editenv): Likewise.
20934 (grub-mkpasswd-pbkdf2): Likewise.
20935 (grub-fstest): Likewise.
20936 (grub-mkfont): Likewise.
20937 (grub-mkdevicemap): Likewise.
20938 (grub-probe): Likewise.
20939 (grub-setup): Likewise.
20940 (grub-ofpathname): Likewise.
20941 (grub-mklayout): Likewise.
20942 (example_unit_test): Likewise.
20943 (grub-menulst2cfg): Likewise.
20944 * grub-core/Makefile.core.def (grub-emu): Likewise.
20945 (grub-emu-lite): Likewise.
20946 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20947 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20948 define HAVE_DIOCGDINFO.
20949 (follow_geom_up) [FreeBSD]: New function.
20950 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20951 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20952 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20953 unconditionally of HAVE_DIOCGDINFO.
20955 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20957 Fix FreeBSD compilation problem.
20959 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20960 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20962 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20964 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20965 Switch back to page zero before loading a kernel, since some kernel
20966 drivers expect that.
20967 Thanks to: Felix Kuehling.
20969 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20971 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20972 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20973 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20975 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20977 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20978 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20980 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20982 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20983 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20984 malloc is disabled.
20986 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20988 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20989 for modules headers when counting the needed allocation size.
20991 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20993 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20994 if no ASCII character is found to prevent crash.
20996 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20998 * grub-core/video/bitmap.c (match_extension): Ignore case.
21000 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21002 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21004 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21006 * grub-core/script/parser.y: Declare "time" as valid argument.
21008 2011-03-23 Peter Jones <pjones@redhat.com>
21010 Fix incorrect assert failure reporting.
21012 * grub-core/tests/example_functional_test.c (example_test): Add
21014 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21015 (failure_start): ...this. Check that malloc succeeded.
21016 Don't call xvasprintf. Return failure struct.
21017 (failure_append_vtext): New function.
21018 (failure_append_text): Likewise.
21019 (add_failure): Likewise.
21020 (grub_test_assert_helper): Likewise.
21021 * include/grub/test.h (grub_test_assert_helper): New declaration.
21022 (grub_test_assert): Macro rewritten.
21024 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21026 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21028 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21030 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21032 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21034 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21035 into GRUB-style one.
21037 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21039 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21040 error and not grub_errno.
21041 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21043 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21045 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21046 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21050 * grub-core/efiemu/i386/pc/cfgtables.c
21051 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21052 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21053 (grub_xnu_unlock): Likewise.
21054 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21056 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21058 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21059 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21060 * grub-core/commands/hashsum.c (aliases): Likewise.
21061 * grub-core/commands/setpci.c (pci_registers): Likewise.
21062 * grub-core/disk/usbms.c (attach_hook): Likewise.
21063 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21064 (zio_checksum_table): Likewise.
21065 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21066 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21067 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21068 * grub-core/lib/relocator.c (leftovers): Likewise.
21069 (extra_blocks): Likewise.
21070 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21071 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21072 (modules_last): Likewise.
21073 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21074 (devices): Likewise.
21075 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21076 (modules_last): Likewise.
21077 * grub-core/normal/auth.c (users): Likewise.
21078 * grub-core/normal/context.c (initial_menu): Likewise.
21079 (current_menu): Likewise.
21080 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21081 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21082 (grub_serial_terminfo_input_template): Likewise.
21083 (grub_serial_terminfo_output_template): Likewise.
21084 (grub_serial_terminfo_input): Likewise.
21085 (grub_serial_terminfo_output): Likewise.
21086 (registered): Likewise.
21087 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21089 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21091 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21092 grub_video_mode_type_t.
21093 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21094 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21095 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21097 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21099 * util/grub-install.in: Correct the x86-64 name as x86_64.
21101 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21103 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21104 initial chunk read from the kernel always includes GRUB's multiboot
21105 header, which is now outside the first sector.
21107 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21109 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21110 cached mmap_size, so that this works correctly when called multiple
21112 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21114 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21116 * docs/grub.texi (Simple configuration): Tidy up formatting.
21118 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21120 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21121 Set-but-not-used variable removed.
21123 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21125 Workaround yet another IEEE1275 bug.
21127 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21128 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21129 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21130 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21132 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21133 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21135 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21137 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21140 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21142 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21143 empty, since in that case we can only generate either nothing or a
21144 syntactically invalid configuration file.
21145 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21147 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21149 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21150 (Making a GRUB bootable CD-ROM): Likewise.
21151 (Invoking grub-mkrescue): New section.
21152 Reported by: Yann Dirson. Fixes Debian bug #612585.
21154 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21156 * util/grub-install.in: Remove unnecessary brackets from tr
21158 * util/grub.d/10_hurd.in: Likewise.
21159 * util/grub.d/10_kfreebsd.in: Likewise.
21160 * util/grub.d/10_linux.in: Likewise.
21161 * util/grub.d/20_linux_xen.in: Likewise.
21162 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21164 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21166 * include/grub/file.h (not_easly_seekable): Rename to ...
21167 (not_easily_seekable): ... this. Update all users.
21169 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21171 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21174 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21176 * util/grub-mkimage.c (generate_image): Refuse to create the images
21177 bigger than the actual flash (512K) in Loongson machines. 512K is also
21178 the biggest chip supported by them.
21180 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21182 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21184 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21187 super_offset field.
21189 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21191 * util/grub-install.in: Ignore install device on platforms
21192 where it doesn't make sense. Always use UUIDs except on pc, efi and
21194 Reported by: Daniel Kahn Gillmor.
21196 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21198 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21200 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21202 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21203 (iterate_real): Don't rely on partition being non-NULL.
21205 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21207 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21208 supported platforms. Put a compile time assert for this rather than
21209 generate a warning with 32-bit shift.
21211 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21213 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21214 logical expression more readable.
21216 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21218 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21219 even if some elements have a name.
21220 Reported by: Alexander GQ Gerasiov.
21222 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21224 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21225 path unreadable if `grub-probe -t abstraction' fails, for example if
21226 memberlist fails on an LVM volume group.
21227 Reported by: Darius Jahandarie.
21229 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21231 * docs/grub.texi (Simple configuration): Document
21232 GRUB_PRELOAD_MODULES.
21234 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21236 * .bzrignore: Remove nonexistent grub-pbkdf2.
21238 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21240 * configure.ac: Bump version to 1.99~rc1.
21242 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21244 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21247 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21249 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21252 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21254 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21256 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21258 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21261 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21263 Fix compilation on cygwin.
21265 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21266 -R .drectve on cygwin.
21267 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21268 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21269 (COND_CYGWIN): New condition.
21270 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21271 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21272 not @TARGET_OBJ2ELF@.
21273 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21274 type to determine whether aux is to be used.
21276 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21278 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21279 realpath'ed device string.
21280 Handle floppy (somewhat).
21281 Issue error in unknown case rather than garbage.
21282 Reported by: Axel Beckert.
21284 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21286 * util/grub.d/00_header.in (load_video): Handle the case when no video
21288 Thanks to: Axel Beckert.
21290 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21292 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21293 variable. Fixes problem on big endian platforms.
21295 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21297 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21298 It doesn't work well there.
21300 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21302 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21304 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21305 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21308 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21310 Use alias->path rather than buggy "canon".
21312 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21313 (ofdisk_hash_add): New argument curcan. All users updated.
21315 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21317 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21319 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21321 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21322 loadmask before doing any calculations. Use correct type for offset.
21323 (grub_linux_load64): Likewise.
21325 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21327 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21329 (console_grub_equivalences_unshift): Likewise.
21330 Reported by: Daniel Dehennin.
21332 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21334 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21335 (set_env_limn_ro): Likewise.
21336 (GRUB_MOD_INIT): Likewise.
21337 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21338 ARRAY_SIZE while on it.
21339 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21340 * grub-core/normal/context.c (grub_env_export): Move from here ...
21341 * grub-core/kern/env.c (grub_env_export): ... here.
21342 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21344 * grub-core/kern/main.c (grub_main): Export root and prefix.
21345 * include/grub/env.h (grub_env_export): Export.
21346 Reported by: Seth Goldberg.
21348 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21350 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21351 Take into account space used by ELF sections and multiboot palette.
21352 Reported by: Grégoire Sutre.
21354 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21358 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21360 Pass more appropriate video id to Linux.
21362 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21363 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21365 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21366 shift params->lfb_size.
21367 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21369 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21371 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21373 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21375 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21376 separator and pass bootpath/devid even if only one of them is available.
21377 Reported by: Seth Goldberg.
21379 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21381 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21382 implementations bug on them.
21384 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21386 (filter_memory_map): Likewise.
21388 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21390 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21391 Reported by: nebuchadnezzar.
21393 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21395 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21396 Reported by: nebuchadnezzar.
21398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21400 Submenu default support.
21402 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21403 auto_boot. All users updated.
21405 Handle chosen and default with submenus.
21406 (grub_menu_execute_with_fallback): Declared static.
21407 Don't notify failure if autobooted. Upper level does it.
21408 (menuentry_eq): New function.
21409 (get_entry_number): Use menuentry_eq.
21410 (show_menu): New parameter "autobooted". All users updated.
21411 (grub_show_menu): Likewise.
21412 * include/grub/normal.h (grub_show_menu): Likewise.
21413 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21414 (grub_menu_execute_with_fallback): Likewise.
21416 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21418 * util/grub-mklayout.c (usage): Update help text.
21420 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21422 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21424 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21426 * util/grub-menulst2cfg.c (main): Trim the line.
21428 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21430 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21431 (grub_machine_init): Don't check amount of low memory as reportedly
21432 INT 12h can be broken and if low memory is too low we wouldn't have
21433 gotten into grub_machine_init anyway.
21435 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21437 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21438 (grub_machine_mmap_iterate): Take low memory into account
21440 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21442 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21444 Reported by: TiCPU.
21446 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21448 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21451 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21453 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21454 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21456 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21458 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21459 openbsd and netbsd types being in part_bsd module.
21461 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21463 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21464 (_FILE_OFFSET_BITS): Likewise.
21465 Reported by: Seth Goldberg.
21467 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21469 * configure.ac: Check for libdevmapper header.
21471 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21473 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21475 (fzap_lookup): Likewise.
21476 (dnode_get): Likewise.
21477 (make_mdn): Likewise.
21478 (zfs_mount): Likewise.
21479 (fzap_iterate): Use temporary pointer to avoid aliasing.
21480 (grub_zfs_read): Likewise.
21481 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21482 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21483 pointers to avoid aliasing.
21484 (grub_cmd_xnu_kernel64): Likewise.
21485 (grub_xnu_load_driver): Likewise.
21487 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21489 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21491 (grub_cmd_terminal_output): Likewise.
21492 Reported and tested by: Grégoire Sutre.
21494 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21496 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21498 Reported and tested by: Grégoire Sutre.
21500 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21502 * configure.ac: Do CPU substitution even if it's specified explicitly.
21503 Reported and tested by: Alain Greppin.
21505 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21507 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21508 Reported and tested by: Alain Greppin.
21510 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21512 Satisfy some bison versions need for inttypes.h.
21514 * grub-core/lib/posix_wrap/inttypes.h: New file.
21515 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21516 (int16_t): Likewise.
21517 (int32_t): Likewise.
21518 (int64_t): Likewise.
21519 Reported and tested by: Alain Greppin.
21521 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21523 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21524 Silence spurious warning.
21525 Reported and tested by: Alain Greppin.
21527 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21529 * docs/grub.texi (Support automatic decompression): Update with xz
21530 decompression support.
21532 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21534 Improve loaders' kernel command line handling.
21536 * grub-core/lib/cmdline.c: New file.
21537 * include/grub/lib/cmdline.h: Likewise.
21538 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21539 grub_create_loader_cmdline to create kernel command line.
21540 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21541 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21542 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21543 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21544 (linux): Add lib/cmdline.c on common.
21546 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21548 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21549 inopos might be unaligned.
21551 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21553 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21554 endian transformations.
21555 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21556 Based on report by: Doug Nazar.
21558 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21560 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21561 array->members[i].start_sector.
21562 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21564 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21566 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21567 Reported and tested by: Grégoire Sutre.
21569 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21571 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21572 avoid causing test failures by clearing the screen.
21574 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21576 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21577 Fix prefix check to handle the case where dir ends with a slash
21578 (most significantly, "/" itself).
21579 Reported by: Michael Vogt.
21581 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21583 Run terminfo_cls on initing terminfo output to clear the screen and
21584 move the cursor to (0,0).
21586 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21587 Call grub_terminfo_output_init.
21588 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21589 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21590 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21592 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21594 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21597 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21599 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21602 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21604 The E820 type 5 is BADRAM, not EXEC_CODE.
21606 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21607 (GRUB_E820_BADRAM): New define.
21608 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21609 into reserved. Propagate BADRAM.
21610 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21611 (GRUB_E820_BADRAM): New define.
21613 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21615 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21616 Ignore the memory post-4G.
21617 (grub_relocator_firmware_alloc_region): Additional debug statement.
21619 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21621 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21623 Reported by: David Pravec.
21625 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21627 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21630 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21632 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21634 (grub_reed_solomon_recover): Likewise.
21636 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21638 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21640 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21642 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21645 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21647 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21648 descriptions of extract_legacy_entries_source and
21649 extract_legacy_entries_configfile.
21650 Reported by: Seung Soo, Ha.
21652 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21654 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21655 on devices that do not implement function 0.
21657 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21659 * grub-core/fs/hfsplus.c: Make parent unsigned.
21660 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21662 (grub_hfsplus_cmp_extkey): Likewise
21664 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21666 * util/grub-install.in: Correctly use bootloader_id and not
21667 GRUB_DISTRIBUTOR on efibootmgr line.
21669 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21671 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21673 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21675 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21676 Xen and reorder menu item wording to make it clearer that this entry
21677 will launch Xen. Print separate messages when loading Xen and
21680 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21682 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21683 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21684 loop in case of incorrect amiga partmap.
21686 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21688 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21689 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21692 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21694 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21696 Reported by: crocket
21698 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21700 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21702 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21704 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21706 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21708 (grub_cmd_xnu_kextdir): Likewise.
21709 (grub_cmd_xnu_splash): Likewise.
21711 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21713 Avoid using Reed-Solomon with 0 redundancy.
21715 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21716 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21718 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21719 (grub_reed_solomon_recover): Likewise.
21721 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21723 Don't use disk subsystem in freebsd_boot.
21725 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21726 (freebsd_biosdev): Likewise.
21727 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21728 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21730 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21732 Handling of files of unknown size is currently limited. They can't be
21733 used e.g. for initrd or modules. Moreover gzip handling of not
21734 easily seekable files is buggy. Disable unknown file size for now. May
21735 be inefficient but works.
21737 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21738 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21740 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21742 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21745 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21747 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21749 2010-12-25 Shea Levy <shlevy>
21751 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21753 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21755 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21756 Windows Server 2008.
21757 Reported by: Devin Giddings.
21759 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21761 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21762 writing an error message because of async power management.
21763 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21764 (grub_reboot): Likewise.
21766 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21768 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21769 keep unit tests from failing when they shouldn't.
21771 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21773 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21774 previous patch increased the size of the RS code by 20 bytes (at
21775 least with gcc-4.4), so increase this by 20 bytes to match.
21776 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21778 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21780 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21781 scratch area. Make sure to initialise chosen in standalone mode as
21782 well as non-standalone.
21783 Reported by: Robert Hooker and Andy Whitcroft.
21784 Tested by: Andy Whitcroft.
21786 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21788 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21789 constructing a new unescaped string and passing it to grub_xputs in
21790 one go, rather than passing characters to grub_printf one at a time.
21792 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21794 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21795 initialising utf16.
21797 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21799 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21800 comment. Add an extra layer of quotation, requiring the output of
21801 this function to be used in a printf format string.
21802 (gettext_printf): New function.
21803 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21804 Extract translatable strings from here-documents and use a temporary
21805 variable instead, so that xgettext can find them.
21806 * util/grub.d/10_kfreebsd.in: Likewise.
21807 * util/grub.d/10_linux.in: Likewise.
21808 * util/grub.d/20_linux_xen.in: Likewise.
21810 * po/grub.d.sed: New file.
21811 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21812 arguments. Set c-format flags on all strings extracted from
21813 util/grub.d/ (xgettext refuses to include these itself for strings
21814 it extracted from a shell file, but these really are c-format).
21816 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21818 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21819 Avoid next pointing to nowhere.
21821 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21823 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21824 rather than assuming than rootblock is exactly in the middle.
21825 (grub_affs_label): Likewise.
21827 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21829 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21830 reserved_first_sector to 0.
21831 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21832 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21833 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21835 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21837 Fix handling of UTF-16 UDF labels.
21839 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21840 (read_string): .. here.
21841 (grub_udf_label): Use read_string.
21843 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21845 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21846 editor under argument scope.
21847 Reported by: Jordan Uggla
21849 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21851 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21853 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21855 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21856 line, and other keys scroll an entire page (previous handling was
21857 for \r and \n to scroll a page and other keys to scroll two lines).
21859 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21861 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21862 Set ptrdest to correct get_physical_target_address rather than
21863 incorrect get_virtual_current_address.
21865 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21867 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21868 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21870 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21872 * .bzrignore: Ignore grub-core/rs_decoder.S.
21874 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21876 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21877 .mo/.mo.gz opening sequence to ...
21878 (grub_mofile_open_lang): ... here.
21879 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21880 * util/grub.d/00_header.in (grub_lang): Include country part of
21882 Reported by: Mario Limonciello.
21884 2010-12-09 Robert Millan <rmh@gnu.org>
21886 * NEWS: Document addition of ZFS support.
21888 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21890 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21891 rather than `/ 2', as the latter requires -Wa,--divide which would
21892 require bumping our minimum binutils version.
21894 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21896 * util/grub-script-check.c (main): Print script line number on
21899 2010-12-01 Robert Millan <rmh@gnu.org>
21901 * grub-core/fs/zfs/zfs.c: New file.
21902 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21903 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21904 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21905 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21907 * include/grub/zfs/dmu.h: Likewise.
21908 * include/grub/zfs/dmu_objset.h: Likewise.
21909 * include/grub/zfs/dnode.h: Likewise.
21910 * include/grub/zfs/dsl_dataset.h: Likewise.
21911 * include/grub/zfs/dsl_dir.h: Likewise.
21912 * include/grub/zfs/sa_impl.h: Likewise.
21913 * include/grub/zfs/spa.h: Likewise.
21914 * include/grub/zfs/uberblock_impl.h: Likewise.
21915 * include/grub/zfs/vdev_impl.h: Likewise.
21916 * include/grub/zfs/zap_impl.h: Likewise.
21917 * include/grub/zfs/zap_leaf.h: Likewise.
21918 * include/grub/zfs/zfs.h: Likewise.
21919 * include/grub/zfs/zfs_acl.h: Likewise.
21920 * include/grub/zfs/zfs_znode.h: Likewise.
21921 * include/grub/zfs/zil.h: Likewise.
21922 * include/grub/zfs/zio.h: Likewise.
21923 * include/grub/zfs/zio_checksum.h: Likewise.
21925 * Makefile.util.def: Build ZFS into libgrubmods.
21926 * grub-core/Makefile.core.def: Build zfs.mod.
21928 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21930 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21932 * grub-core/commands/wildcard.c (match_files): Likewise.
21934 2010-11-30 Robert Millan <rmh@gnu.org>
21936 * grub-core/loader/i386/bsd.c
21937 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21938 whether kernel is loaded using grub_loader_is_loaded(), rather
21939 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21940 certain error conditions.
21942 2010-11-30 Robert Millan <rmh@gnu.org>
21944 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21945 (grub_cmd_echo): Call grub_refresh() after printing a message.
21947 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21949 Avoid using tricks for initialising endian variables.
21951 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21953 (GRUB_MOD_INIT): Don't byte-swap.
21954 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21955 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21956 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21957 (grub_swap_bytes32_compile_time): Likewise.
21958 (grub_cpu_to_le32_compile_time): Likewise.
21959 (grub_cpu_to_le16_compile_time): Likewise.
21961 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21963 * util/grub-setup.c (setup): Stop recommending --force. People who
21964 understand the dangers of blocklists are able to find this option
21965 anyway and the ones who don't shouldn't use it anyway.
21967 2010-11-26 Robert Millan <rmh@gnu.org>
21969 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21972 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21974 Fix LVM-on-RAID probing.
21976 * util/grub-probe.c (probe): Remember which disk was detected as
21977 RAID (perhaps an LVM physical volume). Use that disk's raidname
21978 rather than that of the top-level disk.
21980 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21982 Fix cmdline argument quotes for setparams command of menuentry
21985 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21986 quotes for arguments.
21987 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21988 grub_strchrsub function instead.
21990 * include/grub/misc.h (grub_strchrsub): New function.
21992 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21994 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21995 effort by skipping "." and ".." entries up-front.
21996 Suggested by: Michael Lazarev.
21998 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22000 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22001 ldflags to ldadd, to fix link line ordering.
22002 (none_decompress): Likewise.
22004 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22006 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22008 (grub-emu-lite): Remove kern/emu/cache.S.
22010 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22012 * util/deviceiter.c (compare_devices): If the by-id link for a
22013 device couldn't be resolved, fall back to sorting by the by-id link
22014 rather than segfaulting.
22015 Reported and tested by: Daniel Mierswa.
22017 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22019 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22020 ldflags, to fix link line ordering.
22022 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22024 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22025 linkers are picky about this.
22027 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22029 * grub-core/Makefile.am (command.lst): Adjust sed expression
22030 ordering so that extended and priority commands aren't treated as
22033 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22035 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22036 Remove byte-swapping function calls, which are not valid in
22037 structure initialisers.
22038 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22040 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22041 grub_gpt_partition_type_bios_boot.
22043 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22045 Fix test program build on GNU/kFreeBSD.
22047 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22048 $(LIBNVPAIR)' library dependencies.
22050 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22052 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22054 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22056 * util/grub-install.in: Remove excessive quoting that broke
22057 installations to RAID devices.
22059 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22061 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22062 bootloader version instead of 0.
22064 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22066 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22069 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22071 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22072 retrieve the metadat sector if size isn't known.
22073 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22075 2010-11-18 Robert Millan <rmh@gnu.org>
22077 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22078 with grub_memcmp().
22080 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22082 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22084 Reported by: Jordan Uggla.
22086 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22088 Make better UTF compliant.
22090 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22091 sequences as incorrect.
22092 (grub_is_valid_utf8): Likewise.
22093 (grub_utf8_to_ucs4): Likewise.
22094 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22095 (grub_ucs4_to_utf8_alloc): Likewise.
22096 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22098 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22100 Make legacy_source behave like source.
22102 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22104 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22106 2010-11-16 Colin Watson <cjwatson@debian.org>
22108 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22109 (-Wunused implies -Wunused-parameter, but not vice versa).
22111 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22113 * configure.ac: Make error messages less confusing by testing for
22114 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22115 accepted, but produces a diagnostic if something else is wrong).
22117 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22119 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22120 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22122 (grub_keyboard_controller_init)
22123 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22124 read the initial state since controller isn't inited yet.
22126 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22128 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22129 allocate_regbeg may need to create new chunk header.
22131 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22133 Fix quoting in legacy parser.
22135 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22137 (grub_legacy_parse): Likewise.
22138 Reported by: Jordan Uggla.
22139 Tested by: Jordan Uggla.
22141 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22143 Don't add -lgcc on i386 and x86_64.
22145 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22146 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22147 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22149 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22151 * configure.ac: Add -Wno-trampolines when supported.
22153 2010-11-14 Modestas Vainius <modax@debian.org>
22155 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22158 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22160 Add generic logical block size support for UDF.
22162 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22163 (GRUB_UDF_BLKSZ): Removed.
22164 (struct grub_udf_data): New field "lbshift" to hold the logical block
22165 size of the file system in log2 format. All users updated.
22166 (sblocklist): Change type to unsigned.
22167 (grub_udf_mount): Change type of "sblklist" to unsigned.
22168 Move AVDP search before VRS recognition, because the latter requires
22169 knowledge of the logical block size, which is detected during the
22171 Detect and validate logical block size during AVDP search, adding
22172 support for block sizes 512, 1024 and 4096.
22173 Make VRS recognition independent of block size.
22175 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22177 Properly handle deleted files on UDF.
22179 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22180 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22183 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22185 Support reading files larger than 2 GiB.
22187 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22188 "offset" to grub_off_t.
22189 (grub_udf_read_file): Likewise for parameter "pos".
22191 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22193 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22195 (Simple configuration): Refer to Changes from GRUB Legacy about
22196 save_env availability.
22198 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22200 * util/grub-install.in: Ignore empty partition table detection
22201 instead of trying to include part_ module.
22203 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22205 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22206 LVM on RAID support.
22208 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22210 Properly define WORDS_BIGENDIAN in wrapped environments.
22212 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22214 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22216 Reported by: Manoel Rebelo Abranches.
22217 Tested by: Manoel Rebelo Abranches.
22219 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22221 * util/grub-mkconfig.in: Fix quoting.
22223 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22225 Support big ext2 files.
22227 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22228 (grub_ext2_read_block): Support triple indirect blocks.
22229 (grub_ext2_read_file): Use 64-bit types and read size_high.
22230 (grub_ext2_open): Read size_high.
22231 Reported by: Ximin Luo.
22232 Tested by: Manoel Rebelo Abranches.
22234 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22236 * util/grub-install.in: Handle filenames containing spaces.
22237 Reported by: Jordan Uggla.
22238 Tested by: Jordan Uggla.
22240 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22242 * util/grub-mkconfig.in (grub_script_check): New variable.
22243 Use grub_script_check instead of grub-script-check.
22244 Reported by: Barry Jackson.
22246 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22248 * docs/grub.texi (menu): Correct the order.
22249 Reported by: D. Hugh Redelmeier.
22251 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22253 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22256 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22258 * include/grub/elfload.h (grub_elf32_size): New parameter.
22260 Return maximum segments alignment.
22261 (grub_elf64_size): Likewise.
22262 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22263 Return maximum segments alignment.
22264 (grub_elf64_size): Likewise.
22265 * grub-core/loader/powerpc/ieee1275/linux.c:
22266 (grub_linux_claimmap_iterate): New function. Uses the
22267 "available" property in the "memory" node for memory allocation
22268 for kernel in the PowerPC loader.
22269 (grub_linux_load32): Correctly find linux entry point offset.
22270 (grub_linux_load64): Likewise.
22272 2010-11-07 Robert Millan <rmh@gnu.org>
22274 On mips-yeeloong, build with -march=loongson2f when this flag is
22275 available (GCC >= 4.4).
22276 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22278 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22279 or otherwise add -march=mips3.
22281 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22283 Suppress shell expansion on echo '*' and echo "*" like cases.
22284 Reported by: Jordan Uggla.
22286 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22287 string arguments before shell expansion.
22288 * tests/grub_cmd_echo.in: New testcases.
22290 2010-11-07 Robert Millan <rmh@gnu.org>
22292 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22295 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22297 * grub-core/kern/emu/hostdisk.c
22298 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22300 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22302 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22303 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22304 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22306 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22308 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22310 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22312 * util/grub-install.in: Replace useless recomendation to pass
22313 --modules with a recomendation to report a bug.
22315 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22317 Properly register serial terminfo.
22318 Reported by: Jordan Uggla
22320 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22322 (grub_serial_terminfo_output_template): Likewise.
22323 (grub_cmd_serial): Register "serial" with terminfo.
22324 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22325 grub_serial_terminfo_output.
22327 2010-11-05 Robert Millan <rmh@gnu.org>
22329 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22332 2010-11-05 Robert Millan <rmh@gnu.org>
22334 On Yeeloong, pass machine type information to Linux.
22336 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22337 (LOONGSON_MACHTYPE): New macro, set to
22338 "machtype=lemote-yeeloong-2f-8.9inches".
22339 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22340 additional argument to Linux.
22342 2010-11-04 Robert Millan <rmh@gnu.org>
22344 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22345 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22346 (its SATA disks are detected as slaveless IDE master drives on
22348 Reported by Carsten Aulbert.
22350 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22352 * util/bin2h.c (main): Fix spelling error in generated output.
22354 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22356 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22358 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22360 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22361 vga= option is supplied.
22363 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22365 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22366 * util/grub.d/10_kfreebsd.in: Likewise.
22367 * util/grub.d/10_linux.in: Likewise.
22368 * util/grub.d/20_linux_xen.in: Likewise.
22370 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22372 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22373 argument as an argument to no-argument option.
22375 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22377 * util/grub.d/10_linux.in: Add missing load_video with explicit
22378 GRUB_GFXPAYLOAD_LINUX.
22380 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22382 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22384 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22386 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22387 elements with invlid index.
22388 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22389 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22391 * include/grub/raid.h (grub_raid_member): New struct.
22392 (grub_raid_array): Transform devices and start_sector into usage of
22393 grub_raid_member. All users updated
22394 (allocated_devs): New member.
22396 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22398 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22401 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22403 NetBSD build fix for getline function conflict from gnulib.
22405 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22406 components that depend on gnulib headers.
22407 (libgrubmods.a): Renamed from earlier libgrub.a.
22408 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22410 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22412 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22413 install rather than creating a broken install.
22415 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22417 * util/grub-setup.c (argp): Remove misleading example of installing to
22420 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22422 * util/grub-setup.c (setup): Clarify the error message.
22424 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22426 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22428 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22430 * grub-core/kern/emu/misc.c
22431 (grub_make_system_path_relative_to_its_root)
22432 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22434 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22436 * grub-core/kern/emu/misc.c
22437 (grub_make_system_path_relative_to_its_root): Revert r2882.
22439 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22441 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22442 useless field head. All users updated.
22443 (free_subchunk): Correct handling of IN_REGION subchunk.
22445 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22447 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22448 (Supported kernels): Likewise.
22450 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22452 Make mktemp invocations portable.
22454 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22455 exit if mktemp fails.
22456 * tests/grub_script_blockarg.in: Likewise.
22457 * tests/partmap_test.in: Likewise.
22458 * tests/util/grub-shell-tester.in: Likewise.
22459 * tests/util/grub-shell.in: Likewise.
22460 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22461 * Makefile.am: Likewise, and chain shell commands with `&&'
22463 * util/grub-mkrescue.in: Use the same explicit template as above, and
22464 exit if mktemp fails.
22466 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22468 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22469 Linux kernel, reported by Dennis Schridde.
22471 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22473 * grub-core/normal/auth.c (grub_auth_check_authentication):
22474 Set-but-not-used variable removed.
22476 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22478 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22479 32-bit linux protocol.
22481 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22483 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22484 cursor shape for sanity.
22486 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22488 * docs/grub.texi (Installation): Document buggy BIOS install.
22490 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22492 * docs/grub.texi (Installation): Indent.
22494 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22496 * util/grub-setup.c (setup): New parameter allow_floppy.
22497 (arguments): New member allow_floppy.
22498 (argp_parser): Handle --allow-floppy.
22499 (main): Pass allow_floppy.
22500 * util/grub-install.in: New option --allow-floppy passed though to
22503 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22505 * util/grub-install.in: Handle partitionless disks.
22507 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22509 * util/grub-setup.c (setup): Don't clean blocklists before readability
22512 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22514 * docs/grub.texi (Installation): Document embedding zone. Remove
22515 obsolete grub-install example.
22517 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22519 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22520 Set-but-not-used variable ifdef'ed.
22521 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22522 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22524 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22525 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22526 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22527 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22528 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22529 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22530 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22531 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22532 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22533 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22534 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22537 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22539 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22540 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22543 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22545 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22546 synonym to _S5_. Needed for some DSDTs.
22548 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22550 Userspace ACPI parser debugging.
22552 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22553 headers and add relevant defines. Don't include standard headers.
22554 (main) [GRUB_DSDT_TEST]: New function.
22555 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22556 Don't declare functions.
22558 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22560 Remove dead grub_efi_mm_fini.
22562 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22563 (ALLOCATED_PAGES_SIZE): Likewise.
22564 (MAX_ALLOCATED_PAGES): Likewise.
22565 (allocated_pages): Likewise.
22566 (grub_efi_allocate_pages): Don't record allocated pages.
22567 (grub_efi_free_pages): Likewise.
22568 (grub_efi_mm_init): Likewise.
22569 (grub_efi_mm_fini): Removed.
22571 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22573 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22574 (grub_efi_mm_init): Take into account the memory map size increase.
22576 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22578 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22579 (serial_hw_put): Wait based on real time rather than port reads. Don't
22581 * include/grub/serial.h (grub_serial_port): New field broken.
22583 2010-10-16 Robert Millan <rmh@gnu.org>
22585 * grub-core/kern/emu/misc.c
22586 (grub_make_system_path_relative_to_its_root): Fix premature return
22587 when processing non-root ZFS filesystems.
22588 Reported by Sergio Talens-Oliag.
22590 2010-10-15 Robert Millan <rmh@gnu.org>
22592 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22593 guarantee compressed ones are processed first.
22595 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22597 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22598 grub_efiemu_autocore.
22600 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22602 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22604 (grub_console_getkey): Use correct jae opcode rather than ja.
22606 2010-10-12 Robert Millan <rmh@gnu.org>
22608 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22609 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22610 variable. All references updated.
22612 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22614 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22616 Correctly distinguish mdraid flavours.
22618 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22619 (insert_array): New argument raid.
22620 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22621 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22622 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22624 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22626 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22627 handling of special keys.
22629 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22631 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22632 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22634 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22636 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22637 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22639 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22640 Use right endpoint when querying descriptor.
22642 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22644 Clear out 0x80 color bit on EFI.
22646 Reported by: decoder and meta tech.
22648 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22649 (grub_console_setcolorstate): Clear out 0x80 bit.
22650 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22651 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22652 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22654 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22656 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22659 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22661 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22662 mo_file after freeing.
22664 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22666 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22668 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22670 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22673 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22675 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22678 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22680 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22682 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22683 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22684 and terminfo.h when needed.
22685 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22686 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22687 (terminfo): Enable only on terminfokernel.
22688 (extcmd): Likewise.
22689 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22690 * include/grub/lib/arg.h: Likewise.
22691 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22692 incorrect usage of ->.
22694 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22696 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22697 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22699 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22701 Fix coreboot compilation.
22703 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22704 Take VBE info into account even if only text is supported.
22705 (fill_vbe_info): Take into account the case when only VGA text
22707 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22708 on coreboot, multiboot and qemu.
22710 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22712 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22714 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22716 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22718 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22721 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22723 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22724 if they were BSD-style.
22726 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22728 * grub-core/boot/i386/pc/lnxboot.S: Replace
22729 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22730 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22732 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22734 Write embedding zone using Reed-Solomon.
22736 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22737 * grub-core/Makefile.am (rs_decoder.S): New target.
22738 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22739 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22740 (multiboot): Move to RS part.
22741 (post_reed_solomon): New label.
22742 (grub_boot_drive): Move to non-RS part since it's modified in memory
22744 Include rs_decoder.S.
22745 * grub-core/lib/reed_solomon.c: New file.
22746 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22748 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22749 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22750 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22751 * include/grub/partition.h (grub_partition_map): Change prototype of
22752 embed to allow returning additional sectors.
22753 * include/grub/reed_solomon.h: New file.
22754 * util/grub-setup.c (setup): Handle Reed-Solomon.
22756 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22758 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22759 i386 and x86-64 definedness tests.
22761 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22763 Fix generation of kernel_syms.lst
22765 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22768 2010-09-26 Robert Millan <rmh@gnu.org>
22770 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22772 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22773 the pool is an array of devices, iterate through it and return the
22774 first device that passes a stat() test (instead of blindly returning
22777 2010-09-26 Robert Millan <rmh@gnu.org>
22779 Build fixes for GNU/kFreeBSD.
22781 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22782 to programs that require ZFS conversion.
22783 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22784 kernels that don't have FLOPPY_MAJOR.
22786 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22788 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22790 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22792 Fix grub-emu build.
22794 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22795 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22796 mdraid09 and mdraid1x.
22798 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22800 Re-enable grub-extras.
22802 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22803 avoid confusing Automake. Run autogen only twice, once for the top
22804 level and once for grub-core. Add Makefile.util.def and
22805 Makefile.core.def from extra modules to the appropriate autogen
22806 invocations. If Makefile.common exists in an extra module, include
22807 it in both Makefile.util.am and grub-core/Makefile.core.am;
22808 similarly, include any Makefile.util.common file in Makefile.util.am
22809 and any Makefile.core.common file in grub-core/Makefile.core.am.
22810 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22811 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22812 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22813 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22815 * gentpl.py (gvar_add): Turn GVARS into a set.
22816 (global_variable_initializers): Sort global variables on output.
22817 (vars_init): New function.
22818 (first_time): Likewise.
22819 (library): Ensure that non-global variable initialisations are
22820 emitted before the first time we emit code for a library block.
22821 Append to variables rather than setting them. Only emit
22822 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22823 each conditional path.
22824 (program): installdir() emits an Autogen macro, so must be passed to
22825 var_add rather than gvar_add.
22827 (script): Likewise.
22828 (rules): New function, centralising handling for different target
22829 types. Set up Guile association lists for first_time and vars_init,
22830 and send most output to a diversion so that variable initialisations
22831 can be emitted first.
22832 (module_rules): Use new rules function.
22833 (kernel_rules): Likewise.
22834 (image_rules): Likewise.
22835 (library_rules): Likewise.
22836 (program_rules): Likewise.
22837 (script_rules): Likewise.
22838 (data_rules): Likewise.
22840 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22842 * .bzrignore: Add contrib and grub-core/contrib. Remove
22843 grub-core/Makefile.gcry.am.
22845 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22847 * grub-core/lib/LzFind.c: Add missing include.
22848 * grub-core/lib/LzmaEnc.c: Likewise.
22849 * grub-core/script/lexer.c: Likewise.
22850 * grub-core/script/yylex.l: Likewise.
22851 * util/grub-macho2img.c: Likewise.
22852 * util/grub-menulst2cfg.c: Likewise.
22853 * util/grub-mklayout.c: Likewise.
22854 * util/grub-mkpasswd-pbkdf2.c
22855 * util/grub-mkrelpath.c: Likewise.
22856 * util/resolve.c: Likewise.
22858 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22860 * Makefile.util.def (example_unit_test): Add
22861 grub-core/gnulib/libgnu.a.
22863 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22865 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22867 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22869 Support xz compression on yeeloong.
22871 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22872 * configure.ac: Check for LZMA.
22873 * grub-core/Makefile.core.def (xz_decompress): New target.
22874 (none_decompress): Likewise.
22875 * grub-core/boot/decompressor/minilib.c: New file.
22876 * grub-core/boot/decompressor/none.c: Likewise.
22877 * grub-core/boot/decompressor/xz.c: Likewise.
22878 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22879 * grub-core/kern/mips/cache_flush.S: Likewise.
22880 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22881 * grub-core/kern/mips/startup.S: Move first stage to ...
22882 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22884 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22885 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22886 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22887 Allocate statically.
22888 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22889 Allocate statically or use scratch. Don't check CRC32.
22890 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22891 Allocate statically. Don't check CRC32.
22892 * include/grub/decompressor.h: New file.
22893 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22895 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22896 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22897 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22898 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22899 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22900 * util/grub-mkimage.c (grub_compression_t): New type.
22901 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22902 (image_target_desc): New field default_compression.
22903 (image_targets): Adjust yeeloong targets.
22904 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22905 (compress_kernel): New parameter comp.
22906 (generate_image): Likewise. Handle new compression case.
22907 (options): New option --compression
22909 (main): Handle new option.
22911 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22913 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22915 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22917 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22918 typo in __i386__ conditional.
22920 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22922 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22925 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22927 Implement EFI and ACPI multiboot2 extensions.
22929 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22930 new tags as supported.
22931 (acpiv2_size): New function.
22932 (grub_multiboot_get_mbi_size): Take new tags into account.
22933 (grub_multiboot_make_mbi): Add new tags.
22934 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22936 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22938 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22939 Added missing configuration of USB device.
22941 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22943 * grub-core/normal/menu_entry.c (run): Make sure we always return
22946 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22948 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22949 NumberOfPages is UINT64 according to the UEFI specification, not
22950 UINTN. Fix printf format.
22952 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22954 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22955 `err' to grub_usb_err_t.
22956 Reported and tested by: KESHAV P.R.
22958 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22960 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22961 tpart non-const, so that we can assign to it. (Since this is a
22962 typedef, the constness refers to the pointer rather than what it
22965 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22967 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22968 $(top_srcdir)/grub-core/gnulib as well as
22969 $(top_builddir)/grub-core/gnulib.
22970 Reported by: KESHAV P.R.
22972 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22974 * util/grub-install.in: Fix the bootloader ID option to be
22975 consistently --bootloader-id, not --bootloader_id.
22976 Reported by: KESHAV P.R.
22978 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22980 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22981 check hash checksum." consistently translatable.
22983 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22985 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22988 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22990 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22991 (GRUB_MOD_INIT): Register sha1sum command.
22992 (GRUB_MOD_FINI): Unregister sha1sum command.
22994 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22996 Keep boot and grub directory names in sync with utils scripts
22998 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22999 * config.h.in: Add previous macros.
23000 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23001 * util/grub-install.in: Use $bootdir and $grubdir variables.
23003 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23005 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23006 convert partition names to disk names if the new `convert' parameter
23008 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23009 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23010 disk in its own right. This can happen with Xen disk images.
23012 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23014 * util/grub-editenv.c: Update strings to avoid warnings when generating
23016 * util/grub-setup.c: Likewise.
23018 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23020 * configure.ac: Change version to 1.99~beta0.
23022 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23024 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23026 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23028 * include/multiboot.h: Resynced with specification.
23029 * include/multiboot2.h: Likewise.
23031 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23033 Fix po directory handling.
23035 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23036 * grub-core/gnulib/Makefile.am: Import gettext module.
23037 * m4/gnulib-cache.m4: Likewise.
23038 * m4/gnulib-comp.m4: Likewise.
23039 * m4/gettext.m4: New file, from gnulib.
23040 * m4/glibc2.m4: Likewise.
23041 * m4/iconv.m4: Likewise.
23042 * m4/intdiv0.m4: Likewise.
23043 * m4/intl.m4: Likewise.
23044 * m4/intldir.m4: Likewise.
23045 * m4/intlmacosx.m4: Likewise.
23046 * m4/intmax.m4: Likewise.
23047 * m4/inttypes-pri.m4: Likewise.
23048 * m4/lcmessage.m4: Likewise.
23049 * m4/lib-ld.m4: Likewise.
23050 * m4/lib-link.m4: Likewise.
23051 * m4/lib-prefix.m4: Likewise.
23052 * m4/lock.m4: Likewise.
23053 * m4/nls.m4: Likewise.
23054 * m4/po.m4: Likewise.
23055 * m4/printf-posix.m4: Likewise.
23056 * m4/progtest.m4: Likewise.
23057 * m4/threadlib.m4: Likewise.
23058 * m4/uintmax_t.m4: Likewise.
23059 * m4/visibility.m4: Likewise.
23060 * po/Makefile.am: Remove.
23061 * po/Makefile.in.in: New file, from gettext.
23062 ($(DOMAIN).pot-update): Support POTFILES-shell.
23063 * po/Makevars: New file.
23064 * po/POTFILES-shell: Rename to ...
23065 * po/POTFILES-shell.in: ... this. Update.
23066 * po/POTFILES: Rename to ...
23067 * po/POTFILES.in: ... this. Update.
23068 * po/Rules-quot: New file, from gettext.
23069 * po/boldquot.sed: Likewise.
23070 * po/en@boldquot.header: Likewise.
23071 * po/en@quot.header: Likewise.
23072 * po/insert-header.sin: Likewise.
23073 * po/quot.sed: Likewise.
23074 * po/remove-potcdate.sin: Likewise.
23076 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23078 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23080 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23082 * util/grub.d/20_linux_xen.in: Use submenus.
23084 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23088 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23089 parameter submenu. All users updated.
23090 * grub-core/normal/main.c (free_menu): Rename to ...
23091 (grub_normal_free_menu): ... this. Made global.
23092 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23094 * grub-core/normal/menu_entry.c (screen): New field submenu.
23095 (make_screen): Set submenu.
23096 (run): Open new context if requested.
23097 * include/grub/menu.h (grub_menu_entry): New field submenu.
23098 * include/grub/normal.h (grub_normal_free_menu): New proto.
23100 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23102 Menu entries extractor.
23104 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23106 (GRUB_MOD_INIT): Register new variants.
23107 (GRUB_MOD_FINI): Unregister new variants.
23108 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23109 into grub_cmd_legacy_source.
23110 (grub_cmd_legacy_source): Implement extractor variants.
23111 (GRUB_MOD_INIT): Register new variants.
23112 (GRUB_MOD_FINI): Unregister new variants.
23113 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23115 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23116 search as an extractor.
23117 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23118 test as an extractor.
23119 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23121 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23122 (grub_env_new_context): New function.
23123 (grub_env_context_open): Likewise.
23124 (grub_env_extractor_open): Likewise.
23125 (grub_env_extractor_close): Likewise.
23126 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23127 grub_extractor_level.
23128 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23129 * include/grub/env.h (grub_env_extractor_open): New proto.
23130 (grub_env_extractor_close): Likewise.
23131 * include/grub/normal.h (grub_extractor_level): New external variable.
23133 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23135 Make cutmem accept a region specification.
23136 Suggested by: Samuel Thibault
23138 * grub-core/mmap/mmap.c (parsemem): New function.
23139 (grub_cmd_cutmem): Handle new arguments.
23141 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23143 New command cutmem.
23145 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23146 (GRUB_MOD_INIT): Register new command.
23147 (GRUB_MOD_FINI): Unregister new command.
23149 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23151 Support some annoying BSD and Minix subpartitions.
23153 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23154 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23155 Properly handle concatenation.
23156 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23157 * grub-core/normal/completion.c (iterate_partition): Likewise.
23158 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23159 contain partition. All users updated.
23160 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23162 (grub_openbsdlabel_partition_map): Likewise.
23163 (bsdlabel_partition_map_iterate): Rename to ..
23164 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23165 (bsdlabel_partition_map_iterate): New function.
23166 (netopenbsdlabel_partition_map_iterate): Likewise.
23167 (netbsdlabel_partition_map_iterate): Likewise.
23168 (openbsdlabel_partition_map_iterate): Likewise.
23169 (GRUB_MOD_INIT): Register new partmaps.
23170 (GRUB_MOD_FINI): Unregister new partmaps.
23171 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23172 (grub_partition_msdos_iterate): ... this. All users updated.
23173 Don't support embedding other than in a minix partition.
23174 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23176 * include/grub/partition.h (grub_partition): New field msdostype.
23177 * util/grub-install.in: Handle openbsd and netbsd types being in
23180 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23182 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23184 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23185 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23186 (mdraid09): ... this.
23187 (mdraid1x): New module.
23188 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23189 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23191 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23193 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23198 * grub-core/commands/efi/lsefimmap.c: Correct header.
23201 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23203 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23204 as printf format strings; the translations might contain '%' which
23205 could cause a crash.
23207 * util/grub-fstest.c (argp_parser): Likewise.
23208 * util/grub-setup.c (argp_parser): Likewise.
23211 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23213 Use argp in grub-fstest.
23215 * util/grub-fstest.c: Don't include getopt.h.
23217 (root): New variable.
23218 (args_count): Likewise.
23220 (num_disks): Likewise.
23221 (images): Likewise.
23223 (debug_str): Likewise.
23225 (options): Transformed to argp.
23227 (main): Split argument parsing into ...
23228 (argp_parser): ... this. Changed to argp format.
23229 (argp): New variable.
23230 (main): Use argp_parse.
23232 2010-09-20 Tristan Gingold <gingold@free.fr>
23233 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23234 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23236 * grub-core/commands/efi/lsefimmap.c: New file.
23237 * grub-core/Makefile.core.def (lsefimmap): New module.
23238 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23240 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23242 Pause the execution (10s max) if any errors are displayed so the user
23243 has a chance to see them.
23245 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23246 (grub_print_error): Increment grub_err_printed_errors.
23247 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23248 execution if any errors were displayed.
23249 (show_menu): Remove old code for pause.
23250 * grub-core/normal/menu_entry.c (run): Likewise.
23251 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23253 (grub_normal_get_char_counter): Likewise.
23254 * include/grub/err.h (grub_err_printed_errors): New external variable.
23255 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23257 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23259 Support multiboot VBE info.
23261 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23262 Take VBE info into account.
23263 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23264 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23265 Call fill_vbe_info when appropriate.
23266 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23267 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23269 (grub_multiboot_get_mbi_size): Take new tags into account.
23270 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23271 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23272 Call fill_vbe_tag when appropriate.
23273 (grub_multiboot_make_mbi): Properly align tags.
23274 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23276 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23278 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23280 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23282 Suport manual terminal geometry specification.
23284 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23285 Save state in grub_ofconsole_terminfo_output.
23286 (grub_ofconsole_term): Use grub_terminfo_getwh.
23287 (grub_ofconsole_getwh): Removed.
23288 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23289 (grub_serial_term): Use grub_terminfo_getwh.
23290 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23291 (options): New struct.
23292 (OPTION_*): New enum.
23293 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23294 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23296 (grub_terminfo_getwh): New proto.
23297 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23299 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23301 Handle legacy "terminal" command.
23303 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23305 (legacy_commands): Add terminal and title.
23306 (grub_legacy_parse): Handle terminal. Simplify title handling.
23308 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23310 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23311 parameters overflow.
23313 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23315 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23318 * docs/grub.texi (Shell-like scripting): Document `!'.
23319 (Network): Simplify using new i386-pc-pxe format. Mention
23324 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23326 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23327 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23330 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23332 * grub-core/commands/efi/lsefisystab.c: Correct header.
23333 * grub-core/commands/efi/lssal.c: Likewise.
23334 * grub-core/commands/testload.c: Likewise.
23336 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23338 * util/grub-mkrescue.in: Add explicit root argument to --set to
23339 prevent the UUID being interpreted as an argument to --set (matches
23340 previous change to prepare_grub_to_access_device).
23342 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23344 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23345 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23346 the verbosity of later #ifs.
23347 (find_partition_start): Define this function on FreeBSD too.
23348 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23350 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23353 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23355 * util/grub-editenv.c: Use argp instead of getopt.
23357 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23359 * util/grub-setup.c: Use argp instead of getopt.
23361 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23363 Use gnulib-tool to create gnulib source files.
23365 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23366 grub-core/gnulib directories
23367 * .bzignore: Add **/.deps and autogenerated gnulib files
23368 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23369 of gnulib macros, add grub-core/gnulib/Makefile
23370 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23371 include m4 directory to aclocal.
23372 * Makefile.util.def: Remove direct compilation of gnulib source files
23373 and use the new grub-core/gnulib/libgnu.a.
23374 * build-aux/config.rpath: move config.rpath from top directory to
23376 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23378 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23379 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23380 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23382 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23385 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23387 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23388 grub-core/genmod.sh and grub-core/gensyminfo.sh
23390 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23392 Add a test for echo command options.
23394 * tests/grub_cmd_echo.in: New test.
23395 * Makefile.util.def: Rules for new test.
23397 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23399 Remove crc.mod and move crc command to hashsum.mod.
23400 Remove lib/crc.c - users updated to use gcrypt implementation.
23402 * grub-core/commands/crc.c: Removed.
23403 * grub-core/Makefile.core.def (crc): Module removed.
23404 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23405 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23406 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23407 * grub-core/lib/crc.c: Removed.
23408 * include/grub/lib/crc.h: Removed.
23409 * Makefile.util.def (crc): Remove lib/crc.c
23410 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23411 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23412 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23413 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23414 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23415 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23417 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23419 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23421 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23423 Split config.h for util and core.
23425 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23426 (ADDR32): Likewise.
23427 (DATA32): Likewise.
23428 (BSS_START_SYMBOL): Likewise.
23429 (END_SYMBOL): Likewise.
23430 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23431 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23432 * config.h.in: New file.
23433 * configure.ac: Use config-util.h as config define file.
23434 Rename MACHINE into GRUB_MACHINE. All users updated.
23435 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23437 (NESTED_FUNC_ATTR): Likewise.
23438 Substitue new variables.
23439 (COND_HAVE_ASM_USCORE): New conditional.
23440 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23441 (kernel_syms.lst): Use ASM_PREFIX.
23442 * grub-core/kern/emu/console.c: Include config-util.h.
23443 * grub-core/kern/emu/misc.c: Likewise.
23444 * grub-core/kern/emu/mm.c: Likewise.
23445 * include/grub/emu/misc.h: Likewise.
23446 * include/grub/libgcc.h: Likewise.
23448 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23450 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23452 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23453 Fix GRUB_TERM_KEY_* constants usage.
23454 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23456 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23458 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23460 * grub-core/bus/usb/uhci.c: Remove empty define.
23461 (grub_uhci_check_transfer): Add missing cast.
23462 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23464 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23466 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23468 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23470 * grub-core/Makefile.core.def (legacycfg): Add
23471 lib/i386/pc/vesa_modes_table.c on emu.
23473 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23475 Reduce number of temporary files generated by build system.
23477 * grub-core/gencmdlist.sh: Removed.
23478 * grub-core/genfslist.sh: Removed.
23479 * grub-core/genhandlerlist.sh: Removed.
23480 * grub-core/genmodsrc.sh: Removed.
23481 * grub-core/genpartmaplist.sh: Removed.
23482 * grub-core/genparttoollist.sh: Removed.
23483 * grub-core/gentermiinallist.sh: Removed.
23484 * grub-core/genvideolist.sh: Removed.
23486 * grub-core/genmod.sh.in: New file.
23487 * grub-core/gensyminfo.sh.in: New file.
23489 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23490 * conf/Makefile.extra-dist: Update with new files.
23491 * gentpl.py: Remove rules related to unnecessary temporary files.
23492 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23494 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23496 * grub-core/bus/usb/uhci.c: Remove empty #define.
23497 * grub-core/genmoddep.awk: Updated with new syminfo format.
23498 * util/bash-completion.d/Makefile.am: Add config.log to
23501 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23503 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23505 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23507 * util/grub-mkconfig.in: Check the config script for syntax errors
23510 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23511 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23513 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23515 * util/grub-install.in: Add EFI and IEEE1275 support.
23516 * util/i386/efi/grub-install.in: Removed.
23517 * util/ieee1275/grub-install.in: Likewise.
23519 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23521 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23522 (grub_cmd_cmosclean): Likewise.
23523 (GRUB_MOD_INIT): Register command cmosclean.
23524 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23525 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23527 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23528 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23529 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23531 Add keyboard layouts support.
23533 * Makefile.util.def (grub-mklayout): New file.
23534 (grub-kbdcomp): New script.
23535 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23536 Add keyboard_layouts.h.
23537 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23538 commands/boot.c on yeeloong.
23539 (keylayouts): New module.
23540 * grub-core/bus/usb/ohci.c
23541 * grub-core/bus/usb/uhci.c
23542 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23543 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23544 (attach_root_port): Likewise.
23545 (poll_nonroot_hub): Likewise.
23546 (grub_usb_poll_devices): Likewise.
23547 (detach_device): Close transfer.
23548 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23550 (grub_usb_bulk_setup_readwrite): Likewise.
23551 (grub_usb_bulk_finish_readwrite): Likewise.
23552 * grub-core/commands/keylayouts.c: New file.
23553 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23554 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23556 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23557 support scancode 2.
23558 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23559 * include/grub/keyboard_layouts.h: New file.
23560 * util/grub-mklayout.c: New file.
23561 * util/grub-kbdcomp.in: Likewise.
23563 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23565 Unify memory types.
23567 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23568 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23570 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23571 (grub_upper_mem): Likewise.
23572 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23573 * include/grub/memory.h (grub_memory_type_t): New enum.
23576 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23578 * grub-core/Makefile.core.def (lsapm): New module.
23579 * grub-core/commands/i386/pc/lsapm.c: New file.
23580 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23581 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23583 * include/grub/i386/pc/apm.h: New file.
23584 * include/multiboot.h (multiboot_apm_info): New struct.
23586 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23588 GRUB-legacy configuration file support.
23590 * Makefile.util.def (grub-menulst2cfg): New util.
23591 * docs/man/grub-menulst2cfg.h2m: New file.
23592 * grub-core/Makefile.core.def (legacycfg): New module.
23593 * grub-core/commands/legacycfg.c: New file.
23594 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23595 (grub_normal_add_menu_entry): ... this.
23596 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23597 (grub_normal_set_password): ...this.
23598 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23599 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23600 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23601 * grub-core/lib/legacy_parse.c: New file.
23602 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23603 * include/grub/i386/pc/vesa_modes_table.h: New file.
23604 * include/grub/legacy_parse.h: Likewise.
23605 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23606 * util/grub-menulst2cfg.c: New file.
23608 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23610 * grub-core/kern/emu/hostdisk.c
23611 (convert_system_partition_to_system_disk): Initialise node.
23613 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23615 * grub-core/kern/emu/hostdisk.c
23616 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23618 Reported and based on patch by: Modestas Vainius.
23620 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23622 Fix DM-RAID probing with recent versions of device-mapper udev
23625 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23626 canonicalise device paths under /dev/mapper/.
23627 (convert_system_partition_to_system_disk): Compare the
23628 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23629 path, since device nodes under /dev/mapper/ are often symlinks.
23631 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23633 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23635 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23637 * configure.ac: Avoid some annoying error messages if freetype-config
23638 program is not found.
23640 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23642 Support RAID on virtio devices, and others.
23644 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23646 [__MINGW32__] (grub_find_device): ... this.
23647 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23648 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23649 reasonable default if dir is NULL.
23650 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23652 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23653 (grub_guess_root_device): Update callers.
23654 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23656 * util/raid.c (grub_util_getdiskname): Remove.
23657 (grub_util_raid_getmembers): Use grub_find_device rather than
23658 grub_util_getdiskname.
23660 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23662 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23663 needing to be compiled with serial support.
23664 (ls): Indicate that multiple files are accepted.
23665 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23666 indicate that multiple files are accepted.
23668 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23670 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23671 libgrub_a_init.c, and util/bash-completion.d/grub.
23673 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23675 * util/grub-setup.c (setup): Fix incorrect container semantics.
23677 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23679 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23681 Reported by: J. Nick Terry
23683 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23685 Move embedding routines to partmap sources files.
23687 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23688 [GRUB_UTIL]: New variable.
23689 (gpt_partition_map_iterate): Set part.parent.
23690 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23691 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23692 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23694 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23695 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23696 (grub_partition_map) [GRUB_UTIL]: New field embed.
23697 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23698 (setup): Use ->embed.
23700 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23702 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23704 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23705 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23707 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23709 Add function to get completions from usage.
23711 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23712 completions from usage. Use LC_ALL=C to get options properly.
23714 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23716 * grub-core/gnulib/basename-lgpl.c: Imported.
23717 * grub-core/gnulib/basename.c: Likewise.
23718 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23719 * grub-core/gnulib/dirname.c: Likewise.
23720 * grub-core/gnulib/dirname.h: Likewise.
23721 * grub-core/gnulib/stripslash.c: Likewise.
23723 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23725 * grub-core/gnulib/error.c: Resynced.
23726 * grub-core/gnulib/getopt.c: Likewise.
23727 * grub-core/gnulib/getopt_int.h: Likewise.
23728 * grub-core/gnulib/regex.h: Likewise.
23729 * grub-core/gnulib/regex_internal.c: Likewise.
23730 * grub-core/gnulib/regex_internal.h: Likewise.
23732 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23734 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23735 CRC calculations and validity checks.
23736 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23739 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23741 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23743 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23745 Fix incorrect echo options handling.
23746 Reported by: Yves Blusseau.
23748 * include/grub/command.h (grub_command_flags_t): New flags
23749 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23750 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23751 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23753 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23755 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23757 (GRUB_COMMAND_FLAG_MENU): Likewise.
23758 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23759 (GRUB_COMMAND_FLAG_TITLE): Removed.
23760 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23761 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23762 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23763 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23764 (grub_command_flags_t): New enum. All users updated.
23766 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23768 Fix solaris compilation.
23770 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23771 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23772 (grub-emu-list): Likewise.
23774 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23776 Remove deprecated root command.
23778 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23781 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23783 * util/i386/pc/grub-setup.c: Merge this ...
23784 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23785 * util/grub-setup.c: ... into this.
23786 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23789 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23791 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23794 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23796 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23799 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23801 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23802 explicit root argument to set to prevent UUID to be interpreted as
23805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23807 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23809 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23811 Don't export grub_gate_a20.
23813 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23814 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23816 (grub_gate_a20): ... this. All users updated.
23817 * include/grub/i386/pc/init.h: Removed. All users updated.
23819 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23821 Create euro.pf2 which supports most European languages.
23823 * Makefile.am (grubdata_DATA): Add euro.pf2.
23824 (euro.pf2): New target.
23825 (CLEANFILES): Add euro.pf2.
23827 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23829 * configure.ac: Disable emu-usb by default to prevent inadvertent
23832 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23834 Disable usbserial on grub-emu since our libusb code isn't good enough
23837 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23838 (usbserial_pl2303): Likewise.
23839 (usbserial_ftdi): Likewise.
23841 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23843 * include/grub/disk.h (grub_disk): Remove has_partitions.
23845 * disk/loopback.c (grub_loopback): Remove has_partitions.
23847 (options): Remove partitions. All users updated.
23848 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23849 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23850 actual partition table is found.
23852 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23854 Remove readability checks (too many false negatives).
23856 * util/grub-install.in: Remove readability checks.
23857 * util/grub-mkconfig.in: Likewise.
23858 * util/grub.d/10_hurd.in: Likewise.
23859 * util/grub.d/10_kfreebsd.in: Likewise.
23860 * util/grub.d/10_linux.in: Likewise.
23861 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23864 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23866 Enable acpi shutdown on all ACPI platforms.
23868 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23869 on coreboo, multiboot and EFI.
23870 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23871 (grub_acpi_halt): Likewise.
23872 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23873 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23874 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23875 * grub-core/lib/i386/halt.c (grub_halt)
23876 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23878 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23880 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23883 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23885 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23886 * grub-core/video/efi_uga.c: Likewise.
23888 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23890 Filter devaliases and never open same device twice.
23892 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23893 (last_ihandle): Likewise.
23894 (ofdisk_hash_ent): New member shortest.
23895 (ofdisk_hash_add): Add canonical path too.
23896 (scan): New function.
23897 (grub_ofdisk_iterate): Iterate over hashed entries.
23898 (compute_dev_path): Don't add :0.
23899 (grub_ofdisk_open): Don't really open the disk.
23900 (grub_ofdisk_close): Avoid closing unrelated disk.
23901 (grub_ofdisk_read): Implement reopen logic.
23902 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23904 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23907 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23911 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23912 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23913 right address. Add sparc64_ieee1275_ldflags.
23914 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23915 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23916 to grub_host_to_target_addr
23917 (load_image): Likewise.
23919 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23921 * grub-core/normal/completion.c (complete_file): Handle device
23923 Fix based on patch by Doug Nazar.
23925 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23927 grub-mknetdir script.
23929 * Makefile.util.def (grub-mknetdir): New module.
23930 * tests/util/grub-shell.in: Support boot=net
23931 * util/grub-mknetdir.in: New file.
23933 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23935 videoinfo on non-vbe.
23937 * grub-core/Makefile.core.def (vbeinfo): Removed.
23938 (vbetest): Removed.
23939 (videoinfo): New module.
23940 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23941 * grub-core/commands/i386/pc/vbetest.c: Removed.
23942 * grub-core/commands/videoinfo.c: New file.
23943 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23945 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23947 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23948 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23949 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23950 mode_number. New parameter mode. All users updated.
23951 (grub_video_gop_iterate): New function.
23952 (grub_video_efi_gop): New member iterate.
23953 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23954 (grub_vbe_set_video_mode): Remove setting useless fields.
23955 (vbe2videoinfo): New function.
23956 (grub_video_vbe_iterate): Likewise.
23957 (grub_video_vbe_setup): Use vbe2videoinfo.
23958 (grub_video_vbe_print_adapter_specific_info): New function.
23959 (grub_video_vbe_adapter): New fields iterate and
23960 print_adapter_specific_info.
23961 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23963 (grub_video_mode_info): New field mode_number.
23964 (grub_video_adapter): New fields iterate and
23965 print_adapter_specific_info.
23967 2010-09-13 Tristan Gingold <gingold@free.fr>
23968 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23969 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23971 * grub-core/commands/efi/lsefisystab.c: New file.
23972 * grub-core/commands/efi/lssal.c: Likewise.
23973 * grub-core/Makefile.core.def (lsacpi): New module.
23974 (lsefisystab): Likewise.
23975 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23976 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23977 (grub_efi_sal_system_table): New struct.
23978 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23979 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23980 (grub_efi_sal_system_table_platform_features): Likewise.
23981 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23982 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23983 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23984 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23986 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23988 Support explicit user claim that a device is BIOS-visible.
23990 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23991 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23992 * grub-core/kern/emu/hostdisk.c
23993 (convert_system_partition_to_system_disk): Support mdX.
23994 (find_system_device): New parameter add. All users updated.
23995 (grub_util_biosdisk_is_present): New function.
23996 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23999 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24001 Search hints support.
24003 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24006 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24008 Bash completion script for util commands
24010 * Makefile.am: Add util/bash-completion.d directory
24011 * configure.ac: Likewise.
24012 * util/bash-completion.d/Makefile.am: New file.
24013 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24015 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24017 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24018 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24019 Reported by: Yves Blusseau.
24021 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24023 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24024 partition size and offset.
24026 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24028 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24030 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24032 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24034 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24036 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24037 (grub_xvasprintf): Likewise.
24039 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24041 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24043 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24045 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24046 args ending with NULL.
24048 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24050 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24053 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24055 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24057 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24059 Shutdown using ACPI.
24061 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24062 * grub-core/commands/acpihalt.c: New file.
24063 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24064 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24065 (grub_acpi_halt): New proto.
24066 (GRUB_ACPI_SLP_EN): New const.
24067 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24068 (GRUB_ACPI_OPCODE_*): New enum.
24069 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24071 2010-09-11 Tristan Gingold <gingold@free.fr>
24072 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24073 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24075 * commands/lsacpi.c: New file.
24076 * grub-core/Makefile.core.def (lsacpi): New module.
24077 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24078 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24079 (grub_acpi_madt_entry_header): New struct.
24080 (grub_acpi_madt): Likewise.
24081 (grub_acpi_madt_entry_interrupt_override): Likewise.
24082 (grub_acpi_madt_entry_sapic): Likewise.
24083 (grub_acpi_madt_entry_lsapic): Likewise.
24084 (grub_acpi_madt_entry_platform_int_source): Likewise.
24085 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24086 (PRIuGRUB_UINT32_T): Likewise.
24087 (PRIxGRUB_UINT64_T): Likewise.
24089 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24091 Implement loading palette on ieee1275_fb.
24093 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24094 (have_setcolors): Likewise.
24095 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24096 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24097 (grub_video_ieee1275_set_palette): Implement.
24099 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24100 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24102 * util/grub-install.in (grub_partition): New variable.
24103 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24104 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24105 Fixes a bug reported by Yves Blusseau.
24107 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24111 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24112 =grub_cpu_flush_cache on all mips and not only yeeloong.
24113 * configure.ac (COND_mips): New conditional.
24114 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24116 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24117 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24118 [GRUB_LINKER_HAVE_INIT]: New function.
24119 (grub_emu_post_init): Likewise.
24120 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24121 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24122 * include/grub/cache.h (_mips): Include mips/cache.h.
24123 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24124 LVM and RAID prototypes.
24125 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24126 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24129 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24131 * util/grub-install.in: Don't try to verify core.img until after
24132 running grub-mkimage to create it.
24134 2010-09-10 Robert Millan <rmh@gnu.org>
24136 * util/grub.d/10_hurd.in: Add misc readability checks.
24137 * util/grub.d/10_kfreebsd.in: Likewise.
24138 * util/grub.d/10_linux.in: Likewise.
24140 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24142 * util/grub-install.in: ${imgext} won't be defined here until the
24143 install branch is merged. For the meantime, only verify core.img on
24144 i386-pc and sparc64-ieee1275 platforms.
24146 2010-09-10 Robert Millan <rmh@gnu.org>
24148 Solaris support in grub_find_zpool_from_dir(). Thanks
24149 Seth Goldberg for referring to getextmntent() facility.
24151 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24153 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24155 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24156 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24157 method for finding zpool name.
24159 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24161 grub-fstest needs the host and hostfs modules while other utilities
24162 actively require those modules to be absent, so grub-fstest needs
24163 its own initialisation and finalisation code.
24165 * Makefile.am (grub_fstest.pp): New target.
24166 (grub_fstest_init.lst): Likewise.
24167 (grub_fstest_init.c): Likewise.
24168 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24170 2010-09-10 Robert Millan <rmh@gnu.org>
24172 * configure.ac: Check for `struct statfs.f_fstypename' and
24173 `struct statfs.f_mntfromname'.
24175 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24176 kFreeBSD-specific code.
24178 2010-09-10 Robert Millan <rmh@gnu.org>
24180 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24181 on ZFS. Now non-main filesystems are supported as / too.
24183 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24185 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24186 and grub-core/disk/host.c to ...
24187 (grub-fstest): ... here. Having the host disk implementation
24188 present confuses grub-probe and other utility programs.
24190 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24191 when writing to a file, not when writing to stdout.
24193 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24195 * tests/partmap_test.in: New test for partitions.
24196 * Makefile.util.def: Rules for new test.
24198 2010-09-09 Robert Millan <rmh@gnu.org>
24200 * util/grub-probe.c (probe): Fix a pair of unhandled error
24203 2010-09-09 Robert Millan <rmh@gnu.org>
24205 Basic Btrfs support (detection and UUID).
24207 * grub-core/fs/btrfs.c: New file.
24208 * Makefile.util.def (library): Register btrfs.c.
24209 * grub-core/Makefile.core.def: Likewise.
24211 2010-09-08 Robert Millan <rmh@gnu.org>
24213 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24214 with (optional) parameters to specify device and relative path.
24215 * util/grub-install.in: Use is_path_readable_by_grub() to
24216 verify readability of a few critical files.
24217 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24218 verify readability of grub.cfg.new.
24220 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24222 Split minix.mod into minix.mod and minix2.mod.
24224 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24225 * grub-core/Makefile.core.def (minix2): New module.
24226 * grub-core/fs/minix.c: Use definitions instead of runtime version
24228 * grub-core/fs/minix2.c: New file.
24230 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24232 Add new --boot-directory option to replace --root-directory
24234 * util/grub-install.in: Add new --boot-directory option
24235 * util/grub-reboot.in: Likewise.
24236 * util/grub-set-default.in: Likewise.
24238 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24240 * util/grub-mkconfig.in: Use new variable.
24242 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24244 * configure.ac: Define some useful variables.
24246 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24248 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24249 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24250 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24251 Use terminfo and don't use cursor-on/cursor-off unless it's known
24253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24254 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24256 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24258 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24259 starts with "(,", fill the drive containing the loaded image in
24260 between those two characters, but expect that a full partition
24261 specification including partition map names will follow.
24263 2010-09-08 Robert Millan <rmh@gnu.org>
24265 * configure.ac: Remove `--enable-grub-fstest' option.
24266 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24268 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24269 `grub-fstest' instead of `grub-probe' for readability verification.
24270 * util/grub-probe.c (probe): Remove readability verification kludge.
24272 2010-09-08 Robert Millan <rmh@gnu.org>
24274 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24275 initializing `GRUB_FS'.
24277 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24279 Not command (!) support to GRUB script.
24281 * tests/grub_script_not.in: New test.
24282 * Makefile.util.def: Rules for new test.
24284 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24285 ! command as a special case.
24286 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24288 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24290 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24293 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24295 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24297 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24299 * docs/grub.texi (Shell-like scripting): Documentation for break,
24300 continue, shift and return commands.
24302 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24304 Rename CD-ROM to cd on BIOS.
24306 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24308 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24310 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24312 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24313 * util/grub-probe.c (main): Likewise.
24314 * util/i386/pc/grub-setup.c (main): Likewise.
24315 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24316 Reported and debugged by: alexxy
24318 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24320 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24323 2010-09-05 Jo Shields <directhex@apebox.org>
24325 * util/grub.d/30_os-prober.in: Add missing classes.
24327 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24329 * docs/grub.texi (Theme file format): Document new position format.
24331 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24333 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24334 a table. Use @code instead of @verbatim.
24336 2010-09-05 Colin D Bennett <colin@gibibit.com>
24338 Gfxmenu documentation.
24340 * docs/grub.texi (Theme file format): New chapter.
24342 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24344 * grub-core/Makefile.core.def (xzio): New module.
24345 * grub-core/io/xzio.c: New file.
24346 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24347 * grub-core/lib/xzembed/xz_config.h: Likewise.
24348 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24349 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24350 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24351 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24352 * grub-core/lib/xzembed/xz_private.h: Likewise.
24353 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24354 * include/grub/file.h (grub_file_filter_id): New compression filter
24355 GRUB_FILE_FILTER_XZIO.
24357 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24359 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24360 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24363 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24365 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24366 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24368 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24370 Uncompressed checksum support.
24372 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24373 (check_list): New parameter uncompress.
24374 (grub_cmd_hashsum): Handle --uncompress.
24376 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24378 Reintroduce testload.
24380 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24382 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24383 (GRUB_MOD_INIT): New function.
24384 (GRUB_MOD_FINI): Likewise.
24385 * grub-core/Makefile.core.def (testload): New module.
24387 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24389 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24390 (uint8_t): New type.
24391 (uint16_t): Likewise.
24392 (uint32_t): Likewise.
24393 (uint64_t): Likewise.
24395 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24397 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24399 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24401 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24403 (grub_gzfile_open): Removed. All users updated.
24404 (GRUB_MOD_INIT): New function.
24405 (GRUB_MOD_FINI): Likewise.
24406 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24407 (grub_file_filters_enabled): Likewise.
24408 (grub_file_open): Handle filters.
24409 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24410 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24411 * include/grub/file.h (grub_file_filter_id_t): New type.
24412 (grub_file_filter_t): Likewise.
24413 (grub_file_filters_all): New extern variable.
24414 (grub_file_filters_enabled): Likewise.
24415 (grub_file_filter_register): New inline function.
24416 (grub_file_filter_unregister): Likewise.
24417 (grub_file_filter_disable): Likewise.
24418 (grub_file_filter_disable_compression): Likewise.
24419 * include/grub/gzio.h: Removed.
24421 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24423 Filename expansion support for wildcards in GRUB script.
24425 * tests/grub_script_expansion.in: New test.
24426 * Makefile.util.def: Rule for new test.
24428 * grub-core/commands/wildcard.c: New file, implements filename
24429 expansion support for GRUB script.
24430 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24431 * grub-core/script/argv.c: Cosmetic changes.
24432 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24433 Refactored to perform wildcard expansion on arguments.
24434 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24437 * tests/util/grub-shell.in: Fix quoting for read input.
24439 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24441 Support for updating environment variables with matched substrings
24444 * tests/grub_cmd_regexp.in: New test.
24445 * Makefile.util.def: Rule for new test.
24447 * grub-core/commands/regexp.c: New option -s to update environment
24448 variables with regexp matches.
24450 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24452 * include/grub/file.h (grub_file): New member not_easly_seekable.
24453 (grub_file_seekable): New inline function.
24454 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24456 (grub_gzio_open): Set not_easly_seekable.
24457 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24458 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24460 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24462 Support for options to appear multiple times on cmdline.
24464 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24465 * grub-core/commands/extcmd.c: Support for repeatable option.
24466 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24467 repeatable option support.
24469 Refactor menuentry into a regular command.
24471 * grub-core/commands/menuentry.c: New file, menuentry command
24473 * grub-core/Makefile.core.def: Rule update for normal.mod.
24474 * grub-core/normal/main.c: Moved menuentry creation to
24475 grub-core/commands/menuentry.c.
24476 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24477 (grub_menu_execute_entry_real): Removed.
24478 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24480 (grub_script_execute_menuentry): Removed.
24481 * grub-core/script/parser.y (menuentry): Removed.
24482 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24483 * grub-core/script/yylex.l (menuentry): Removed.
24484 * include/grub/menu.h (grub_menu_init): New prototype.
24485 (grub_menu_fini): New prototype.
24486 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24487 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24488 (grub_script_execute_sourcecode): New prototype.
24490 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24492 "return" command for GRUB script functions.
24494 * tests/grub_script_return.in: New test.
24495 * Makefile.util.def: Rules for new test.
24497 * grub-core/script/execute.c (grub_script_return): New function.
24498 * grub-core/script/main.c: Register/unregister return commaond.
24499 * include/grub/script_sh.h (grub_script_return): New prototype.
24501 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24503 "setparams" command to update positional parameters.
24505 * tests/grub_script_setparams.in: New test.
24506 * Makefile.util.def: Rules for new test.
24508 * grub-core/script/argv.c (grub_script_argv_make): New function.
24509 * grub-core/script/execute.c (replace_scope): New function.
24510 (grub_script_setparams): New function.
24511 * grub-core/script/lexer.c: Remove unused variables.
24512 * grub-core/script/main.c: Register/unregister setparams command.
24513 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24514 (grub_script_setparams): New prototype.
24516 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24518 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24521 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24523 Support for passing block of commands as an argument to extcmds.
24525 * Makefile.util.def: Rules for new test.
24526 * tests/grub_script_blockarg.in: New test.
24527 * grub-core/tests/test_blockarg.c: New file, block argument
24528 command used in the test.
24530 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24531 (grub_register_extcmd_prio): New function prototype.
24532 (grub_extcmd_dispatcher): New function prototype.
24533 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24535 * include/grub/script_sh.h (struct grub_script): New members
24536 `children', `next_siblings' and `refcnt' for block arguments and
24537 reference counting.
24538 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24539 (grub_script_arg): New member `script' for block argument.
24540 (grub_script_argv): New member `script' for block argument.
24541 (grub_parser_param): New member `scripts' for block argument.
24542 (grub_script_mem_free): New extern function prototype.
24543 (grub_script_ref): New function prototype.
24544 (grub_script_unref): New function prototype.
24546 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24547 extcmd form to support block arguments.
24548 * grub-core/script/argv.c: Block arguments support.
24549 * grub-core/script/execute.c: Likewise.
24550 * grub-core/script/lexer.c: Likewise.
24551 * grub-core/script/main.c: Likewise.
24552 * grub-core/script/script.c: Likewise.
24553 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24556 * grub-core/commands/acpi.c: Update extcmd implementations with
24557 grub_extcmd_context_t.
24558 * grub-core/commands/cat.c: Likewise.
24559 * grub-core/commands/echo.c: Likewise.
24560 * grub-core/commands/extcmd.c: Likewise.
24561 * grub-core/commands/hashsum.c: Likewise.
24562 * grub-core/commands/hdparm.c: Likewise.
24563 * grub-core/commands/help.c: Likewise.
24564 * grub-core/commands/hexdump.c: Likewise.
24565 * grub-core/commands/i386/cpuid.c: Likewise.
24566 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24567 * grub-core/commands/i386/pc/halt.c: Likewise.
24568 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24569 * grub-core/commands/iorw.c: Likewise.
24570 * grub-core/commands/keystatus.c: Likewise.
24571 * grub-core/commands/loadenv.c: Likewise.
24572 * grub-core/commands/ls.c: Likewise.
24573 * grub-core/commands/lspci.c: Likewise.
24574 * grub-core/commands/memrw.c: Likewise.
24575 * grub-core/commands/probe.c: Likewise.
24576 * grub-core/commands/search_wrap.c: Likewise.
24577 * grub-core/commands/setpci.c: Likewise.
24578 * grub-core/commands/sleep.c: Likewise.
24579 * grub-core/disk/loopback.c: Likewise.
24580 * grub-core/hello/hello.c: Likewise.
24581 * grub-core/loader/i386/bsd.c: Likewise.
24582 * grub-core/loader/xnu.c: Likewise.
24583 * grub-core/term/gfxterm.c: Likewise.
24584 * grub-core/term/serial.c: Likewise.
24585 * grub-core/tests/lib/functional_test.c: Likewise.
24587 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24589 Multi-line quoted strings support.
24591 * grub-core/script/lexer.c (append_newline): Removed.
24592 (grub_script_lexer_yywrap): Refactored.
24593 (grub_script_lexer_init): Refactored.
24594 * grub-core/script/yylex.l (yywrap): New function.
24595 (grub_lexer_resplit): New function.
24596 (grub_lexer_unput): New function.
24597 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24599 * tests/grub_script_echo1.in: Added few more testcases.
24601 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24603 * grub-core/kern/misc.c: Don't add abort alias in utils.
24604 Reported by: echoline.
24606 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24608 Add missing files into "make dist" tarball for other platforms.
24610 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24611 * conf/Makefile.common (dist_noinst_DATA): New variable.
24612 * conf/Makefile.extra-dist: Added missing make dist files.
24613 * grub-core/Makefile.core.def: Likewise.
24615 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24617 Compress grub_prefix.
24619 * grub-core/boot/i386/pc/lnxboot.S: Use
24620 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24621 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24622 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24623 GRUB_MACHINE_PREFIX_END. All users updated.
24624 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24625 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24627 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24628 * util/grub-mkimage.c (image_target_desc): Change data_end to
24629 prefix_end. All users updated.
24631 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24633 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24635 (grub_openbsd_boot): Likewise.
24636 (grub_netbsd_boot): Likewise.
24637 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24638 (grub_xnu_boot): Likewise.
24640 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24642 * configure.ac: Clean LIBS variable after tests.
24644 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24646 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24648 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24650 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24651 echo if libdevmapper will be used.
24653 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24655 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24656 constant for the same file.
24658 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24660 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24662 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24664 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24667 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24669 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24670 required by the boot protocol.
24672 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24673 ebp and edi members.
24674 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24675 state.ebp and state.edi.
24676 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24677 %ebp and %edi according to grub_relocator32_ebp and
24678 grub_relocator32_edi respectively.
24679 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24682 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24684 Add i386-pc-pxe image target.
24686 * util/grub-mkimage.c (image_target_desc): New enum value
24688 (image_targets): New target i386-pc-pxe.
24689 (generate_image): Handle i386-pc-pxe image.
24691 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24695 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24696 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24698 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24699 (grub_pxe_pxenv): Correct type.
24701 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24703 * NEWS: Document most of the important changes since 1.98.
24705 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24707 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24708 generated manual page) a little.
24710 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24712 * docs/grub.texi: Add myself as an author.
24714 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24716 * Makefile.util.def (libgrub.a): Add missing sunpc.
24717 Reported by: Seth Goldberg.
24719 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24721 Interrupt wrapping and code simplifications.
24723 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24724 x86_noieee1275 which are functionaly equivalent in this case.
24725 (grub-install): Make source on each platform explicit. Enable on
24727 * gentpl.py (x86_efi_pc): Removed group.
24728 (x86_noefi): Likewise.
24729 (i386_noefi): Likewise.
24730 (x86_noieee1275): Likewise.
24731 (i386_noieee1275): Likewise.
24732 (i386_noefi_noieee1275): Likewise.
24733 (i386_pc_qemu_coreboot): Likewise.
24734 (i386_coreboot_multiboot): Likewise.
24735 (i386_pc_coreboot_multiboot_qemu): Likewise.
24736 (x86_noefi_mips): Likewise.
24737 (noieee1275): Likewise.
24738 (ieee1275_mips): Likewise.
24739 (noemu_noieee1275): Likewise.
24742 (videoinkernel): Likewise.
24743 (videomodules): Likewise.
24744 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24745 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24746 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24747 include/grub/loader.h, include/grub/msdos_partition.h,
24748 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24749 include/grub/machine/console.h, include/grub/machine/vga.h,
24750 include/grub/machine/vbe.h, include/grub/machine/init.h,
24751 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24752 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24753 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24754 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24755 * grub-core/Makefile.core.def (kernel): Explicit the source for
24756 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24757 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24758 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24759 Use videoinkernel tag.
24760 (usb): Enable on all usb.
24761 (usbserial_common): Likewise.
24762 (usbserial_pl2303): Likewise.
24763 (usbserial_ftdi): Likewise.
24764 (uhci): Enable on all x86.
24765 (ohci): Enable on all pci.
24766 (cmostest): Enable on all CMOS.
24767 (acpi): Include commands/acpi.c on all platforms.
24768 (halt): Add relevant lib/*/halt.c.
24769 (hdparm): Enable on all pci.
24771 (usbtest): Enable on all usb.
24772 (ata): Enable on all pci.
24773 (ata_pthru): Likewise.
24774 (usbms): Enable on all usb.
24775 (usb_keyboard): Likewise.
24776 (font): Use tag videomodules.
24778 (datetime): Use tag cmos. Enable on all noemu.
24779 (mmap): Use tags common and x86.
24780 (gfxterm): Use tag videomodules.
24781 (bitmap): Likewise.
24782 (bitmap_scale): Likewise.
24783 (video_fb): Likewise.
24785 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24786 adjust padding accordingly. All users updated.
24787 (grub_ohci_transaction): Fix bad format specification.
24788 (GRUB_MOD_INIT): Add asserts for struct size.
24789 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24790 (grub_alloc_td): Likewise.
24791 (grub_free_queue): Likewise.
24792 (grub_uhci_transfer): Likewise.
24793 (grub_uhci_transaction): Fix bad format specification.
24794 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24795 (grub_usb_bulk_readwrite): Likewise.
24796 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24797 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24799 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24801 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24802 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24803 Transformed into C.
24804 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24805 Moved from here ...
24806 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24807 ... here. Transformed into C. Made static.
24808 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24809 Moved from here ...
24810 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24811 ... here. Transformed into C. Made static.
24812 * grub-core/kern/i386/pc/startup.S
24813 (grub_biosdisk_check_int13_extensions): Moved from here ...
24814 * grub-core/disk/i386/pc/biosdisk.c
24815 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24817 * grub-core/kern/i386/pc/startup.S
24818 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24819 * grub-core/disk/i386/pc/biosdisk.c
24820 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24821 Transformed into C. Made static.
24822 * grub-core/kern/i386/pc/startup.S
24823 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24824 * grub-core/disk/i386/pc/biosdisk.c
24825 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24826 Transformed into C. Made static.
24827 * grub-core/kern/i386/pc/startup.S
24828 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24829 * grub-core/disk/i386/pc/biosdisk.c
24830 (grub_biosdisk_get_diskinfo_standard): ... here.
24831 Transformed into C. Made static.
24832 * grub-core/kern/i386/pc/startup.S
24833 (grub_biosdisk_get_num_floppies): Moved from here ...
24834 * grub-core/disk/i386/pc/biosdisk.c
24835 (grub_biosdisk_get_num_floppies): ... here.
24836 Transformed into C. Made static.
24837 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24839 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24840 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24841 Transformed into C. Made static.
24842 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24843 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24844 Transformed into C. Made static.
24845 * grub-core/kern/i386/ieee1275/init.c: Removed.
24846 * grub-core/kern/i386/misc.S: Likewise.
24847 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24848 Splitted from here ...
24849 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24850 Transformed into C. Made static. All users updated.
24851 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24852 Transformed into C. Made static. All users updated.
24853 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24855 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24856 Transformed into C. Made static. All users updated.
24857 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24859 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24860 Transformed into C. Made static. All users updated.
24861 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24862 Removed (replaced by C version).
24863 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24865 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24866 Transformed into C. Made static.
24867 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24869 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24870 ... here. Transformed into C.
24871 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24873 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24874 ... here. Transformed into C.
24875 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24877 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24878 ... here. Transformed into C. Made static.
24879 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24881 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24882 ... here. Transformed into C.
24883 * grub-core/kern/i386/pc/startup.S
24884 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24885 * grub-core/video/i386/pc/vbe.c
24886 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24887 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24889 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24890 ... here. Transformed into C.
24891 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24893 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24894 ... here. Transformed into C.
24895 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24897 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24898 ... here. Transformed into C.
24899 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24901 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24902 ... here. Transformed into C.
24903 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24905 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24906 ... here. Transformed into C. Made static.
24907 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24909 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24910 ... here. Transformed into C. Made static.
24911 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24913 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24914 ... here. Transformed into C. Made static.
24915 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24916 pxe_rm_entry as third argument.
24917 (grub_bios_interrupt): New function.
24918 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24919 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24920 of calling grub_stop.
24921 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24922 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24923 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24924 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24925 * grub-core/lib/i386/halt.c: Moved from here ...
24926 * grub-core/lib/i386/halt.c: ... here.
24927 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24928 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24929 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24931 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24932 * include/grub/i386/coreboot/init.h: Removed.
24933 * include/grub/i386/multiboot/init.h: Likewise.
24934 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24935 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24936 * include/grub/i386/pc/int.h: New file.
24937 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24938 (grub_pxe_scan): Removed.
24939 (grub_pxe_call): Update prototype.
24940 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24942 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24943 * include/grub/i386/qemu/init.h: Removed.
24944 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24946 (grub_halt): Likewise.
24947 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24948 (grub_reboot): Likewise.
24949 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24950 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24951 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24953 2010-08-30 Robert Millan <rmh@gnu.org>
24955 * NEWS: Document addition of ZFS support in `grub-install' and
24958 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24960 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24963 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24965 Remove leftover embedding of font objects.
24967 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24968 * util/grub-install.in (font): Removed.
24969 * util/grub-mkimage.c (generate_image): Remove font support. All users
24972 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24974 Remove leftover embedding of font objects.
24976 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24977 * util/grub-install.in (font): Removed.
24978 * util/grub-mkimage.c (generate_image): Remove font support. All users
24981 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24983 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24984 Reported by: Ian Turner
24986 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24988 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24989 timeout to avoid indefinite boot stalling.
24991 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24993 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24994 (grub_env_write_color_highlight): Likewise.
24996 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24998 * grub-core/normal/term.c (print_more): Return to normal and not
24999 to standard state after printing "---MORE---".
25001 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25003 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25004 Mask out the bit 0x80 since it has other meaning that specifiing color.
25006 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25008 New relocator. Allows for more kernel support and more straightforward
25011 * Makefile.am (BOOTTARGET): New variable.
25012 (QEMU32): Likewise.
25013 (linux.init.x86_64): New target.
25014 (linux.init.i386): Likewise.
25015 (multiboot.elf): Likewise.
25016 (kfreebsd.elf): Likewise.
25017 (kfreebsd.aout): Likewise.
25018 (pc-chainloader.elf): Likewise.
25019 (pc-chainloader.bin): Likewise.
25020 (ntldr.elf): Likewise.
25021 (ntldr.bin): Likewise.
25022 (multiboot2.elf): Likewise.
25023 (kfreebsd.init.x86_64): Likewise.
25024 (kfreebsd.init.i386): Likewise.
25025 (knetbsd.init.i386): Likewise.
25026 (kopenbsd.init.i386): Likewise.
25027 (knetbsd.init.x86_64): Likewise.
25028 (kopenbsd.init.x86_64): Likewise.
25029 (linux-initramfs.i386): Likewise.
25030 (linux-initramfs.x86_64): Likewise.
25031 (kfreebsd-mfsroot.i386.img): Likewise.
25032 (knetbsd.image.i386): Likewise.
25033 (kopenbsd.image.i386): Likewise.
25034 (kopenbsd.image.x86_64): Likewise.
25035 (knetbsd.miniroot-image.i386.img): Likewise.
25036 (kfreebsd-mfsroot.x86_64.img): Likewise.
25037 (knetbsd.image.x86_64): Likewise.
25038 (knetbsd.miniroot-image.x86_64.img): Likewise.
25039 (kfreebsd-mfsroot.i386.gz): Likewise.
25040 (bootcheck-kfreebsd-i386): Likewise.
25041 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25042 (bootcheck-kfreebsd-x86_64): Likewise.
25043 (knetbsd.miniroot-image.i386.gz): Likewise.
25044 (bootcheck-knetbsd-i386): Likewise.
25045 (bootcheck-kopenbsd-i386): Likewise.
25046 (bootcheck-kopenbsd-x86_64): Likewise.
25047 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25048 (bootcheck-knetbsd-x86_64): Likewise.
25049 (bootcheck-linux-i386): Likewise.
25050 (bootcheck-linux-x86_64): Likewise.
25051 (bootcheck-linux16-i386): Likewise.
25052 (bootcheck-linux16-x86_64): Likewise.
25053 (bootcheck-multiboot): Likewise.
25054 (bootcheck-multiboot2): Likewise.
25055 (bootcheck-kfreebsd-aout): Likewise.
25056 (bootcheck-pc-chainloader): Likewise.
25057 (bootcheck-ntldr): Likewise.
25058 (CLEANFILES): Add new targets.
25059 (BOOTCHECKS): New variable.
25060 (.PHONY): Add bootchecks.
25061 (SUCCESSFUL_BOOT_STRING): New variable.
25062 (BOOTCHECK_TIMEOUT): Likewise.
25063 (bootcheck): New target
25064 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25065 * configure.ac: Correct efiemu excuse.
25066 * docs/grub.texi (Supported kernels): New chapter.
25067 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25068 include/grub/mm_private.h. Simplify inclusion of
25069 include/grub/boot.h, include/grub/loader.h
25070 and include/grub/msdos_partition.h
25071 (KERNEL_HEADER_FILES) [i386_coreboot]:
25072 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25073 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25074 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25075 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25076 include/grub/machine/loader.h.
25077 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25078 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25080 (pci.mod): Enable on i386-multiboot.
25081 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25082 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25084 (relocator.mod): Rewritten.
25085 (aout.mod): Enable on all x86.
25086 (bsd.mod): Likewise.
25087 (ntldr.mod): New module.
25088 (linux.mod): Use loader/i386/linux.c on all x86.
25089 (xnu.mod): Enable on all x86.
25090 (vga_text.mod): disable on EFI and QEMU.
25091 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25092 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25093 * grub-core/efiemu/loadcore.c: Likewise.
25094 * grub-core/efiemu/main.c: Likewise.
25095 (grub_efiemu_exit_boot_services): Removed.
25096 (grub_efiemu_finish_boot_services): Likewise.
25097 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25099 * grub-core/efiemu/i386/nocfgtables.c: New file.
25100 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25101 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25102 (grub_efi_finish_boot_services): Moved from here ...
25103 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25104 Fille finish memory map and related data.
25105 (finish_mmap_buf): New variable.
25106 (grub_efi_uintn_t finish_mmap_size): Likewise.
25107 (grub_efi_uintn_t finish_key): Likewise.
25108 (grub_efi_uintn_t finish_desc_size): Likewise.
25109 (grub_efi_uint32_t finish_desc_version): Likewise.
25110 (grub_efi_is_finished): Likewise.
25111 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25113 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25114 (grub_elf64_phdr_iterate): Likewise.
25115 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25116 (grub_os_area_size): Likewise.
25117 (grub_machine_init): Don't reserve os area.
25118 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25119 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25120 * grub-core/kern/i386/loader.S: Removed.
25121 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25122 (grub_os_area_size): Likewise.
25123 (grub_machine_init): Don't reserve os area.
25124 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25125 Don't call grub_dl_unload_all.
25126 Don't include loader.S.
25127 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25128 Declare the memory after _end as available.
25129 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25130 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25131 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25132 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25133 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25134 * include/grub/mm_private.h (grub_mm_header): ... here.
25135 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25136 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25137 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25138 (grub_mm_region): ..here. Removed addr. Added pre_size.
25140 * grub-core/kern/mm.c (base): Renamed to ...
25141 (grub_mm_base): ... this. Made global.
25142 (grub_real_malloc): Alloc from end of region.
25143 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25144 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25145 * grub-core/kern/powerpc/cache_flush.S: ... here.
25146 * grub-core/lib/efi/relocator.c: New file.
25147 * grub-core/lib/i386/relocator.c: Rewritten.
25148 * grub-core/lib/i386/relocator16.S: New file.
25149 * grub-core/lib/i386/relocator32.S: Likewise.
25150 * grub-core/lib/i386/relocator64.S: Likewise.
25151 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25152 * grub-core/lib/i386/relocator_common.S: New file.
25153 * grub-core/lib/ieee1275/relocator.c: Likewise.
25154 * grub-core/lib/mips/relocator.c: Rewritten.
25155 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25156 stylistic adjustments.
25157 * grub-core/lib/powerpc/relocator.c: New file.
25158 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25159 * grub-core/lib/relocator.c: Rewritten.
25160 * grub-core/lib/x86_64/relocator_asm.S: New file.
25161 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25162 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25163 (bsd_tag): New struct.
25164 (tags): New variable.
25165 (tags_last): Likewise.
25166 (netbsd_module): New struct.
25167 (netbsd_mods): New variable.
25168 (netbsd_mods_last): Likewise.
25169 (openbsd_opts): New parameter "serial".
25170 (OPENBSD_SERIAL_ARG): New definition.
25171 (netbsd_opts): New parameter "serial".
25172 (NETBSD_SERIAL_ARG): New definition.
25173 (grub_freebsd_add_meta): Reorganised into ...
25174 (grub_bsd_add_meta): ...this. All users updated.
25175 (grub_freebsd_add_mmap): Reorganised into ...
25176 (generate_e820_mmap): ...this...
25177 (grub_bsd_add_mmap): ...and this. All users updated.
25178 (grub_freebsd_list_modules): Use tags.
25179 (grub_netbsd_add_meta_module): New function.
25180 (grub_netbsd_list_modules): Likewise.
25181 (grub_freebsd_boot): Use relocator and finish EFI.
25182 (grub_openbsd_boot): Likewise.
25183 (grub_netbsd_setup_video): New function.
25184 (grub_netbsd_add_modules): Likewise.
25185 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25187 (grub_bsd_unload): Unload tags.
25188 (grub_bsd_load_aout): Use relocator.
25189 (grub_bsd_elf32_size_hook): New function.
25190 (grub_bsd_elf32_hook): Use relocator.
25191 (grub_bsd_elf64_size_hook): New function.
25192 (grub_bsd_elf64_hook): Use relocator.
25193 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25194 (grub_bsd_load): Zero-out openbsd_ramdisk.
25195 (grub_bsd_load): Use relocator.
25196 (grub_cmd_openbsd): Support serial.
25197 (grub_cmd_netbsd): Support modules.
25198 (grub_cmd_freebsd_module): Use relocator.
25199 (grub_netbsd_module_load): New function.
25200 (grub_cmd_netbsd_module): Likewise.
25201 (grub_cmd_openbsd_ramdisk): Likewise.
25202 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25204 (GRUB_MOD_FINI): Unregister new commands.
25205 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25206 (grub_freebsd_load_elfmodule_obj): Use relocator.
25207 (grub_freebsd_load_elfmodule): Likewise.
25208 (grub_freebsd_load_elf_meta): Likewise.
25209 (grub_netbsd_load_elf_meta): New function.
25210 (grub_openbsd_find_ramdisk): Likewise.
25211 * grub-core/loader/i386/bsd_helper.S: Removed.
25212 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25213 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25214 * grub-core/loader/i386/efi/linux.c: Likewise.
25215 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25216 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25217 (DEFAULT_VIDEO_MODE): Likewise.
25218 (real_mode_target): New variable.
25219 (prot_mode_target): Likewise.
25220 (initrd_mem_target): Likewise.
25221 (relocator): Likewise.
25222 (efi_mmap_buf): Likewise.
25223 (efi_mmap_size): Likewise.
25224 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25225 (free_pages): Use relocator.
25226 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25227 (grub_linux_setup_video): Return error.
25228 (grub_linux_trampoline_start): Removed.
25229 (grub_linux_trampoline_end): Likewise.
25230 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25231 andd video parameters depending on firmware.
25232 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25233 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25234 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25235 (grub_cmd_initrd): Use relocator.
25236 * grub-core/loader/i386/linux_trampoline.S: Removed.
25237 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25238 (elf_sec_entsize): Likewise.
25239 (elf_sec_shstrndx): Likewise.
25240 (elf_sections): Likewise.
25241 (grub_multiboot_load): Use relocator.
25242 (grub_multiboot_get_mbi_size): Account for sections.
25243 (grub_multiboot_make_mbi): Use relocator and support sections.
25244 (grub_multiboot_add_elfsyms): New function.
25245 (grub_multiboot_free_mbi): Free sections.
25246 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25247 (grub_linux_real_target): Likewise.
25248 (grub_linux_real_chunk): Likewise.
25249 (grub_linux16_prot_size): Likewise.
25250 (grub_linux16_boot): Use relocator.
25251 (grub_linux_unload): Unload relocator.
25252 (grub_cmd_linux): Use relocator.
25253 (grub_cmd_initrd): Likewise.
25254 * grub-core/loader/i386/pc/ntldr.c: New file.
25255 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25256 Don't try to guess CPU frequency.
25257 (grub_xnu_set_video): Stretch bitmap.
25258 (grub_xnu_boot): Use relocator.
25259 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25260 (grub_linux_unload): Free relocator.
25261 (grub_linux_load32): Use relocator.
25262 (grub_linux_load64): Likewise.
25263 (grub_cmd_initrd): Likewise.
25264 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25265 (grub_multiboot_unload): Unload relocator.
25266 (grub_cmd_multiboot): Use relocator.
25267 (grub_cmd_module): Likewise.
25268 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25269 Use relocator and support sections.
25270 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25271 (elf_sec_entsize): Likewise.
25272 (elf_sec_shstrndx): Likewise.
25273 (elf_sections): Likewise.
25274 (grub_multiboot_load): Use relocator.
25275 (grub_multiboot_get_mbi_size): Account for sections.
25276 (grub_multiboot_make_mbi): Use relocator and support sections.
25277 (grub_multiboot_add_elfsyms): New function.
25278 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25279 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25280 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25281 Prototype changed. All users updated.
25282 (grub_xnu_align_heap): Simplified.
25283 (grub_xnu_writetree_toheap): Likewise.
25284 (grub_xnu_unload): Unload relocator.
25285 (grub_cmd_xnu_kernel): Use relocator.
25286 (grub_cmd_xnu_kernel64): Likewise.
25287 (grub_xnu_register_memory): Simplified.
25288 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25289 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25291 (grub_console_checkkey): Likewise.
25292 (grub_console_getkey): Likewise.
25293 (grub_console_getwh): Likewise.
25294 (grub_console_getxy): Likewise.
25295 (grub_console_gotoxy): Likewise.
25296 (grub_console_cls): Likewise.
25297 (grub_console_setcolorstate): Likewise.
25298 (grub_console_setcursor): Likewise.
25299 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25300 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25301 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25302 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25303 * grub-core/tests/boot/kernel-8086.S: Likewise.
25304 * grub-core/tests/boot/kernel-i386.S: Likewise.
25305 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25306 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25307 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25308 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25309 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25310 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25311 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25312 * grub-core/tests/boot/linux.cfg: Likewise.
25313 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25314 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25315 * grub-core/tests/boot/linux16.cfg: Likewise.
25316 * grub-core/tests/boot/multiboot.cfg: Likewise.
25317 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25318 * grub-core/tests/boot/ntldr.cfg: Likewise.
25319 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25320 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25321 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25323 * include/grub/dl.h (grub_dl_unload_all): Removed.
25324 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25325 (grub_efi_finish_boot_services): Change prototype.
25326 (grub_efi_is_finished): New variable.
25327 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25329 (grub_efiemu_finish_boot_services): Removed.
25330 (grub_machine_efiemu_init_tables): New prototype.
25331 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25332 (grub_elf64_phdr_iterate): Likewise.
25333 * include/grub/i386/bsd.h: Include relocator.h.
25334 (freebsd_tag_header): New struct.
25335 (grub_openbsd_bios_mmap): Removed.
25336 (grub_unix_real_boot): Removed.
25337 (grub_freebsd_load_elfmodule32): Changed prototype.
25338 (grub_freebsd_load_elfmodule_obj64): Likewise.
25339 (grub_freebsd_load_elf_meta32): Likewise.
25340 (grub_freebsd_load_elf_meta64): Likewise.
25341 (grub_freebsd_add_meta): Removed.
25342 (grub_netbsd_load_elf_meta32): New prototype.
25343 (grub_netbsd_load_elf_meta64): Likewise.
25344 (grub_bsd_add_meta): Likewise.
25345 (grub_openbsd_ramdisk_descriptor): New struct.
25346 (grub_openbsd_find_ramdisk32): New prototype.
25347 (grub_openbsd_find_ramdisk64): Likewise.
25348 * include/grub/i386/coreboot/loader.h: Removed.
25349 * include/grub/i386/efi/loader.h: Likewise.
25350 * include/grub/i386/ieee1275/loader.h: Likewise.
25351 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25353 * include/grub/i386/loader.h: Removed.
25354 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25356 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25357 (grub_phys_addr_t): New type.
25358 (grub_vtop): New inline function.
25359 (grub_map_memory): Likewise.
25360 (grub_unmap_memory): Likewise.
25361 * include/grub/i386/multiboot/loader.h: Removed.
25362 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25363 (NETBSD_BTINFO_CONSOLE): New definition.
25364 (NETBSD_BTINFO_SYMTAB): Likewise.
25365 (NETBSD_BTINFO_MODULES): Likewise.
25366 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25367 (grub_netbsd_bootinfo): New struct.
25368 (grub_netbsd_btinfo_common): Use explicit bitsize.
25369 (grub_netbsd_btinfo_mmap_entry): Removed.
25370 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25371 (grub_netbsd_btinfo_bootdisk): New struct.
25372 (grub_netbsd_btinfo_symtab): Likewise.
25373 (grub_netbsd_btinfo_serial): Likewise.
25374 (grub_netbsd_btinfo_modules): Likewise.
25375 (grub_netbsd_btinfo_framebuf): Likewise.
25376 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25377 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25379 (grub_openbsd_bootargs): Use explicit bitsize.
25380 (grub_openbsd_bootarg_console): New struct.
25381 (GRUB_OPENBSD_COM_MAJOR): New definition.
25382 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25383 * include/grub/i386/pc/efiemu.h: Removed.
25384 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25385 * include/grub/i386/qemu/loader.h: Removed.
25386 * include/grub/i386/relocator.h: Rewritten.
25387 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25388 * include/grub/mips/memory.h: New file.
25389 * include/grub/mips/multiboot.h: Rewritten.
25390 * include/grub/mips/relocator.h: Rewritten.
25391 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25392 (grub_vtop): New function.
25393 (grub_map_memory): Likewise.
25394 (grub_unmap_memory): Likewise.
25395 * include/grub/misc.h (ALIGN_DOWN): New definition.
25396 * include/grub/mm.h (grub_mm_check_real): New proto.
25397 (GRUB_MM_CHECK): New definition.
25398 * include/grub/mm_private.h: New file.
25399 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25400 (grub_multiboot_get_mbi_size): Removed.
25401 (grub_multiboot_make_mbi): Change prottype.
25402 (grub_multiboot_set_accepts_video): New proto.
25403 (grub_multiboot_add_elfsyms): Likewise.
25404 (grub_multiboot_payload_eip): New variable.
25405 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25407 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25409 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25410 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25411 * include/grub/powerpc/ieee1275/loader.h: Removed.
25412 * include/grub/powerpc/memory.h: New file.
25413 * include/grub/powerpc/relocator.h: Likewise.
25414 * include/grub/relocator.h: Likewise.
25415 * include/grub/relocator_private.h: Likewise.
25416 * include/grub/sparc64/ieee1275/loader.h: Removed.
25417 * include/grub/x86_64/memory.h: New file.
25418 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25419 (grub_xnu_heap_malloc): Likewise.
25420 (grub_xnu_heap_real_start): Removed.
25421 (grub_xnu_heap_start): Likewise.
25422 (grub_xnu_relocator): New variable.
25423 (grub_xnu_heap_target_start): Likewise.
25424 * tests/util/grub-shell.in: Support non-pc.
25425 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25429 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25431 (grub_bidi_logical_to_visual): Check that malloc succeded.
25432 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25434 (grub_xputs_normal): Likewise.
25436 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25438 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25441 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25443 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25445 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25447 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25449 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25451 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25454 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25456 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25458 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25460 * grub-core/normal/term.c (print_more): Fix a memory leak.
25461 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25462 (grub_xputs_normal): Likewise.
25464 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25466 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25467 the begining of the string
25469 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25471 * grub-core/script/script.c (grub_script_parse): Free parsed on
25474 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25476 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25479 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25481 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25484 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25486 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25487 (scroll_up): Fix a memory leak.
25489 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25491 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25494 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25496 Handle USB pendrives exposed as floppies.
25498 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25500 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25501 Check for partitions on all devices.
25503 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25505 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25506 (readkey): Likewise.
25508 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25510 Multiple variable names support to "export" command.
25512 * normal/context.c (grub_cmd_export): "export" command supports
25513 multiple variable names.
25515 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25517 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25518 --target=drive output to Mach device name.
25520 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25522 New Automake based build system for GRUB.
25524 * ABOUT-NLS: New file.
25525 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25526 in Makefile.util.def file.
25527 * Makefile.util.def: New file. Autogen build definitions file for
25529 * conf/Makefile.common: New file. Common variables for GRUB host
25530 utils and target modules.
25531 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25532 * docs/Makefile.am: New file. Automake file for docs.
25533 * gentpl.py: New file. Python script to generate Autogen
25535 * grub-core/Makefile.am: New file. GRUB target modules' rules
25536 that doesn't fit in Makefile.core.def file.
25537 * grub-core/Makefile.core.def: New file. Autogen build
25538 definitions file for GRUB target modules.
25539 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25540 specific setjmp.S file.
25541 * po/Makefile.am: New file.
25543 * .bzrignore: New ignores.
25544 * INSTALL: New requirements, without Ruby.
25545 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25546 * autogen.sh: Updated to invoke autogen as necessary.
25547 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25548 and defines for Automake conditionals.
25549 * geninit.sh: Refactoring.
25551 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25553 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25556 * include/grub/test.h: Fix functional test modules' naming.
25557 * grub-core/tests/example_functional_test.c: Fix test module name.
25559 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25560 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25561 * util/grub-editenv.c: Likewise.
25562 * util/grub-fstest.c: Likewise.
25563 * util/grub-mkdevicemap.c: Likewise.
25564 * util/grub-mkfont.c: Likewise.
25565 * util/grub-mkimage.c: Likewise.
25566 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25567 * util/grub-probe.c: Likewise.
25568 * util/grub-script-check.c: Likewise.
25569 * util/i386/pc/grub-setup.c: Likewise.
25570 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25572 * tests/util/grub-shell.in: Fix override directory path.
25573 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25574 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25576 * util/lvm.c: Update #includes.
25577 * util/raid.c: Likewise.
25578 * util/resolve.c: Likewise.
25579 * grub-core/bus/emu/pci.c: Likewise.
25580 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25581 * grub-core/lib/posix_wrap/string.h: Likewise.
25582 * grub-core/kern/emu/main.c: Likewise.
25584 * grub-core/gensymlist.sh: New file. Script for generating kernel
25586 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25588 * grub-core/gentrigtables.c: Fix unused variable warnings.
25590 * Makefile.in: Removed.
25591 * conf/any-emu.rmk: Removed.
25592 * conf/common.rmk: Removed.
25593 * conf/i386-coreboot.rmk: Removed.
25594 * conf/i386-efi.rmk: Removed.
25595 * conf/i386-ieee1275.rmk: Removed.
25596 * conf/i386-multiboot.rmk: Removed.
25597 * conf/i386-pc.rmk: Removed.
25598 * conf/i386-qemu.rmk: Removed.
25599 * conf/i386.rmk: Removed.
25600 * conf/mips-yeeloong.rmk: Removed.
25601 * conf/mips.rmk: Removed.
25602 * conf/powerpc-ieee1275.rmk: Removed.
25603 * conf/sparc64-ieee1275.rmk: Removed.
25604 * conf/tests.rmk: Removed.
25605 * conf/x86-efi.rmk: Removed.
25606 * conf/x86_64-efi.rmk: Removed.
25607 * gendistlist.sh: Removed.
25608 * geninitheader.sh: Removed.
25609 * genkernsyms.sh.in: Removed.
25610 * genmk.rb: Removed.
25611 * gensymlist.sh.in: Removed.
25612 * mkinstalldirs: Removed.
25614 * grub-core/boot: ... to here.
25616 * grub-core/bus: ... to here.
25617 * commands: Moved ...
25618 * grub-core/commands: ... to here.
25620 * grub-core/disk: ... to here.
25621 * efiemu: Moved ...
25622 * grub-core/efiemu: ... to here.
25624 * grub-core/font: ... to here.
25626 * grub-core/fs: ... to here.
25627 * gencmdlist.sh: Moved ...
25628 * grub-core/gencmdlist.sh: ... to here.
25629 * genemuinit.sh: Moved ...
25630 * grub-core/genemuinit.sh: ... to here.
25631 * genemuinitheader.sh: Moved ...
25632 * grub-core/genemuinitheader.sh: ... to here.
25633 * genfslist.sh: Moved ...
25634 * grub-core/genfslist.sh: ... to here.
25635 * genhandlerlist.sh: Moved ...
25636 * grub-core/genhandlerlist.sh: ... to here.
25637 * genmoddep.awk: Moved ...
25638 * grub-core/genmoddep.awk: ... to here.
25639 * genmodsrc.sh: Moved ...
25640 * grub-core/genmodsrc.sh: ... to here.
25641 * genpartmaplist.sh: Moved ...
25642 * grub-core/genpartmaplist.sh: ... to here.
25643 * genparttoollist.sh: Moved ...
25644 * grub-core/genparttoollist.sh: ... to here.
25645 * genterminallist.sh: Moved ...
25646 * grub-core/genterminallist.sh: ... to here.
25647 * gentrigtables.c: Moved ...
25648 * grub-core/gentrigtables.c: ... to here.
25649 * genvideolist.sh: Moved ...
25650 * grub-core/genvideolist.sh: ... to here.
25651 * gettext: Moved ...
25652 * grub-core/gettext: ... to here.
25653 * gfxmenu: Moved ...
25654 * grub-core/gfxmenu: ... to here.
25655 * gnulib: Moved ...
25656 * grub-core/gnulib: ... to here.
25658 * grub-core/hello: ... to here.
25660 * grub-core/hook: ... to here.
25662 * grub-core/io: ... to here.
25664 * grub-core/kern: ... to here.
25666 * grub-core/lib: ... to here.
25667 * loader: Moved ...
25668 * grub-core/loader: ... to here.
25670 * grub-core/mmap: ... to here.
25671 * normal: Moved ...
25672 * grub-core/normal: ... to here.
25673 * partmap: Moved ...
25674 * grub-core/partmap: ... to here.
25675 * parttool: Moved ...
25676 * grub-core/parttool: ... to here.
25677 * script: Moved ...
25678 * grub-core/script: ... to here.
25680 * grub-core/term: ... to here
25681 * tests/example_functional_test.c: Moved ...
25682 * grub-core/tests/example_functional_test.c: ... to here.
25683 * tests/lib/functional_test.c: Moved ...
25684 * grub-core/tests/lib/functional_test.c: ... to here.
25685 * tests/lib/test.c: Moved ...
25686 * grub-core/tests/lib/test.c: ... to here.
25688 * grub-core/video: ... to here.
25690 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25692 Replace --enable-grub-emu-modules with grub-emu-lite.
25694 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25697 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25698 * kern/emu/full.c: New file. For grub-emu specific initialization.
25699 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25700 * kern/emu/main.c: Call initialization function grub_emu_init.
25702 * Makefile.in: Include grub-emu-lite in install.
25703 * commands/parttool.c: Use grub_no_autoload to differentiate
25704 between grub-emu and grub-emu-lite.
25705 * include/grub/misc.h: New variable grub_no_autoload.
25707 * conf/any-emu.rmk: New rules for grub-emu-lite.
25708 * configure.ac: Remove --enable-grub-emu-modules.
25709 * genmk.rb: Cleanup unnecessary rules.
25710 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25712 * normal/main.c: Don't load list files on grub-emu-lite.
25713 * util/misc.c (grub_arch_sync_caches): Removed.
25715 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25717 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25718 grub-mkimage rather than grub-mkelfimage.
25719 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25721 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25723 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25724 a key after CapsLock or NumLock. It's just a qemu bug.
25726 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25728 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25729 needed by libusb wrapper.
25731 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25733 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25735 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25737 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25738 --nounzip is passed.
25740 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25742 USB hotunplugging and USB serial support.
25744 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25745 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25746 (grub_uhci_transfer): Respect timeout and set *actual.
25747 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25748 non-standard length.
25749 (grub_usb_device_attach): Autoload modules.
25750 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25751 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25752 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25754 (grub_usb_add_hub): Fill nports and children.
25755 (attach_root_port): Receive hub instead of controller.
25756 All users updated. Fill hub->devices.
25757 (grub_usb_root_hub): Allocate hub->devices.
25758 (detach_device): New function.
25759 (poll_nonroot_hub): Fill children and detach devices.
25760 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25761 actual arguments. All users updated.
25762 (grub_usb_bulk_read_extended): New function.
25763 * bus/usb/serial/common.c: New file.
25764 * bus/usb/serial/ftdi.c: Likewise.
25765 * bus/usb/serial/pl2303.c: Likewise.
25766 * commands/terminal.c (handle_command): Support wildcard.
25767 * commands/usbtest.c: Output "Unknown" instead of empty string.
25768 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25769 (usbserial_common_mod_SOURCES): New variable.
25770 (usbserial_common_mod_CFLAGS): Likewise.
25771 (usbserial_common_mod_LDFLAGS): Likewise.
25772 (pkglib_MODULES): Add usbserial_pl2303.mod.
25773 (usbserial_pl2303_mod_SOURCES): New variable.
25774 (usbserial_pl2303_mod_CFLAGS): Likewise.
25775 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25776 (pkglib_MODULES): Add usbserial_ftdi.mod.
25777 (usbserial_ftdi_mod_SOURCES): New variable.
25778 (usbserial_ftdi_mod_CFLAGS): Likewise.
25779 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25780 (pkglib_MODULES): Add serial.mod.
25781 (serial_mod_SOURCES): New variable.
25782 (serial_mod_CFLAGS): Likewise.
25783 (serial_mod_LDFLAGS): Likewise.
25784 * conf/i386-pc.rmk: Likewise.
25785 * conf/mips-yeeloong.rmk: Likewise.
25786 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25787 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25788 * disk/usbms.c (first_available_slot): New variable.
25789 (grub_usbms_attach): Don't reuse free slots due to potential cache
25791 * include/grub/serial.h: Moved to ..
25792 * include/grub/ns8250.h: ...this.
25793 * include/grub/serial.h: New file.
25794 * include/grub/term.h (grub_term_poll_usb): New variable.
25795 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25796 readkey. All users updated.
25797 (grub_terminfo_output_state): Pass term to put.
25798 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25799 (grub_usb_controller_dev): Add timeout and actual arguments to
25800 transfer. All users updated.
25801 (grub_usb_interface): New field detach_data.
25802 (grub_usb_device): New fields children and nports.
25803 (grub_usb_ep_type_t): New type.
25804 (grub_usb_get_ep_type): New function.
25805 (grub_usb_bulk_read_extended): Likewise.
25806 * include/grub/usbdesc.h (grub_usb_desc): New type.
25807 * include/grub/usbserial.h: New file.
25808 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25809 * kern/term.c (grub_term_poll_usb): New variable.
25810 (grub_getkey): Call grub_term_poll_usb if set.
25811 (grub_checkkey): Likewise.
25812 (grub_getkeystatus): Likewise.
25813 * term/serial.c: Moved controller-specific parts to ...
25814 * term/ns8250.c: ... here.
25815 * term/serial.c: Mostly rewritten.
25816 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25819 2010-08-20 Robert Millan <rmh@gnu.org>
25821 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25822 a separate module and maybe other interesting combinations.
25824 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25825 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25826 (kfreebsd_entry): Add generic filesystem module load routine.
25827 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25829 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25831 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25832 "numcenter" (I misunderstood the purpose of this entry).
25833 * docs/grub.texi (sendkey): Likewise.
25835 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25837 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25838 status flag options; simply omitting the option is equivalent and
25839 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25840 (keysym_table): Rename "num5numlock" to "numlock".
25841 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25842 can uniformly say that only the last of multiple `sendkey'
25843 invocations has any effect.
25844 * docs/grub.texi (sendkey): New section.
25846 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25848 * commands/i386/pc/sendkey.c (options): Fix three typos.
25850 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25852 Implement sendkey support.
25854 * commands/i386/pc/sendkey.c: New file.
25855 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25856 (sendkey_mod_SOURCES): New variable.
25857 (sendkey_mod_CFLAGS): Likewise.
25858 (sendkey_mod_LDFLAGS): Likewise.
25860 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25862 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25863 fix warnings from Autoconf.
25865 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25867 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25868 to avoid false positives with some assemblers that output things
25869 like "someprefix_func" as part of their output.
25871 2010-08-15 Robert Millan <rmh@gnu.org>
25873 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25875 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25876 grub_get_libzfs_handle() errors.
25878 2010-08-14 Robert Millan <rmh@gnu.org>
25880 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25881 filesystem is not ZFS.
25883 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25885 Fix for misspelled color names defaulting to black/black (bug
25886 reported by Doug Nazar)
25888 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25889 status to prototype.
25890 * normal/color.c (grub_parse_color_name_pair): Return failure
25892 (grub_env_write_color_normal): Ignore bad color names.
25893 (grub_env_write_color_highlight): Likewise.
25894 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25896 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25898 "shift" command support to GRUB script.
25900 * include/grub/script_sh.h (grub_script_shift): New prototype.
25901 * script/execute.c (grub_script_shift): New function.
25902 * script/main.c (grub_script_init): Register shift command.
25903 (grub_script_fini): Unregister shift command.
25904 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25906 * tests/grub_script_shift.in: New testcase.
25907 * conf/tests.rmk: Rules for new testcase.
25909 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25911 "continue" command support to GRUB script.
25913 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25914 (grub_script_break): Continue support.
25915 * script/main.c (grub_script_init): Register continue command.
25916 (grub_script_fini): Unregister continue command.
25918 * tests/grub_script_continue.in: New testcase.
25919 * conf/tests.rmk: Rules for new testcase.
25921 2010-08-12 BVK Chaitanya <bvk@dbook>
25923 "break" command support to GRUB script.
25925 * conf/common.rmk: Rule updates to grub-script-check.
25926 * include/grub/misc.h (grub_min): New function.
25927 * include/grub/script_sh.h (grub_script_init): New prototype.
25928 (grub_script_fini): New prototype.
25929 (grub_script_break): New prototype.
25930 * script/main.c (grub_script_init): New function.
25931 (grub_script_fini): New function.
25932 * script/execute.c (grub_script_break): New function.
25933 * normal/main.c: Calls to grub_script_{init,fini}.
25934 * util/grub-script-check.c (grub_script_break): New function.
25936 * tests/grub_script_break.in: New testcase.
25937 * conf/tests.rmk: Rules for new test case.
25939 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25941 Function parameters support to GRUB script.
25943 * script/yylex.l (VARIABLE): Regular expression update.
25944 * script/function.c (grub_script_function_call): Moved ...
25945 * script/execute.c (grub_script_function_call): ... to here.
25946 (grub_script_execute_arglist_to_argv): Removed.
25947 (grub_script_arglist_to_argv): New function.
25948 * script/argv.c: New file.
25949 (grub_script_argv_free): New function.
25950 (grub_script_argv_next): Likewise.
25951 (grub_script_argv_append): Likewise.
25952 (grub_script_argv_split_append): Likewise.
25953 * include/grub/script_sh.h (grub_script_argv): New struct.
25954 (grub_script_argv_free): New function.
25955 (grub_script_argv_next): Likewise.
25956 (grub_script_argv_append): Likewise.
25957 (grub_script_argv_split_append): Likewise.
25959 * conf/common.rmk (normal.mod): New source script/argv.c.
25961 * tests/grub_script_echo1.in: More tests.
25962 * tests/grub_script_vars1.in: Likewise.
25963 * tests/grub_script_functions.in: New test case.
25964 * conf/tests.rmk: Rules for new testcase.
25966 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25968 Remove grub_script_cmdblock struct.
25970 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25971 * script/parser.y: Likewise.
25972 * script/execute.c: Rename cmdblock suffix to cmdlist.
25973 * script/script.c: Likewise.
25974 * util/grub-script-check.c: Likewise.
25976 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25978 * .bzrignore: add grub-macho2img
25980 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25982 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25984 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25986 Remove the dump of sm712 initialisation sequence.
25988 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25989 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25990 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25991 (GRUB_VGA_CR_*): Added many registers.
25992 (GRUB_VGA_SR_*): Likewise.
25993 (GRUB_VGA_GR_*): Likewise.
25994 (grub_vga_write_arx): New function.
25995 (grub_video_hw_config): New struct.
25996 (grub_vga_set_geometry): New function.
25997 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25998 GRUB_PCI_CLASS_SUBCLASS_VGA.
25999 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26000 * video/sm712.c (grub_sm712_write_reg): New function
26001 (grub_sm712_read_reg): Likewise.
26002 (grub_sm712_sr_write): Likewise.
26003 (grub_sm712_gr_write): Likewise.
26004 (grub_sm712_cr_write): Likewise.
26005 (grub_sm712_write_arx): Likewise.
26006 (grub_sm712_cr_shadow_write): Likewise.
26007 (grub_sm712_write_dda_lookup): Likewise.
26008 (grub_video_sm712_setup): Initialise the video rather then
26009 blindly replay the dump.
26010 (main) [TEST]: Add a routine to be able to compile as standalone for
26012 * video/sm712_init.c (sm712_init): Removed.
26013 (sm712_sr_seq1): New array.
26014 (sm712_sr_seq2): Likewise.
26016 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26018 * include/grub/vga.h: Add missing grub/pci.h include.
26020 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26022 * util/grub-macho2img.c (main): fix typo
26024 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26026 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26027 (grub_vga_gr_read): Likewise.
26028 (grub_vga_cr_write): Likewise.
26029 (grub_vga_cr_read): Likewise.
26030 (grub_vga_sr_write): Likewise.
26031 (grub_vga_sr_read): Likewise.
26032 (grub_vga_palette_read): Likewise.
26033 (grub_vga_palette_write): Likewise.
26034 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26035 (grub_sm712_sr_read): New function.
26036 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26037 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26039 2010-08-09 Robert Millan <rmh@gnu.org>
26041 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26042 out unused variables on non-ZFS build.
26044 2010-08-08 Robert Millan <rmh@gnu.org>
26046 Fix path generation for sub-filesystems in ZFS.
26048 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26051 2010-08-08 Robert Millan <rmh@gnu.org>
26053 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26055 2010-08-08 Robert Millan <rmh@gnu.org>
26057 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26058 exist, issue a proper error message (rely on `ls' for translated
26061 2010-08-08 Robert Millan <rmh@gnu.org>
26063 Fix grub-probe invocation.
26065 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26067 2010-08-04 Robert Millan <rmh@gnu.org>
26069 * configure.ac: Remove checks for getfsstat() and getmntany().
26070 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26071 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26072 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26073 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26074 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26076 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26077 via find_mount_point_from_dir() and getfsstat() / getmntany().
26079 2010-08-04 Robert Millan <rmh@gnu.org>
26081 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26082 (grub_find_zpool_from_mount_point): Merge into ...
26083 (grub_find_zpool_from_dir): ... this.
26084 * kern/emu/misc.c: Likewise.
26087 (grub_make_system_path_relative_to_its_root): Replace
26088 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26089 with grub_find_zpool_from_dir().
26090 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26092 2010-08-04 Robert Millan <rmh@gnu.org>
26094 Support OpenSolaris in ZFS device resolution.
26096 * configure.ac: Check for getmntany().
26097 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26098 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26101 2010-08-03 Robert Millan <rmh@gnu.org>
26103 Fix grub-emu build.
26105 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26106 * include/grub/emu/misc.h: ... here.
26108 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26109 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26111 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26112 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26113 (grub_get_libzfs_handle): Move to ...
26114 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26115 (grub_get_libzfs_handle): ... here.
26117 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26119 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26120 as command name case.
26122 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26124 * disk/raid.c (insert_array): Select unique numbers for named arrays
26125 as well, for use as keys in the disk cache.
26127 2010-08-01 Robert Millan <rmh@gnu.org>
26129 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26130 kFreeBSD device name, except on ZFS where the filesystem label is
26132 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26133 `/boot/zfs/zpool.cache'.
26134 Set mountfrom kernel variable using ${kfreebsd_device}.
26136 2010-08-01 Robert Millan <rmh@gnu.org>
26138 Make it even harder to use uninitialized `libzfs_handle' (and
26139 make the interface a bit simpler).
26141 * include/grub/util/misc.h (grub_util_init_libzfs)
26142 (libzfs_handle): Remove.
26143 (grub_get_libzfs_handle): New prototype.
26145 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26147 (grub_util_init_libzfs): Remove.
26148 (grub_get_libzfs_handle): New function.
26150 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26151 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26152 accessing `libzfs_handle' directly.
26154 2010-08-01 Robert Millan <rmh@gnu.org>
26156 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26157 (grub_find_zpool_from_mount_point): New function prototypes.
26159 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26160 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26162 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26163 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26164 `static' attribute.
26166 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26167 finding zpool from mount point into ...
26168 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26170 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26171 requested path is part of a ZFS pool, use
26172 grub_find_zpool_from_mount_point() to detect its filesystem name,
26173 and generate a path with `/fsname@path' syntax.
26175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26177 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26178 (void) rather than () so that this is a proper prototype.
26180 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26182 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26184 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26186 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26187 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26189 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26191 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26193 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26195 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26197 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26199 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26200 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26201 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26202 disable gfxpayload.
26203 (Shell-like scripting): Add real content.
26204 (Serial terminal): Suggest `terminal_input serial; terminal_output
26205 serial' rather than putting the two commands on separate lines,
26206 since console input will be inoperative after the first command.
26207 (menuentry): Document --class, --users, and --hotkey options.
26208 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26209 Vladimir Serbinenko).
26211 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26212 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26214 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26216 2010-08-01 Robert Millan <rmh@gnu.org>
26218 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26219 (grub_find_zpool_from_mount_point): New function prototypes.
26221 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26222 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26224 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26225 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26226 `static' attribute.
26228 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26229 finding zpool from mount point into ...
26230 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26232 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26233 requested path is part of a ZFS pool, use
26234 grub_find_zpool_from_mount_point() to detect its filesystem name,
26235 and generate a path with `/fsname@path' syntax.
26237 2010-08-01 Robert Millan <rmh@gnu.org>
26239 Prevent accidental use of uninitialized libzfs_handle.
26241 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26242 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26243 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26245 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26247 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26248 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26250 2010-08-01 Robert Millan <rmh@gnu.org>
26252 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26254 2010-07-31 Robert Millan <rmh@gnu.org>
26256 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26258 2010-07-31 Robert Millan <rmh@gnu.org>
26260 * kern/emu/misc.c: Add missing license header.
26262 2010-07-31 Robert Millan <rmh@gnu.org>
26264 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26266 * include/grub/util/libnvpair.h: Include `<config.h>'.
26267 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26268 declaring libnvpair prototypes ourselves.
26269 * include/grub/util/libzfs.h: Include `<config.h>'.
26270 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26271 declaring libzfs prototypes ourselves.
26273 (libzfs_handle): Moved to ...
26274 * include/grub/util/misc.h (libzfs_handle): ... here.
26275 Include `<grub/util/libzfs.h>'.
26277 2010-07-30 Robert Millan <rmh@gnu.org>
26279 * include/grub/emu/misc.h: Add missing license header.
26281 2010-07-30 Robert Millan <rmh@gnu.org>
26283 Enable `grub-probe -t device' resolution on ZFS.
26285 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26286 * include/grub/util/libnvpair.h: New file.
26287 * include/grub/util/libzfs.h: New file.
26289 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26290 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26291 `<grub/util/libnvpair.h>'.
26292 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26294 (find_mount_point_from_dir): New static function.
26295 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26297 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26298 find_root_device_from_libzfs() before ressorting to find_root_device().
26300 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26302 * util/misc.c: Include `<grub/util/libzfs.h>'.
26303 (grub_util_init_libzfs): New function.
26304 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26305 [HAVE_LIBZFS] (fini_libzfs): New static function.
26306 (grub_util_init_libzfs): New function.
26307 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26309 2010-07-30 Robert Millan <rmh@gnu.org>
26311 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26312 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26313 `warn_unused_result' attribute.
26314 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26315 (grub_xasprintf, grub_xvasprintf): Likewise.
26316 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26318 2010-07-29 Robert Millan <rmh@gnu.org>
26320 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26321 (probe): Handle `PRINT_FS_LABEL'.
26322 (main): Handle `-t fs_label'.
26324 2010-07-29 Robert Millan <rmh@gnu.org>
26326 * configure.ac: Remove grub-mkisofs checks.
26328 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26330 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26331 Reported by: Lennart Sorensen.
26333 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26335 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26336 prior to terminal_input/terminal_output separation. It's been over 1.5
26337 years and those versions weren't widely deployed.
26339 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26341 * disk/raid.c (insert_array): Don't count named arrays when looking
26342 for unused array numbers.
26343 Reported and tested by: Michael Guntsche.
26345 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26347 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26348 implementation of this so that grub-emu links again, with a note
26349 that this should support hotplugging in the future.
26351 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26353 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26355 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26357 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26359 (grub_loopback_close): Remove empty function.
26360 (grub_loopback_dev): Remove close method.
26362 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26364 Disable EFI cursor when the EFI console becomes inactive.
26366 * term/efi/console.c (grub_efi_console_init): New function.
26367 (grub_efi_console_fini): New function.
26368 (grub_console_term_output): Register init and fini methods.
26370 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26372 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26375 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26377 * disk/loopback.c (grub_loopback): Replace filename with file.
26378 (delete_loopback): Handle new semantics.
26379 (grub_cmd_loopback): Likewise.
26380 (grub_loopback_iterate): Likewise.
26381 (grub_loopback_close): Likewise.
26383 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26385 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26387 Reported by: Tito Keitel.
26389 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26391 * docs/grub.texi (Naming convention): Document new naming convention.
26393 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26394 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26396 Generate device.map in something closer to the old ordering.
26398 * util/deviceiter.c (struct device): New declaration.
26399 (compare_file_names): Rename to ...
26400 (compare_devices): ... this. Sort by kernel name in preference to
26401 the stable by-id name, but keep the latter as a fallback comparison.
26402 Update header comment.
26403 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26404 of `struct device' rather than of plain file names.
26406 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26408 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26411 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26413 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26415 (setv1table): Likewise.
26417 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26419 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26420 removing the homehost if present.
26421 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26422 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26423 removing the homehost if present.
26424 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26426 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26428 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26429 parameter. Set its pointer target to 0.
26430 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26431 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26432 `data_offset' value from the superblock for 1.x metadata.
26433 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26434 data on the device.
26435 (insert_array): Record the start sector of data on the device.
26436 (grub_raid_register): Pass start_sector parameters to
26437 grub_raid_list->detect and insert_array.
26438 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26440 (struct grub_raid): Add start_sector parameter to `detect'.
26442 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26443 __attribute__ ((packed)), leaving a comment.
26444 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26445 (grub_mdraid_detect_09): ... here and ...
26446 (grub_mdraid_detect_1x): ... here.
26448 2010-07-20 Peter Henn <peter.henn@web.de>
26450 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26451 chunk size and disk size, which are already given as sector counts
26452 as distinct from the 0.90 units. Fetch the correct device number
26453 from the role table instead of using the table index.
26455 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26457 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26458 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26459 (WriteMostly1): New macro.
26460 Set array->name to NULL for metadata format 0.90. Add support for
26461 metadata 1.x. Fix some comments.
26462 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26464 * util/getroot.c (grub_util_get_grub_dev): Add support for
26465 /dev/md/name style devices.
26467 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26469 * .bzrignore: Ignore 20_linux_xen.
26471 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26473 * util/import_unicode.py: Remove unnecessary imports.
26475 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26477 Hotplugging and USB hub support.
26479 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26480 (grub_ohci): Likewise.
26481 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26482 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26483 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26484 (GRUB_OHCI_CTRL_EDS): Likewise.
26485 (GRUB_OHCI_BULK_EDS): Likewise.
26486 (GRUB_OHCI_TDS): Likewise.
26487 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26488 (grub_ohci_ed_phys2virt): New function.
26489 (grub_ohci_virt_to_phys): Likewise.
26490 (grub_ohci_td_phys2virt): Likewise.
26491 (grub_ohci_td_virt2phys): Likewise.
26492 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26494 (grub_ohci_find_ed): New function.
26495 (grub_ohci_alloc_td): Likewise.
26496 (grub_ohci_free_td): Likewise.
26497 (grub_ohci_free_tds): Likewise.
26498 (grub_ohci_transfer): Use previously allocated memory.
26499 (grub_ohci_portstatus): Reset status changed bit.
26500 (grub_ohci_detect_dev): Supply status changed.
26501 (grub_ohci_fini_hw): Free memory.
26502 (grub_ohci_restore_hw): Reallocate memory.
26503 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26504 Reset status change.
26505 (grub_uhci_detect_dev): Supply status_change.
26506 * bus/usb/usb.c (attach_hooks): New var.
26507 (grub_usb_device_attach): New function.
26508 (grub_usb_register_attach_hook_class): Likewise.
26509 (grub_usb_unregister_attach_hook_class): Likewise.
26510 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26511 (grub_usb_add_hub): Reset connection changed bit.
26512 (attach_root_port): New function.
26513 (grub_usb_root_hub): Likewise.
26514 (poll_nonroot_hub): Likewise.
26515 (grub_usb_poll_devices): Likewise.
26516 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26517 * disk/usbms.c (grub_usbms_open): Use device hooks.
26518 (grub_usbms_iterate) :Poll devices.
26519 (grub_usbms_finddevs): Split into ...
26520 (grub_usbms_attach): ... this ...
26521 (grub_usbms_attach): ... and this.
26522 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26524 (grub_usb_interface): New fields attached and detach_hook.
26525 (grub_usb_attach_hook_class): New type.
26526 (grub_usb_attach_desc): New struct.
26527 (grub_usb_register_attach_hook_class): New function.
26528 (grub_usb_unregister_attach_hook_class): Likewise.
26529 (grub_usb_poll_devices): Likewise.
26530 (grub_usb_device_attach): Likewise.
26531 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26532 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26534 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26536 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26537 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26538 delta determination style. Works with most NetBSD partitions too.
26540 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26542 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26543 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26545 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26547 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26549 2010-07-14 Anton Blanchard <anton@samba.org>
26551 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26554 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26556 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26558 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26560 * kern/partition.c (grub_partition_check_containment): New function to
26561 check that a partition is physically contained in a parent. Since
26562 offsets are relative (and non-negative), this reduces to checking that
26563 the partition ends before its parent.
26564 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26565 (grub_partition_iterate): Likewise.
26566 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26568 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26569 partitions that start before their parent, and add debug printfs.
26571 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26573 * Makefile.in (.SUFFIX): Spell correctly, as ...
26574 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26575 bare module name without `.mod', e.g. `test') tried to invoke a
26578 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26580 * README: Point to the Info manual.
26582 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26584 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26585 2nd superblock position from partition size.
26587 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26589 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26590 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26591 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26594 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26596 Restructure SCSI .id handling.
26597 Reported and tested by: Aleš Nesrsta.
26599 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26600 (grub_atapi_dev): Changed .name to "ata". New field .id.
26601 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26602 (grub_usbms_dev): New field .id.
26603 * disk/scsi.c (grub_scsi_iterate): Generate name.
26604 (grub_scsi_open): Parse name.
26605 * include/grub/scsi.h (grub_make_scsi_id): New function.
26606 (grub_scsi_dev): Change iterate and open to number instead of naming
26607 busses. All users updated.
26608 (grub_scsi): Remove name. Add .bus.
26610 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26612 * commands/help.c (grub_cmd_help): Fix a typo.
26614 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26616 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26617 Reported and tested by: Colin Watson.
26619 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26621 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26624 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26626 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26628 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26630 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26633 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26635 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26636 and disk/raid6_recover.c.
26637 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26638 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26640 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26642 * term/gfxterm.c (repaint_schedulded): Rename to ...
26643 (repaint_scheduled): ... this. Update all callers.
26644 (repaint_was_schedulded): Rename to ...
26645 (repaint_was_scheduled): ... this. Update all callers.
26647 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26649 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26650 which we expect to be handled by upper layers.
26652 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26654 * bus/usb/usbhub.c: #include time.h header.
26656 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26658 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26659 entry_name also for entries without stat blocks (e.g. ".."); fixes
26660 corruption of the first entry in a directory.
26662 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26664 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26665 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26666 doesn't work otherwise.
26668 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26670 * docs/grub.texi (Features): Update list of supported file systems.
26671 (GNU/Linux): Update for GRUB 2.
26672 (Serial terminal): Remove mention of --disable-serial, which was a
26673 GRUB Legacy configure option. Update instructions to use
26674 `terminal_input' and `terminal_output' rather than `terminal'.
26675 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26676 configuration' and `Installing GRUB using grub-install'.
26677 (Menu entry editor): Update for GRUB 2.
26678 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26679 Document new -a, -u, and -v options.
26680 (initrd): New section.
26681 (initrd16): New section.
26682 (linux): New section.
26683 (linux16): New section.
26684 (search): The `var' argument to `--set' is optional.
26685 (GRUB only offers a rescue shell): Go into a little more detail on
26688 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26690 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26692 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26694 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26695 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26697 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26699 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26700 install_prefix, in line with install_dos_part and install_bsd_part.
26701 Add new prefix variable, which is copied to install_prefix after
26702 comparing core.img in memory with the one read from disk in the
26703 no-embedding case, and use that rather than overwriting
26704 install_prefix immediately when installing to a partition.
26705 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26708 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26710 * configure.ac: Avoid == in test command, it's not portable.
26711 * util/grub.d/30_os-prober.in: Likewise.
26713 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26715 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26717 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26719 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26720 multiple (top-level) partmaps.
26722 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26724 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26725 Reported by: Tino Keitel.
26727 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26729 Bidi and diacritics support.
26731 * Makefile.in (widthspec.bin): New target.
26732 (widthspec.h): Likewise.
26733 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26734 * autogen.sh: Generate unidata.c.
26735 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26736 * commands/ls.c (grub_ls_list_devices): Likewise.
26737 (grub_ls_list_files): Likewise.
26738 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26739 (grub_mini_cmd_lsmod): Likewise.
26740 * commands/read.c: Likewise.
26741 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26742 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26743 * lib/arg.c (grub_arg_show_help): Likewise.
26744 * lib/crypto.c (grub_password_get): Likewise.
26745 * normal/auth.c (grub_username_get): Likewise.
26746 * normal/misc.c (grub_normal_print_device_info): Likewise.
26747 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26748 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26749 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26750 (normal/charset.c_DEPENDENCIES): New variable.
26751 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26752 (pkglib_MODULES): Remove charset.mod.
26753 (charset_mod_SOURCES): Removed.
26754 (charset_mod_CFLAGS): Likewise.
26755 (charset_mod_LDFLAGS): Likewise.
26756 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26757 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26759 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26760 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26761 (kernel_img_HEADERS): Add terminfo.h.
26762 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26763 Fill ->font. Reverse ascii bitmaps.
26764 (grub_font_get_xheight): New function.
26765 * font/font.c (grub_font_get_string_width): Moved from here ...
26766 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26767 * font/font.c (grub_font_draw_string): Moved from here ...
26768 * gfxmenu/font.c (grub_font_draw_string): ... here.
26769 * font/font.c (grub_font_dup_glyph): New function.
26770 (grub_font_blit_glyph): Likewise.
26771 (grub_font_blit_glyph_mirror): Likewise.
26772 (blit_comb): Likewise.
26773 (grub_font_construct_dry_run): Likewise.
26774 (grub_font_get_constructed_device_width): Likewise.
26775 (grub_font_construct_glyph): Likewise.
26776 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26777 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26778 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26779 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26780 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26781 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26782 (grub_font_get_xheight): New proto.
26783 (grub_font_get_constructed_device_width): Likewise.
26784 (grub_font_construct_glyph): Likewise.
26785 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26786 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26787 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26788 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26789 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26790 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26791 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26792 (grub_console_getcharwidth): Likewise.
26793 * include/grub/misc.h (grub_xputs): New proto.
26794 (grub_puts): Inlined.
26795 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26796 (grub_normal_get_line_counter): Removed.
26797 (grub_install_newline_hook): Likewise.
26798 (grub_normal_get_char_counter): New proto.
26799 (grub_normal_reset_more): Likewise.
26800 (grub_xputs_normal): Likewise.
26801 * include/grub/powerpc/ieee1275/console.h: Removed.
26802 * include/grub/sparc64/ieee1275/console.h: Likewise.
26803 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26804 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26805 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26806 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26807 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26808 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26809 (grub_term_input): Pass reference to self. All users updated.
26810 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26811 Pass reference to self. New fields normal_color, highlight_color and
26812 data. All users updated.
26813 (grub_putchar): Removed.
26814 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26815 (grub_unicode_estimate_width): New function.
26816 (grub_term_getcharwidth): Add defaults.
26817 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26818 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26819 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26820 (grub_cls): Remove EXPORT_FUNC.
26821 (grub_setcolorstate): Inline.
26822 (grub_newline_hook): Removed.
26823 * include/grub/terminfo.h: Rewritten. All users updated.
26824 * include/grub/unicode.h: New file.
26825 * include/grub/video.h (grub_video_signed_rect): New type.
26826 * kern/emu/console.c (grub_console_highlight_color): Removed.
26827 (grub_console_normal_color): Likewise.
26828 (grub_console_standard_color): Made static.
26829 (grub_ncurses_putchar): Remove mapping.
26830 (grub_ncurses_getcharwidth): Removed.
26831 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26832 (grub_ncurses_setcolor): Removed.
26833 (grub_ncurses_getcolor): Likewise.
26834 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26835 (grub_console_putchar): ... this.
26836 (grub_console_putchar): Handle argument difference.
26837 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26838 console_init_early and console_init_lately.
26839 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26840 * kern/misc.c (grub_puts): Removed.
26841 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26842 (grub_vsnprintf_real): Remove str = NULL support.
26843 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26844 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26845 * kern/term.c (grub_putcode): Renamed to ...
26846 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26847 (grub_putchar): Removed.
26848 (grub_xputs_dumb): New function.
26849 (grub_xputs): New variable.
26850 * lib/charset.c: Move from here ...
26851 * normal/charset.c: ... to here.
26852 (grub_ucs4_to_utf8): New function.
26853 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26854 (join_types): New variable.
26855 (unpack_join): New function.
26856 (bidi_types): New variable.
26857 (unpack_bidi): New function.
26858 (get_bidi_type): Likewise.
26859 (get_join_type): Likewise.
26860 (is_mirrored): Likewise.
26861 (grub_unicode_get_comb_type): Likewise.
26862 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26863 (is_type_after): Likewise.
26864 (grub_unicode_aglomerate_comb): Likewise.
26865 (bidi_line_wrap): Likewise.
26866 (grub_bidi_line_logical_to_visual): Likewise.
26867 (grub_bidi_logical_to_visual): Likewise.
26868 (grub_unicode_mirror_code): Likewise.
26869 (grub_unicode_shape_code): Likewise.
26870 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26871 Don't use grub_putchar.
26872 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26873 (grub_normal_reader_init): Likewise.
26874 (grub_xputs_saved): New variable.
26875 (GRUB_MOD_INIT): Set grub_xputs.
26876 (GRUB_MOD_FINI): Restore grub_xputs.
26877 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26878 (menu_init): Avoid printing gfxmenu error.
26879 (show_menu): Use grub_normal_get_char_counter.
26880 * normal/menu_entry.c (update_screen): Fix out-of-array.
26881 (complete): Avoid NULL dereferencing.
26882 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26883 * normal/menu_text.c (print_spaces): Removed.
26884 (grub_print_ucs4): Likewise.
26885 (grub_print_message_indented): Use grub_print_ucs4.
26886 (print_message): Use grub_putcode.
26887 (print_entry): Hanlde diacritics.
26888 * normal/term.c (term_state): New type.
26889 (grub_more_lines): Removed.
26890 (term_states): New variable.
26891 (grub_normal_line_counter): Renamed to ..
26892 (grub_normal_char_counter): ...this. All users updated.
26893 (grub_normal_get_line_counter): Renamed to ...
26894 (grub_normal_get_char_counter): ... this.
26895 (grub_normal_reset_more): New function.
26896 (process_newline): Removed.
26897 (print_more): New function.
26898 (grub_install_newline_hook): Removed.
26899 (map_code): New function.
26900 (grub_puts_terminal): Use grub_print_ucs4.
26901 (putglyph): New function.
26902 (putcode_real): Likewise.
26903 (grub_putcode): Use putcode_real.
26904 (get_maxwidth): New function.
26905 (get_startwidth): Likewise.
26906 (print_ucs4_terminal): Likewise.
26907 (find_term_state): Likewise.
26908 (put_glyphs_terminal): Likewise.
26909 (print_backlog): Likewise.
26910 (print_ucs4_real): Likewise.
26911 (grub_print_ucs4): Likewise.
26912 (grub_xputs_normal): Likewise.
26913 * term/efi/console.c (grub_console_putchar): Output diacritics.
26914 (grub_console_getcharwidth): Removed.
26915 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26916 * term/gfxterm.c (clear_char): Free chars.
26917 (scroll_up): Avoid leaking memory.
26918 (grub_gfxterm_putchar): Support diacritics.
26919 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26920 * term/i386/pc/console.c (grub_console_term_output): Declare as
26921 GRUB_TERM_CODE_TYPE_VGA.
26922 * term/i386/pc/vga.c (grub_vga_term): Declare as
26923 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26924 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26925 GRUB_TERM_CODE_TYPE_VGA.
26926 * term/i386/vga_common.c (map_char): Removed.
26927 (grub_console_putchar): Likewise.
26928 (grub_console_getcharwidth): Likewise.
26929 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26930 (colors): Reordered to match terminfo.
26931 (grub_ofconsole_normal_color): Removed.
26932 (grub_ofconsole_writeesc): Likewise.
26933 (grub_ofconsole_highlight_color): Likewise.
26934 (grub_ofconsole_getcharwidth): Likewise.
26935 (grub_ofconsole_setcolorstate): Likewise.
26936 (grub_ofconsole_setcolor): Likewise.
26937 (grub_ofconsole_getcolor): Likewise.
26938 (grub_ofconsole_readkey): Renamed to ...
26939 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26941 (grub_ofconsole_checkkey): Removed.
26942 (grub_ofconsole_getkey): Likewise.
26943 (grub_ofconsole_getxy): Likewise.
26944 (grub_ofconsole_gotoxy): Likewise.
26945 (grub_ofconsole_cls): Likewise.
26946 (grub_ofconsole_refresh): Likewise.
26947 (grub_ofconsole_terminfo_input): New struct.
26948 (grub_ofconsole_terminfo_output): Likewise.
26949 (grub_ofconsole_term_input): Use terminfo.
26950 (grub_ofconsole_term_output): Likewise.
26951 (grub_console_init): Split into ...
26952 (grub_console_init_early): ...this and ...
26953 (grub_console_init_lately): ...this. Use terminfo.
26954 (grub_ofconsole_putchar): Renamed to ...
26955 (put): ... this. Remove mapping.
26956 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26957 * term/serial.c: Simplify using terminfo.
26960 (keep_track): Likewise.
26961 (registered): Likewise.
26962 (input_buf): Likewise.
26963 (npending): Likewise.
26964 (serial_translate_key_sequence): Likewise.
26965 (fill_input_buf): Likewise.
26966 (grub_serial_checkkey): Likewise.
26967 (grub_serial_getkey): Likewise.
26968 (grub_serial_getxy): Likewise.
26969 (grub_serial_gotoxy): Likewise.
26970 (grub_serial_putchar): Likewise.
26971 (grub_serial_cls): Likewise.
26972 (grub_serial_setcolorstate): Likewise.
26973 (grub_serial_setcursor): Likewise.
26974 (serial_hw_init): Use serial_hw_fetch.
26975 (grub_serial_terminfo_input): New variable.
26976 (grub_serial_terminfo_output): Likewise.
26977 (grub_serial_term_input): Use terminfo.
26978 (grub_serial_term_output): Likewise.
26979 * term/terminfo.c (putstr): Use put.
26980 (grub_terminfo_all_free): New function
26981 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26982 (grub_terminfo_output_register): New function.
26983 (grub_terminfo_output_unregister): Likewise.
26984 (grub_terminfo_getxy): Likewise.
26985 (grub_terminfo_readkey): Likewise.
26986 (grub_terminfo_checkkey): Likewise.
26987 (grub_terminfo_getkey): Likewise.
26988 (grub_terminfo_input_init): Likewise.
26989 (print_terminfo): Likewise.
26990 (grub_cmd_terminfo): Handle encoding.
26991 (grub_terminfo_gotoxy): Track position.
26992 (grub_terminfo_cls): Likewise.
26993 (grub_terminfo_putchar): Likewise.
26994 (grub_terminfo_setcolorstate): Handle colors
26995 (grub_terminfo_cursor_on): This ...
26996 (grub_terminfo_cursor_off): ... and this merged into ...
26997 (grub_terminfo_setcursor): ... this.
26998 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26999 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27000 * unicode/BidiMirroring.txt: Likewise.
27001 * unicode/UnicodeData.txt: Likewise.
27002 * unicode/COPYING: Likewise.
27003 * util/grub-editenv.c (grub_putchar): Removed.
27004 (grub_xputs_real): New function.
27005 (grub_xputs): New variable.
27006 * util/grub-fstest.c (grub_putchar): Removed.
27007 (grub_xputs_real): New function.
27008 (grub_xputs): New variable.
27009 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27010 (grub_xputs_real): New function.
27011 (grub_xputs): New variable.
27012 * util/grub-probe.c (grub_putchar): Removed.
27013 (grub_xputs_real): New function.
27014 (grub_xputs): New variable.
27015 * util/grub-script-check.c (grub_putchar): Removed.
27016 (grub_xputs_real): New function.
27017 (grub_xputs): New variable.
27018 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27019 (grub_xputs_real): New function.
27020 (grub_xputs): New variable.
27021 * util/import_unicode.py: New file.
27022 * util/grub-mkfont.c (ft_errmsgs): New array.
27023 (grub_glyph_info): Make bitmap a pointer.
27024 (file_formats): New type WIDTH_SPEC.
27025 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27026 (options): Add width-spec.
27028 (add_char): Renamed to ...
27029 (add_glyph): ... this.
27030 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27031 (glyph_replace): New type.
27032 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27033 (add_char): New function.
27034 (add_subst): Likewise.
27035 (process_cursive): Likewise.
27036 (add_font): Handle GSUB.
27037 (write_font_width_spec): New function.
27038 (main): Sort glyphs.
27039 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27040 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27041 * kern/term.c (grub_cls): Moved from here...
27042 * normal/term.c (grub_cls): ... here.
27044 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27046 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27047 suitable for using within the format argument of printf when
27048 converting grub_size_t.
27049 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27050 "x" to convert grub_size_t arguments.
27052 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27054 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27056 (list_get_minimal_size): Take selection box into account.
27058 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27060 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27063 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27065 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27066 devices when iterating over /dev/disk/by-id; they will be handled
27067 later if appropriate, which they aren't always (e.g. LVM).
27069 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27071 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27072 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27074 (grub_halt): Likewise.
27075 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27077 (grub_halt): Don't return, even if all of shut-down, power-off, and
27080 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27082 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27083 arguments, not three.
27085 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27087 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27088 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27089 LVM-on-RAID is handled correctly.
27091 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27093 * docs/grub.texi (Changes from GRUB Legacy): New section.
27094 (Future): Fix typo.
27096 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27098 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27099 grub.d/README accidentally ends up executable for one reason or
27100 another. Ignore it.
27102 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27104 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27105 (gpt_partition_map_iterate): Support non-512B sectors.
27107 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27109 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27110 Tested by: Seth Goldberg.
27112 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27114 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27115 Properly align mbi.
27116 Reported by: Seth Goldberg.
27118 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27120 * util/grub-mkrescue.in: Avoid module duplication.
27122 2010-07-01 Sean Finney <seanius@seanius.net>
27124 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27126 2010-07-01 Sean Finney <seanius@seanius.net>
27128 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27130 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27132 * disk/lvm.c (grub_lvm_checkvalue): New function.
27133 (grub_lvm_check_flag): Likewise.
27135 2010-07-01 Robert Millan <rmh@gnu.org>
27137 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27138 Support 'p' as partition separator on kernel of FreeBSD (used
27140 (grub_util_biosdisk_get_grub_dev): Likewise.
27142 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27144 Yeeloong firmware port.
27146 * boot/mips/yeeloong/fwstart.S: New file.
27147 * bus/cs5536.c (gpiodump): New const.
27148 (set_io_space): New function.
27149 (set_iod): Likewise.
27150 (set_p2d): Likewise.
27151 (grub_cs5536_init_geode): Likewise.
27152 * commands/mips/yeeloong/lsspd.c: New file.
27153 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27154 (serial_mod_SOURCES): New variable.
27155 (serial_mod_CFLAGS): Likewise.
27156 (serial_mod_LDFLAGS): Likewise.
27157 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27158 term/terminfo.c and term/tparm.c.
27159 (pkglib_IMAGES): Add fwstart.img.
27160 (fwstart_img_SOURCES): New variable.
27161 (fwstart_img_CFLAGS): Likewise.
27162 (fwstart_img_ASFLAGS): Likewise.
27163 (fwstart_img_LDFLAGS): Likewise.
27164 (fwstart_img_FORMAT): Likewise.
27165 (pkglib_MODULES): Add lsspd.mod.
27166 (lsspd_mod_SOURCES): New variable.
27167 (lsspd_mod_CFLAGS): Likewise.
27168 (lsspd_mod_LDFLAGS): Likewise.
27169 (pkglib_MODULES): Add halt.mod.
27170 (halt_mod_SOURCES): New variable.
27171 (halt_mod_CFLAGS): Likewise.
27172 (halt_mod_LDFLAGS): Likewise.
27173 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27174 (serial_mod_SOURCES): Removed.
27175 (serial_mod_CFLAGS): Likewise.
27176 (serial_mod_LDFLAGS): Likewise.
27177 * disk/ata.c (check_device): New function.
27178 (grub_ata_device_initialize): Use check_device.
27179 (grub_ata_iterate): Recheck devices.
27180 (grub_ata_open): Likewise.
27181 (grub_atapi_iterate): Likewise.
27182 (grub_atapi_open): Likewise.
27183 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27184 (GRUB_ATA_CH1_PORT1): Likewise.
27185 (GRUB_ATA_CH0_PORT2): Likewise.
27186 (GRUB_ATA_CH1_PORT2): Likewise.
27187 * include/grub/mips/loongson.h: New file.
27188 * include/grub/mips/yeeloong/ec.h: Likewise.
27189 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27190 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27191 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27192 * include/grub/misc.h (grub_halt): Declare as noreturn.
27193 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27194 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27195 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27196 (UART_ENABLE_DTRRTS): Likewise.
27197 (UART_ENABLE_MODEM): Removed.
27198 (UART_ENABLE_OUT2): New const.
27199 * include/grub/term.h (grub_term_register_input_active): New function.
27200 (grub_term_register_output_active): Likewise.
27201 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27203 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27204 (init_pci): New function.
27205 (grub_machine_init): Execute platform init when firmware. Init serial.
27206 (grub_halt): Implement.
27207 (grub_exit): Likewise.
27208 (grub_reboot): Likewise.
27209 * term/serial.c (serial_hw_init): Update macros.
27210 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27211 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27212 (image_targets): New target mipsel-yeeloong-flash.
27213 (generate_image): Support IMAGE_YEELOONG_FLASH.
27214 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27215 (grub_video_sm712_setup): Init card.
27216 (grub_video_sm712_set_palette): Removed.
27217 * video/sm712_init.c: New file.
27219 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27221 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27222 PATH when running help2man and then run it on the unadorned
27223 executable names, rather than passing $(builddir)/* paths to
27224 help2man. This avoids the build directory ending up in generated
27227 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27229 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27230 to avoid accidents when debugging with 'sh -x'.
27231 * util/grub-mkrescue.in: Likewise.
27232 * util/grub.d/00_header.in: Likewise.
27233 * util/grub.d/10_hurd.in: Likewise.
27234 * util/grub.d/10_kfreebsd.in: Likewise.
27235 * util/grub.d/10_linux.in: Likewise.
27236 * util/grub.d/10_netbsd.in: Likewise.
27237 * util/grub.d/10_windows.in: Likewise.
27238 * util/grub.d/20_linux_xen.in: Likewise.
27239 * util/grub.d/30_os-prober.in: Likewise.
27240 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27242 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27244 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27245 last character in the buffer.
27246 Reported by: Vladimir Serbinenko.
27248 2010-06-29 Robert Millan <rmh@gnu.org>
27250 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27251 (Command-line and menu entry commands): Document `badram' command.
27253 2010-06-28 Robert Millan <rmh@gnu.org>
27255 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27256 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27257 command using ${GRUB_BADRAM} as parameter.
27259 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27261 * docs/grub.texi (Device map): New section.
27262 (Themes): New section (stub).
27263 * Makefile.in (docs/grub.info): The info documentation now builds
27264 without errors. Make sure it stays that way.
27266 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27268 Use normal parser for menu entries.
27269 Reported by: Thomas Frauendorfer
27271 * include/grub/parser.h (grub_parser_execute): Don't export.
27272 * normal/menu.c (grub_menu_execute_entry_real): New function.
27273 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27275 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27277 * docs/grub.texi (Embedded configuration): New section (replacing
27278 old "Preset Menu" stub).
27279 (Images): New section.
27280 (configfile): Note that any menu entries defined in `file' are shown
27283 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27285 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27287 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27289 * util/grub-install.in: Add --debug-image= option.
27291 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27293 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27296 * util/deviceiter.c (check_device): Rename to ...
27297 (check_device_readable_unique): ... this. Update all callers.
27298 Maintain and check a list of which devices (by canonicalized name)
27299 have already been seen.
27300 (clear_seen_devices): New function.
27301 (compare_file_names) [__linux__]: New function.
27302 (grub_util_iterate_devices): Clear the list of seen devices on exit
27303 and (just in case) on entry.
27304 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27305 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27306 seen-devices list, superseded by general code in check_device.
27308 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27310 * commands/cat.c (options): New variable.
27311 (grub_cmd_cat): Parse options. If the --dos option is given, print
27312 DOS-style "\r\n" line endings as simple newlines (Debian bug
27314 (GRUB_MOD_INIT): Use extcmd.
27315 (GRUB_MOD_FINI): Likewise.
27316 * docs/grub.texi (cat): Document --dos.
27318 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27320 XEN with Linux grub-mkconfig support.
27322 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27323 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27324 GRUB_CMDLINE_XEN_DEFAULT.
27325 * util/grub.d/20_linux_xen.in: New file.
27327 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27329 Initialise VGA video on qemu ourselves.
27331 * boot/i386/qemu/boot.S: Don't call 0xc000.
27332 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27333 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27334 (kernel_img_HEADERS): Add pci.h.
27335 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27336 * configure.ac: Force unifont on qemu and yeeloong.
27337 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27338 (grub_vga_palette_write): Use correct register.
27339 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27340 Call grub_qemu_init_cirrus.
27341 * kern/i386/qemu/init.c: New file.
27342 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27344 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27346 2010-06-26 Pavel Roskin <proski@gnu.org>
27348 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27351 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27353 * docs/grub.texi (Simple configuration): Explain that
27354 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27355 set to `true' to disable their respective recovery entries, not
27358 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27360 Make the `source' command slightly faster.
27362 * normal/main.c (grub_normal_execute): Don't re-read list files when
27365 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27367 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27368 field position and mask size to red fields from mode_info, not
27370 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27371 Remove redundant tag->common.framebuffer_type assignment.
27372 Reported by: Seth Goldberg.
27374 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27376 Sync up other versions of the Linux loader with Robert Millan's
27377 change of 2010-01-09, "Make loader output a bit more user-friendly".
27379 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27381 (grub_cmd_linux): Likewise.
27382 (grub_cmd_initrd): Likewise.
27383 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27384 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27386 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27388 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27389 larger than MEMORY_MAP_SIZE.
27391 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27393 Fix parallel build.
27395 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27397 * script/parser.y: #include grub_script.tab.h header.
27399 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27401 Support >3GiB and <16MiB RAM in i386-qemu.
27403 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27404 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27405 (grub_lower_mem): Removed.
27406 (grub_upper_mem): Likewise.
27407 (mem_size): Made static.
27408 (above_4g): New variable.
27409 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27410 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27413 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27415 Cirrus 5446 and Bochs video cards support.
27417 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27419 (video_cirrus_mod_SOURCES): New variable.
27420 (video_cirrus_mod_CFLAGS): Likewise.
27421 (video_cirrus_mod_LDFLAGS): Likewise.
27422 (video_bochs_mod_SOURCES): Likewise.
27423 (video_bochs_mod_CFLAGS): Likewise.
27424 (video_bochs_mod_LDFLAGS): Likewise.
27425 * include/grub/vga.h: New file.
27426 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27427 (grub_video_fb_set_page_t): New type.
27428 (grub_video_fb_setup): New prototype.
27429 (grub_video_fb_swap_buffers): Likewise.
27430 (grub_video_fb_get_info_and_fini): Likewise.
27431 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27432 (CRTC_DATA_PORT): Likewise.
27433 (CRTC_CURSOR): Likewise.
27434 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27435 (CRTC_CURSOR_ADDR_LOW): Likewise.
27436 (CRTC_CURSOR_DISABLE): Likewise.
27437 (update_cursor): Use grub_vga_cr_write.
27438 (grub_vga_text_setcursor): Likewise.
27439 * video/bochs.c: New file.
27440 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27441 (palette): Likewise.
27442 (palette_size): Likewise.
27443 (framebuffer): New variable.
27444 (grub_video_fb_init): Use 'framebuffer'.
27445 (grub_video_fb_fini): Likewise.
27446 (grub_video_fb_get_info): Likewise.
27447 (grub_video_fb_get_palette): Likewise.
27448 (grub_video_fb_set_palette): Likewise.
27449 (grub_video_fb_set_viewport): Likewise.
27450 (grub_video_fb_get_viewport): Likewise.
27451 (grub_video_fb_map_color): Likewise.
27452 (grub_video_fb_map_rgb): Likewise.
27453 (grub_video_fb_map_rgba): Likewise.
27454 (grub_video_fb_unmap_color): Likewise.
27455 (grub_video_fb_unmap_color_int): Likewise.
27456 (grub_video_fb_fill_rect): Likewise.
27457 (grub_video_fb_blit_bitmap): Likewise.
27458 (grub_video_fb_blit_render_target): Likewise.
27459 (grub_video_fb_scroll): Likewise.
27460 (grub_video_fb_create_render_target): Likewise.
27461 (grub_video_fb_doublebuf_blit_init): Likewise.
27462 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27463 (doublebuf_pageflipping_update_screen): New function.
27464 (doublebuf_pageflipping_init): Likewise.
27465 (grub_video_fb_setup): Likewise.
27466 (grub_video_fb_swap_buffers): Likewise.
27467 (grub_video_fb_get_info_and_fini): Likewise.
27468 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27470 (doublebuf_pageflipping_commit): Restructured into ...
27471 (doublebuf_pageflipping_set_page): ... this.
27472 (doublebuf_pageflipping_update_screen): Removed.
27473 (doublebuf_pageflipping_init): Likewise.
27474 (double_buffering_init): Likewise.
27475 (grub_video_vbe_setup): Use grub_video_fb_setup.
27476 (grub_video_vbe_swap_buffers): Removed.
27477 (grub_video_vbe_set_active_render_target): Likewise.
27478 (grub_video_vbe_get_active_render_target): Likewise.
27479 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27480 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27481 grub_video_fb_set_active_render_target and
27482 grub_video_fb_get_active_render_target.
27483 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27484 (SEQUENCER_DATA_PORT): Likewise.
27485 (MAP_MASK_REGISTER): Likewise.
27486 (CRTC_ADDR_PORT): Likewise.
27487 (CRTC_DATA_PORT): Likewise.
27488 (START_ADDR_HIGH_REGISTER): Likewise.
27489 (START_ADDR_LOW_REGISTER): Likewise.
27490 (GRAPHICS_ADDR_PORT): Likewise.
27491 (GRAPHICS_DATA_PORT): Likewise.
27492 (READ_MAP_REGISTER): Likewise.
27493 (INPUT_STATUS1_REGISTER): Likewise.
27494 (INPUT_STATUS1_VERTR_BIT): Likewise.
27495 (get_map_mask): Use grub_vga_sr_read.
27496 (set_map_mask): Use grub_vga_sr_write.
27497 (set_read_map): Use grub_vga_gr_write.
27498 (set_start_address): Use grub_vga_cr_write.
27499 * video/sm712.c (framebuffer): Remove leftover fields.
27501 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27503 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27504 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27505 instead. Replace the gfxterm backend check with a check that
27506 ${GRUB_PREFIX}/video.lst is non-empty.
27507 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27509 (load_video): New generated function. Call it before loading
27510 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27511 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27512 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27513 * docs/grub.texi (Simple configuration): Document
27514 GRUB_VIDEO_BACKEND.
27516 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27518 Use video functions in linux and xnu loaders.
27520 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27521 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27522 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27523 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27524 loader/i386/pc/linux.c.
27525 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27526 (find_line_len): Removed.
27527 (find_framebuf): Likewise.
27528 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27529 * loader/i386/efi/xnu.c: Removed.
27530 * loader/i386/pc/xnu.c: Moved from here...
27531 * loader/i386/xnu.c: ...here.
27533 Enable priorities in video drivers.
27535 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27536 (grub_video_adapter): New field prio.
27537 (grub_video_register): Respect prio when inserting.
27538 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27539 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27540 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27541 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27542 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27543 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27544 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27548 * include/grub/video.h (grub_video_driver_id_t): New value
27549 GRUB_VIDEO_DRIVER_SDL.
27550 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27552 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27554 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27555 argument to printf.
27556 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27558 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27560 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27561 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27563 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27565 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27566 directly, and recommend grub-install instead.
27567 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27569 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27571 Fix i386-pc prefix handling with nested partitions (Debian bug
27572 #585068). Note that the case where the core image is booted using
27573 multiboot and relocated from its original location still requires
27576 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27577 with "(,", fill the boot drive in between those two characters, but
27578 expect that a full partition specification including partition map
27580 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27581 specified, write a prefix without the drive name but including a
27582 full partition specification.
27584 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27586 * util/grub-mkconfig.in: Ignore non-option arguments, for
27587 compatibility with older versions (before 2010-06-12) which did the
27588 same. In particular, this makes it easier to ship an update-grub
27589 wrapper which is compatible with that used with GRUB Legacy (Debian
27592 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27594 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27595 for manual page generation.
27597 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27599 * po/POTFILES: Remove leftover commands/handler.c.
27601 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27603 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27604 left this script non-functional.
27606 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27608 * docs/man/grub-emu.h2m: New file.
27610 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27612 * docs/grub.texi (Commands): Document reduced command set in rescue
27614 (cpuid): New section.
27616 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27618 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27619 new partition naming style.
27620 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27622 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27624 Add "-o grub.iso" like cmdline options support.
27626 * util/grub-install.in: Improve cmdline option parsing.
27627 * util/grub-mkconfig.in: Likewise.
27628 * util/grub-mkrescue.in: Likewise.
27629 * util/grub-reboot.in: Likewise.
27630 * util/grub-set-default.in: Likewise.
27631 * util/i386/efi/grub-install.in: Likewise.
27632 * util/ieee1275/grub-install.in: Likewise.
27633 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27635 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27637 * .bzrignore: Ignore 41_custom.
27639 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27641 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27643 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27645 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27646 prototype declarations.
27648 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27649 generating fs, partmap, and video lists.
27650 * include/grub/fs.h (grub_fs_register): Omit prototype if
27651 GRUB_LST_GENERATOR is defined.
27652 * include/grub/partition.h (grub_partition_map_register): Likewise.
27653 * include/grub/video.h (grub_video_register): Likewise.
27655 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27657 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27659 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27661 * util/grub-mkrescue.in: Support --xorriso argument.
27663 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27665 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27666 Suggested by: Thomas Schmitt.
27668 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27670 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27671 Suggested by: Thomas Schmitt.
27673 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27675 custom.cfg support.
27677 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27678 * util/grub.d/41_custom.in: New file.
27680 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27682 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27683 been merged back into normal.
27685 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27687 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27688 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27690 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27692 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27693 when generating manual pages.
27694 * docs/man/grub-bin2h.h2m: New file.
27695 * docs/man/grub-editenv.h2m: New file.
27696 * docs/man/grub-fstest.h2m: New file.
27697 * docs/man/grub-install.h2m: New file.
27698 * docs/man/grub-macho2img.h2m: New file.
27699 * docs/man/grub-mkconfig.h2m: New file.
27700 * docs/man/grub-mkdevicemap.h2m: New file.
27701 * docs/man/grub-mkfont.h2m: New file.
27702 * docs/man/grub-mkimage.h2m: New file.
27703 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27704 * docs/man/grub-mkrelpath.h2m: New file.
27705 * docs/man/grub-mkrescue.h2m: New file.
27706 * docs/man/grub-ofpathname.h2m: New file.
27707 * docs/man/grub-pe2elf.h2m: New file.
27708 * docs/man/grub-probe.h2m: New file.
27709 * docs/man/grub-reboot.h2m: New file.
27710 * docs/man/grub-script-check.h2m: New file.
27711 * docs/man/grub-set-default.h2m: New file.
27712 * docs/man/grub-setup.h2m: New file.
27714 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27716 Use FOR_* macros instead of *_iterate whenever possible.
27718 * commands/handler.c: Removed.
27719 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27720 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27721 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27722 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27723 (grub_probe_SOURCES): Remove kern/parser.c.
27724 (util/grub-script-check.c_DEPENDENCIES): Removed.
27725 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27726 and grub_script_check_init.c.
27727 (grub_script_check_init.lst): Removed.
27728 (grub_script_check_init.h): Likewise.
27729 (grub_script_check_init.c): Likewise.
27730 (pkglib_MODULES): Remove handler.mod and sh.mod.
27731 (handler_mod_SOURCES): Removed.
27732 (handler_mod_CFLAGS): Likewise.
27733 (handler_mod_LDFLAGS): Likewise.
27734 (normal_mod_SOURCES): Remove normal/handler.c.
27735 Add script/main.c, script/script.c, script/execute.c,
27736 script/function.c, script/lexer.c, grub_script.tab.c
27737 and grub_script.yy.c.
27738 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27739 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27740 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27741 (grub_setup_SOURCES): Remove kern/parser.c.
27742 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27743 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27744 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27745 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27746 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27747 (grub_setup_SOURCES): Remove kern/parser.c.
27748 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27749 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27750 * include/grub/command.h (grub_command_iterate): Removed.
27751 (FOR_COMMANDS): New macro.
27752 * include/grub/dl.h (grub_dl): New member next.
27753 (grub_dl_iterate): Removed.
27754 (grub_dl_head): New variable declaration.
27755 (FOR_DL_MODULES): New macro.
27756 * include/grub/fs.h: Include list.h.
27757 (grub_fs): Make next first element.
27758 (grub_fs_list): New variable declaration.
27759 (grub_fs_register): Make inline.
27760 (grub_fs_unregister): Likewise.
27761 (grub_fs_iterate): Removed.
27762 (FOR_FILESYSTEMS): New macro.
27763 * include/grub/handler.h: Removed.
27764 * include/grub/list.h (grub_list_hook_t): Removed.
27765 (grub_list_test_t): Likewise.
27766 (grub_list_pop): Likewise.
27767 (grub_list_iterate): Likewise.
27768 (grub_list_insert): Likewise.
27769 (FOR_LIST_ELEMENTS): New macro.
27770 * include/grub/parser.h (grub_parser_class): Removed.
27771 (grub_parser_register): Likewise.
27772 (grub_parser_unregister): Likewise.
27773 (grub_parser_get_current): Likewise.
27774 (grub_parser_set_current): Likewise.
27775 (grub_register_rescue_parser): Likewise.
27776 (grub_rescue_parse_line): New function.
27777 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27778 * include/grub/script_sh.h (grub_script_function_list): New variable
27780 (FOR_SCRIPT_FUNCTIONS): New macro.
27781 (grub_script_function_iterate): Removed.
27782 (grub_normal_parse_line): New prototype.
27783 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27784 (FOR_DISABLED_TERM_INPUTS): Likewise.
27785 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27786 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27787 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27789 (grub_video_register): Inline.
27790 (grub_video_unregister): Likewise.
27791 (grub_video_adapter_list): New variable declaration.
27792 (grub_video_iterate): Removed.
27793 (FOR_VIDEO_ADAPTERS): New macro.
27794 * kern/dl.c (grub_dl_list): Removed. All users updated.
27795 (grub_dl_iterate): Removed.
27796 * kern/fs.c (grub_fs_list): Make global.
27797 (grub_fs_register): Removed.
27798 (grub_fs_unregister): Likewise.
27799 (grub_fs_iterate): Likewise.
27800 * kern/handler.c: Removed.
27801 * kern/list.c (grub_list_pop): Removed.
27802 (grub_list_iterate): Likewise.
27803 (grub_list_insert): Likewise.
27804 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27805 (grub_prio_list_insert): Don't use grub_list_insert.
27806 * kern/main.c (grub_register_rescue_parser): Don't call
27807 grub_register_rescue_parser.
27808 * kern/parser.c (grub_parser_class): Removed.
27809 (grub_parser_execute): Use grub_rescue_parse_line.
27810 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27811 (grub_rescue_parser): Removed.
27812 (grub_register_rescue_parser): Likewise.
27813 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27814 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27815 (grub_auth_check_authentication): Likewise.
27816 * normal/completion.c (iterate_command): Removed.
27817 (grub_normal_do_completion): Use FOR_COMMANDS.
27818 * normal/handler.c: Removed.
27819 * normal/main.c (read_config_file): Remove parser changing.
27820 (grub_normal_execute): Don't call read_handler_list.
27821 (grub_normal_read_line_real): Statically allocate prompt.
27822 (grub_cmdline_run): Use grub_normal_parse_line.
27823 (GRUB_MOD_FINI): Don't call free_handler_list.
27824 * normal/menu_entry.c (run): Likewise.
27825 * script/function.c (grub_script_function_list): Make global.
27826 (grub_script_function_iterate): Removed.
27827 * script/main.c (grub_normal_parse_line): Make global.
27828 (grub_sh_parser): Removed.
27829 (GRUB_MOD_INIT): Likewise.
27830 (GRUB_MOD_FINI): Likewise.
27831 * tests/lib/functional_test.c (grub_functional_test): Use
27833 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27834 (grub_test_run): Use FOR_LIST_ELEMENTS.
27835 * tests/lib/unit_test.c (main): Likewise.
27836 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27838 * util/grub-fstest.c (grub_term_input_class): Removed.
27839 (grub_term_output_class): Likewise.
27840 * util/grub-probe.c: Likewise.
27841 * util/i386/pc/grub-setup.c: Likewise.
27842 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27843 * util/grub-script-check.c (main): Don't call grub_init_all and
27845 * video/video.c (grub_video_adapter_list): Make global.
27846 (grub_video_register): Removed.
27847 (grub_video_unregister): Likewise.
27848 (grub_video_iterate): Likewise.
27850 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27852 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27853 reported by Henrique Ferreiro.
27855 2010-06-09 Robert Millan <rmh@gnu.org>
27857 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27858 ones, when both are available.
27860 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27862 Make --version uniform and avoid hard-coded program name.
27864 * util/grub-mkimage.c (main): Use `program_name' instead of
27866 * util/i386/pc/grub-setup.c (main): Likewise.
27867 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27868 * util/grub-install.in: Save the basename of $0 in $self, and use the
27869 latter in informational messages. Use the same format for --version
27870 as the binary programs.
27871 * util/grub-mkconfig.in: Likewise.
27872 * util/grub-mkrescue.in: Likewise.
27873 * util/grub-reboot.in: Likewise.
27874 * util/grub-set-default.in: Likewise.
27875 * util/i386/efi/grub-install.in: Likewise.
27876 * util/ieee1275/grub-install.in: Likewise.
27877 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27879 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27881 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27882 embedding area. Use <= instead of == when checking for non-emptiness.
27884 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27886 * configure.ac: Add `.' to the directories searched for unifont.
27888 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27890 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27893 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27895 * docs/grub.texi (History): Expand to cover GRUB 2.
27896 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27897 commands, not `terminal'.
27898 (serial): Likewise.
27899 (terminal_input): New section.
27900 (terminal_output): New section.
27901 (uppermem): New section (stub).
27902 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27904 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27906 * docs/grub.texi (Security): Menu entries are unrestricted by
27907 default, not restricted to superusers as I had previously thought.
27908 Reword to account for this.
27910 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27912 * kern/emu/misc.c (device_mapper_null_log): New function.
27913 (grub_device_mapper_supported): New function.
27914 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27916 * kern/emu/hostdisk.c (find_partition_start): Check whether
27917 device-mapper is supported before trying to use it.
27918 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27920 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27922 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27923 (File name syntax): Likewise.
27924 (help): --all is no longer supported in GRUB 2. Be more precise
27925 about pattern matching.
27927 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27929 * normal/completion.c (grub_normal_do_completion): When completing
27930 arguments to "set" and the current word contains an equals sign,
27931 skip to after the equals sign before starting completion.
27933 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27935 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27937 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27939 * docs/grub.texi (Network): New section.
27940 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27941 `(nd)' as in GRUB Legacy.
27942 (pxe_unload): New section.
27944 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27946 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27947 in the rescue shell, so recommend using `set' instead. Thanks,
27950 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27952 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27953 (password): New section.
27954 (password_pbkdf2): New section.
27955 (search): New section.
27956 (Security): New section.
27957 (Troubleshooting): New section, currently very incomplete.
27958 (Invoking grub-mkpasswd-pbkdf2): New section.
27959 (Internals): New section, currently very incomplete.
27961 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27963 * util/grub.d/00_header.in: Add some more quoting (of
27964 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27966 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27968 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27970 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27971 to `count', fixing variable shadowing that broke the -c option.
27973 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27975 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27976 in case they contain spaces.
27978 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27980 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27981 "part_" to partmap module names, in line with grub-install.
27982 Reported by: Jindřich Makovička (Debian bug #584426).
27984 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27986 * util/grub-mkimage.c: Make target-related error messages slightly
27987 more helpful; -O talks about "format". Explicitly point to the use
27988 of -O if no target is specified.
27989 Reported by: Didier Raboud (Debian bug #584415).
27991 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27993 * INSTALL: Document several build requirements for optional features
27994 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27996 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27998 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27999 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28000 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28002 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28004 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28005 Thanks to Jordan Uggla for spotting this.
28007 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28009 Finally make USB usable.
28011 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28012 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28013 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28014 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28015 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28016 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28017 (GRUB_OHCI_FSMPS): Likewise.
28018 (GRUB_OHCI_PERIODIC_START): Likewise.
28019 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28020 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28021 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28022 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28023 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28024 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28025 (grub_ohci_transaction): Likewise.
28026 (grub_ohci_transfer): Improve condition detection algorithms.
28027 Handle toggle property. Program the transactions correctly.
28028 Improve error handling. Various important fixups.
28029 (grub_ohci_portstatus): Put register writes in right order.
28030 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28031 (grub_uhci_transfer): Don't show "failed" message on success.
28032 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28034 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28035 determine its size.
28036 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28037 before initialization is completed. Use IN direction for empty
28038 transfers. Use last_trans and compute toggle.
28039 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28040 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28041 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28042 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28043 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28044 (grub_usb_device): Increase toggle to 256.
28045 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28046 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28047 GRUB_USBMS_SUBCLASS_SFF8070.
28048 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28049 (grub_scsi_inquiry): New member page and alloc_length.
28050 (grub_scsi_request_sense): New structure.
28051 (grub_scsi_request_sense_data): Likewise.
28052 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28054 * disk/scsi.c (grub_scsi_request_sense): New function.
28055 (grub_scsi_test_unit_ready): Likewise.
28056 (grub_scsi_inquiry): Fill new fields.
28057 (grub_scsi_read_capacity): Likewise.
28058 (grub_scsi_read10): Add request sense at the end.
28059 (grub_scsi_read12): Likewise.
28060 (grub_scsi_write10): Likewise.
28061 (grub_scsi_write12): Likewise.
28062 (grub_scsi_open): Add Test Unit Ready.
28063 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28064 Support additional subclasses. Con't clear halt yet. Activate the
28065 proper config. Calculate LUNs correctly.
28066 (grub_usbms_transfer): Various important fixups.
28068 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28070 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28071 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28072 (grub_ohci_fini_hw): New function.
28073 (grub_ohci_restore_hw): Likewise.
28074 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28075 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28076 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28078 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28080 Dedicated DMA allocations.
28082 * bus/pci.c (grub_memalign_dma32): New function
28083 (grub_dma_free): Likewise.
28084 (grub_dma_get_virt): Likewise.
28085 (grub_dma_get_phys): Likewise.
28086 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28087 (grub_ohci_pci_iter): Use dma32_alloc.
28088 (grub_ohci_transfer): Likewise.
28089 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28090 (grub_usb_bulk_readwrite): Likewise.
28091 * include/grub/pci.h: Add declarations.
28093 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28097 * bus/cs5536.c: New file.
28098 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28099 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28100 (cs5536_mod_SOURCES): New variable.
28101 (cs5536_mod_CFLAGS): Likewise.
28102 (cs5536_mod_LDFLAGS): Likewise.
28103 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28105 (kernel_img_SOURCES): Add bus/cs5536.c.
28106 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28108 (usb_mod_SOURCES): New variable.
28109 (usb_mod_CFLAGS): New variable.
28110 (usb_mod_LDFLAGS): New variable.
28111 (usbtest_mod_SOURCES): New variable.
28112 (usbtest_mod_CFLAGS): New variable.
28113 (usbtest_mod_LDFLAGS): New variable.
28114 (ohci_mod_SOURCES): New variable.
28115 (ohci_mod_CFLAGS): New variable.
28116 (ohci_mod_LDFLAGS): New variable.
28117 (usbms_mod_SOURCES): New variable.
28118 (usbms_mod_CFLAGS): New variable.
28119 (usbms_mod_LDFLAGS): New variable.
28120 (usb_keyboard_mod_SOURCES): New variable.
28121 (usb_keyboard_mod_CFLAGS): New variable.
28122 (usb_keyboard_mod_LDFLAGS): New variable.
28123 * include/grub/smbus.h: New file.
28124 * include/grub/cs5536.h: New file.
28126 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28128 * util/grub.d/00_header.in: Add safety check to make sure that
28129 ${locale_dir} exists before trying to probe it.
28131 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28133 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28134 per the GNU Coding Standards; this is now too obscure to be worth
28137 (chainloader): Remove cross-reference to `SCO UnixWare'.
28139 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28141 * docs/grub.texi (Chain-loading): New section.
28142 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28143 adjusted for GRUB 2.
28144 (SCO UnixWare): Likewise.
28146 (chainloader): Add reference to `Block list syntax'.
28147 (drivemap): New section.
28148 (parttool): New section.
28150 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28152 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28154 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28155 (Installing GRUB using grub-install): Remove reference to the grub
28156 shell; mention `grub-mkimage' and `grub-setup' instead.
28157 (Invoking grub-install): Likewise.
28158 (Interface): Add reference to `Menu entry editor'.
28159 (serial): Remove `--device' option.
28161 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28163 * docs/grub.texi (Configuration): New section, documenting
28164 configuration file generation using grub-mkconfig. I've left a slot
28165 for documenting the full shell scripting format but have not yet
28166 started on writing that up.
28167 (Invoking grub-mkconfig): New section.
28169 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28171 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28172 (GNU GRUB manual): Likewise.
28173 (General commands): Update description of `terminfo' for GRUB 2.
28175 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28177 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28178 (GRUB_MOD_INIT): Fix capitalisation.
28179 * docs/grub.texi (Command-line and menu entry commands): Document
28180 gettext and gptsync commands.
28182 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28184 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28185 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28187 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28189 Add btrfs probing support, currently only in the single-device case.
28191 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28193 (grub_guess_root_device): Call find_root_device_from_mountinfo
28194 before looking in /dev.
28196 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28198 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28199 GRUB_DISK_SIZE_UNKNOWN.
28200 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28202 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28204 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28205 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28206 corrupted or not synced properly.
28208 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28210 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28211 Reported by: Seth Goldberg.
28213 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28215 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28217 Reported by: Seth Goldberg.
28219 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28221 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28222 Reported by: Seth Goldberg.
28224 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28226 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28227 64-bit address as signed on MIPS.
28229 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28231 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28232 to the empty string.
28234 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28236 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28238 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28239 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28240 * kern/misc.c (__enable_execute_stack): Disable on
28243 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28245 Make grub-probe work with symbolic links under /dev/mapper as well
28246 as with real block devices. The Linux world seems to be (at best)
28247 in transition here, and GRUB shouldn't get caught in the middle.
28249 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28252 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28254 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28255 input files (in which case exit zero).
28257 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28259 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28260 return NULL for various reasons even if it has a maximum-length
28261 buffer: for example, there might be a symlink loop, or the path
28262 might exceed PATH_MAX. If this happens, return NULL.
28264 2010-05-27 Robert Millan <rmh@gnu.org>
28266 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28267 partmap module to handle cross-partmap setups.
28268 Reported by Orestes Mas. Gràcies!
28270 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28272 * util/grub-mkrescue.in: Initialise override_dir rather than
28273 assuming that it's unset or empty in the environment.
28275 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28277 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28278 variable index into p_index to suppress a warning with -Wshadow.
28280 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28282 * INSTALL: Added flex >= 2.5.35 requirement.
28284 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28286 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28288 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28292 * commands/i386/cmostest.c: New file.
28293 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28294 (cmostest_mod_SOURCES): New variable.
28295 (cmostest_mod_CFLAGS): Likewise.
28296 (cmostest_mod_LDFLAGS): Likewise.
28297 * conf/i386-pc.rmk: Likewise.
28298 * docs/grub.texi (Vendor power-on keys): New section.
28299 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28300 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28301 and GRUB_BUTTON_CMOS_ADDRESS.
28302 * util/grub.d/00_header.in: Handle powering-on by separate button.
28304 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28306 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28307 Removed drawing_scrollbar argument. All users updated
28309 Reported by Jo Shields
28311 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28313 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28314 buffer since gfxterm handles double repaint.
28316 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28318 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28319 * term/gfxterm.c (real_scroll): Likewise.
28321 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28323 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28324 before calling BIOS.
28326 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28328 * include/grub/i18n.h: Always enable grub_gettext.
28330 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28332 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28333 partition naming style.
28335 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28337 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28338 not the first option.
28340 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28342 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28344 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28346 * util/misc.c: Move inclusion of <limits.h> to ...
28347 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28349 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28351 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28352 Fix merge error in NetBSD code.
28353 (find_partition_start) [__NetBSD__]: Likewise.
28355 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28357 Fix grub-mkrescue usage unit testing.
28359 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28361 2010-05-18 Christian Franke <franke@computer.org>
28363 * util/grub.d/10_windows.in: Use path names instead of
28364 drive letters to prevent warning from Cygwin 1.7.
28365 Add drivemap command to menuentry if needed.
28367 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28369 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28370 gnumach and gnumach.gz.
28372 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28374 * include/grub/i18n.h (gettext): Inline instead of using #define.
28375 (grub_gettext): Likewise.
28378 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28380 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28381 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28382 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28383 (main): Add a slash after pkglibdirroot.
28385 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28387 * util/grub-install.in: Add missing "in" keyword.
28389 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28391 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28392 Reported by: Seth Goldberg.
28394 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28396 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28398 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28400 * configure.ac: Check for Linux device-mapper support.
28402 * util/hostdisk.c (device_is_mapped): New function.
28403 (find_partition_start): New function, partly broken out from
28404 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28405 device-mapper support added.
28406 (linux_find_partition): Use find_partition_start.
28407 (convert_system_partition_to_system_disk): Add `st' argument.
28408 Support Linux /dev/mapper/* devices if device-mapper support is
28409 available; only DM-RAID devices are understood at present.
28410 (find_system_device): Add `st' argument. Pass it to
28411 convert_system_partition_to_system_disk.
28412 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28413 find_system_device and convert_system_partition_to_system_disk. Use
28414 find_partition_start.
28416 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28417 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28418 * util/deviceiter.c [__linux__]: Define MINOR.
28419 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28420 * util/mkdevicemap.c (grub_putchar): New function.
28421 (grub_getkey): New function.
28422 (grub_refresh): New function.
28423 (main): Set debug=all if -v -v is used.
28425 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28427 Fix build with non-GNU libcs.
28429 * util/misc.c (canonicalize_file_name): Move to ...
28430 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28431 grub_make_system_path_relative_to_its_root.
28433 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28435 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28436 we handle finding grub-mkimage. Default to finding grub-mkimage in
28437 ${bindir} with program_transform_name applied, and provide a
28438 --grub-mkimage option to override this.
28440 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28442 Remove grub-mkisofs.
28444 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28445 (grub_mkisofs_SOURCES): Removed.
28446 (grub_mkisofs_CFLAGS): Removed.
28447 * util/mkisofs/defaults.h: Removed.
28448 * util/mkisofs/eltorito.c: Likewise.
28449 * util/mkisofs/exclude.h: Likewise.
28450 * util/mkisofs/hash.c: Likewise.
28451 * util/mkisofs/include/: Likewise.
28452 * util/mkisofs/include/fctldefs.h: Likewise.
28453 * util/mkisofs/include/mconfig.h: Likewise.
28454 * util/mkisofs/include/prototyp.h: Likewise.
28455 * util/mkisofs/include/statdefs.h: Likewise.
28456 * util/mkisofs/iso9660.h: Likewise.
28457 * util/mkisofs/joliet.c: Likewise.
28458 * util/mkisofs/match.c: Likewise.
28459 * util/mkisofs/match.h: Likewise.
28460 * util/mkisofs/mkisofs.c: Likewise.
28461 * util/mkisofs/mkisofs.h: Likewise.
28462 * util/mkisofs/msdos_partition.h: Likewise.
28463 * util/mkisofs/multi.c: Likewise.
28464 * util/mkisofs/name.c: Likewise.
28465 * util/mkisofs/rock.c: Likewise.
28466 * util/mkisofs/tree.c: Likewise.
28467 * util/mkisofs/write.c: Likewise.
28469 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28471 Unify grub-mkimage accross platforms.
28473 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28474 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28475 (grub_mkelfimage_SOURCES): Removed.
28476 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28477 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28478 (bin_UTILITIES): Add grub-mkimage.
28479 (grub_mkimage_SOURCES): New variable.
28480 (kernel_img_HEADERS): Remove machine/kernel.h.
28481 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28482 (pkglib_PROGRAMS): Add kernel.img.
28483 (kernel_img_HEADERS): Add machine/kernel.h.
28484 (kernel_img_FORMAT): Removed.
28485 (bin_UTILITIES): Remove grub-mkimage.
28486 (grub_mkimage_SOURCES): Removed.
28487 (grub_mkimage_CFLAGS): Likewise.
28488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28489 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28490 (pkglib_PROGRAMS): Add kernel.img.
28491 (bin_UTILITIES): Remove grub-mkimage.
28492 (grub_mkimage_SOURCES): Removed.
28493 (grub_mkimage_CFLAGS): Likewise.
28494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28495 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28496 (pkglib_PROGRAMS): Add kernel.img.
28497 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28498 (pkglib_PROGRAMS): Add kernel.img.
28499 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28500 (grub_mkimage_SOURCES): Removed.
28501 (grub_mkimage_CFLAGS): Likewise.
28502 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28503 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28504 (pkglib_PROGRAMS): Add kernel.img.
28505 (bin_UTILITIES): Remove grub-mkimage.
28506 (grub_mkimage_SOURCES): Removed.
28507 (grub_mkimage_CFLAGS): Likewise.
28508 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28509 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28510 (grub_mkimage_SOURCES): Removed.
28511 (grub_mkimage_CFLAGS): Likewise.
28512 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28513 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28514 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28515 (grub_pe32_optional_header): ... this.
28516 (grub_pe64_optional_header): ... and this. All users updated.
28517 (GRUB_PE32_PE32_MAGIC): Split into ..
28518 (GRUB_PE32_PE32_MAGIC): .. this.
28519 (GRUB_PE32_PE64_MAGIC): .. and this.
28520 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28521 * include/grub/elf.h (PT_GNU_STACK): New definition.
28522 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28523 * include/grub/i386/efi/kernel.h: Likewise.
28524 * include/grub/i386/kernel.h: Likewise.
28525 * include/grub/i386/pc/kernel.h: Likewise.
28526 * include/grub/i386/qemu/boot.h: Likewise.
28527 * include/grub/mips/kernel.h: Likewise.
28528 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28529 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28530 * include/grub/powerpc/kernel.h: Likewise.
28531 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28532 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28533 * include/grub/sparc64/kernel.h: Likewise.
28534 * include/grub/x86_64/efi/kernel.h: Likewise.
28535 * include/grub/x86_64/kernel.h: Likewise.
28536 * include/grub/offsets.h: New file.
28537 * include/grub/kernel.h (grub_module_info): Split into ...
28538 (grub_module_info32): ... this.
28539 (grub_module_info64): ... and this.
28540 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28541 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28542 (grub_boot_blocklist): Moved from here ...
28543 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28544 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28545 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28546 * include/grub/types.h (grub_target_to_host16): Removed.
28547 (grub_target_to_host32): Likewise.
28548 (grub_target_to_host64): Likewise.
28549 (grub_host_to_target16): Likewise.
28550 (grub_host_to_target32): Likewise.
28551 (grub_host_to_target64): Likewise.
28552 (grub_host_to_target_addr): Likewise.
28554 Support grub-mkrescue for efi, coreboot and qemu.
28556 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28557 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28558 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28559 * util/grub-mkrawimage.c: Moved from here ...
28560 * util/grub-mkimage.c: ... here. All users updated.
28561 (ALIGN_ADDR): Use image_target.
28562 (TARGET_NO_FIELD): New const.
28563 (image_target_desc): New type.
28564 (image_targets): New array.
28565 (grub_target_to_host64): Use image_target.
28566 (grub_target_to_host32): Likewise.
28567 (grub_target_to_host16): Likewise.
28568 (grub_host_to_target64): Likewise.
28569 (grub_host_to_target32): Likewise.
28570 (grub_host_to_target16): Likewise.
28571 (grub_host_to_target_addr): Likewise.
28572 (generate_image): Handle multiimage.
28573 (main): Require -O parameter. All users updated.
28574 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28575 util/efi/grub-mkimage.c
28576 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28577 New option --rom-directory.
28579 * util/i386/efi/grub-mkimage.c: Removed.
28580 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28581 (grub_target_to_host32): Likewise.
28582 (grub_target_to_host64): Likewise.
28583 (grub_host_to_target16): Likewise.
28584 (grub_host_to_target32): Likewise.
28585 (grub_host_to_target64): Likewise.
28586 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28587 (grub_target_to_host32): Likewise.
28588 (grub_target_to_host64): Likewise.
28589 (grub_host_to_target16): Likewise.
28590 (grub_host_to_target32): Likewise.
28591 (grub_host_to_target64): Likewise.
28593 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28595 Source tree is reorganized for emu build.
28597 * include/grub/util/console.h: Move from here...
28598 * include/grub/emu/console.h: ...to here.
28599 * include/grub/util/getroot.h: Move from here...
28600 * include/grub/emu/getroot.h: ...to here.
28601 * include/grub/util/hostdisk.h: Move from here...
28602 * include/grub/emu/hostdisk.h: ...to here.
28603 * util/console.c: Move from here...
28604 * kern/emu/console.c: ...to here.
28605 * util/getroot.c: Move from here...
28606 * kern/emu/getroot.c: ...to here.
28607 * util/grub-emu.c: Move from here...
28608 * kern/emu/main.c: ...to here.
28609 * util/hostdisk.c: Move from here...
28610 * kern/emu/hostdisk.c: ...to here.
28611 * util/hostfs.c: Move from here...
28612 * kern/emu/hostfs.c: ...to here.
28613 * util/mm.c: Move from here...
28614 * kern/emu/mm.c: ...to here.
28615 * util/pci.c: Move from here...
28616 * bus/emu/pci.c: ...to here.
28617 * util/sdl.c: Move from here...
28618 * video/emu/sdl.c: ...to here.
28619 * util/time.c: Move from here...
28620 * kern/emu/time.c: ...to here.
28621 * util/usb.c: Move from here...
28622 * bus/usb/emu/usb.c: ...to here.
28624 * include/grub/emu/misc.h: New header for grub-emu functions.
28625 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28627 * conf/any-emu.rmk: Rule updates for above renames.
28628 * conf/common.rmk: Likewise.
28629 * conf/i386-pc.rmk: Likewise.
28630 * conf/i386-qemu.rmk: Likewise.
28631 * conf/mips.rmk: Likewise.
28632 * conf/sparc64-ieee1275.rmk: Likewise.
28633 * conf/x86-efi.rmk: Likewise.
28635 * disk/lvm.h: #include updates for above renames.
28636 * util/grub-mkrelpath.c: Likewise.
28637 * util/grub-probe.c: Likewise.
28638 * util/i386/pc/grub-setup.c: Likewise.
28639 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28640 * kern/emu/console.c: Likewise.
28641 * kern/emu/getroot.c: Likewise.
28642 * kern/emu/hostdisk.c: Likewise.
28643 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28645 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28646 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28647 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28648 * util/misc.c: Remove grub-emu functions.
28650 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28653 Reported by: Thorsten Grützmacher.
28655 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28657 (circprog_set_property): Register and unregister timeout hook.
28658 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28659 (label_destroy): Free template. and unregister hook.
28660 (label_set_state): New function.
28661 (label_set_property): Handle templates and hooks.
28662 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28664 (progress_bar_set_property): Register and unregister timeout hook.
28665 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28666 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28667 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28668 (update_timeout_visit): Removed.
28669 (update_timeouts): New function.
28670 (redraw_timeouts): Likewise.
28671 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28672 (grub_gfxmenu_clear_timeout): Likewise.
28673 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28674 (grub_gfxmenu_timeout_notify): Likewise.
28675 (grub_gfxmenu_timeout_notifications): New external variable.
28676 (grub_gfxmenu_timeout_register): New function.
28677 (grub_gfxmenu_timeout_unregister): Likewise.
28679 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28681 Transform (broken) vga terminal into (working) vga video driver.
28683 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28684 video/i386/pc/vga.c.
28685 * include/grub/video.h (grub_video_driver_id):
28686 Add GRUB_VIDEO_DRIVER_VGA.
28687 * term/i386/pc/vga.c: Renamed to ...
28688 * video/i386/pc/vga.c: ...this
28689 (DEBUG_VGA): Removed.
28690 (CHAR_WIDTH): Likewise.
28691 (CHAR_HEIGHT): Likewise.
28692 (TEXT_WIDTH): Likewise.
28693 (TEXT_HEIGHT): Likewise.
28694 (DEFAULT_FG_COLOR): Likewise.
28695 (DEFAULT_BG_COLOR): Likewise.
28696 (colored_char): Likewise.
28699 (cursor_state): Likewise.
28700 (fg_color): Likewise.
28701 (bg_color): Likewise.
28702 (text_buf): Likewise.
28705 (framebuffer): New variable.
28706 (set_read_map): Disabled.
28707 (setup): New variable.
28708 (is_target): Likewise.
28709 (grub_vga_mod_init): Likewise.
28710 (grub_vga_mod_fini): Likewise.
28711 (check_vga_mem): Likewise.
28712 (write_char): Likewise.
28713 (write_cursor): Likewise.
28714 (scroll_up): Likewise.
28715 (grub_vga_putchar): Likewise.
28716 (grub_vga_getcharwidth): Likewise.
28717 (grub_vga_getwh): Likewise.
28718 (grub_vga_getxy): Likewise.
28719 (grub_vga_gotoxy): Likewise.
28720 (grub_vga_cls): Likewise.
28721 (grub_vga_setcolorstate): Likewise.
28722 (grub_vga_setcursor): Likewise.
28723 (grub_video_vga_init): New function.
28724 (grub_video_vga_setup): Likewise.
28725 (grub_video_vga_fini): Likewise.
28726 (update_target): Likewise.
28727 (grub_video_vga_blit_bitmap): Likewise.
28728 (grub_video_vga_blit_render_target): Likewise.
28729 (grub_video_vga_set_active_render_target): Likewise.
28730 (grub_video_vga_get_active_render_target): Likewise.
28731 (grub_video_vga_swap_buffers): Likewise.
28732 (grub_video_vga_set_palette): Likewise.
28733 (grub_video_vga_get_info_and_fini): Likewise.
28734 (grub_vga_term): Removed.
28735 (grub_video_vga_adapter): New variable.
28736 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28737 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28739 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28741 * video/readers/jpeg.c: Indented.
28743 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28745 Various jpeg cleanups.
28747 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28748 (grub_jpeg_decode_quan_table): Use sizeof.
28749 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28751 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28753 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28754 tables. Ignore non-last ac bit.
28755 (grub_jpeg_decode_quan_table): Likewise.
28757 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28760 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28761 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28762 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28763 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28764 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28766 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28768 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28771 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28773 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28775 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28777 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28780 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28782 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28785 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28787 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28790 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28792 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28794 2010-05-01 Christian Franke <franke@computer.org>
28796 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28797 Remove broken Cygwin path conversion.
28798 * util/misc.c: [__CYGWIN__] Add include and define.
28799 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28801 (make_system_path_relative_to_its_root): Simplify loop, replace early
28803 [__CYGWIN__] Add conversion to win32 path.
28804 Include "/" case in trailing slash removal.
28806 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28808 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28809 Reported by: Seth Goldberg
28811 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28813 * commands/help.c (grub_cmd_help): Fix a typo.
28814 Reported by: Seth Goldberg
28816 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28818 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28820 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28821 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28822 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28823 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28824 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28825 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28826 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28827 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28828 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28829 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28830 * normal/context.c (GRUB_MOD_INIT): Likewise.
28831 * normal/main.c (GRUB_MOD_INIT): Likewise.
28832 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28833 * term/serial.c (GRUB_MOD_INIT): Likewise.
28834 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28836 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28838 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28841 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28843 * commands/iorw.c: New file.
28844 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28845 (iorw_mod_SOURCES): New variable.
28846 (iorw_mod_CFLAGS): Likewise.
28847 (iorw_mod_LDFLAGS): Likewise.
28849 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28853 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28854 * normal/main.c (hotkey_aliases): New variable.
28855 (grub_normal_add_menu_entry): Parse "--hotkey".
28856 * normal/menu_text.c (run_menu): Handle hotkeys.
28858 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28860 * kern/i386/coreboot/init.c (grub_machine_init): Call
28861 grub_machine_mmap_init on qemu.
28863 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28865 * boot/i386/qemu/boot.S: Add a missing .code16.
28867 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28869 Use LBIO on coreboot.
28871 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28872 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28873 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28875 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28876 grub_machine_mmap_init on coreboot.
28877 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28878 GRUB_LINUXBIOS_MEMBER_LINK.
28879 (grub_machine_mmap_iterate): Fix declaration.
28880 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28882 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28884 Split coreboot and multiboot ports.
28886 * conf/i386-multiboot.rmk: New file.
28887 * configure.ac: Add multiboot port.
28888 * include/grub/i386/multiboot/boot.h: New file.
28889 * include/grub/i386/multiboot/console.h: Likewise.
28890 * include/grub/i386/multiboot/init.h: Likewise.
28891 * include/grub/i386/multiboot/kernel.h: Likewise.
28892 * include/grub/i386/multiboot/loader.h: Likewise.
28893 * include/grub/i386/multiboot/memory.h: Likewise.
28894 * include/grub/i386/multiboot/serial.h: Likewise.
28895 * include/grub/i386/multiboot/time.h: Likewise.
28896 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28897 * loader/multiboot.c: Likewise.
28898 * loader/multiboot_mbi2.c: Likewise.
28899 * util/grub-mkrescue.in: Generate multiboot rescue.
28901 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28903 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28905 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28907 Merge handling of input and output terminals. Fix a hang.
28909 * commands/terminal.c (abstract_terminal): New struct.
28910 (handle_command): New function. Based on grub_cmd_terminal_input.
28911 (grub_cmd_terminal_input): Use handle_command.
28912 (grub_cmd_terminal_output): Use handle_command.
28914 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28916 Fix comment handling.
28918 * tests/grub_script_comments.in: New testcase.
28919 * conf/tests.rmk: Rules for new testcase.
28920 * script/yylex.l: Updated flex rules.
28922 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28924 * docs/grub.texi (play): Document that zero pitches produce rests.
28925 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28928 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28930 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28933 2010-04-26 Christian Franke <franke@computer.org>
28935 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28936 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28937 (grub_get_prefix): Remove function.
28938 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28939 make_system_path_relative_to_its_root ().
28940 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28942 2010-04-24 Christian Franke <franke@computer.org>
28944 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28945 (kernel_img_LDFLAGS): Remove -static-libgcc.
28947 2010-04-24 Christian Franke <franke@computer.org>
28949 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28950 and CHECK_END_SYMBOL if grub-emu is built.
28951 Unset TARGET_OBJ2ELF if grub-emu is built
28952 without module support.
28954 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28958 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28959 (grub_fstest_SOURCES): Likewise.
28960 (pkglib_MODULES): Add nilfs2.mod.
28961 (nilfs2_mod_SOURCES): New variable.
28962 (nilfs2_mod_CFLAGS): Likewise.
28963 (nilfs2_mod_LDFLAGS): Likewise.
28964 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28965 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28966 * fs/nilfs2.c: New file.
28968 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28970 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28973 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28975 Add grub-mkconfig support for NetBSD.
28977 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28978 * util/grub-mkconfig.in: export new NetBSD specific variables.
28979 * po/POTFILES-shell: added 10_netbsd.in.
28980 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28982 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28984 Fix emu build with grub-emu-pci and grub-emu-modules.
28986 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28988 * include/grub/libpciaccess.h: New file.
28989 * conf/any-emu.rmk: Update kernel headers for emu build.
28991 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28993 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28995 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28997 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28999 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29001 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29002 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29003 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29004 util/ieee1275/ofpath.c.
29005 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29006 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29007 * include/grub/sparc64/ieee1275/boot.h
29008 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29009 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29010 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29011 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29013 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29014 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29015 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29018 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29020 * util/grub-mkconfig.in: Corrected two == equality tests.
29021 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29022 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29023 expect a number appended to it.
29024 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29025 expects a number appended to it.
29027 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29029 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29031 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29033 * util/hostdisk.c (make_device_name): Change to new partition naming.
29035 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29037 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29039 2010-04-17 Christian Franke <franke@computer.org>
29041 * Makefile.in: Add missing localedir setting.
29043 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29045 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29046 mistake in r2156. Noticed by Anthony Fok.
29048 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29050 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29052 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29054 Fix a spurious, uninitialized variable warning.
29056 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29057 Initialize variable, shdr.
29058 (grub_freebsd_load_elfmodule): Likewise.
29059 (grub_freebsd_load_elf_meta): Likewise.
29061 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29063 Fix for escaped dollar in double quoted strings.
29065 * script/yylex.l: Updated flex rules.
29066 * conf/tests.rmk: Rule for new testcase.
29067 * tests/grub_script_dollar.in: New testcase.
29069 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29070 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29072 Enclose all translated strings in grub.cfg in single quotes, and
29073 escape them appropriately (Ubuntu bug #552921).
29075 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29076 * util/grub.d/10_hurd.in: Use it.
29077 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29078 * util/grub.d/10_linux.in (linux_entry): Likewise.
29080 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29082 Fix cygwin compilation.
29084 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29085 * include/grub/misc.h (__register_frame_info)
29086 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29087 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29088 * kern/misc.c (__register_frame_info)
29089 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29090 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29092 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29094 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29096 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29098 Unify libgcc processing.
29100 * Makefile.in (kernel_img_LDFLAGS): New variable.
29101 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29102 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29104 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29105 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29106 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29107 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29108 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29109 overwriting. Remove -lgcc and -static-libgcc
29110 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29111 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29112 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29113 (kernel_img_LDFLAGS): Append instead of overwriting.
29114 Remove -lgcc and -static-libgcc
29115 * conf/sparc64-ieee1275.rmk: Likewise.
29116 * include/grub/powerpc/libgcc.h: Move to ...
29117 * include/grub/libgcc.h: .. this.
29118 * include/grub/libgcc.h: Don't export most of the function on x86.
29119 (__bswapsi2): New export.
29120 (__bswapdi2): Likewise.
29121 * include/grub/mips/libgcc.h: Removed.
29122 * include/grub/sparc64/libgcc.h: Likewise.
29124 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29126 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29127 disk_info_msg (conflicts with gettexting into languages with cases).
29129 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29131 Add grub-probe support for NetBSD.
29133 * util/getroot.c (find_root_device): Convert block device to
29134 character device on NetBSD.
29135 * util/probe.c (probe): Require character device on NetBSD.
29136 * util/hostdisk.c: NetBSD specific headers.
29137 (configure_device_driver): new function to tune device driver
29138 parameters (currently only for NetBSD floppy driver).
29139 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29140 via disklabel ioctl).
29141 (open_device): call configure_device_driver on NetBSD.
29142 (convert_system_partition_to_system_disk): NetBSD specific code.
29143 (device_is_wholedisk): Likewise.
29144 (grub_util_biosdisk_get_grub_dev): Likewise.
29145 (make_device_name): Fixed a typo in bsd_part_str.
29146 * configure.ac: check for opendisk() and getrawpartition() on
29147 NetBSD and set LIBUTIL.
29148 * Makefile.in: add LIBUTIL to LIBS.
29150 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29154 * util/grub-script-check.c: Better help message.
29156 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29160 * configure.ac: Flex version check.
29161 * conf/common.rmk: Add -Wno-error to sh.mod.
29162 * script/yylex.l: Remove all #pragma.
29164 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29166 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29168 Reported by: Seth Goldberg.
29170 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29172 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29173 Rename "module" to "module2".
29174 Reported by: Seth Goldberg.
29176 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29178 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29180 Reported by: Seth Goldberg.
29182 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29184 * lib/posix_wrap/locale.h: Add missing file.
29185 Reported by: Seth Goldberg.
29187 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29189 grub-emu module load support.
29191 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29192 NO_DYNAMIC_MODULES switched to this.
29193 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29194 (CFLAGS): Likewise.
29195 * conf/any-emu.rmk: Generate symlist.
29196 (kernel_img_HEADERS): Add util/datetime.h.
29197 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29198 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29199 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29200 kern/$(target_cpu)/cache.S.
29201 * configure.ac (grub-emu-modules): New option.
29202 * genmk.rb: Handle multiple source lists.
29203 * include/grub/sdl.h: New file.
29204 * include/grub/libusb.h: Likewise.
29205 * util/grub-emu.c (main): Hanle (host) root.
29206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29207 GRUB_ERR_UNKNOWN_DEVICE.
29208 * util/misc.c: Move mm functions to ...
29209 * util/mm.c: ... here. All users updated.
29211 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29213 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29214 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29216 (maintainer-clean): Remove libgcrypt-grub.
29218 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29220 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29222 2010-04-09 EFI Coder <eficoder@hotmail.com>
29224 * normal/menu_text.c (print_message): Clean up the message and show
29225 the Fn information when on EFI
29226 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29228 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29230 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29232 * normal/crypto.c (read_crypto_list): Likewise.
29233 * normal/dyncmd.c (read_command_list): Likewise.
29234 * normal/term.c (read_terminal_list): Likewise.
29235 * normal/main.c (read_lists): Use explicit prefix.
29236 (read_lists_hook): Use read_lists.
29237 (grub_normal_execute): Likewise.
29239 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29241 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29242 Reported by: Thomas Schmitt.
29243 Add -no-emul-boot to grub-mkisofs parameters.
29245 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29247 * font/font.c: Indented.
29249 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29251 Elif support to GRUB script (by Deepak Vankadaru).
29253 * tests/grub_script_if.in: New testcase.
29254 * conf/tests.rmk: Rule for new testcase.
29255 * script/parser.y: Grammar rules for elif.
29257 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29259 While and until loops support to GRUB script.
29261 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29262 (grub_script_create_cmdwhile): New function prototype.
29263 (grub_script_execute_cmdwhile): New function prototype.
29264 * script/execute.c (grub_script_execute_cmdwhile): New function.
29265 * script/parser.y (command): New commands.
29266 (whilecmd): New grammar rule.
29267 (untilcmd): New grammar rule.
29268 * script/script.c (grub_script_create_cmdwhile): New function.
29269 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29272 * tests/grub_script_while1.in: New testcase.
29273 * conf/tests.rmk: Rule for new testcase.
29275 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29277 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29280 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29282 GRUB_BACKGROUND support.
29284 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29285 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29287 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29289 Load fonts and modules for gfxmenu in grub-mkconfig.
29290 Idea by: Mario Vazquez
29292 * util/grub.d/00_header.in: Load pf2 and image modules.
29294 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29296 grub-mkconfig multiple terminal support.
29298 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29299 * util/grub.d/00_header.in: Likewise.
29301 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29303 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29304 we use cd $(srcdir).
29306 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29308 * util/grub.d/10_linux.in: Only use the first word of
29309 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29310 spaces in GRUB_DISTRIBUTOR.
29311 * util/grub.d/10_kfreebsd.in: Likewise.
29312 * util/grub.d/10_hurd.in: Likewise.
29314 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29316 Fix unit testing framework for Qemu 0.12.
29318 * tests/util/grub-shell.in: Remove -serial stdio option.
29320 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29322 POSIX header file wrappers.
29324 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29326 * lib/posix_wrap/ctype.h: Likewise.
29327 * lib/posix_wrap/errno.h: Likewise.
29328 * lib/posix_wrap/langinfo.h: Likewise.
29329 * lib/posix_wrap/limits.h: Likewise.
29330 * lib/posix_wrap/localcharset.h: Likewise.
29331 * lib/posix_wrap/stdint.h: Likewise.
29332 * lib/posix_wrap/stdio.h: Likewise.
29333 * lib/posix_wrap/stdlib.h: Likewise.
29334 * lib/posix_wrap/string.h: Likewise.
29335 * lib/posix_wrap/sys/types.h: Likewise.
29336 * lib/posix_wrap/unistd.h: Likewise.
29337 * lib/posix_wrap/wchar.h: Likewise.
29338 * lib/posix_wrap/wctype.h: Likewise.
29339 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29340 (grub_script.yy.h): Likewise.
29341 * script/yylex.l: Remove POSIX emulation #defines.
29342 * Makefile.in (POSIX_CFLAGS): New variable.
29343 (GNULIB_UTIL_CFLAGS): Likewise.
29347 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29348 (regexp_mod_SOURCES): New variable.
29349 (regexp_mod_CFLAGS): Likewise.
29350 (regexp_mod_LDFLAGS): Likewise.
29351 * commands/regexp.c: New file.
29352 * gnulib/regcomp.c: New file. Imported from gnulib.
29353 * gnulib/regex.c: Likewise.
29354 * gnulib/regex_internal.c: Likewise.
29355 * gnulib/regex_internal.h: Likewise.
29356 * gnulib/regexec.c: Likewise.
29357 * gnulib/regex.h: Likewise.
29359 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29361 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29362 unsupported video mode types.
29364 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29366 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29368 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29370 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29371 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29373 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29375 Remove unused grub_vga_get_font.
29377 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29378 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29380 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29382 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29383 * include/grub/misc.h: Likewise.
29385 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29387 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29388 for which failure is fatal.
29390 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29392 * util/grub-install.in: Use mkdir -p to create grub directory.
29393 * util/i386/efi/grub-install.in: Likewise.
29394 * util/ieee1275/grub-install.in: Likewise.
29396 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29398 * Makefile.in (LEX): new variable.
29400 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29402 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29403 `=' and added double quotes on operands of this equality test.
29405 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29407 * Makefile.in (uninstall): Remove a leftover debug echo.
29408 Reported by: Grégoire Sutre
29410 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29412 MIPS multiboot2 support.
29414 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29415 (multiboot2_mod_SOURCES): New variable.
29416 (multiboot2_mod_CFLAGS): Likewise.
29417 (multiboot2_mod_LDFLAGS): Likewise.
29418 (multiboot2_mod_ASFLAGS): Likewise.
29419 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29421 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29422 (MULTIBOOT_MBI_REGISTER): Likewise.
29423 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29424 (MULTIBOOT_ELF32_MACHINE): Likewise.
29425 (MULTIBOOT_ELF64_MACHINE): Likewise.
29426 * include/grub/mips/multiboot.h: New file.
29427 * include/grub/video.h (grub_video_driver_id): New type
29428 GRUB_VIDEO_DRIVER_SM712.
29429 (grub_video_get_info_and_fini): Export.
29430 (grub_video_get_palette): Likewise.
29431 (grub_video_get_driver_id): Likewise.
29432 * include/multiboot2.h: Resynced with spec.
29433 * loader/i386/multiboot.c: Moved from here ...
29434 * loader/multiboot.c: ... here. All users updated.
29435 (grub_multiboot_boot): Use platform-specific macros.
29436 * loader/i386/multiboot_elfxx.c: Moved from here ...
29437 * loader/multiboot_elfxx.c: ... here. All users updated.
29438 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29439 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29440 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29442 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29444 Import gnulib argp module.
29446 * gnulib/argp-ba.c: New file.
29447 * gnulib/argp-eexst.c: Likewise.
29448 * gnulib/argp-fmtstream.c: Likewise.
29449 * gnulib/argp-fmtstream.h: Likewise.
29450 * gnulib/argp-fs-xinl.c: Likewise.
29451 * gnulib/argp-help.c: Likewise.
29452 * gnulib/argp-namefrob.h: Likewise.
29453 * gnulib/argp-parse.c: Likewise.
29454 * gnulib/argp-pin.c: Likewise.
29455 * gnulib/argp-pv.c: Likewise.
29456 * gnulib/argp-pvh.c: Likewise.
29457 * gnulib/argp-version-etc.c: Likewise.
29458 * gnulib/argp-version-etc.h: Likewise.
29459 * gnulib/argp-xinl.c: Likewise.
29460 * gnulib/argp.h: Likewise.
29462 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29464 * kern/device.c (grub_device_iterate): Clear errors after failed
29467 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29469 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29470 returned by firmware.
29472 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29474 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29475 compilation on coreboot and qemu
29477 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29479 * include/multiboot2.h: Resync with spec.
29481 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29483 Multiboot2 tag support
29485 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29486 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29487 Remove loader/multiboot_loader.c.
29488 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29489 (grub_multiboot2_real_boot): Likewise.
29490 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29491 (grub_get_multiboot_mmap_count): New proto.
29492 (grub_fill_multiboot_mmap): Likewise.
29493 (grub_multiboot_set_video_mode): Likewise.
29494 (grub_multiboot_set_console): Likewise.
29495 (grub_multiboot_load): Likewise.
29496 (grub_multiboot_load_elf): Likewise.
29497 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29498 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29499 * include/multiboot.h: Resynced with specification.
29500 * include/multiboot2.h: Resynced with specification.
29501 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29502 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29503 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29504 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29506 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29507 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29508 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29510 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29512 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29513 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29515 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29516 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29517 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29519 * loader/i386/multiboot_mbi2.c: New file.
29521 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29523 Resync with gnulib.
29525 * Makefile.in (GNULIB_CFLAGS): New variable.
29526 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29527 (grub_script_check_CFLAGS): New variable.
29528 * gnulib/alloca.h: Resync with gnulib.
29529 * gnulib/error.c: Likewise.
29530 * gnulib/error.h: Likewise.
29531 * gnulib/fnmatch.c: Likewise.
29532 * gnulib/fnmatch_loop.c: Likewise.
29533 * gnulib/getdelim.c: Likewise.
29534 * gnulib/getline.c: Likewise.
29535 * gnulib/getopt.c: Likewise.
29536 * gnulib/getopt1.c: Likewise.
29537 * gnulib/getopt_int.h: Likewise.
29538 * gnulib/gettext.h: Likewise.
29539 * gnulib/progname.c: Likewise.
29540 * gnulib/progname.h: Likewise.
29542 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29544 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29545 which is the case with --disabled-nls.
29547 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29548 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29549 * util/misc.c: Likewise.
29550 * util/mkisofs/mkisofs.c: Likewise.
29551 * util/mkisofs/mkisofs.h: Likewise.
29553 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29555 Simplify Apple CC support.
29557 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29558 Add 0 byte at the end not to have a symbol with empty target.
29559 * mmap/i386/pc/mmap_helper.S: Likewise.
29560 * genmk.rb: Ignore errors 2030 and 2050.
29561 * kern/i386/pc/startup.S: Use LOCAL when possible.
29563 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29565 Testcase and the fix for final semicolon on cmdline.
29567 * tests/grub_script_final_semicolon.in: New testcase.
29568 * conf/tests.rmk: Rules for the new testcase.
29569 * script/parser.y: Grammar fix.
29571 2010-03-26 BVK Chaitanya <bvk@localhost>
29573 Blank lines testcase for GRUB script.
29575 * tests/grub_script_blanklines.in: New testcase.
29576 * conf/tests.rmk: Rules for the new testcase.
29578 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29580 Don't use __FILE__.
29582 * genmk.rb: Add -DGRUB_FILE to all C targets.
29583 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29584 * include/grub/list.h: Likewise.
29585 * include/grub/misc.h: Likewise.
29586 * include/grub/mm.h: Likewise.
29587 * include/grub/test.h: Likewise.
29588 * kern/mm.c: Likewise.
29589 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29591 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29593 Sunpc partitions support.
29595 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29596 (grub_fstest_SOURCES): Likewise.
29597 (pkglib_MODULES): Add part_sunpc.mod.
29598 (part_sunpc_mod_SOURCES): New variable.
29599 (part_sunpc_mod_CFLAGS): Likewise.
29600 (part_sunpc_mod_LDFLAGS): Likewise.
29601 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29602 * partmap/sunpc.c: New file.
29604 2010-03-26 BVK Chaitanya <bvk@localhost>
29606 For loop support to GRUB script.
29608 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29609 (grub_script_create_cmdfor): New function prototype.
29610 (grub_script_execute_cmdfor): New function prototype.
29611 * script/execute.c (grub_script_execute_cmdfor): New function.
29612 * script/parser.y (command): New for command.
29613 (forcmd): New grammar rule.
29614 * script/script.c (grub_script_create_cmdfor): New function.
29615 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29617 * tests/grub_script_for1.in: New testcase.
29618 * conf/tests.rmk: Rules for new testcase.
29620 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29624 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29625 'partition' is NULL, grub_partition_get_start already does that.
29626 * commands/loadenv.c (check_blocklists): Likewise.
29627 (write_blocklists): Likewise.
29628 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29629 (grub_fstest_SOURCES): Likewise.
29630 (pkglib_MODULES): Add part_bsd.mod.
29631 (part_bsd_mod_SOURCES): New variable.
29632 (part_bsd_mod_CFLAGS): Likewise.
29633 (part_bsd_mod_LDFLAGS): Likewise.
29634 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29635 (grub_emu_SOURCES): Likewise.
29636 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29637 * include/grub/bsdlabel.h: New file.
29638 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29640 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29641 (grub_partition_map_list): New variable.
29642 (grub_partition_map_register): Inline.
29643 (grub_partition_map_unregister): Likewise.
29644 (FOR_PARTITION_MAPS): New macro.
29645 (grub_partition_map_iterate): Removed.
29646 (grub_partition_get_start): Handle nested partitions.
29647 * include/grub/msdos_partition.h: Remove bsd-related entries.
29648 (grub_pc_partition): Remove.
29649 * kern/disk.c (grub_disk_close): Free partition data.
29650 (grub_disk_adjust_range): Handle nested partitions.
29651 * kern/partition.c (grub_partition_map_probe): New function.
29652 (grub_partition_probe): Parse name to number, handle subpartitions.
29653 (get_partmap): New function.
29654 (grub_partition_iterate): Handle subpartitions.
29655 (grub_partition_get_name): Likewise.
29656 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29657 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29658 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29659 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29661 (acorn_partition_map_probe): Remove.
29662 (acorn_partition_map_get_name): Likewise.
29663 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29665 Set 'index' to 0 since there can be only one partition entry per sector.
29666 (amiga_partition_map_probe): Remove.
29667 (amiga_partition_map_get_name): Likewise.
29668 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29670 Set 'offset' and 'index' to real positions of partitions.
29671 (apple_partition_map_probe): Remove.
29672 (apple_partition_map_get_name): Likewise.
29673 * partmap/bsdlabel.c: New file.
29674 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29676 Allocate 'data' so it can be correctly freed.
29677 Set 'index' to offset inside sector.
29678 (gpt_partition_map_probe): Remove.
29679 (gpt_partition_map_get_name): Likewise.
29680 * partmap/msdos.c (grub_partition_parse): Remove.
29681 (pc_partition_map_iterate): Don't force raw access.
29683 Make 'ext_offset' a local variable.
29684 (pc_partition_map_probe): Remove.
29685 (pc_partition_map_get_name): Remove.
29686 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29688 (sun_partition_map_probe): Remove.
29689 (sun_partition_map_get_name): Likewise.
29690 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29691 (grub_pcpart_type): Likewise.
29692 * util/hostdisk.c (open_device): Handle new numbering scheme.
29693 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29694 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29695 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29696 * util/grub-install.in: Insert all subpartition modules.
29697 * util/ieee1275/grub-install.in: Likewise.
29699 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29701 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29704 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29706 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29708 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29710 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29711 match where 'make install' puts them.
29712 * util/i386/efi/grub-install.in: Likewise.
29714 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29716 * .bzrignore: Add gentrigtables, grub-script-check,
29717 grub_script_check_init.c, grub_script_check_init.h, and
29720 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29722 * kern/parser.c: Indented.
29724 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29726 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29728 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29730 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29731 alpha_mask_size == 0 case.
29733 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29735 GRUB shell lexer and parser improvements.
29737 * conf/any-emu.rmk: Build rule updates.
29738 * conf/common.rmk: Likewise.
29739 * conf/i386-coreboot.rmk: Likewise.
29740 * conf/i386-efi.rmk: Likewise.
29741 * conf/i386-ieee1275.rmk: Likewise.
29742 * conf/i386-pc.rmk: Likewise.
29743 * conf/powerpc-ieee1275.rmk: Likewise.
29744 * conf/x86_64-efi.rmk: Likewise.
29746 * configure.ac: Configure check for flex.
29748 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29750 (grub_lexer_param): Struct member updates.
29751 (grub_parser_param): Likewise.
29752 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29753 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29754 (grub_script_lexer_init): Prototype update.
29755 (grub_script_lexer_record_start): Likewise.
29756 (grub_script_lexer_record_stop): Likewise.
29757 (grub_script_lexer_yywrap): New function prototype.
29758 (grub_script_lexer_fini): Likewise.
29759 (grub_script_execute_argument_to_string): Removed by...
29760 (grub_script_execute_argument_to_argv): ...better version.
29762 * script/execute.c (ROUND_UPTO): New macro.
29763 (grub_script_execute_cmdline): Out of memory fixes.
29764 (grub_script_execute_menuentry): Likewise.
29765 (grub_script_execute_argument_to_string): Removed. Update all
29767 (grub_script_execute_argument_to_argv): ...better version.
29768 * script/function.c (grub_script_function_create): Use
29769 grub_script_execute_argument_to_argv instead of
29770 grub_script_execute_argument_to_string.
29772 * script/lexer.c (check_varstate): Removed.
29773 (check_textstate): Removed.
29774 (grub_script_lexer_record_start): Likewise.
29775 (grub_script_lexer_record_stop): Likewise.
29776 (recordchar): Replaced with...
29777 (grub_script_lexer_record): ...new function.
29778 (nextchar): Removed.
29779 (grub_script_lexer_init): Rewritten.
29780 (grub_script_yylex): Rewritten.
29781 (append_newline): New function.
29782 (grub_script_lexer_yywrap): New function.
29783 (grub_script_lexer_fini): New function.
29784 (grub_script_yyerror): Sets error flag.
29786 * script/yylex.l: New file.
29787 (grub_lexer_yyfree): Wrapper for flex yyffre.
29788 (grub_lexer_yyalloc): Likewise.
29789 (grub_lexer_yyrealloc): Likewise.
29790 * script/parser.y: Refactored.
29792 * script/script.c (grub_script_arg_add): Out of memory fixes.
29793 (grub_script_add_arglist): Likewise.
29794 (grub_script_create_cmdline): Likewise.
29795 (grub_script_create_cmdmenu): Likewise.
29796 (grub_script_add_cmd): Likewise.
29797 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29798 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29801 * tests/grub_script_echo1.in: New testcase.
29802 * tests/grub_script_vars1.in: New testcase.
29803 * tests/grub_script_echo_keywords.in: New testcase.
29805 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29807 Remove some redundancy in build system.
29809 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29810 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29811 (TARGET_LDFLAGS): Add -nostdlib.
29812 (TARGET_IMG_LDFLAGS): Likewise.
29813 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29814 anything since mmap isn't available.
29815 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29817 (pkglib_MODULES): Remove reboot.mod.
29818 (reboot_mod_SOURCES): Removed.
29819 (reboot_mod_CFLAGS): Likewise.
29820 (reboot_mod_LDFLAGS): Likewise.
29821 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29822 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29823 (DEFSYMFILES): Add kernel_syms.lst.
29824 (kernel_img_HEADERS): Add common headers.
29825 (symlist.c): New target.
29826 (kernel_syms.lst): Likewise.
29827 (pkglib_MODULES): Add memdisk.mod.
29828 (memdisk_mod_SOURCES): New variable.
29829 (memdisk_mod_CFLAGS): Likewise.
29830 (memdisk_mod_LDFLAGS): Likewise.
29831 (pkglib_MODULES): Add reboot.mod.
29832 (reboot_mod_SOURCES): New variable.
29833 (reboot_mod_CFLAGS): Likewise.
29834 (reboot_mod_LDFLAGS): Likewise.
29835 (pkglib_MODULES): Add date.mod.
29836 (date_mod_SOURCES): New variable.
29837 (date_mod_CFLAGS): Likewise.
29838 (date_mod_LDFLAGS): Likewise.
29839 (pkglib_MODULES): Add datehook.mod.
29840 (datehook_mod_SOURCES): New variable.
29841 (datehook_mod_CFLAGS): Likewise.
29842 (datehook_mod_LDFLAGS): Likewise.
29843 (pkglib_MODULES): Add lsmmap.mod.
29844 (lsmmap_mod_SOURCES): New variable.
29845 (lsmmap_mod_CFLAGS): Likewise.
29846 (lsmmap_mod_LDFLAGS): Likewise.
29847 (pkglib_MODULES): Add boot.mod.
29848 (boot_mod_SOURCES): New variable.
29849 (boot_mod_CFLAGS): Likewise.
29850 (boot_mod_LDFLAGS): Likewise.
29851 * conf/i386-coreboot.rmk: Removed redundant parts.
29852 * conf/i386-ieee1275.rmk: Likewise.
29853 * conf/i386-pc.rmk: Likewise.
29854 * conf/mips-yeeloong.rmk: Likewise.
29855 * conf/mips.rmk: Likewise.
29856 * conf/powerpc-ieee1275.rmk: Likewise.
29857 * conf/sparc64-ieee1275.rmk: Likewise.
29858 * conf/x86_64-efi.rmk: Likewise.
29859 * conf/i386-coreboot.rmk: Moved qemu parts ..
29860 * conf/i386-qemu.rmk: ... here
29861 * conf/i386-efi.rmk: Moved common parts to...
29862 * conf/x86-efi.rmk: ... here.
29863 * conf/i386.rmk: Added modules common to all x86 variants.
29864 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29865 * disk/memdisk.c: Remove grub/machine/kernel.h.
29866 * gensymlist.sh.in: Include symbol.h.
29867 * hook/datehook.c: Correct module name.
29868 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29869 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29870 * include/grub/i386/efi/serial.h: New file.
29871 * include/grub/x86_64/efi/serial.h: Likewise.
29872 * util/time.c: Likewise.
29873 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29875 2010-03-14 Colin King <colin.king@ubuntu.com>
29876 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29878 Shrink the pre-partition-table part of boot.img by eight bytes.
29880 * boot/i386/pc/boot.S (ERR): New macro.
29881 (chs_mode): Use ERR.
29882 (geometry_error): Likewise.
29883 (hd_probe_error): Remove. This is only used once, so we wrwite
29885 (read_error): Instead of printing read_error_string, just set up
29886 %si and fall through to ...
29887 (error_message): ... this new function, also used by ERR.
29889 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29891 Speed up consecutive hostdisk operations on the same device.
29893 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29894 (grub_util_biosdisk_open): Initialise disk->data.
29895 (struct linux_partition_cache): New structure.
29896 (linux_find_partition): Cache partition start positions; these are
29897 expensive to compute on every read and write.
29898 (open_device): Cache open file descriptor in disk->data, so that we
29899 don't have to reopen it and flush the buffer cache for consecutive
29900 operations on the same device.
29901 (grub_util_biosdisk_close): New function.
29902 (grub_util_biosdisk_dev): Set `close' member.
29904 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29905 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29906 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29907 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29908 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29910 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29912 Compile parts of grub-emu as modules.
29914 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29915 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29916 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29917 (all-local): Add $(GRUB_EMU).
29918 (install-local): Install $(GRUB_EMU).
29919 (uninstall): Uninstall $(GRUB_EMU).
29920 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29921 * kern/dl.c: Likewise.
29922 * commands/sleep.c: Not include machine/time.h.
29923 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29924 (COMMON_CFLAGS): Likewise.
29925 (sbin_UTILITIES): Remove grub-emu.
29926 (grub_emu_SOURCES): Removed.
29927 (kernel_img_RELOCATABLE): New variable.
29928 (pkglib_PROGRAMS): Add kernel.img.
29929 (kernel_img_SOURCES): New variable
29930 (kernel_img_CFLAGS): Likewise.
29931 (kernel_img_LDFLAGS): Likewise.
29932 (TARGET_NO_STRIP): Likewise.
29933 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29934 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29935 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29936 (grub-emu): New target.
29937 (GRUB_EMU): New variable.
29938 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29939 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29940 * loader/xnu.c: Likewise.
29941 * include/grub/pci.h: Likewise.
29942 * genemuinit.sh: New file.
29943 * genemuinitheader.sh: Likewise.
29944 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29945 Support TARGET_NO_DYNAMIC_MODULES.
29946 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29947 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29948 * disk/loopback.c: Likewise.
29949 * font/font_cmd.c: Likewise.
29950 * partmap/acorn.c: Likewise.
29951 * partmap/amiga.c: Likewise.
29952 * partmap/apple.c: Likewise.
29953 * partmap/gpt.c: Likewise.
29954 * partmap/msdos.c: Likewise.
29955 * partmap/sun.c: Likewise.
29956 * parttool/msdospart.c: Likewise.
29957 * term/gfxterm.c: Likewise.
29958 * video/bitmap.c: Likewise.
29959 * video/readers/jpeg.c: Likewise.
29960 * video/readers/png.c: Likewise.
29961 * video/readers/tga.c: Likewise.
29962 * video/video.c: Likewise.
29963 * util/grub-emu.c (read_command_list): Removed.
29964 (main): Don't call util_init_nls.
29965 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29966 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29968 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29970 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29971 date.mod, datehook.mod.
29972 (datetime_mod_SOURCES): New variable.
29973 (datetime_mod_CFLAGS): Likewise.
29974 (datetime_mod_LDFLAGS): Likewise.
29975 (date_mod_SOURCES): Likewise.
29976 (date_mod_CFLAGS): Likewise.
29977 (date_mod_LDFLAGS): Likewise.
29978 (datehook_mod_SOURCES): Likewise.
29979 (datehook_mod_CFLAGS): Likewise.
29980 (datehook_mod_LDFLAGS): Likewise.
29981 * conf/sparc64-ieee1275.rmk: Likewise.
29982 * lib/ieee1275/datetime.c: New file.
29984 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29986 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29987 (ieee1275_fb_mod_SOURCES): New variable.
29988 (ieee1275_fb_mod_CFLAGS): Likewise.
29989 (ieee1275_fb_mod_LDFLAGS): Likewise.
29990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29992 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29993 (HEAP_MAX_ADDR): Likewise.
29994 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29996 Correct stop condition.
29997 (grub_ieee1275_devices_iterate): New function.
29998 * video/ieee1275.c: New file.
30000 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30002 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30004 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30006 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30007 SCRATCH_PAD_DISKBOOT as scratch.
30008 (bootit): Pass Openfirmware pointer in %o4.
30009 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30011 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30012 with util/grub-mkrawimage.c.
30013 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30014 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30015 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30016 (grub_aout_load) [GRUB_UTIL]: Likewise.
30017 * include/grub/kernel.h (grub_modules_get_end): New proto.
30018 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30019 (SCRATCH_PAD_BOOT): New definition.
30020 (SCRATCH_PAD_DISKBOOT): Likewise.
30021 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30022 * include/grub/sparc64/ieee1275/ieee1275.h
30023 (grub_ieee1275_original_stack): New variable
30024 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30026 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30027 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30028 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30029 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30030 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30031 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30032 (grub_platform_image_format_t): New type.
30033 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30034 * kern/main.c (grub_modules_get_end)
30035 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30036 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30037 (codestart): Switch stacks.
30038 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30040 (grub_heap_init): Use grub_modules_get_end.
30041 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30043 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30045 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30047 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30049 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30051 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30053 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30056 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30058 * genmoddep.awk: Output all missing symbols and not only first.
30060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30062 * NEWS: Put the date of 1.98 release.
30064 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30066 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30069 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30071 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30072 completition in the middle of string.
30074 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30076 * util/grub-mkrescue.in: Use mktemp with explicit template.
30078 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30080 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30082 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30084 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30087 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30089 Fix FreeBSD compilation.
30091 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30092 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30094 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30096 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30098 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30100 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30102 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30104 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30106 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30108 Support relative image path in theme file.
30110 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30111 (image_set_property): Handle theme_dir and relative path.
30113 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30115 * configure.ac: Alias amd64 to x86_64.
30117 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30119 * NEWS: mention multiboot on EFI.
30121 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30123 * kern/main.c (grub_load_modules): Handle errors from init functions of
30126 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30128 * normal/autofs.c (autoload_fs_module): Handle errors.
30130 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30132 Disable linux.mod on qemu-mips since it's not functional and leads
30133 to compilation failure.
30135 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30136 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30137 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30138 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30139 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30140 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30141 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30142 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30143 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30144 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30145 Reported by: BVK Chaitanya
30147 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30149 * INSTALL: Add gettext as a dependency and add qemu to a new section
30150 "Prerequisites for make-check".
30152 2010-03-04 Christian Franke <franke@computer.org>
30154 * util/grub-pe2elf.c: Add missing include "progname.h".
30156 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30158 * normal/crypto.c (read_crypto_list): Fix a typo.
30159 Reported by: Seth Goldberg.
30161 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30163 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30164 Reported by: Seth Goldberg.
30166 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30168 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30171 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30173 * genmk.rb: Remove terminal*.lst in make clean.
30174 Reported by: Seth Goldberg.
30176 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30178 * util/i386/efi/grub-install.in: Copy gettext files.
30180 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30182 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30184 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30186 Wait for user entry basing on presence of output rather than on errors.
30188 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30189 (grub_install_newline_hook): Likewise.
30190 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30191 * normal/menu.c (show_menu): Check line_counter to determine presence
30193 * normal/term.c (grub_normal_line_counter): New variable.
30194 (grub_normal_get_line_counter): New function.
30195 (grub_install_newline_hook): Likewise.
30197 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30199 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30201 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30203 * configure.ac: Update version to 1.98.
30205 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30207 * util/grub.d/10_linux.in (linux_entry): Don't default to
30208 gfxpayload=keep if Linux doesn't support video handover.
30210 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30212 Don't compile video modules on yeeloong since video subsystem is part
30215 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30216 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30217 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30218 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30219 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30220 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30221 * include/grub/bitmap_scale.h: Likewise.
30222 * include/grub/bufio.h: Likewise.
30223 * include/grub/font.h: Likewise.
30224 * include/grub/gfxterm.h: Likewise.
30225 * include/grub/video.h: Likewise.
30226 * include/grub/vbe.h: Don't include video_fb.h.
30227 * video/i386/pc/vbe.c: Include video_fb.h.
30228 * commands/i386/pc/vbetest.c: Include video.h.
30230 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30232 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30233 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30234 default entry if GRUB_SAVEDEFAULT=true. This allows using
30235 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30236 saving a new default on every boot.
30238 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30240 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30241 * normal/term.c (read_terminal_list): Likewise.
30242 * normal/main.c (grub_normal_init_page): Likewise.
30243 (grub_normal_read_line_real): Likewise.
30245 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30247 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30249 Reported by: Seth Goldberg.
30251 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30253 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30254 duplicate declaration of `start'.
30256 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30258 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30260 Reported by: Georgy Buranov
30262 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30264 * util/grub-mkrawimage.c (usage): Change string formatting to
30267 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30269 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30272 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30274 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30275 Reported by: Michael Suchanek.
30277 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30279 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30280 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30282 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30284 Remove any reference to non-free fonts.
30286 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30287 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30288 uses non-free components.
30289 * font/font.c (grub_font_get_name): Remove example name.
30290 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30291 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30292 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30293 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30295 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30297 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30299 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30301 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30303 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30305 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30307 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30309 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30311 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30313 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30314 * docs/grub.texi (Command-line and menu entry commands): Document play
30317 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30319 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30320 parse arguments as inline tempo and notes. Move code for playing notes
30322 (play): ... new function.
30324 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30326 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30327 grub_uint16_t instead of short.
30328 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30329 disk from little endian to cpu endianness.
30331 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30333 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30334 GRUB_TICKS_PER_SECOND instead of 120.
30336 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30338 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30339 escape sequence after \e.
30341 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30343 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30344 non-ASCII characters.
30346 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30348 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30349 set root in single quotes to prevent \, from being unescaped.
30351 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30353 Prevent unknown commands from stopping menuentry execution.
30355 * script/execute.c (grub_script_execute_cmdline): Print error after
30358 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30360 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30361 Reported by: Pavel Pisa.
30363 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30365 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30367 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30369 Merge grub_ieee1275_map_physical into grub_map and rename to
30372 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30373 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30375 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30376 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30378 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30380 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30382 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30383 opening and not after.
30385 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30387 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30390 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30392 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30393 (alloc_phys): Use ALIGN_UP instead of align_addr.
30395 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30397 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30401 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30403 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30405 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30408 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30410 Fix over-4GiB seek on sparc64.
30412 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30413 Replace pos_i and pos_lo with pos. All users updated.
30414 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30416 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30418 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30421 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30423 * util/grub-mkrawimage.c (main): Call set_program_name.
30425 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30427 Properly align 64-bit targets.
30429 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30430 (generate_image): Use ALIGN_ADDR.
30432 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30434 Properly create cross-endian images.
30436 * include/grub/types.h (grub_host_to_target_addr): New macro
30437 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30439 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30441 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30443 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30445 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30447 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30448 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30449 (grub_linux_boot): Divide by 64K when on VESA.
30451 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30453 Support GRUB_GFXPAYLOAD_LINUX.
30455 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30456 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30458 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30460 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30461 to show messages instead of discarding them.
30462 Process errors after executing command and not before. Keep old method
30465 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30467 * configure.ac: Check for ft2build.h.
30469 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30471 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30473 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30475 * genkernsyms.sh.in: Use TARGET_CC.
30477 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30481 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30483 * include/grub/multiboot2.h: Remove leftover file.
30484 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30485 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30487 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30489 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30491 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30493 Fix warnings in grub-emu when compiling with maximum warning options.
30495 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30496 (grub_arch_modules_addr): Return 0 and not NULL.
30497 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30498 (xstrdup): Use newstr instead of dup.
30499 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30500 of disk to dsk to avoid shadowing.
30501 (find_free_slot): Fix prototype.
30502 * util/getroot.c (grub_util_is_dmraid): Make static.
30503 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30504 Add missing prototype.
30505 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30507 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30509 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30514 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30517 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30519 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30520 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30521 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30522 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30523 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30524 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30526 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30528 * include/grub/err.h (grub_err_printf): Don't export.
30530 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30532 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30534 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30536 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30537 * kern/misc.c (grub_gettext_dummy): Make static.
30539 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30541 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30543 * kern/term.c (grub_putchar): Likewise.
30545 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30547 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30548 buggy hook call and memory leak.
30550 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30552 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30554 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30556 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30558 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30560 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30562 Return grub_errno on allocation error.
30564 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30566 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30568 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30570 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30571 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30573 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30575 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30577 (grub_pxefs_open): Likewise.
30579 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30581 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30582 * util/grub.d/10_kfreebsd.in: Likewise.
30583 * util/grub.d/10_linux.in: Likewise.
30585 2010-02-06 Colin D Bennett <colin@gibibit.com>
30587 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30588 (gfxmenu_mod_SOURCES): New variable.
30589 (gfxmenu_mod_CFLAGS): Likewise.
30590 (gfxmenu_mod_LDFLAGS): Likewise.
30591 * include/grub/term.h (grub_term_set_current_output): Declare
30593 * docs/gfxmenu-theme-example.txt: New file.
30594 * gfxmenu/gfxmenu.c: Likewise.
30595 * gfxmenu/gui_box.c: Likewise.
30596 * gfxmenu/gui_canvas.c: Likewise.
30597 * gfxmenu/gui_circular_progress.c: Likewise.
30598 * gfxmenu/gui_image.c: Likewise.
30599 * gfxmenu/gui_label.c: Likewise.
30600 * gfxmenu/gui_list.c: Likewise.
30601 * gfxmenu/gui_progress_bar.c: Likewise.
30602 * gfxmenu/gui_string_util.c: Likewise.
30603 * gfxmenu/gui_util.c: Likewise.
30604 * gfxmenu/icon_manager.c: Likewise.
30605 * gfxmenu/model.c: Likewise.
30606 * gfxmenu/named_colors.c: Likewise.
30607 * gfxmenu/theme_loader.c: Likewise.
30608 * gfxmenu/view.c: Likewise.
30609 * gfxmenu/widget-box.c: Likewise.
30610 * include/grub/gfxmenu_model.h: Likewise.
30611 * include/grub/gfxmenu_view.h: Likewise.
30612 * include/grub/gfxwidgets.h: Likewise.
30613 * include/grub/gui.h: Likewise.
30614 * include/grub/gui_string_util.h: Likewise.
30615 * include/grub/icon_manager.h: Likewise.
30617 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30619 Agglomerate scrolling in gfxterm.
30621 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30622 (grub_virtual_screen_setup): Initialise 'total_screen'.
30623 (write_char): Split to ...
30624 (paint_char): ... this ...
30625 (write_char): ... and this.
30626 (paint_char): Handle delayed scrolling.
30627 (draw_cursor): Likewise.
30628 (scroll_up): Split to ...
30629 (real_scroll): ... this ...
30630 (scroll_up): ... and this.
30631 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30633 (grub_gfxterm_refresh): Call real_scroll.
30635 2010-02-06 Colin D Bennett <colin@gibibit.com>
30637 * include/grub/misc.h (grub_iscntrl): New inline function.
30638 (grub_isalnum): Likewise.
30639 (grub_strtol): Likewise.
30641 2010-02-06 Colin D Bennett <colin@gibibit.com>
30643 * normal/menu_text.c (get_entry_number): Move from here ...
30644 * normal/menu.c (get_entry_number): ... moved here.
30645 * include/grub/menu.h (grub_menu_get_default_entry_index):
30647 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30648 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30649 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30650 (grub_menu_viewer_should_return): Likewise.
30651 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30652 * normal/menu_text.c (run_menu): Enable menu switching.
30653 * normal/menu_viewer.c (should_return): New variable.
30654 (menu_viewer_changed): Likewise.
30655 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30656 (grub_menu_viewer_should_return): New function.
30657 (menuviewer_write_hook): Likewise.
30658 (grub_menu_viewer_init): Likewise.
30660 2010-02-06 Colin D Bennet <colin@gibibit.com>
30661 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30663 Support for gfxterm in a window.
30665 * include/grub/gfxterm.h: New file.
30666 * include/grub/video.h (struct grub_video_rect): New declaration.
30667 (grub_video_rect_t): Likewise.
30668 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30669 (refcount): New variable.
30670 (render_target): Likewise.
30671 (window): Likewise.
30672 (repaint_callback): Likewise.
30673 (grub_virtual_screen_setup): Use 'render_target'.
30674 (init_window): New function.
30675 (grub_gfxterm_init_window): Likewise.
30676 (grub_gfxterm_init): Check reference counter.
30678 (destroy_window): New function.
30679 (grub_gfxterm_destroy_window): Likewise.
30680 (grub_gfxterm_fini): Check reference counter.
30681 Use destroy_window.
30682 (redraw_screen_rect): Restore viewport.
30683 Use 'render_target' and 'window'.
30684 Call 'repaint_callback'.
30685 (write_char): Use 'render_target'.
30686 (draw_cursor): Likewise.
30687 (scroll_up): Restore viewport.
30688 Use 'render_target' and 'window'.
30689 Call 'repaint_callback'.
30690 (grub_gfxterm_cls): Likewise.
30691 (grub_gfxterm_refresh): Use 'window'.
30692 (grub_gfxterm_set_repaint_callback): New function.
30693 (grub_gfxterm_background_image_cmd): Use 'window'.
30694 (grub_gfxterm_get_term): New function.
30695 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30697 2010-02-06 Colin D Bennett <colin@gibibit.com>
30699 Bitmap scaling support.
30701 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30702 (bitmap_scale_mod_SOURCES): New variable.
30703 (bitmap_scale_mod_CFLAGS): Likewise.
30704 (bitmap_scale_mod_LDFLAGS): Likewise.
30705 * include/grub/bitmap_scale.h: New file.
30706 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30707 (background_image_cmd_options): New variable.
30708 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30709 (cmd): Rename and change type to ...
30710 (background_image_cmd_handle): ... this. All users updated.
30711 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30712 * video/bitmap_scale.c: New file.
30714 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30718 * Makefile.in (LIBSDL): New variable.
30719 (enable_grub_emu_sdl): Likewise.
30720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30721 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30722 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30723 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30724 * util/sdl.c: New file.
30726 2010-02-06 Colin D Bennett <colin@gibibit.com>
30727 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30729 Double buffering support.
30731 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30732 * include/grub/video.h: Update comment.
30733 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30735 (grub_video_fb_doublebuf_blit_init): New prototype.
30736 * term/gfxterm.c (scroll_up): Support double buffering.
30737 (grub_gfxterm_refresh): Likewise.
30738 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30739 (grub_video_fb_doublebuf_blit_init): Likewise.
30740 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30741 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30742 'displayed_page', 'render_page' and 'update_screen'.
30743 (grub_video_vbe_fini): Free offscreen buffer.
30744 (doublebuf_pageflipping_commit): New function.
30745 (doublebuf_pageflipping_update_screen): Likewise.
30746 (doublebuf_pageflipping_init): Likewise.
30747 (double_buffering_init): Likewise.
30748 (grub_video_vbe_setup): Enable doublebuffering.
30749 (grub_video_vbe_swap_buffers): Implement.
30750 (grub_video_vbe_set_active_render_target): Handle double buffering.
30751 (grub_video_vbe_get_active_render_target): Likewise.
30752 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30753 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30754 (grub_video_vbe_enable_double_buffering): Likewise.
30755 (grub_video_vbe_swap_buffers): Use update_screen.
30756 (grub_video_set_mode): Use double buffering.
30758 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30760 * maintainance/gentrigtables.py: Remove.
30761 * lib/trig.c: Likewise.
30763 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30765 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30767 (trigtables.c): New rule.
30768 (gentrigtables): Likewise.
30769 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30771 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30773 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30776 2010-02-06 Colin D Bennet <colin@gibibit.com>
30778 Trigonometry support.
30780 * include/grub/trig.h: New file.
30781 * lib/trig.c: Likewise.
30782 * maintainance/gentrigtables.py: Likewise.
30783 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30784 (trig_mod_SOURCES): New variable.
30785 (trig_mod_CFLAGS): Likewise.
30786 (trig_mod_LDFLAGS): Likewise.
30788 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30790 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30793 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30795 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30798 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30800 * util/hostdisk.c (open_device): Don't use partition device when reading
30801 before the partition.
30802 (grub_util_biosdisk_read): Don't read from partition and before the
30803 partition in single operation.
30804 (grub_util_biosdisk_write): Don't write to partition and before the
30805 partition in single operation.
30807 2010-02-03 Torsten Landschoff <torsten@debian.org>
30809 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30812 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30814 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30816 (grub_biosdisk_write): Refuse to write to CDROM.
30818 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30820 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30822 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30824 * font/font.c (find_glyph): Check that bmp_idx is available before
30826 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30827 with (font == NULL).
30829 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30831 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30833 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30835 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30836 * util/grub-script-check.c (getline): Fix empty lines case.
30838 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30840 * Makefile.in (check): Exit with fail status when one of the tests
30842 * tests/example_functional_test.c (example_test): Fix reversed assert.
30843 * tests/example_unit_test.c (example_test): Likewise.
30845 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30847 * util/grub.d/10_linux.in: This script does not use any of the
30848 contents of gettext.sh, only the external command `gettext', so stop
30849 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30850 the same prefix as GRUB.)
30851 * util/grub.d/10_kfreebsd.in: Likewise.
30853 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30855 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30858 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30860 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30863 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30865 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30866 having a 4KiB and not 32KiB buffer size.
30868 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30870 * util/hostfs.c: Include `<errno.h>'.
30871 (grub_hostfs_read): Handle errors from fseeko() and fread().
30873 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30875 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30876 loop when using read hooks on files whose size isn't sector-aligned.
30878 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30880 Remove unused parameter.
30882 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30883 (grub_iso9660_open): Remove initialization of `data->length'.
30885 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30887 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30888 memleak conditions.
30890 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30892 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30893 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30895 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30897 * util/bin2h.c (usage): Fix warning (space after backslash).
30899 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30901 * font/font.c: Include `grub/fontformat.h.
30902 Remove font file format constants.
30903 (grub_font_load): Use the new macros.
30904 * include/grub/fontformat.h: New file.
30905 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30906 (write_font_pf2): Use the new macros.
30908 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30910 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30913 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30915 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30917 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30918 (_start): Macroify `0x7F'.
30920 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30921 (make_install_device): Use "(pxe)" as fallback prefix when booting
30924 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30926 * configure.ac: Reset LIBS after check for libgcc symbols.
30928 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30930 * util/hostdisk.c (open_device): Add trailing newline to debug
30933 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30935 * configure.ac: Check for `limits.h'.
30936 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30938 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30940 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30941 capitalize error strings.
30943 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30945 * util/grub.d/10_hurd.in: Add a recovery mode.
30947 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30949 * configure.ac: Check for libgcc symbols with -nostdlib.
30951 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30953 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30955 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30957 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30958 stack since heap may be unavailable at that point.
30959 (grub_ofconsole_gotoxy): Likewise.
30961 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30963 * configure.ac: Check for _restgpr_14_x.
30964 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30965 and _savegpr_* prototypes.
30967 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30969 Use generic grub_reboot() for i386-efi.
30971 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30972 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30973 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30975 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30977 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30978 presence of "prefix" variable as it breaks when normal.mod is
30981 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30983 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30984 stack since heap is unavailable at that point.
30986 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30988 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30989 (grub_freebsd_bootinfo): Rewritten.
30990 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30992 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30994 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30996 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30998 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31001 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31003 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31004 around for handling "/" to the correct fix. Fix a memory leak. Use
31005 xstrdup instead of strdup.
31007 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31009 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31013 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31015 * font/font.c (struct grub_font): New member 'bmp_idx'.
31016 (font_init): Initialise 'bmp_idx'.
31017 (load_font_index): Fill 'bmp_idx'.
31018 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31020 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31022 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31025 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31027 Move context handling out of the kernel.
31029 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31030 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31031 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31032 * conf/i386-efi.rmk: Likewise.
31033 * conf/i386-ieee1275.rmk: Likewise.
31034 * conf/i386-pc.rmk: Likewise.
31035 * conf/powerpc-ieee1275.rmk: Likewise.
31036 * conf/sparc64-ieee1275.rmk: Likewise.
31037 * conf/x86_64-efi.rmk: Likewise.
31038 * include/grub/env.h: Include grub/menu.h.
31039 (grub_env_var_type): Removed.
31040 (grub_env_var): Replaced field 'type' with 'global'.
31041 (grub_env_find): New prototype.
31042 (grub_env_context_open): Remove EXPORT_FUNC.
31043 (grub_env_context_close): Likewise.
31044 (grub_env_export): Likewise.
31045 (grub_env_set_data_slot): Removed.
31046 (grub_env_get_data_slot): Likewise.
31047 (grub_env_unset_data_slot): Likewise.
31048 (grub_env_unset_menu): New prototype.
31049 (grub_env_set_menu): Likewise.
31050 (grub_env_get_menu): Likewise.
31051 * include/grub/env_private.h: New file.
31052 * include/grub/normal.h (grub_context_init): New prototype.
31053 (grub_context_fini): Likewise.
31054 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31055 * normal/context.c (grub_cmd_export): ... to here.
31056 * kern/env.c: Include env_private.h.
31057 (HASHSZ): Moved to include/grub/env_private.h.
31058 (grub_env_context): Likewise.
31059 (grub_env_sorted_var): Likewise.
31060 (current_context): Renamed from this ...
31061 (grub_current_context): ...to this. 'static' removed. All users updated.
31062 (grub_env_find): Removed 'static'.
31063 (grub_env_context_open): Moved to normal/context.c.
31064 (grub_env_context_close): Likewise.
31065 (grub_env_export): Likewise.
31066 (mangle_data_slot_name): Removed.
31067 (grub_env_set_data_slot): Likewise.
31068 (grub_env_get_data_slot): Likewise.
31069 (grub_env_unset_data_slot): Likewise.
31070 * kern/main.c (grub_set_root_dev): Don't export root.
31071 It will be done later.
31072 (grub_main): Don't export prefix.
31073 It will be done later.
31074 * normal/context.c: New file.
31075 * normal/main.c (free_menu): Use grub_env_unset_menu.
31076 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31077 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31078 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31079 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31081 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31085 * commands/setpci.c: New file.
31086 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31087 (setpci_mod_SOURCES): New variable.
31088 (setpci_mod_CFLAGS): Likewise.
31089 (setpci_mod_LDFLAGS): Likewise.
31091 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31093 Byte-addressable PCI configuration space.
31095 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31097 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31098 GRUB_PCI_REG_CACHELINE.
31099 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31100 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31101 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31102 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31103 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31104 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31105 grub_pci_make_address.
31106 (lock_rom_area): Likewise.
31107 * commands/lspci.c (grub_lspci_iter): Use macroses
31108 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31109 of grub_pci_make_address.
31110 * disk/ata.c (grub_ata_pciinit): Likewise.
31111 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31112 (GRUB_PCI_REG_VENDOR): Likewise.
31113 (GRUB_PCI_REG_DEVICE): Likewise.
31114 (GRUB_PCI_REG_COMMAND): Likewise.
31115 (GRUB_PCI_REG_STATUS): Likewise.
31116 (GRUB_PCI_REG_REVISION): Likewise.
31117 (GRUB_PCI_REG_CLASS): Likewise.
31118 (GRUB_PCI_REG_CACHELINE): Likewise.
31119 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31120 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31121 (GRUB_PCI_REG_BIST): Likewise.
31122 (GRUB_PCI_REG_ADDRESSES): 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_ADDRESS_REG): Likewise.
31128 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31129 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31130 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31131 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31132 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31133 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31134 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31135 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31136 (GRUB_PCI_REG_MIN_GNT): Likewise.
31137 (GRUB_PCI_REG_MAX_LAT): Likewise.
31138 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31139 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31140 * video/efi_uga.c (find_framebuf): Likewise.
31141 * video/sm712.c (grub_video_sm712_setup): Likewise.
31142 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31145 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31147 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31148 can be reliably determined to be supported.
31150 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31152 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31153 that VESA is supported.
31154 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31157 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31159 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31161 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31163 * util/misc.c (make_system_path_relative_to_its_root): Work around
31164 special-casing of "/", as previous incarnation of this routine did.
31166 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31168 Fix any-emu compilation.
31170 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31171 * grub_bin2h_SOURCES: New variable.
31173 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31175 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31177 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31179 * util/grub.d/00_header.in: Fix handling of locale_dir.
31181 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31183 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31184 as possible unifont location (Gentoo).
31185 Reported by: Alexander Brüning
31187 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31189 Don't try to generate lists for kernel.img.
31191 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31192 (pkglib_MODULES): Remove kernel.img.
31193 (kernel_img_EXPORTS): Removed.
31194 (kernel_img_RELOCATABLE): New variable.
31195 * conf/x86_64-efi.rmk: Likewise.
31196 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31198 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31200 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31201 grub_xasprintf or grub_snprintf.
31202 (grub_vsprintf): Likewise.
31203 (grub_snprintf): New proto.
31204 (grub_vsnprintf): Likewise.
31205 (grub_xasprintf): Likewise.
31206 (grub_xvasprintf): Likewise.
31207 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31208 (grub_sprintf): Removed.
31209 (grub_vsnprintf): New function.
31210 (grub_snprintf): Likewise.
31211 (grub_xvasprintf): Likewise.
31212 (grub_xasprintf): Likewise.
31213 (grub_vsprintf): Renamed to ...
31214 (grub_vsnprintf_real): ...this. New argument max_len.
31216 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31218 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31219 fix grub-script-check warning.
31221 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31223 * include/grub/font.h (grub_font_load): Fix prototype.
31225 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31227 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31229 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31231 * include/grub/x86_64/at_keyboard.h: New file.
31233 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31235 * loader/mips/linux.c: Include missing grub/i18n.h.
31237 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31239 * normal/menu.c (notify_execution_failure): Clarify error message.
31241 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31243 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31244 return value (and revert all return statements). Update users.
31246 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31248 * kern/device.c (grub_device_iterate): Allocate new part_ent
31249 structure based on sizeof (*p) rather than sizeof (p->next), to
31250 account for structure padding.
31252 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31253 disk is NULL, which might happen for LVM physical volumes with no
31256 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31258 * loader/mips/linux.c (grub_cmd_initrd)
31259 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31261 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31263 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31264 (grub_video_video_init, grub_video_bitmap_init)
31265 (grub_font_manager_init, grub_term_gfxterm_init)
31266 (grub_at_keyboard_init): New extern declarations.
31267 (grub_machine_init): Initialize gfxterm and at_keyboard.
31269 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31271 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31272 `gfxterm.mod' into core image.
31274 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31275 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31276 (kernel_img_FORMAT): Copy to ...
31278 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31279 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31280 (kernel_img_FORMAT): ... here, and ...
31282 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31283 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31284 (kernel_img_FORMAT): ... here.
31286 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31287 and input (at_keyboard) terminals in kernel.
31288 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31290 (pkglib_MODULES): Remove `pci.mod'.
31291 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31292 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31293 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31294 (at_keyboard_mod_LDFLAGS): Remove variables.
31296 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31298 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31300 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31302 * include/grub/mips/libgcc.h: Only export symbols for functions
31303 that libgcc provides.
31305 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31309 * bus/bonito.c: New file.
31310 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31311 GRUB_PCI_NUM_DEVICES.
31312 * term/i386/pc/serial.c: Move to ...
31313 * term/serial.c: ... here. All users updated.
31314 * util/i386/pc/grub-mkimage.c: Move to ...
31315 * util/grub-mkrawimage.c: ... here. All users updated.
31316 * term/i386/pc/at_keyboard.c: Move to ...
31317 * term/at_keyboard.c: ... here. All users updated.
31318 * conf/mips-qemu-mips.rmk: New file.
31319 * conf/mips-yeeloong.rmk: Likewise.
31320 * conf/mips.rmk: Likewise.
31321 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31323 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31325 (grub_ata_pciinit): Support CS5536.
31326 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31327 * font/font_cmd.c (loadfont_command): Open file before passing it to
31329 (pseudo_file_read): New function.
31330 (pseudo_file_close): Likewise.
31331 (pseudo_fs): New structure.
31332 (load_font_module): New function.
31333 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31334 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31335 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31336 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31337 * include/grub/i386/at_keyboard.h: Split into ...
31338 * include/grub/at_keyboard.h: ... this ...
31339 * include/grub/i386/at_keyboard.h: ... and this.
31340 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31342 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31344 (grub_elf64_size): Likewise.
31345 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31347 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31348 * include/grub/i386/coreboot/serial.h: Rewritten.
31349 * include/grub/i386/ieee1275/serial.h: Include
31350 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31351 * include/grub/i386/pc/serial.h: Moved from here ...
31352 * include/grub/serial.h: ... to here. All users updated.
31353 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31354 (GRUB_PCI_NUM_BUS): Likewise.
31355 (GRUB_PCI_NUM_DEVICES): Likewise.
31356 (grub_pci_device_map_range): Add missing volatile keyword.
31357 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31358 * include/grub/mips/at_keyboard.h: New file.
31359 * include/grub/mips/cache.h: Likewise.
31360 * include/grub/mips/io.h: Likewise.
31361 * include/grub/mips/kernel.h: Likewise.
31362 * include/grub/mips/libgcc.h: Likewise.
31363 * include/grub/mips/pci.h: Likewise.
31364 * include/grub/mips/qemu-mips/boot.h: Likewise.
31365 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31366 * include/grub/mips/qemu-mips/loader.h: Likewise.
31367 * include/grub/mips/qemu-mips/memory.h: Likewise.
31368 * include/grub/mips/qemu-mips/serial.h: Likewise.
31369 * include/grub/mips/qemu-mips/time.h: Likewise.
31370 * include/grub/mips/relocator.h: Likewise.
31371 * include/grub/mips/time.h: Likewise.
31372 * include/grub/mips/types.h: Likewise.
31373 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31374 * include/grub/mips/yeeloong/boot.h: Likewise.
31375 * include/grub/mips/yeeloong/kernel.h: Likewise.
31376 * include/grub/mips/yeeloong/loader.h: Likewise.
31377 * include/grub/mips/yeeloong/memory.h: Likewise.
31378 * include/grub/mips/yeeloong/pci.h: Likewise.
31379 * include/grub/mips/yeeloong/serial.h: Likewise.
31380 * include/grub/mips/yeeloong/time.h: Likewise.
31381 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31382 * kern/elf.c (grub_elf32_size): New parameter. All users
31384 (grub_elf64_size): Likewise.
31385 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31386 Load modules before saying "Welcome to GRUB!".
31387 Call grub_refresh after saying "Welcome to GRUB!".
31388 * kern/mips/cache.S: New file.
31389 * kern/mips/cache_flush.S: Likewise.
31390 * kern/mips/dl.c: Likewise.
31391 * kern/mips/init.c: Likewise.
31392 * kern/mips/qemu-mips/init.c: Likewise.
31393 * kern/mips/startup.S: Likewise.
31394 * kern/mips/yeeloong/init.c: Likewise.
31395 * kern/term.c (grub_putcode): Handle NULL terminal.
31396 (grub_getcharwidth): Likewise.
31397 (grub_getkey): Likewise.
31398 (grub_checkkey): Likewise.
31399 (grub_getkeystatus): Likewise.
31400 (grub_getxy): Likewise.
31401 (grub_getwh): Likewise.
31402 (grub_gotoxy): Likewise.
31403 (grub_cls): Likewise.
31404 (grub_setcolorstate): Likewise.
31405 (grub_setcolor): Likewise.
31406 (grub_getcolor): Likewise.
31407 (grub_refresh): Likewise.
31408 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31409 (write_jump): Add hatch nop.
31410 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31411 * lib/mips/setjmp.S: New file.
31412 * loader/mips/linux.c: Likewise.
31413 * term/i386/pc/at_keyboard.c: Move from here ...
31414 * term/at_keyboard.c: ... to here.
31415 * term/i386/pc/serial.c: Moved from here ...
31416 * term/serial.c: ... to here. All users updated.
31417 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31418 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31419 (serial_translate_key_sequence): Avoid deadlock.
31420 (grub_serial_getkey): Handle backspace.
31421 (grub_serial_putchar): Fix newline handling.
31422 * util/i386/pc/grub-mkimage.c: Move from here ...
31423 * util/grub-mkrawimage.c: ... to here. All users updated.
31424 (generate_image): New parameters 'font_path' and 'format'.
31425 Support embedding font.
31426 Use grub_host_to_target* instead of grub_cpu_to_le*.
31427 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31428 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31429 (options): New option "--font".
31431 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31432 (main): Handle "--font".
31433 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31434 (grub_virtual_screen_setup): Set bg_color_display.
31435 (redraw_screen_rect): Use bg_color_display instead of incorrect
31437 (grub_gfxterm_cls): Likewise.
31438 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31439 Support embedding config file.
31440 (add_segments): Likewise.
31441 (options): New option "--config".
31442 (main): Handle "--config".
31443 * video/sm712.c: New file.
31445 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31447 Fix parallel builds.
31449 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31450 font.c depend on ascii.h).
31452 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31454 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31456 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31458 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31459 By default: disabled.
31460 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31463 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31465 * font/font.c: Update copyright years.
31466 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31468 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31470 * font/font.c: Include `ascii.h'.
31471 (ASCII_BITMAP_SIZE): New macro.
31472 (ascii_font_glyph): Define.
31473 (ascii_glyph_lookup): New function.
31474 (grub_font_get_string_width): Change comment. If glyph not found, use
31475 ascii_glyph_lookup.
31476 (grub_font_get_glyph_with_fallback): If glyph not available returns
31477 ascii_glyph_lookup.
31478 * util/grub-mkfont.c (file_formats): New enum.
31479 (options): Add `ascii-bitmaps' new option.
31480 (usage): Add `asii-bitmaps' new option.
31481 (write_font_ascii_bitmap): New function.
31482 (write_font): Rename to ...
31483 (write_font_p2): ... this. Remove print_glyphs call.
31484 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31485 used. Call print_glyphs.
31486 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31488 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31490 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31491 (grub_bin2h_SOURCES): New variable.
31492 * util/bin2h.c: New file.
31494 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31496 * include/multiboot.h: Resynced with spec.
31497 * include/multiboot2.h: Likewise.
31498 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31499 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31501 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31503 * include/grub/term.h (grub_term_register_input,
31504 grub_term_register_output): Check return of terminal init()
31505 routines, and abort if errors are raised.
31507 * commands/terminal.c: Update copyright year.
31509 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31511 * commands/terminal.c (grub_cmd_terminal_input)
31512 (grub_cmd_terminal_output): Check return of terminal init()
31513 routines, and abort if errors are raised.
31515 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31517 * include/grub/i386/bsd.h: Fix include pathes.
31519 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31521 Add missing *BSD copyright headers.
31523 * include/grub/aout.h: Add BSD licence.
31524 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31525 * include/grub/i386/freebsd_linker.h: ... here,
31526 * include/grub/i386/freebsd_reboot.h: ... here,
31527 * include/grub/i386/netbsd_bootinfo.h: ... here,
31528 * include/grub/i386/netbsd_reboot.h: ... here,
31529 * include/grub/i386/openbsd_bootarg.h: ... here,
31530 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31531 licence to each file.
31533 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31535 * acinclude.m4: Remove `nop' assembly instruction; it's not
31536 implemented by all architectures.
31538 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31540 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31541 ELILO. This is no longer necessary.
31543 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31545 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31547 * util/grub-script-check.c: grub-script-check tool.
31548 * conf/common.rmk: Make rules for grub-script-check.
31550 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31552 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31553 spotting it back in 2008. Shame on me for forgetting he did.
31555 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31557 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31559 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31560 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31561 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31562 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31563 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31564 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31566 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31568 * include/grub/test.h: Add license header.
31569 * tests/example_functional_test.c: Likewise.
31570 * tests/example_unit_test.c: Likewise.
31571 * tests/lib/functional_test.c: Likewise.
31572 * tests/lib/test.c: Likewise.
31573 * tests/lib/unit_test.c: Likewise.
31575 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31577 Use flag-based instead of hook-based video mode selection and "auto"
31580 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31581 (grub_video_set_mode): Changed prototype. All users updated.
31582 (grub_video_check_mode_flag): New inline function.
31583 * video/video.c (parse_modespec): New function.
31584 (grub_video_set_mode): Parse flags and keywords.
31586 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31588 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31591 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31593 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31595 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31597 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31599 * util/grub-emu.c (usage): Likewise.
31600 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31601 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31602 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31603 * util/i386/pc/grub-setup.c (usage): Likewise.
31605 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31607 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31609 (grub_util_info): Likewise.
31610 (grub_util_error): Likewise.
31611 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31612 and/or new lines in `grub_util_warna', `grub_util_info',
31613 `grub_util_error' calls.
31614 * util/getroot.c: Likewise.
31615 * util/grub-editenv.c: Likewise.
31616 * util/grub-emu.c: Likewise.
31617 * util/grub-fstest.c: Likewise.
31618 * util/grub-mkdevicemap.c: Likewise.
31619 * util/grub-mkfont.c: Likewise.
31620 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31621 * util/grub-mkrelpath.c: Likewise.
31622 * util/grub-pe2elf.c: Likewise.
31623 * util/grub-probe.c: Likewise.
31624 * util/hostdisk.c: Likewise.
31625 * util/i386/efi/grub-mkimage.c: Likewise.
31626 * util/i386/pc/grub-mkimage.c: Likewise.
31627 * util/i386/pc/grub-setup.c: Likewise.
31628 * util/ieee1275/ofpath.c: Likewise.
31629 * util/mkisofs/eltorito.c: Likewise.
31630 * util/mkisofs/rock.c: Likewise.
31631 * util/mkisofs/write.c: Likewise.
31632 * util/raid.c: Likewise.
31633 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31634 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31636 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31638 Enable multiboot on non-pc.
31640 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31641 multiboot.mod and multiboot2.mod to ...
31642 * conf/i386.rmk (pkglib_MODULES): ... here.
31643 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31645 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31646 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31648 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31649 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31651 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31652 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31654 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31655 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31657 (ata_mod_SOURCES): Removed.
31658 (ata_mod_CFLAGS): Likewise.
31659 (ata_mod_LDFLAGS): Likewise.
31660 (relocator_mod_SOURCES): Removed.
31661 (relocator_mod_CFLAGS): Likewise.
31662 (relocator_mod_ASFLAGS): Likewise.
31663 (relocator_mod_LDFLAGS): Likewise.
31665 * include/grub/x86_64/multiboot.h: New file.
31666 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31669 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31671 Video multiboot support.
31673 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31675 * include/multiboot.h: Resynced with multiboot specification.
31676 * include/multiboot2.h: Likewise.
31677 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31678 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31679 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31680 (HAS_VGA_TEXT): Likewise.
31681 (accepts_video): New variable.
31682 (grub_multiboot_set_accepts_video): New function.
31683 (grub_multiboot_get_mbi_size): Account for video structures.
31684 (set_video_mode): New function.
31685 (retrieve_video_parameters): Likewise.
31686 (grub_multiboot_make_mbi): Fill video fields.
31688 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31692 * include/grub/video.h (grub_video_driver_id): New type.
31693 (grub_video_adapter): New member 'id'. All users updated.
31694 (grub_video_get_driver_id): New proto.
31695 * video/video.c (grub_video_get_driver_id): New function.
31697 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31699 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31702 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31704 * normal/cmdline.c (print_completion): Gettextizze.
31706 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31708 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31710 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31712 * gettext/gettext.c (grub_gettext_translate): Push and pop
31714 (grub_gettext_delete_list): Change comment style.
31715 * kern/err.c (grub_error): Gettextizze.
31716 (grub_fatal): Gettextizze.
31718 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31720 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31721 (grub_linux16_real_boot): ... this.
31722 * kern/i386/loader.S: Likewise.
31723 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31724 (grub_linux16_boot): New function. Switches to text mode and calls
31725 grub_linux16_real_boot().
31727 * loader/i386/bsd.c: Include `<grub/video.h>'.
31728 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31729 text mode before calling grub_unix_real_boot().
31731 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31732 (grub_multiboot_boot): Switch to text mode before calling
31733 grub_relocator32_boot().
31735 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31736 (grub_chainloader_boot): Switch to text mode before calling
31737 grub_chainloader_real_boot().
31739 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31740 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31742 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31745 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31746 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31748 * util/grub.d/00_header.in: Define a "savedefault" function for use
31750 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31752 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31753 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31755 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31756 saved_entry if boot_once is unset.
31757 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31758 previous saved entry (i.e. grub-reboot).
31760 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31762 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31764 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31766 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31768 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31770 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31772 * util/grub-reboot.in: Fix --version output.
31773 * util/grub-set-default.in: Likewise.
31775 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31777 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31780 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31782 * util/grub.d/00_header.in: Quote the value assigned to `default',
31783 in case it contains spaces.
31785 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31787 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31788 `save_default_entry' call from the macosx case to the linux case.
31790 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31791 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31793 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31794 in `chosen' environment variable.
31795 * normal/menu_text.c (get_entry_number): Check if the variable
31796 matches the title of a menu entry.
31797 (run_menu): Pass menu to get_entry_number.
31799 * util/grub-reboot.in: New file.
31800 * util/grub-set-default.in: New file.
31801 * conf/common.rmk (grub-reboot): New utility.
31802 (grub-set-default): New utility.
31804 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31805 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31806 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31807 move it to `saved_entry' for the next boot. Load environment on
31809 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31810 * util/grub.d/10_hurd.in: Likewise.
31811 * util/grub.d/10_linux.in (linux_entry): Likewise.
31812 * util/grub.d/10_windows.in: Likewise.
31813 * util/grub.d/30_os-prober.in: Likewise.
31815 * util/grub-install.in: Create environment block.
31816 * util/i386/efi/grub-install.in: Likewise.
31817 * util/ieee1275/grub-install.in: Likewise.
31818 * util/sparc64/ieee1275/grub-install.in: Likewise.
31820 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31822 Unit testing framework for GRUB.
31824 * Makefile.in: Test framework build rules for 'make check'.
31825 * conf/tests.rmk: Build rules for individual tests and framework.
31827 * include/grub/test.h: Header file for whitebox tests.
31828 * tests/lib/functional_test.c: Framework support for whitebox
31830 * tests/lib/test.c: Common whitebox testing code for unit and
31832 * tests/lib/unit_test.c: Framework support for whitebox unit
31835 * tests/util/grub-shell-tester.in: Support utility for grub-script
31837 * tests/util/grub-shell.in: Utility to execute grub-script
31838 commands in a Qemu instance.
31840 * tests/example_functional_test.c: Example whitebox functional
31842 * tests/example_grub_script_test.in: Example grub-script test.
31843 * tests/example_scripted_test.in: Example scripted test.
31844 * tests/example_unit_test.c: Example whitebox unit test.
31846 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31848 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31849 Add loader/i386/multiboot_mbi.c.
31850 (multiboot2_mod_SOURCES): Likewise.
31851 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31852 (multiboot2_mod_SOURCES): Likewise.
31853 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31854 (grub_multiboot_make_mbi): Likewise.
31855 (grub_multiboot_free_mbi): Likewise.
31856 (grub_multiboot_init_mbi): Likewise.
31857 (grub_multiboot_add_module): Likewise.
31858 (grub_multiboot_set_bootdev): Likewise.
31859 * loader/i386/multiboot.c (mbi): Removed.
31860 (mbi_dest): Likewise.
31861 (alloc_mbi): New variable.
31862 (grub_multiboot_payload_size): Removed. All users updated.
31863 (grub_multiboot_pure_size): New variable.
31864 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31865 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31866 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31867 (grub_fill_multiboot_mmap): Likewise.
31868 (grub_multiboot_get_bootdev): Likewise.
31869 (grub_multiboot): Use multiboot_mbi functions.
31870 * loader/i386/multiboot_mbi.c: New file.
31872 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31874 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31875 it would result in module crash.
31877 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31879 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31880 (grub_ofconsole_getwh): Split to ...
31881 (grub_ofconsole_getwh): ... this.
31882 (grub_ofconsole_dimensions): ...and this.
31883 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31885 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31887 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31889 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31891 * loader/i386/pc/multiboot2.c: Removed stalled file.
31893 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31895 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31896 Reported by: Grégoire Sutre
31898 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31900 * util/misc.c (canonicalize_file_name): New function.
31901 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31902 instead of realpath().
31904 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31906 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31907 and make it clearer that it's optional. Based on confusion
31910 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31912 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31913 in premature implicit newline.
31915 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31917 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31918 which resulted in garbled command line at the end of screen.
31920 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31922 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31923 initialization with similar approach as with other Linux loaders.
31925 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31927 Fix i386-ieee1275 build.
31929 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31930 and grub_term_height() for video_{width,height} initialization.
31932 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31934 Fix grub-emu build.
31936 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31938 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31939 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31941 Support for multiple terminals.
31943 * Makefile.in (pkglib_DATA): terminal.lst.
31944 (terminal.lst): New target.
31945 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31946 (GRUB_MOD_INIT(handler)): Likewise.
31947 (GRUB_MOD_FINI(handler)): Likewise.
31948 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31949 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31950 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31951 (grub_cmd_sleep): Use grub_term_save_pos.
31952 * commands/terminal.c: New file.
31953 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31954 commands/terminal.c and lib/charset.c.
31955 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31956 (pkglib_MODULES): Add terminal.mod.
31957 (terminal_mod_SOURCES): New variable.
31958 (terminal_mod_CFLAGS): Likewise.
31959 (terminal_mod_LDFLAGS): Likewise.
31960 * genhandlerlist.sh: Don't handle terminals.
31961 * genmk.rb: Generate terminal-*.lst.
31962 * genterminallist.sh: New file.
31963 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31964 (grub_is_valid_utf8): Likewise.
31965 (grub_utf8_to_ucs4_alloc): Likewise.
31966 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31967 (grub_menu_register_viewer): Changed argument.
31968 (grub_menu_try_text): New proto.
31969 (grub_gfxmenu_try_hook): New declaration.
31970 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31971 (grub_menu_init_page): Additional argument term.
31972 (grub_normal_init_page): Likewise.
31973 (grub_cmdline_get): Arguments simplified.
31974 (grub_utf8_to_ucs4_alloc): Removed.
31975 (grub_print_ucs4): Additional argument term.
31976 (grub_getstringwidth): Likewise.
31977 (grub_print_message_indented): Likewise.
31978 (grub_menu_text_register_instances): New proto.
31979 (grub_show_menu): Likewise.
31980 (read_terminal_list): Likewise.
31981 (grub_set_more): Likewise.
31982 * include/grub/parser.h: Include handler.h.
31983 * include/grub/reader.h: Rewritten.
31984 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31985 (GRUB_TERM_WIDTH): Changed to function.
31986 (GRUB_TERM_HEIGHT): Likewise.
31987 (GRUB_TERM_BORDER_WIDTH): Likewise.
31988 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31989 (GRUB_TERM_NUM_ENTRIES): Likewise.
31990 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31991 (GRUB_TERM_CURSOR_X): Likewise.
31992 (grub_term_input_class): Likewise.
31993 (grub_term_output_class): Likewise.
31994 (grub_term_outputs_disabled): New declaration.
31995 (grub_term_inputs_disabled): Likewise.
31996 (grub_term_outputs): Likewise.
31997 (grub_term_inputs): Likewise.
31998 (grub_term_register_input): Rewritten.
31999 (grub_term_register_output): Likewise.
32000 (grub_term_unregister_input): Likewise.
32001 (grub_term_unregister_output): Likewise.
32002 (FOR_ACTIVE_TERM_INPUTS): New macro.
32003 (FOR_DISABLED_TERM_INPUTS): Likewise.
32004 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32005 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32006 * include/grub/terminfo.h: Add oterm argument to all protypes.
32007 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32008 Use grub_rescue_run.
32009 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32011 * kern/reader.c: Removed. All users updated.
32012 * kern/rescue_reader.c (grub_rescue_init): Removed.
32013 (grub_rescue_reader): Likewise.
32014 (grub_register_rescue_reader): Likewise.
32015 (grub_rescue_run): New function based on kern/reader.c.
32016 * kern/term.c: Adapted for multiterm.
32017 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32018 (grub_is_valid_utf8): Likewise.
32019 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32020 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32022 * loader/i386/linux.c (grub_linux_boot): Likewise.
32023 * normal/auth.c (grub_username_get): New function.
32024 (grub_auth_check_authentication): Use grub_username_get.
32025 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32026 * normal/color.c: Adapt for multiterm.
32027 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32028 (grub_normal_init_page): Additional argument term.
32029 (read_lists): Call read_terminal_lists.
32030 (grub_enter_normal_mode): Call grub_cmdline_run.
32031 Handle grub_normal_exit_level.
32032 (grub_cmd_normal): Make reentrant.
32033 (grub_cmd_normal_exit): New function.
32034 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32035 * normal/menu.c: Adapt for multiterm.
32036 * normal/menu_entry.c: Likewise.
32037 * normal/menu_text.c: Likewise.
32038 * normal/menu_viewer.c: Removed. All users updated.
32039 * normal/term.c: New file.
32040 * util/console.c: Change order of includes to workaround a bug in
32042 * term/terminfo.c: New argument oterm on all exported functions.
32044 * util/grub-editenv.c (grub_term_input_class): Removed.
32045 (grub_term_output_class): Likewise.
32047 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32049 Make loader output a bit more user-friendly.
32051 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32052 is being loaded. Likewise for the Hurd.
32054 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32055 that kernel of FreeBSD ${version} is being loaded.
32057 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32059 (grub_cmd_initrd): Likewise.
32060 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32061 that Linux ${version} is being loaded. Likewise for initrd.
32063 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32065 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32067 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32069 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32070 (GRUB_MOD_INIT): Gettextizze.
32071 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32072 (GRUB_MOD_INIT): Gettextizze.
32073 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32074 (grub_cmd_linux): Capitalise Linux.
32075 (GRUB_MOD_INIT): Gettextizze.
32076 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32077 (grub_cmd_linux): Capitalise Linux.
32078 (GRUB_MOD_INIT): Gettextizze.
32079 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32080 (grub_cmd_linux): Capitalise Linux.
32081 (GRUB_MOD_INIT): Gettextizze.
32082 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32083 (GRUB_MOD_INIT): Gettextizze.
32084 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32085 (grub_cmd_linux): Capitalise Linux.
32086 (GRUB_MOD_INIT): Gettextizze.
32087 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32088 (grub_cpu_xnu_init): Gettextizze.
32089 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32090 (GRUB_MOD_INIT): Gettextizze.
32091 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32092 (GRUB_MOD_INIT): Gettextizze.
32093 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32094 (grub_linux_load64): Capitalise Linux.
32095 (GRUB_MOD_INIT): Gettextizze.
32096 * loader/xnu.c: Include `<grub/i18n.h>'.
32097 (GRUB_MOD_INIT): Gettextizze.
32098 * po/POTFILES: Add `loader/efi/appleloader.c',
32099 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32100 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32101 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32102 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32103 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32104 and `loader/xnu.c'.
32106 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32108 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32110 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32112 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32113 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32114 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32116 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32118 Reset Multiboot 2 support. New loader implements the draft in
32119 /branches/multiboot2 and shares as much code as possible with the
32120 production Multiboot 1 implementation.
32122 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32123 * loader/multiboot2.c: Likewise.
32124 * loader/i386/multiboot_helper.S: Likewise.
32125 * include/multiboot2.h: Replace with latest version from the draft
32126 in /branches/multiboot2.
32128 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32129 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32130 and `loader/multiboot2.c'.
32131 (pkglib_MODULES): Add `multiboot2.mod'.
32132 (multiboot2_mod_SOURCES): New variable.
32133 (multiboot2_mod_LDFLAGS): Likewise.
32134 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32136 * conf/i386-pc.rmk: Likewise.
32138 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32139 (multiboot_mod_SOURCES): Remove variable.
32140 (multiboot_mod_LDFLAGS): Likewise.
32141 (multiboot_mod_CFLAGS): Likewise.
32143 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32144 `<multiboot2.h>' instead of `<multiboot.h>'.
32145 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32146 (MULTIBOOT_HEADER_MAGIC): New macros.
32148 * loader/multiboot_loader.c (module_version_status): Remove variable.
32149 (find_multi_boot2_header): Remove function.
32150 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32151 logic. Always check for the Multiboot version we're compiling for.
32152 (grub_cmd_module_loader): Likewise.
32153 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32154 command instead of `multiboot'.
32156 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32158 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32159 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32162 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32163 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32165 Fix breakage introduced with previous commit.
32167 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32169 * normal/handler.c (read_handler_list): Revert part of previous commit
32170 affecting this file.
32171 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32172 (grub_normal_execute): ... here.
32174 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32176 Merge prefix-redefinition-fix branch.
32178 * normal/autofs.c (read_fs_list): Make function capable of being
32179 run multiple times, gracefuly replacing the previous data
32181 * normal/dyncmd.c (read_command_list): Likewise.
32182 * normal/handler.c (read_handler_list): Likewise.
32183 * normal/main.c (read_lists): New function. Calls all the
32184 list reading functions.
32185 (grub_normal_execute): Use read_lists() instead of calling all
32186 list reading functions explicitly. Register read_lists() as a
32187 variable hook attached to ${prefix}.
32189 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32191 Merge crypto branch.
32193 * Makefile.in (pkglib_DATA): Add crypto.lst.
32194 (crypto.lst): New target.
32195 * commands/hashsum.c: New file.
32196 * commands/password.c (check_password): Use grub_crypto_memcmp.
32197 * commands/password_pbkdf2.c: New file.
32198 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32199 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32200 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32201 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32202 -I$(srcdir)/lib/libgcrypt_wrap.
32203 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32204 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32205 password_pbkdf2.mod.
32206 (crypto_mod_SOURCES): New variable.
32207 (crypto_mod_CFLAGS): Likewise.
32208 (crypto_mod_LDFLAGS): Likewise.
32209 (hashsum_mod_SOURCES): New variable.
32210 (hashsum_mod_CFLAGS): Likewise.
32211 (hashsum_mod_LDFLAGS): Likewise.
32212 (pbkdf2_mod_SOURCES): New variable.
32213 (pbkdf2_mod_CFLAGS): Likewise.
32214 (pbkdf2_mod_LDFLAGS): Likewise.
32215 (password_pbkdf2_mod_SOURCES): New variable.
32216 (password_pbkdf2_mod_CFLAGS): Likewise.
32217 (password_pbkdf2_mod_LDFLAGS): Likewise.
32218 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32219 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32220 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32221 Include conf/gcry.rmk.
32222 * include/grub/auth.h: Rewritten.
32223 * include/grub/crypto.h: New file.
32224 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32225 * include/grub/normal.h (read_crypto_list): New prototype.
32226 * lib/crypto.c: New file.
32227 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32228 * lib/pbkdf2.c: Likewise.
32229 * normal/auth.c (grub_auth_strcmp): Removed.
32230 (grub_iswordseparator): Likewise.
32231 (grub_auth_strword): Likewise.
32232 (is_authenticated): Use grub_strword.
32233 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32234 and grub_strword. Pass entered password to authentication callback.
32235 * normal/crypto.c: New file.
32236 * normal/main.c: Call read_crypto_list.
32237 * util/grub-mkpasswd-pbkdf2.c: New file.
32238 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32240 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32242 Fix descent and ascent calculation.
32244 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32245 (options): New option "asce".
32247 (add_char): Ignore invalid glyphs for descent calculation.
32248 Calculate ascent from actual content.
32249 (print_glyphs): Use 'asce'.
32250 (write_font): Likewise. Allow ascent override.
32251 (main): Handle "asce" option.
32253 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32255 * kern/err.c: Include `<grub/i18n.h>'.
32256 (grub_print_error): Add full stop. Gettextizze.
32257 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32258 (grub_bsd_load_elf): Capitalise ELF.
32259 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32260 (grub_cmd_freebsd_module): Likewise.
32261 (grub_cmd_freebsd_module_elf): Likewise.
32262 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32264 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32266 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32267 * commands/search_file.c (HELP_MESSAGE): New macro.
32268 * commands/search_label.c (HELP_MESSAGE): Likewise.
32269 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32270 * po/POTFILES: Add `commands/search_file.c',
32271 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32272 `commands/search.c'.
32274 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32276 * config.rpath: Update from Gnulib.
32278 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32280 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32282 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32284 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32286 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32288 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32289 arguments to fread so that we get a return value in bytes, rather
32290 than something that will normally be rounded down to 0.
32291 Adjust error handling to avoid producing garbage when size_t is not
32292 the same size as long long.
32294 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32296 * util/mkisofs/write.c (padblock_write): Check return value of
32299 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32301 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32304 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32306 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32308 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32309 instead of manual alignment.
32310 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32311 verbose). Avoid attempts to read past end of the device
32312 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32313 but GRUB_DISK_CACHE_SIZE may exceed that).
32315 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32317 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32318 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32321 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32323 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32325 (grub_efi_piwg_device_path): New structure
32326 (grub_efi_piwg_device_path_t): New type.
32327 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32328 (devpath_1): Transform to a structure. All users updated.
32329 (devpath_2): Likewise.
32330 (devpath_3): Likewise.
32331 (devpath_4): Likewise.
32332 (devpath_5): Likewise.
32334 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32336 * loader/efi/appleloader.c: Restored. Update all users.
32338 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32340 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32342 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32343 (struct boot_blocklist): Move from here ...
32344 * include/grub/i386/pc/boot.h [ASM_FILE]
32345 (struct grub_boot_blocklist): ... to here. Update all users.
32346 (setup): Only initialize `start' member of `first_block'
32347 structure. Add assert() calls to verify the other members.
32349 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32350 (generate_image): Fix broken blocklist length initialization.
32351 Add assert() call to verify blocklist `segment' field.
32353 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32355 * loader/efi/appleloader.c: Remove. Update all users.
32357 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32359 * boot/i386/pc/boot.S: Update copyright year.
32360 * boot/i386/pc/cdboot.S: Likewise.
32361 * boot/i386/pc/diskboot.S: Likewise.
32362 * boot/i386/pc/lnxboot.S: Likewise.
32363 * boot/i386/pc/pxeboot.S: Likewise.
32364 * bus/pci.c: Likewise.
32365 * commands/cmp.c: Likewise.
32366 * commands/help.c: Likewise.
32367 * commands/hexdump.c: Likewise.
32368 * commands/i386/pc/halt.c: Likewise.
32369 * commands/i386/pc/play.c: Likewise.
32370 * commands/i386/pc/vbeinfo.c: Likewise.
32371 * commands/ls.c: Likewise.
32372 * commands/test.c: Likewise.
32373 * disk/dmraid_nvidia.c: Likewise.
32374 * disk/i386/pc/biosdisk.c: Likewise.
32375 * disk/ieee1275/nand.c: Likewise.
32376 * disk/ieee1275/ofdisk.c: Likewise.
32377 * disk/lvm.c: Likewise.
32378 * disk/raid.c: Likewise.
32379 * disk/raid6_recover.c: Likewise.
32380 * disk/scsi.c: Likewise.
32381 * fs/affs.c: Likewise.
32382 * fs/cpio.c: Likewise.
32383 * fs/ext2.c: Likewise.
32384 * fs/hfs.c: Likewise.
32385 * fs/iso9660.c: Likewise.
32386 * fs/ntfs.c: Likewise.
32387 * fs/sfs.c: Likewise.
32388 * fs/udf.c: Likewise.
32389 * fs/ufs.c: Likewise.
32390 * fs/xfs.c: Likewise.
32391 * gencmdlist.sh: Likewise.
32392 * genmk.rb: Likewise.
32393 * include/grub/disk.h: Likewise.
32394 * include/grub/efi/api.h: Likewise.
32395 * include/grub/efi/efi.h: Likewise.
32396 * include/grub/efi/pe32.h: Likewise.
32397 * include/grub/elf.h: Likewise.
32398 * include/grub/fs.h: Likewise.
32399 * include/grub/i386/at_keyboard.h: Likewise.
32400 * include/grub/i386/pc/memory.h: Likewise.
32401 * include/grub/i386/pc/vbe.h: Likewise.
32402 * include/grub/i386/pci.h: Likewise.
32403 * include/grub/i386/tsc.h: Likewise.
32404 * include/grub/ieee1275/ieee1275.h: Likewise.
32405 * include/grub/ntfs.h: Likewise.
32406 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32407 * include/grub/sparc64/libgcc.h: Likewise.
32408 * include/grub/symbol.h: Likewise.
32409 * include/grub/types.h: Likewise.
32410 * include/multiboot2.h: Likewise.
32411 * io/gzio.c: Likewise.
32412 * kern/device.c: Likewise.
32413 * kern/disk.c: Likewise.
32414 * kern/efi/efi.c: Likewise.
32415 * kern/efi/mm.c: Likewise.
32416 * kern/elf.c: Likewise.
32417 * kern/file.c: Likewise.
32418 * kern/i386/dl.c: Likewise.
32419 * kern/i386/pc/init.c: Likewise.
32420 * kern/i386/pc/startup.S: Likewise.
32421 * kern/ieee1275/ieee1275.c: Likewise.
32422 * kern/ieee1275/init.c: Likewise.
32423 * kern/main.c: Likewise.
32424 * kern/mm.c: Likewise.
32425 * kern/powerpc/dl.c: Likewise.
32426 * kern/sparc64/dl.c: Likewise.
32427 * kern/x86_64/dl.c: Likewise.
32428 * lib/hexdump.c: Likewise.
32429 * loader/efi/appleloader.c: Likewise.
32430 * loader/i386/ieee1275/linux.c: Likewise.
32431 * loader/i386/pc/chainloader.c: Likewise.
32432 * loader/i386/pc/linux.c: Likewise.
32433 * loader/i386/pc/multiboot2.c: Likewise.
32434 * loader/ieee1275/multiboot2.c: Likewise.
32435 * loader/multiboot2.c: Likewise.
32436 * loader/multiboot_loader.c: Likewise.
32437 * loader/powerpc/ieee1275/linux.c: Likewise.
32438 * normal/completion.c: Likewise.
32439 * normal/menu_entry.c: Likewise.
32440 * partmap/apple.c: Likewise.
32441 * util/grub.d/10_hurd.in: Likewise.
32442 * util/hostfs.c: Likewise.
32443 * video/readers/png.c: Likewise.
32445 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32447 * include/grub/misc.h (GNUC_PREREQ): New macro.
32448 (ATTRIBUTE_ERROR): New macro.
32449 * include/grub/list.h (grub_bad_type_cast_real): Use
32452 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32454 * normal/menu_text.c (print_message): Change messages.
32456 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32458 * normal/menu_entry.c (store_completion): Gettextizze.
32460 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32462 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32464 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32466 * po/POTFILES: Sort correctly.
32468 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32470 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32471 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32472 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32474 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32475 summary. Gettextizze the strings.
32476 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32477 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32478 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32480 (GRUB_MOD_INIT): Remove command name from summary.
32481 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32483 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32484 * term/i386/pc/serial.c (options): Add full stops.
32485 (GRUB_MOD_INIT): Remove command name from the summary.
32487 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32489 * commands/acpi.c: Gettextizze help strings and/or options. Include
32490 `grub/i18n.h' if needed.
32491 * commands/blocklist.c: Likewise.
32492 * commands/boot.c: Likewise.
32493 * commands/cat.c: Likewise.
32494 * commands/cmp.c: Likewise.
32495 * commands/configfile.c: Likewise.
32496 * commands/crc.c: Likewise.
32497 * commands/date.c: Likewise.
32498 * commands/echo.c: Likewise.
32499 * commands/efi/fixvideo.c: Likewise.
32500 * commands/efi/loadbios.c: Likewise.
32501 * commands/gptsync.c: Likewise.
32502 * commands/halt.c: Likewise.
32503 * commands/handler.c: Likewise.
32504 * commands/hdparm.c: Likewise.
32505 * commands/hexdump.c: Likewise.
32506 * commands/i386/cpuid.c: Likewise.
32507 * commands/i386/pc/drivemap.c: Likewise.
32508 * commands/i386/pc/halt.c: Likewise.
32509 * commands/i386/pc/pxecmd.c: Likewise.
32510 * commands/i386/pc/vbeinfo.c: Likewise.
32511 * commands/i386/pc/vbetest.c: Likewise.
32512 * commands/ieee1275/suspend.c: Likewise.
32513 * commands/keystatus.c: Likewise.
32514 * commands/loadenv.c: Likewise.
32515 * commands/ls.c: Likewise.
32516 * commands/lsmmap.c: Likewise.
32517 * commands/lspci.c: Likewise.
32518 * commands/memrw.c: Likewise.
32519 * commands/minicmd.c: Likewise.
32520 * commands/parttool.c: Likewise.
32521 * commands/password.c: Likewise.
32522 * commands/probe.c: Likewise.
32523 * commands/read.c: Likewise.
32524 * commands/reboot.c: Likewise.
32525 * commands/search.c: Likewise.
32526 * commands/sleep.c: Likewise.
32527 * commands/test.c: Likewise.
32528 * commands/true.c: Likewise.
32529 * commands/usbtest.c: Likewise.
32530 * commands/videotest.c: Likewise.
32531 * commands/xnu_uuid.c: Likewise.
32532 * disk/loopback.c: Likewise.
32533 * hello/hello.c: Likewise.
32534 * loader/i386/bsd.c: Likewise.
32535 * term/i386/pc/serial.c: Likewise.
32536 * po/POTFILES: Add new files.
32538 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32540 * term/i386/pc/at_keyboard.c
32541 (keyboard_controller_wait_untill_ready): Rename to ...
32542 (keyboard_controller_wait_until_ready): ... this. Update all users.
32544 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32546 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32547 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32548 string using string width.
32549 * normal/menu_text.c (grub_print_message_indented): Use
32550 grub_print_spaces and not print_spaces.
32551 (print_timeout): Likewise.
32552 (print_spaces): Move to...
32553 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32555 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32557 Import from Gnulib.
32559 * gnulib/getdelim.c: New file.
32560 * gnulib/getline.c: Likewise.
32562 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32564 * include/grub/list.h (grub_assert_fail): Removed.
32565 (grub_bad_type_cast_real): New function.
32566 (grub_bad_type_cast): New macro.
32567 (GRUB_AS_LIST): Use grub_bad_type_cast.
32568 (GRUB_AS_LIST_P): Likewise.
32569 (GRUB_AS_NAMED_LIST): Likewise.
32570 (GRUB_AS_NAMED_LIST_P): Likewise.
32571 (GRUB_AS_PRIO_LIST): Likewise.
32572 (GRUB_AS_PRIO_LIST_P): Likewise.
32573 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32575 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32577 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32580 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32582 * configure.ac: Check for TARGET_CFLAGS initialization before we
32583 initialize it ourselves (sigh).
32584 Move a few modifications to TARGET_CFLAGS to be unconditional
32585 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32588 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32589 * term/i386/pc/at_keyboard.c
32590 (keyboard_controller_wait_untill_ready): Likewise.
32591 (keyboard_controller_led): Rename `led_status' paramter to avoid
32594 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32596 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32599 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32601 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32603 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32605 * normal/menu_text.c (grub_print_message_indented): Prevent
32606 past-the-end-of-array dereference.
32608 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32610 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32611 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32613 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32615 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32616 * normal/main.c (grub_normal_read_line): Remove a space from the
32619 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32621 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32622 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32623 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32624 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32625 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32626 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32627 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32629 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32631 * video/readers/jpeg.c (cmd): Declare.
32632 (grub_cmd_jpegtest): Use `grub_command_t' type.
32633 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32635 (GRUB_MOD_FINI): Use `cmd' to unregister.
32636 * video/readers/png.c (cmd): Declare.
32637 (grub_cmd_pngtest): Use `grub_command_t' type.
32638 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32640 (GRUB_MOD_FINI): Use `cmd' to unregister.
32641 * video/readers/tga.c (cmd): Declare.
32642 (grub_cmd_tgatest): Use `grub_command_t' type.
32643 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32645 (GRUB_MOD_FINI): Use `cmd' to unregister.
32647 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32649 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32651 * kern/corecmd.c (grub_register_core_commands): Likewise.
32652 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32653 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32654 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32655 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32656 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32657 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32658 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32659 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32660 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32661 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32662 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32663 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32664 * normal/handler.c (insert_handler): Likewise.
32665 * normal/main.c (GRUB_MOD_INIT): Likewise.
32666 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32668 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32670 * commands/help.c (grub_cmd_help): Print the command name before the
32672 (GRUB_MOD_INIT): Remove command name from the summary.
32673 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32675 * lib/arg.c (find_long): Print the command name before the summary.
32676 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32678 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32679 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32680 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32681 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32682 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32683 * commands/date.c (GRUB_MOD_INIT): Likewise.
32684 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32685 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32686 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32687 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32688 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32689 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32690 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32691 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32692 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32693 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32694 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32695 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32696 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32697 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32698 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32699 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32700 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32701 * commands/password.c (GRUB_MOD_INIT): Likewise.
32702 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32703 * commands/read.c (GRUB_MOD_INIT): Likewise.
32704 * commands/search.c (GRUB_MOD_INIT): Likewise.
32705 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32706 * commands/test.c (GRUB_MOD_INIT): Likewise.
32707 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32708 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32709 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32710 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32711 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32712 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32713 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32714 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32715 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32716 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32717 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32718 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32719 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32720 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32722 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32724 Use search command for preliminar UUID search.
32726 * commands/search.c: Split into ...
32727 * commands/search_wrap.c: ...this
32728 * commands/search.c: ...and this.
32729 * commands/search_file.c: New file.
32730 * commands/search_label.c: New file.
32731 * commands/search_uuid.c: New file.
32732 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32733 Add commands/search_wrap.c, commands/search_file.c,
32734 commands/search_label.c and commands/search_uuid.c.
32735 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32736 (search_mod_SOURCES): Set to commands/search_wrap.c.
32737 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32739 (search_fs_file_mod_SOURCES): New variable.
32740 (search_fs_file_mod_CFLAGS): Likewise.
32741 (search_fs_file_mod_LDFLAGS): Likewise.
32742 (search_label_mod_SOURCES): Likewise.
32743 (search_label_mod_CFLAGS): Likewise.
32744 (search_label_mod_LDFLAGS): Likewise.
32745 (search_fs_uuid_mod_SOURCES): New variable.
32746 (search_fs_uuid_mod_CFLAGS): Likewise.
32747 (search_fs_uuid_mod_LDFLAGS): Likewise.
32748 (fs_file_mod_SOURCES): Removed.
32749 (fs_file_mod_CFLAGS): Likewise.
32750 (fs_file_mod_LDFLAGS): Likewise.
32751 (fs_uuid_mod_SOURCES): Removed.
32752 (fs_uuid_mod_CFLAGS): Likewise.
32753 (fs_uuid_mod_LDFLAGS): Likewise.
32754 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32755 Set to util/grub-install.in.
32756 * disk/fs_file.c: Removed.
32757 * disk/fs_uuid.c: Likewise.
32758 * include/grub/search.h: New file.
32759 * util/grub-install.in: Handle sparc64.
32760 Create and use load.cfg.
32761 * util/sparc64/ieee1275/grub-install.in: Removed.
32763 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32765 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32766 Ignore return status if CF is cleared.
32767 (grub_biosdisk_get_diskinfo_standard): Likewise.
32769 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32771 * term/i386/pc/at_keyboard.c
32772 (keyboard_controller_wait_untill_ready): New function.
32773 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32774 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32775 for keyboard polling, rather than duplicate the same loop. This
32776 saves a few bytes in code size.
32778 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32780 Support for (pxe[:server[:gateway]]) syntax and
32781 use environment variable for PXE.
32783 * commands/i386/pc/pxecmd.c (options): Removed.
32784 (print_ip): Removed.
32785 (grub_cmd_pxe): Removed
32786 (grub_cmd_pxe_unload): New function.
32787 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32788 (grub_pxe_your_ip): Made static.
32789 (grub_pxe_default_server_ip): Likewise.
32790 (grub_pxe_default_gateway_ip): Likewise.
32791 (grub_pxe_blksize): Likewise.
32792 (parse_ip): New function.
32793 (grub_pxe_open): Support server and gateway specification.
32794 (grub_pxe_close): Free disk->data.
32795 (grub_pxefs_open): Use disk->data.
32796 (grub_pxefs_read): Likewise.
32797 (grub_env_write_readonly): New function.
32798 (set_mac_env): Likewise.
32799 (set_env_limn_ro): Likewise.
32800 (parse_dhcp_vendor): Likewise.
32801 (grub_pxe_detect): Set the environment variables.
32802 (set_ip_env): New function.
32803 (write_ip_env): Likewise.
32804 (grub_env_write_pxe_default_server): Likewise.
32805 (grub_env_write_pxe_default_gateway): Likewise.
32806 (grub_env_write_pxe_blocksize): Likewise.
32807 (GRUB_MOD_INIT(pxe)): Set environment variables.
32808 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32809 (grub_pxe_mac_addr_t): ... this. All users updated.
32810 (grub_pxe_your_ip): Removed.
32811 (grub_pxe_server_ip): Likewise.
32812 (grub_pxe_gateway_ip): Likewise.
32813 (grub_pxe_blksize): Likewise.
32815 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32817 * commands/help.c: Include `<grub/i18n.h>'.
32818 (grub_cmd_help): Gettextizze.
32819 (GRUB_MOD_INIT): Likewise.
32820 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32821 (GRUB_MOD_INIT): Gettextizze.
32822 * commands/search.c: Include `<grub/i18n.h>'.
32823 (options): Gettextizze.
32824 (GRUB_MOD_INIT): Gettextizze.
32825 * lib/arg.c: Include `<grub/i18n.h>'.
32826 (help_options): Gettextizze.
32827 (find_long): Likewise.
32828 (grub_arg_show_help): Likewise.
32829 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32830 (read_command_list): Gettextizze.
32831 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32832 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32834 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32836 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32837 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32838 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32839 (led_status): New variable.
32840 (keyboard_controller_led): New function.
32841 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32842 update led status for caps lock, num lock and scroll lock.
32844 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32846 * util/hostdisk.c (open_device): Fix a comment.
32848 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32850 * util/grub-install.in (host_os): New variable.
32851 * util/i386/efi/grub-install.in (host_os): Likewise.
32853 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32855 * util/mkisofs/write.c (padblock_write): Abort when given an
32856 excedingly large embed image, instead of silently truncating it.
32858 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32860 * include/multiboot.h: Indentation fixes.
32862 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32864 * include/multiboot.h (struct multiboot_aout_symbol_table)
32865 (struct multiboot_elf_section_header_table): New structure
32866 declarations (stolen from GRUB Legacy).
32867 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32870 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32871 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32874 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32876 * include/multiboot.h: Make comments src2texi-friendly.
32878 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32880 For consistency with [multiboot]/docs/boot.S.
32882 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32883 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32884 (MULTIBOOT_MAGIC2): Rename from this ...
32885 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32887 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32889 * include/multiboot.h: Remove `<grub/types.h>'.
32890 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32891 types. Update all users.
32893 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32895 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32896 `couldn't' and `can not' by `cannot'.
32897 * commands/i386/pc/drivemap.c: Likewise.
32898 * disk/ata.c: Likewise.
32899 * disk/ieee1275/nand.c: Likewise.
32900 * fs/affs.c: Likewise.
32901 * fs/fat.c: Likewise.
32902 * fs/hfs.c: Likewise.
32903 * fs/hfsplus.c: Likewise.
32904 * fs/iso9660.c: Likewise.
32905 * fs/jfs.c: Likewise.
32906 * fs/minix.c: Likewise.
32907 * fs/reiserfs.c: Likewise.
32908 * fs/sfs.c: Likewise.
32909 * fs/udf.c: Likewise.
32910 * fs/ufs.c: Likewise.
32911 * fs/xfs.c: Likewise.
32912 * loader/powerpc/ieee1275/linux.c: Likewise.
32913 * loader/sparc64/ieee1275/linux.c: Likewise.
32914 * util/grub-probe.c: Likewise.
32915 * util/misc.c: Likewise.
32917 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32919 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32921 * commands/acpi.c: Likewise.
32922 * commands/blocklist.c: Likewise.
32923 * commands/efi/loadbios.c: Likewise.
32924 * commands/i386/pc/drivemap.c: Likewise.
32925 * commands/loadenv.c: Likewise.
32926 * commands/memrw.c: Likewise.
32927 * commands/password.c: Likewise.
32928 * commands/videotest.c: Likewise.
32929 * disk/ata.c: Likewise.
32930 * disk/ata_pthru.c: Likewise.
32931 * disk/dmraid_nvidia.c: Likewise.
32932 * disk/ieee1275/nand.c: Likewise.
32933 * disk/ieee1275/ofdisk.c: Likewise.
32934 * disk/loopback.c: Likewise.
32935 * disk/lvm.c: Likewise.
32936 * disk/mdraid_linux.c: Likewise.
32937 * disk/raid.c: Likewise.
32938 * disk/raid6_recover.c: Likewise.
32939 * disk/scsi.c: Likewise.
32940 * efiemu/main.c: Likewise.
32941 * efiemu/mm.c: Likewise.
32942 * efiemu/pnvram.c: Likewise.
32943 * efiemu/symbols.c: Likewise.
32944 * font/font.c: Likewise.
32945 * fs/cpio.c: Likewise.
32946 * fs/hfsplus.c: Likewise.
32947 * fs/iso9660.c: Likewise.
32948 * fs/jfs.c: Likewise.
32949 * fs/minix.c: Likewise.
32950 * fs/ntfs.c: Likewise.
32951 * fs/ntfscomp.c: Likewise.
32952 * fs/reiserfs.c: Likewise.
32953 * fs/ufs.c: Likewise.
32954 * fs/xfs.c: Likewise.
32955 * gettext/gettext.c: Likewise.
32956 * include/grub/auth.h: Likewise.
32957 * kern/elf.c: Likewise.
32958 * kern/file.c: Likewise.
32959 * kern/ieee1275/init.c: Likewise.
32960 * kern/ieee1275/mmap.c: Likewise.
32961 * kern/ieee1275/openfw.c: Likewise.
32962 * kern/powerpc/dl.c: Likewise.
32963 * kern/sparc64/dl.c: Likewise.
32964 * lib/arg.c: Likewise.
32965 * loader/i386/bsd.c: Likewise.
32966 * loader/i386/bsdXX.c: Likewise.
32967 * loader/i386/efi/linux.c: Likewise.
32968 * loader/i386/efi/xnu.c: Likewise.
32969 * loader/i386/ieee1275/linux.c: Likewise.
32970 * loader/i386/linux.c: Likewise.
32971 * loader/i386/multiboot.c: Likewise.
32972 * loader/i386/pc/linux.c: Likewise.
32973 * loader/i386/pc/multiboot2.c: Likewise.
32974 * loader/i386/xnu.c: Likewise.
32975 * loader/ieee1275/multiboot2.c: Likewise.
32976 * loader/macho.c: Likewise.
32977 * loader/machoXX.c: Likewise.
32978 * loader/multiboot2.c: Likewise.
32979 * loader/multiboot_loader.c: Likewise.
32980 * loader/powerpc/ieee1275/linux.c: Likewise.
32981 * loader/sparc64/ieee1275/linux.c: Likewise.
32982 * loader/xnu.c: Likewise.
32983 * loader/xnu_resume.c: Likewise.
32984 * mmap/i386/pc/mmap.c: Likewise.
32985 * normal/menu_viewer.c: Likewise.
32986 * partmap/acorn.c: Likewise.
32987 * partmap/amiga.c: Likewise.
32988 * partmap/apple.c: Likewise.
32989 * script/lexer.c: Likewise.
32990 * term/gfxterm.c: Likewise.
32991 * term/i386/pc/serial.c: Likewise.
32992 * term/i386/pc/vga.c: Likewise.
32993 * term/ieee1275/ofconsole.c: Likewise.
32994 * term/terminfo.c: Likewise.
32995 * video/bitmap.c: Likewise.
32996 * video/efi_gop.c: Likewise.
32997 * video/efi_uga.c: Likewise.
32998 * video/fb/video_fb.c: Likewise.
32999 * video/i386/pc/vbe.c: Likewise.
33000 * video/readers/tga.c: Likewise.
33001 * video/video.c: Likewise.
33003 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33005 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33006 * commands/lspci.c: Likewise.
33007 * commands/probe.c: Likewise.
33008 * commands/xnu_uuid.c: Likewise.
33009 * conf/i386-coreboot.rmk: Likewise.
33010 * conf/i386-efi.rmk: Likewise.
33011 * conf/i386-ieee1275.rmk: Likewise.
33012 * conf/i386-pc.rmk: Likewise.
33013 * conf/powerpc-ieee1275.rmk: Likewise.
33014 * conf/sparc64-ieee1275.rmk: Likewise.
33015 * conf/x86_64-efi.rmk: Likewise.
33016 * fs/i386/pc/pxe.c: Likewise.
33017 * gettext/gettext.c: Likewise.
33018 * include/grub/efi/graphics_output.h: Likewise.
33019 * include/grub/i386/pc/memory.h: Likewise.
33020 * kern/env.c: Likewise.
33021 * kern/i386/qemu/startup.S: Likewise.
33022 * lib/i386/pc/biosnum.c: Likewise.
33023 * lib/i386/relocator.c: Likewise.
33024 * lib/i386/relocator_asm.S: Likewise.
33025 * lib/relocator.c: Likewise.
33026 * loader/i386/bsd.c: Likewise.
33027 * loader/i386/multiboot.c: Likewise.
33028 * loader/i386/pc/chainloader.c: Likewise.
33029 * loader/i386/xnu.c: Likewise.
33030 * loader/xnu.c: Likewise.
33031 * normal/main.c: Likewise.
33032 * normal/menu_text.c: Likewise.
33033 * util/getroot.c: Likewise.
33034 * util/grub-mkconfig_lib.in: Likewise.
33035 * util/grub.d/00_header.in: Likewise.
33036 * util/i386/pc/grub-mkimage.c: Likewise.
33037 * util/mkisofs/eltorito.c: Likewise.
33038 * util/mkisofs/exclude.h: Likewise.
33039 * util/mkisofs/hash.c: Likewise.
33040 * util/mkisofs/iso9660.h: Likewise.
33041 * util/mkisofs/joliet.c: Likewise.
33042 * util/mkisofs/mkisofs.c: Likewise.
33043 * util/mkisofs/mkisofs.h: Likewise.
33044 * util/mkisofs/multi.c: Likewise.
33045 * util/mkisofs/name.c: Likewise.
33046 * util/mkisofs/rock.c: Likewise.
33047 * util/mkisofs/tree.c: Likewise.
33048 * util/mkisofs/write.c: Likewise.
33049 * video/efi_gop.c: Likewise.
33051 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33053 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33056 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33058 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33059 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33061 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33063 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33064 (GRUB_MOD_INIT(memrw)): Update help line.
33066 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33068 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33069 Use grub_extcmd_t. All users updated.
33070 (options): New variable.
33071 (grub_cmd_read): Restructure for readability. Support "-v" option.
33072 (grub_cmd_write): Restructure for readability.
33074 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33076 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33078 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33080 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33081 with the actual contents of the correspondending make variable.
33082 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33083 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33084 specifying `*.lst' and `efiemu??.o'
33086 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33088 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33089 after function name.
33090 Noticed by Rene Engelhard <rene@debian.org>.
33092 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33094 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33095 (options): New variable.
33096 (iospace): Likewise.
33097 (grub_lspci_iter): List IO spaces if "-i" was given.
33098 (grub_cmd_lspci): Parse options.
33099 (GRUB_MOD_INIT(lspci)): Use extcmd.
33100 (GRUB_MOD_FINI(lspci)): Likewise.
33102 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33104 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33105 `function' keyword.
33106 Patch by Tony Mancill <tmancill@debian.org>.
33108 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33110 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33111 (grub_uhci_portstatus): Likewise.
33112 (grub_uhci_portstatus): Add necessary delay.
33113 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33115 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33117 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33118 (GRUB_MOD_INIT): Likewise.
33119 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33120 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33121 * commands/echo.c (options): Fix capitalizations and/or full stops.
33122 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33123 (enable_rom_area): Likewise.
33124 (GRUB_MOD_INIT): Likewise.
33125 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33126 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33127 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33128 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33129 * commands/hexdump.c (options): Likewise.
33130 * commands/i386/cpuid.c (options): Likewise.
33131 (GRUB_MOD_INIT): Likewise.
33132 * commands/i386/pc/drivemap.c (options): Likewise.
33133 (GRUB_MOD_INIT): Likewise.
33134 * commands/i386/pc/halt (options): Likewise.
33135 (GRUB_MOD_INIT): Likewise.
33136 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33137 * commands/i386/pc/pxecmd.c (options): Likewise.
33138 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33139 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33140 * commands/keystatus.c (options): Likewise.
33141 (GRUB_MOD_INIT): Likewise.
33142 * commands/loadenv.c (options): Likewise.
33143 * commands/ls.c (options): Likewise.
33144 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33145 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33146 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33147 * commands/parttool.c (helpmsg): Likewise.
33148 * commands/probe.c (options): Likewise.
33149 * commands/read.c (GRUB_MOD_INIT): Likewise.
33150 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33151 * commands/search.c (options): Likewise.
33152 * commands/sleep.c (options): Likewise.
33153 * commands/test.c (GRUB_MOD_INIT): Likewise.
33154 * commands/true.c (GRUB_MOD_INIT): Likewise.
33155 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33156 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33157 * lib/arg.c (help_options): Likewise.
33158 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33160 * po/POTFILES: Add `commands/loadenv.c'.
33162 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33164 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33165 instead of specifying them explicit.
33167 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33169 * NEWS: Add grub-probe support for GNU/Hurd.
33171 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33173 * NEWS: gettext was added after 1.97.
33175 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33177 * util/mkisofs/msdos_partition.h: New file (based on
33178 include/grub/msdos_partition.h).
33179 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33180 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33181 (ld_options, main): Recognize --protective-msdos-label.
33182 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33183 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33184 (padblock_write): If `use_protective_msdos_label' is set, patch a
33185 protective DOS-style label in the output image.
33187 * util/grub-mkrescue.in: Use --protective-msdos-label.
33189 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33191 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33194 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33196 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33198 (ld_options, main): Recognize `--embedded-boot'.
33199 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33201 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33202 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33203 (padblock_write): Likewise. Rewrite to support embedded boot image.
33205 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33206 for BIOS-based disk boot instead of only ElTorito.
33208 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33210 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33211 build (not needed for bootstrap).
33213 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33215 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33216 from i386-pc build (not needed for bootstrap).
33217 Rewrite a pair of strings.
33219 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33221 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33223 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33225 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33227 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33229 * kern/env.c (grub_env_context_open): Mark exported variable for
33232 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33234 * kern/env.c (grub_env_export): Create nonexistent variables before
33237 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33239 * include/grub/auth.h: Include `<grub/i18n.h>'.
33240 (GRUB_GET_PASSWORD): Gettextizze string.
33241 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33243 (grub_utf8_to_ucs4_alloc): Fix indentation.
33244 (grub_print_ucs4): Likewise.
33245 (grub_getstringwidth): Likewise.
33246 (print_message_indented): New declaration.
33247 * normal/auth.c: Include `<grub/i18n.h>'.
33248 (grub_auth_check_authentication): Gettexttize string.
33249 * normal/cmdline.c: Include `<grub/i18n.h>'.
33250 (grub_cmdline_get): Gettextizze.
33251 * normal/color.c: Include `<grub/i18n.h>'.
33252 (grub_parse_color_name_pair): Gettexttize strings.
33253 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33254 string (use `print_message_indented').
33255 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33256 `include/grub/normal.h'.
33257 (print_message_indented): Renamed to ...
33258 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33259 used in normal/main.c).
33260 (print_message): Use `grub_print_message_indented' instead of
33261 `print_message_indented'.
33262 (print_timeout): Likewise.
33263 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33264 (grub_normal_print_device_info): Gettexttize strings.
33265 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33267 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33269 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33270 of arguments. Return number of tokens and not arguments. All users
33273 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33275 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33276 non-MSDOS paritions.
33278 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33280 * include/grub/types.h (UNUSED): Removed since it conflicts with
33281 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33282 Reported by Grégoire Sutre.
33284 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33286 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33287 (grub_print_ucs4_alloc): Likewise.
33288 (grub_getstringwidth): Likewise.
33289 * normal/main.c (grub_normal_init_page): Gettextize version string.
33290 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33291 (getstringwidth): Renamed to ...
33292 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33293 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33294 (grub_print_ucs4): Remove `static' qualifer (now used in
33296 * po/POTFILES: Add normal/main.c.
33298 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33300 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33301 (print_message_indented): Add `margin_left' and `margin_right'
33303 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33305 (print_timeout): Use `print_message_indented' to print the message.
33306 Deletes `second_stage' parameter.
33307 (run_menu): Update `print_timeout' calls.
33309 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33311 Fix console palette on OpenFirmware.
33313 * term/ieee1275/ofconsole.c (MAX): Removed.
33314 (colors): Redone based on VGA palette.
33315 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33316 colors are supported.
33317 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33319 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33321 Fix potential EfiEmu double prepare.
33323 * efiemu/main.c (prepared): New variable
33324 (grub_efiemu_unload): Set prepare to '0'.
33325 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33327 set_virtual_address_map support.
33329 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33331 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33333 (grub_efiemu_crc32): Likewise.
33334 (grub_efiemu_crc64): Likewise.
33335 (grub_efiemu_set_virtual_address_map): Likewise.
33336 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33338 (grub_autoefi_set_virtual_address_map): Likewise.
33339 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33340 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33341 Restructure flow to accomodate it.
33342 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33343 (grub_efiemu_crc): Recompute CRC32.
33344 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33345 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33346 * efiemu/symbols.c (relocated_handle): New variable.
33347 (grub_efiemu_free_syms): Free relocated_handle.
33348 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33349 (grub_efiemu_write_sym_markers): New function.
33350 (grub_efiemu_set_virtual_address_map): Likewise.
33352 Newer XNU parameters.
33354 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33355 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33356 (grub_xnu_fill_devicetree): New prototype.
33357 (grub_xnu_heap_real_start): New variable.
33358 * loader/xnu.c (get_name_ptr): New function.
33359 (grub_xnu_load_driver): Fill namelen and name.
33361 64-bit xnu support.
33363 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33364 and 'loader/macho64.c'.
33365 * conf/i386-pc.rmk: Likewise.
33366 * conf/x86_64-efi.rmk: Likewise.
33367 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33368 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33369 * include/grub/macho.h (grub_macho_segment64): New structure.
33370 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33371 (grub_macho_size32): ... to this.
33372 (grub_macho32_get_entry_point): Renamed from ...
33373 (grub_macho_get_entry_point32): ... to this.
33374 (grub_macho_contains_macho64): New prototype.
33375 (grub_macho_size64): Likewise.
33376 (grub_macho_get_entry_point64): Likewise.
33377 (grub_macho32_load): Renamed from ...
33378 (grub_macho_load32): ... to this.
33379 (grub_macho32_filesize): Renamed from ...
33380 (grub_macho_filesize32): ... to this.
33381 (grub_macho32_readfile): Renamed from ...
33382 (grub_macho_readfile32): ... to this.
33383 (grub_macho_filesize64): New prototype.
33384 (grub_macho_readfile64): Likewise.
33385 (grub_macho_parse32): Likewise.
33386 (grub_macho_parse64): Likewise.
33387 * loader/macho.c: Split into ...
33388 * loader/machoXX.c: ... and this. Replace 32 with XX.
33389 * loader/macho32.c: New file.
33390 * loader/macho64.c: Likewise.
33391 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33392 (grub_cmd_xnu_kernel): Make 32-bit only.
33393 (grub_cmd_xnu_kernel64): New function.
33394 (grub_xnu_load_driver): Support Mach-O 64.
33395 (grub_cmd_xnu_mkext): Likewise.
33396 * util/grub.d/30_os-prober.in (osx_entry): New function.
33397 Generate entries for 64-bit boot too.
33399 Eliminate ad-hoc tree format in XNU and EfiEmu.
33401 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33402 * efiemu/pnvram.c: Rewritten to use environment variables.
33405 Inline utf16_to_utf8.
33407 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33408 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33410 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33412 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33413 * commands/usbtest.c (grub_usb_get_string): ... move here.
33414 (usb_print_str): Fix error handling.
33415 * include/grub/usb.h (grub_usb_get_string): Remove.
33417 UTF-8 to UTF-16 transformation.
33419 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33420 (charset_mod_SOURCES): New variable.
33421 (charset_mod_CFLAGS): Likewise.
33422 (charset_mod_LDFLAGS): Likewise.
33423 * include/grub/utf.h: New file.
33424 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33426 Support for device properties.
33428 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33429 (grub_xnu_devprop_device_header): Likewise.
33430 (grub_xnu_devprop_device_descriptor): Likewise.
33431 (grub_xnu_devprop_add_device): New prototype.
33432 (grub_xnu_devprop_remove_device): Likewise.
33433 (grub_xnu_devprop_remove_property): Likewise.
33434 (grub_xnu_devprop_add_property_utf8): Likewise.
33435 (grub_xnu_devprop_add_property_utf16): Likewise.
33436 (grub_cpu_xnu_init): Likewise.
33437 (grub_cpu_xnu_fini): Likewise.
33438 (grub_cpu_xnu_unload): Likewise.
33439 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33440 (property_descriptor): Likewise.
33441 (devices): New variable.
33442 (grub_xnu_devprop_remove_property): New function.
33443 (grub_xnu_devprop_add_device): Likewise.
33444 (grub_xnu_devprop_remove_device): Likewise.
33445 (grub_xnu_devprop_add_property): Likewise.
33446 (grub_xnu_devprop_add_property_utf8): Likewise.
33447 (grub_xnu_devprop_add_property_utf16): Likewise.
33448 (hextoval): Likewise.
33449 (grub_cpu_xnu_fill_devprop): Likewise.
33450 (grub_cmd_devprop_load): Likewise.
33451 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33452 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33453 (cmd_devprop_load): New variable.
33454 (grub_cpu_xnu_init): New function.
33455 (grub_cpu_xnu_fini): Likewise.
33456 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33457 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33458 (grub_cmd_xnu_devtree): Likewise.
33459 (hextoval): New function.
33460 (unescape): Likewise.
33461 (grub_xnu_fill_devicetree): Likewise.
33463 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33464 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33466 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33468 Workaround for broken ATI VBE.
33470 * video/i386/pc/vbe.c (last_set_mode): New variable.
33471 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33472 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33473 (grub_video_vbe_setup): Don't check for reserved flag.
33475 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33477 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33478 the `find' command.
33480 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33482 UUID support for HFS.
33484 * fs/hfs.c (grub_hfs_uuid): New function.
33485 (grub_hfs_fs): New value .uuid.
33486 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33488 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33490 Fix a segfault with parsing unknown long options.
33492 * util/grub-mkrelpath.c (options): Zero terminate it.
33494 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33496 * include/grub/misc.h (grub_puts): New declaration.
33497 (grub_puts_): Likewise.
33498 * kern/misc.c (grub_puts): New definition.
33499 (grub_puts_): Likewise.
33501 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33503 * util/grub-probe.c (probe): Improve error message.
33505 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33507 * loader/i386/multiboot_elfxx.c
33508 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33511 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33513 Relocator framework
33515 * loader/i386/xnu_helper.S: Removed. All users updated.
33516 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33517 (relocator_mod_SOURCES): New variable.
33518 (relocator_mod_CFLAGS): Likewise.
33519 (relocator_mod_LDFLAGS): Likewise.
33520 (relocator_mod_ASFLAGS): Likewise.
33521 * conf/x86_64.rmk: Likewise.
33522 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33523 (grub_multiboot_payload_entry_offset): Likewise.
33524 (grub_multiboot_forward_relocator): Likewise.
33525 (grub_multiboot_forward_relocator_end): Likewise.
33526 (grub_multiboot_backward_relocator): Likewise.
33527 (grub_multiboot_backward_relocator_end): Likewise.
33528 (grub_multiboot_payload_eip): New variable.
33529 (grub_multiboot_payload_orig): Likewise.
33530 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33531 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33532 * include/grub/i386/memory.h
33533 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33534 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33535 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33536 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33537 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33538 * include/grub/i386/relocator.h: New file.
33539 * include/grub/x86_64/relocator.h: Likewise.
33540 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33541 (XNU_RELOCATOR): New macro.
33542 (grub_xnu_launcher_start): Remove.
33543 (grub_xnu_launcher_end): Likewise.
33544 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33545 (grub_xnu_heap_real_start): Remove.
33546 (grub_xnu_heap_start): Change to void *. All users updated.
33547 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33548 * lib/i386/relocator.c: New file.
33549 * lib/i386/relocator_asm.S: Likewise.
33550 * lib/i386/relocator_backward.S: Likewise.
33551 * lib/mips/relocator.c: Likewise.
33552 * lib/mips/relocator_asm.S: Likewise.
33553 * lib/relocator.c: Likewise.
33554 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33556 (playground): Likewise.
33557 (grub_multiboot_payload_orig): New variable.
33558 (grub_multiboot_payload_dest): Likewise.
33559 (grub_multiboot_payload_size): Likewise.
33560 (grub_multiboot_payload_eip): Likewise.
33561 (grub_multiboot_payload_esp): Likewise.
33562 (grub_multiboot_boot): Use grub_relocator32_boot.
33563 (grub_multiboot_unload): Free relocators.
33564 (grub_multiboot): Setup stack. Use relocators.
33565 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33566 (grub_multiboot_load_elfXX): Use relocators.
33567 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33568 (grub_multiboot_payload_size): Likewise.
33569 (grub_multiboot_payload_dest): Likewise.
33570 (grub_multiboot_payload_entry_offset): Likewise.
33571 (grub_multiboot_forward_relocator): Likewise.
33572 (grub_multiboot_backward_relocator): Likewise.
33573 (grub_multiboot_real_boot): Likewise.
33574 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33575 (grub_xnu_entry_point): Likewise.
33576 (grub_xnu_arg1): Likewise.
33577 (grub_xnu_stack): Likewise.
33578 (grub_xnu_launch): Removed.
33579 (grub_xnu_boot_resume): New function.
33580 (grub_xnu_boot): Use relocators.
33581 * loader/i386/xnu_helper.S: Removed.
33582 * loader/xnu.c (grub_xnu_heap_start): New variable.
33583 (grub_xnu_heap_size): Likewise.
33584 (grub_xnu_heap_malloc): Use relocators.
33585 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33587 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33589 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33592 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33594 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33595 GRUB_ERR_NONE before calling grub_env_set.
33597 2009-12-12 Robert Millan <rmh@aybabtu.com>
33599 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33600 * genmk.rb (video): New variable.
33601 (CLEANFILES, VIDEOFILES): Add #{video}.
33602 (#{video}): New target rule.
33603 * genvideolist.sh: New file.
33604 * Makefile.in (pkglib_DATA): Add video.lst.
33605 (video.lst): New target rule.
33606 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33608 * util/grub.d/30_os-prober.in: Replace `vbe' with
33609 ${GRUB_VIDEO_BACKEND}.
33611 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33613 * THANKS: Add David Miller.
33615 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33617 libpciaccess support.
33619 * Makefile.in (LIBPCIACCESS): New variable.
33620 (enable_grub_emu_pci): Likewise.
33621 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33622 util/pci.c and commands/lspci.c.
33623 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33624 * configure.ac (grub-emu-pci): New option.
33625 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33626 (grub_pci_device_unmap_range): Likewise.
33627 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33628 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33629 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33630 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33631 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33632 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33633 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33634 * include/grub/pciutils.h: New file.
33635 * util/pci.c: Likewise.
33637 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33639 * util/misc.c: Don't include <errno.h> twice.
33641 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33643 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33644 name in an error message.
33645 (grub_biosdisk_rw): Likewise.
33647 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33649 Eliminate NTFS 4Gib barrier.
33651 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33652 (read_run_data): Likewise.
33653 (grub_ntfs_read_run_list): Likewise.
33654 (grub_ntfs_read_block): Likewise.
33655 (grub_ntfs_iterate_dir): Likewise.
33656 (read_mft): Likewise.
33657 (read_data): Likewise.
33659 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33660 to avoid 64-bit division
33661 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33662 (grub_ntfs_rlst): Use grub_disk_addr_t.
33664 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33666 Eliminate grub-fstest 4Gib barrier.
33668 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33669 (read_file): Fix error reporting.
33671 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33673 Eliminate hexdump 4Gib barrier.
33675 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33676 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33678 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33680 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33683 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33685 Remove miscellaneous files in distclean target.
33687 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33689 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33691 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33692 if they're already set. This resolves the conflict between my
33693 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33694 fixing the --grub-probe option again.
33695 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33696 change on 2009-10-06, so that we now once again source
33697 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33699 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33701 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33702 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33703 `util/devicemap.c'.
33705 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33707 * include/grub/misc.h (grub_printf_): New declaration.
33708 * kern/misc.c (grub_printf_): New definition.
33709 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33710 instead of `grub_printf' and `_'.
33711 * normal/menu_entry.c (store_completion): Likewise.
33713 (grub_menu_entry_run): Likewise.
33714 * normal/menu_text.c (grub_wait_after_message): Likewise.
33715 (notify_booting): Likewise.
33716 (notify_fallback): Likewise.
33717 (notify_execution_failure): Likewise.
33719 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33721 * configure.ac: Check for vasprintf.
33722 * util/misc.c (asprintf): Move allocation from here ...
33723 (vasprintf): ... to here. New function.
33724 (xasprintf): New function.
33725 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33727 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33728 * util/grub-mkfont.c (write_font): Likewise.
33729 * util/grub-probe.c (probe): Likewise.
33730 * util/hostdisk.c (make_device_name): Likewise.
33732 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33734 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33735 anything even prefixed with 'cdrom' as a cdrom.
33737 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33739 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33742 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33744 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33745 grub_gettext_msg_list.
33746 (grub_gettext_gettranslation_from_position): Return const char *
33748 (grub_gettext_translate): Add the translated strings into a list,
33749 returns from the list if existing there.
33750 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33751 (grub_gettext_delete_list): Delete the list.
33752 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33753 lang environment variable is changed.
33754 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33756 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33758 Rename kernel.mod to kernel.img.
33760 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33761 (kernel_mod_EXPORTS): Rename to ...
33762 (kernel_img_EXPORTS): ... this.
33763 (kernel_mod_SOURCES): Rename to ...
33764 (kernel_img_SOURCES): ... this.
33765 (kernel_mod_HEADERS): Rename to ...
33766 (kernel_img_HEADERS): ... this. All users updated.
33767 (kernel_mod_CFLAGS): Rename to ...
33768 (kernel_img_CFLAGS): ... this.
33769 (kernel_mod_ASFLAGS): Rename to ...
33770 (kernel_img_ASFLAGS): ... this.
33771 (kernel_mod_LDFLAGS): Rename to ...
33772 (kernel_img_LDFLAGS): ... this.
33773 * conf/x86_64-efi.rmk: Likewise.
33774 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33775 (read_kernel_image): ... this. All users updated.
33776 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33778 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33780 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33781 (print_spaces): New function.
33782 (grub_print_ucs4): New function.
33783 (getstringwidth): New function.
33784 (print_message_indented): New function.
33785 (print_message): Gettexttize strings using print_message_indented.
33786 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33788 (get_entry_number): Gettextize and uses dynamic terminal width.
33789 (notify_booting, notify_fallback, notify_execution_failure):
33791 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33794 (grub_menu_entry_run): Likewise.
33795 * PO/POTFILES: Add normal/menu_entry.c.
33797 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33799 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33801 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33803 * util/grub-install.in: Install gettext .mo files.
33804 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33806 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33808 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33811 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33813 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33814 non-firmware-dependant one in realmode.S takes precedence.
33816 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33818 * commands/halt.c: Replace misc arch-specific headers with
33820 * commands/reboot.c: Likewise.
33821 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33823 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33824 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33825 (kernel_img_SOURCES): ... to here.
33827 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33828 * include/grub/i386/pc/init.h: Likewise.
33829 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33830 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33832 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33834 * include/grub/i386/halt.h: Remove.
33835 * include/grub/i386/reboot.h: Likewise.
33837 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33839 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33841 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33842 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33843 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33845 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33846 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33847 (usage): Add missing comma in printf.
33849 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33851 Use the same reboot approach on i386 coreboot and qemu as we do on
33854 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33855 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33856 * kern/i386/reboot.c: Remove.
33857 * include/grub/i386/reboot.h (grub_reboot): Export function.
33858 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33859 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33860 0xf000:0xfff0 instead of 0xffff:0x0000.
33861 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33862 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33864 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33866 Fix $srcdir != $objdir build.
33868 * Makefile.in (po/%.po): Rewrite as ...
33869 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33871 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33873 Fix GNU/Hurd grub-install crash.
33874 * util/grub-probe.c (probe): Try to access `path' only when it is not
33877 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33879 Correct module naming.
33881 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33882 (GRUB_MOD_INIT(efi_uga)): ... to this
33883 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33884 (GRUB_MOD_FINI(efi_uga)): ... to this
33885 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33886 (GRUB_MOD_INIT(efi_gop)): ... to this
33887 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33888 (GRUB_MOD_FINI(efi_gop)): ... to this
33890 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33892 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33894 (usage): Translate `arg' strings using gettext().
33895 Thanks to Jordi Mallach for the suggestion.
33897 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33899 GOP support. Based on patch from Bean
33900 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33902 * video/efi_gop.c: New file.
33903 * include/grub/efi/graphics_output.h: Likewise.
33904 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33905 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33907 * conf/x86_64-efi.rmk: Likewise.
33909 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33911 Rename efi_fb to efi_uga.
33913 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33915 (efi_fb_mod_SOURCES): Rename this ...
33916 (efi_uga_mod_SOURCES): ... to this.
33917 (efi_fb_mod_CFLAGS): Rename this ...
33918 (efi_uga_mod_CFLAGS): ... to this.
33919 (efi_fb_mod_LDFLAGS): Rename this ...
33920 (efi_uga_mod_LDFLAGS): ... to this.
33921 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33923 (efi_fb_mod_SOURCES): Rename this ...
33924 (efi_uga_mod_SOURCES): ... to this.
33925 (efi_fb_mod_CFLAGS): Rename this ...
33926 (efi_uga_mod_CFLAGS): ... to this.
33927 (efi_fb_mod_LDFLAGS): Rename this ...
33928 (efi_uga_mod_LDFLAGS): ... to this.
33929 * video/efi_fb.c: Move this ...
33930 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33932 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33934 * po/README: New file. Explain our PO file workflow.
33936 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33938 * po/ChangeLog: Remove. Move relevant entries back to ...
33939 * ChangeLog: ... here.
33940 * po/ca.po: Remove (now handled by TLP).
33941 * po/id.po: Likewise.
33942 * po/zh_CN.po: Likewise.
33943 * Makefile.in (LINGUAS): Initialize in a way that supports
33946 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33948 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33949 reliing on po/LINGUAS.
33950 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33951 (po/%.po): ... this.
33953 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33955 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33956 (main): Use `program_name' instead of nonexistent `progname'.
33958 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33960 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33961 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33963 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33965 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33967 * conf/i386-efi.rmk: Likewise.
33968 * conf/i386-ieee1275.rmk: Likewise.
33969 * conf/powerpc-ieee1275.rmk: Likewise.
33970 * conf/sparc64-ieee1275.rmk: Likewise.
33971 * conf/x86_64-efi.rmk: Likewise.
33973 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33975 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33977 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33979 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33981 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33983 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33984 (grub_mkdevicemap_SOURCES): New variable.
33985 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33986 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33987 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33988 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33989 (grub_mkdevicemap_SOURCES): Remove.
33990 * conf/i386-efi.rmk: Likewise.
33991 * conf/i386-ieee1275.rmk: Likewise.
33992 * conf/i386-pc.rmk: Likewise.
33993 * conf/powerpc-ieee1275.rmk: Likewise.
33994 * conf/sparc64-ieee1275.rmk: Likewise.
33995 * conf/x86_64-efi.rmk: Likewise.
33996 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33997 (usage): Fix strings to use `program_name'.
33998 (main): Initialize gettext.
33999 * util/grub-editenv.c: Likewise.
34000 * util/grub-emu.c: Likewise.
34001 * util/grub-fstest.c: Likewise.
34002 * util/grub-mkdevicemap.c: Likewise.
34003 * util/grub-mkfont.c: Likewise.
34004 * util/grub-mkrelpath.c: Likewise.
34005 * util/grub-pe2elf.c: Likewise.
34006 * util/grub-probe.c: Likewise.
34007 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34008 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34009 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34011 * util/misc.c: Include `"progname.h"'.
34012 (progname): Remove variable.
34013 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34015 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34017 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34018 printf and print a newline after the menuentry header line.
34019 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34021 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34023 autoconf >= 2.60 support $(localedir).
34025 * INSTALL: Note that autoconf 2.60 is required.
34026 * configure.ac (AC_PREREQ): Bump to 2.60.
34027 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34028 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34030 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34032 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34035 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34037 * normal/main.c (grub_normal_read_line): Fix off-by-one
34040 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34042 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34043 "parser.grub" in grub_command_execute() call.
34045 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34047 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34048 * conf/i386-efi.rmk: Likewise.
34049 * conf/i386-ieee1275.rmk: Likewise.
34050 * conf/i386-pc.rmk: Likewise.
34051 * conf/powerpc-ieee1275.rmk: Likewise.
34052 * conf/sparc64-ieee1275.rmk: Likewise.
34053 * conf/x86_64-efi.rmk: Likewise.
34054 * gettext/gettex.c: Include <grub/i18n.h>.
34055 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34057 * include/grub/i18n.h: ... to here
34058 * include/grub/i18n.h: ... to here.
34059 * kern/misc.c: Include <grub/i18n.h>
34060 (grub_gettext_dummy): Move above user.
34062 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34064 * util/Makefile.in (install-local): Convert a `for' into a normal
34067 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34069 * autogen.sh: Add automake call.
34070 * config.guess: Remove.
34071 * config.sub: Likewise.
34072 * install-sh: Likewise.
34074 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34076 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34078 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34080 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34081 function to a normal shell `for'.
34083 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34085 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34087 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34089 * util/grub-mkrelpath.c: New file.
34090 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34091 (grub_mkrelpath_SOURCES): New variable.
34092 * include/grub/util/misc.h: New function prototype.
34093 * util/misc.c (make_system_path_relative_to_its_root): New function.
34095 * util/grub-mkconfig_lib.in (bindir): New variable.
34096 (grub_mkrelpath): Likewise.
34097 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34099 * util/probe.c (probe): Make the file path relative to its root.
34100 Change a info message to use the GRUB path. Enable again the
34101 check if we can read the file with GRUB facilities.
34103 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34106 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34108 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34111 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34113 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34116 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34118 * util/getroot.c (grub_util_is_dmraid): New function.
34119 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34120 devices as normal ones, not as LVM.
34122 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34124 * conf/common.rmk: Add grub-gettext_lib target and updates
34125 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34127 * gettext/gettext.c: New file. (Reads mo files).
34128 * include/grub/file.h (grub_file_pread): New prototype.
34129 * include/grub/i18n.h (_): New prototype.
34130 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34132 * kern/misc.c (grub_gettext_dummy): New function.
34133 * normal/menu_text.c: Include <grub/i18n.h>.
34134 * normal/menu_text.c (print_timeout): Gettexttize string.
34135 * normal/menu_text.c (print_message): Gettexttize string.
34136 * po/POTFILES: Add `normal/menu_text.c'.
34137 * po/ca.po: Add new translations.
34138 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34139 gettext module and defines locale_dir and lang in grub.cfg.
34140 * NEWS: Add gettext support.
34142 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34144 * util/hostdisk.c: Include `<grub/i18n.h>'.
34145 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34146 (make_device_name): Rewrite using asprintf.
34147 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34148 (find_system_device): If a device is not found, generate one just
34149 by reusing the OS path name.
34150 (read_device_map): Make it permissible for device.map not to exist.
34152 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34154 * script/sh/execute.c: Move from here ...
34155 * script/execute.c: ... to here. Update all users.
34156 * script/sh/function.c: Move from here ...
34157 * script/function.c: ... to here. Update all users.
34158 * script/sh/lexer.c: Move from here ...
34159 * script/lexer.c: ... to here. Update all users.
34160 * script/sh/main.c: Move from here ...
34161 * script/main.c: ... to here. Update all users.
34162 * script/sh/parser.y: Move from here ...
34163 * script/parser.y: ... to here. Update all users.
34164 * script/sh/script.c: Move from here ...
34165 * script/script.c: ... to here. Update all users.
34167 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34169 * configure.ac: Detect all `emu' platforms. Define
34170 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34171 --enable-grub-emu logic. Disable include/grub/machine
34172 symlink on `emu' platforms.
34174 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34175 * gensymlist.sh.in: Likewise.
34177 * include/grub/i386/coreboot/machine.h: Remove file.
34178 * include/grub/i386/efi/machine.h: Likewise.
34179 * include/grub/i386/ieee1275/machine.h: Likewise.
34180 * include/grub/i386/pc/machine.h: Likewise.
34181 * include/grub/i386/qemu/machine.h: Likewise.
34182 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34183 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34184 * include/grub/x86_64/efi/machine.h: Likewise.
34186 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34187 * commands/halt.c: Likewise.
34188 * commands/reboot.c: Likewise.
34189 * include/grub/autoefi.h: Likewise.
34190 * include/grub/i386/at_keyboard.h: Likewise.
34191 * include/grub/i386/kernel.h: Likewise.
34192 * include/grub/i386/loader.h: Likewise.
34193 * include/grub/i386/pc/memory.h: Likewise.
34194 * kern/dl.c: Likewise.
34195 * kern/i386/coreboot/init.c: Likewise.
34196 * loader/i386/bsd.c: Likewise.
34197 * loader/i386/linux.c: Likewise.
34198 * loader/multiboot_loader.c: Likewise.
34199 * term/i386/pc/serial.c: Likewise.
34200 * term/usb_keyboard.c: Likewise.
34202 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34203 `<grub/machine/machine.h>'
34204 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34205 * util/misc.c: Remove `<grub/machine/machine.h>' and
34206 `<grub/machine/time.h>'.
34208 * Makefile.in (enable_grub_emu): Remove variable.
34209 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34211 * conf/any-emu.rmk: New file.
34212 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34213 (grub_emu_init.c): Move from here ...
34214 * conf/any-emu.rmk: ... to here.
34216 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34217 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34218 * conf/any-emu.rmk: ... to here.
34220 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34222 * include/grub/parser.h (grub_parser_register): Document need
34223 of `name' parameter.
34224 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34225 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34228 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34230 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34232 * include/grub/i18n.h (N_): New macro.
34233 * util/mkisofs/mkisofs.h: Likewise.
34234 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34236 (usage): Use gettext() to translate help strings when printing them.
34238 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34240 Based on patch from Bean
34241 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34243 * video/efi_fb.c: New file.
34244 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34245 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34247 * conf/x86_64-efi.rmk: Likewise.
34249 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34251 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34252 * util/i386/pc/grub-setup.c: Likewise.
34254 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34256 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34258 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34259 file_get_storage_info to implement grub_guess_root_device.
34261 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34263 * Makefile.in (target): Use make's builtin $(shell) function
34264 instead of calling directly $(SHELL) to create the locale directories,
34265 inside the $(foreach) function.
34267 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34269 * util/grub-mkrescue.in: Print an error and usage if output option
34270 has not been given.
34272 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34274 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34275 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34276 root and /boot are on different devices.
34278 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34280 Fix build for srcdir != objdir.
34282 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34283 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34285 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34286 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34287 reference for input.
34289 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34291 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34292 or hardlinking it). Remove -J option, Joliet is not compatible with
34293 multiple source directories.
34295 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34296 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34298 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34299 (process_input_dir): New function. Process an arbitrary input
34301 Misc adjustments to support both "override mode" and system-wide mode.
34303 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34305 * configure.ac (UNIFONT_BDF): Rename to ...
34306 (FONT_SOURCE): ... this. Update all users.
34308 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34310 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34311 to the list of unifont files to look for.
34313 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34315 Patch from Joe Auricchio <jauricchio@gmail.com>
34316 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34317 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34318 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34320 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34322 * Makefile.in (install-local): Add a missing backslash.
34324 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34326 * include/grub/x86_64/io.h: New file.
34328 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34330 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34331 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34332 Include `"progname.h"'.
34333 (main): Initialize gettext.
34334 * util/i386/pc/grub-setup.c: Gettexttize.
34335 * util/i386/pc/grub-mkimage.c: Likewise.
34337 * Makefile.in (po/*.po): Redefine as ...
34338 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34340 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34342 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34344 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34345 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34346 (program_name): Remove.
34347 (main): Initialize gettext support.
34348 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34349 Include `<libintl.h>'.
34352 * util/mkisofs/eltorito.c: Gettexttize.
34353 * util/mkisofs/joliet.c: Likewise.
34354 * util/mkisofs/mkisofs.c: Likewise.
34355 * util/mkisofs/multi.c: Likewise.
34356 * util/mkisofs/rock.c: Likewise.
34357 * util/mkisofs/tree.c: Likewise.
34358 * util/mkisofs/write.c: Likewise.
34360 * po/POTFILES: Update with new files.
34362 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34364 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34365 * util/mkisofs/iso9660.h: Likewise.
34366 * util/mkisofs/joliet.c: Likewise.
34367 * util/mkisofs/mkisofs.c: Likewise.
34368 * util/mkisofs/mkisofs.h: Likewise.
34369 * util/mkisofs/rock.c: Likewise.
34370 * util/mkisofs/tree.c: Likewise.
34371 * util/mkisofs/write.c: Likewise.
34373 * util/mkisofs/eltorito.c (rcsid): Remove.
34374 * util/mkisofs/hash.c: Likewise.
34375 * util/mkisofs/joliet.c: Likewise.
34376 * util/mkisofs/name.c: Likewise.
34377 * util/mkisofs/rock.c: Likewise.
34378 * util/mkisofs/tree.c: Likewise.
34379 * util/mkisofs/write.c: Likewise.
34381 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34383 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34384 instead of static allocation.
34385 * util/mkisofs/match.h: Likewise.
34387 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34389 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34390 and `util/grub.d/10_linux.in'.
34391 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34392 translatable Shell files.
34394 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34396 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34398 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34400 * INSTALL: Document Automake is needed for bootstrap.
34401 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34402 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34403 Add gettext initialization.
34404 (kfreebsd_entry): Make menuentry output translatable.
34406 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34408 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34409 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34410 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34411 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34412 (LINGUAS): Auto-generate using `po/LINGUAS'.
34413 * po/LINGUAS: New file.
34415 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34417 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34419 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34420 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34421 bindtextdomain() calls for gettext initialization.
34423 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34425 * gnulib/progname.c: New file (imported from Gnulib).
34426 * gnulib/progname.h: Likewise.
34427 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34428 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34429 (usage): Replace `progname' with `program_name'.
34430 (main): Use set_program_name() for program name initialization.
34432 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34434 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34436 * Makefile.in (CPPFLAGS): ... to here.
34438 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34440 * aclocal.m4: Move from here ...
34441 * acinclude.m4: ... to here.
34442 * autogen.sh: Add call to `aclocal'.
34443 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34445 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34447 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34448 (LINGUAS): New variable.
34449 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34450 (install-local): Install MO files.
34451 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34452 * include/grub/i18n.h: New file.
34453 * po/POTFILES: New file.
34454 * po/ca.po: New file.
34455 * util/grub.d/10_linux.in (bindir): New variable.
34456 Add gettext initialization.
34457 (linux_entry): Make menuentry output translatable.
34458 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34459 (usage): Make --help output translatable.
34460 (main): Initialize gettext.
34462 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34464 * import_gcry.py: New file (written by Vladimir with minor
34466 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34468 * INSTALL: Document that Python is required for bootstrap.
34470 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34472 Import ciphers from libgcrypt 1.4.4.
34474 * lib/libgcrypt/cipher/ChangeLog
34475 * lib/libgcrypt/cipher/ac.c
34476 * lib/libgcrypt/cipher/arcfour.c
34477 * lib/libgcrypt/cipher/bithelp.h
34478 * lib/libgcrypt/cipher/blowfish.c
34479 * lib/libgcrypt/cipher/camellia-glue.c
34480 * lib/libgcrypt/cipher/camellia.c
34481 * lib/libgcrypt/cipher/camellia.h
34482 * lib/libgcrypt/cipher/cast5.c
34483 * lib/libgcrypt/cipher/cipher.c
34484 * lib/libgcrypt/cipher/crc.c
34485 * lib/libgcrypt/cipher/des.c
34486 * lib/libgcrypt/cipher/dsa.c
34487 * lib/libgcrypt/cipher/ecc.c
34488 * lib/libgcrypt/cipher/elgamal.c
34489 * lib/libgcrypt/cipher/hash-common.c
34490 * lib/libgcrypt/cipher/hash-common.h
34491 * lib/libgcrypt/cipher/hmac-tests.c
34492 * lib/libgcrypt/cipher/md.c
34493 * lib/libgcrypt/cipher/md4.c
34494 * lib/libgcrypt/cipher/md5.c
34495 * lib/libgcrypt/cipher/primegen.c
34496 * lib/libgcrypt/cipher/pubkey.c
34497 * lib/libgcrypt/cipher/rfc2268.c
34498 * lib/libgcrypt/cipher/rijndael-tables.h
34499 * lib/libgcrypt/cipher/rijndael.c
34500 * lib/libgcrypt/cipher/rmd.h
34501 * lib/libgcrypt/cipher/rmd160.c
34502 * lib/libgcrypt/cipher/rsa.c
34503 * lib/libgcrypt/cipher/seed.c
34504 * lib/libgcrypt/cipher/serpent.c
34505 * lib/libgcrypt/cipher/sha1.c
34506 * lib/libgcrypt/cipher/sha256.c
34507 * lib/libgcrypt/cipher/sha512.c
34508 * lib/libgcrypt/cipher/tiger.c
34509 * lib/libgcrypt/cipher/twofish.c
34510 * lib/libgcrypt/cipher/whirlpool.c
34512 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34514 Fix build for systems without error().
34516 * gnulib/error.c: New file (imported from Gnulib).
34517 * gnulib/error.h: Likewise.
34518 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34519 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34520 (this variable is now used by error()).
34522 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34524 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34525 instead of relying that char is signed.
34527 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34529 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34530 blocksize different from specified.
34531 (grub_pxefs_read): Likewise.
34533 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34535 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34537 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34538 (grub_ata_readwrite): Likewise. Update 2 format strings.
34539 (grub_atapi_read): Likewise.
34541 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34542 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34543 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34544 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34545 (ata_mod_LDFLAGS): Move from here ...
34546 * conf/i386.rmk: ... to here ...
34547 * conf/x86_64-efi.rmk: ... and here.
34548 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34549 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34551 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34553 Relicense multiboot.h, with RMS' blessing.
34555 * include/multiboot.h: Change to X11 license.
34557 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34559 Support --version in grub-mkisofs.
34561 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34562 (OPTION_VERSION): New macro.
34563 (ld_options): Recognize --version.
34564 (usage): Move `program_name' from here ...
34565 (program_name): ... to here. Add `static' qualifier.
34566 (main): Recognize `OPTION_VERSION'.
34568 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34570 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34571 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34573 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34575 Fix help2man generation for mkisofs.
34577 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34578 (usage): Send output to stdout (rather than stderr).
34580 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34582 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34583 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34584 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34585 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34586 (bin_SCRIPTS): Add `grub-mkfloppy'.
34587 (grub_mkfloppy_SOURCES): New variable.
34589 * util/grub-mkrescue.in: New file.
34590 * util/i386/pc/grub-mkfloppy.in: New file.
34592 * util/i386/coreboot/grub-mkrescue.in: Remove.
34593 * util/i386/pc/grub-mkrescue.in: Remove.
34595 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34597 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34599 * include/multiboot.h (struct multiboot_header): ... to here. Update
34601 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34603 * include/multiboot.h (struct multiboot_info): ... to here. Update
34605 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34607 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34609 * include/grub/multiboot.h (struct grub_mod_list): Move
34611 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34614 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34616 * include/multiboot2.h (multiboot_word): Rename from this ...
34617 (multiboot2_word): ... to this. Update all users.
34618 (multiboot_header): Rename from this ...
34619 (multiboot2_header): ... to this. Update all users.
34620 (multiboot_tag_header): Rename from this ...
34621 (multiboot2_tag_header): ... to this. Update all users.
34622 (multiboot_tag_start): Rename from this ...
34623 (multiboot2_tag_start): ... to this. Update all users.
34624 (multiboot_tag_name): Rename from this ...
34625 (multiboot2_tag_name): ... to this. Update all users.
34626 (multiboot_tag_module): Rename from this ...
34627 (multiboot2_tag_module): ... to this. Update all users.
34628 (multiboot_tag_memory): Rename from this ...
34629 (multiboot2_tag_memory): ... to this. Update all users.
34630 (multiboot_tag_unused): Rename from this ...
34631 (multiboot2_tag_unused): ... to this. Update all users.
34632 (multiboot_tag_end): Rename from this ...
34633 (multiboot2_tag_end): ... to this. Update all users.
34635 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34637 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34638 this platform we should support Multiboot1 first.
34640 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34641 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34642 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34644 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34646 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34647 of write calls (converting them to fwrite() if they aren't already).
34648 (get_torito_desc): Likewise.
34649 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34651 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34653 * util/i386/pc/grub-install.in: Move from here ...
34654 * util/grub-install.in: ... to here. Update all users.
34656 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34658 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34660 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34662 Support for El Torito without floppy emulation.
34664 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34665 (init_boot_catalog): Improve error handling.
34666 (get_torito_desc): Don't use floppy emulation unless requested by
34667 user. Patch boot information table when requested via
34668 `-boot-info-table'.
34669 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34670 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34671 (use_boot_info_table): New variables.
34672 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34673 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34674 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34675 `--eltorito-emul-floppy'.
34676 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34677 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34678 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34679 (use_boot_info_table, get_731): New prototypes.
34680 * util/mkisofs/write.c (get_731): New function.
34682 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34684 Fix the generation of the man page.
34686 * util/pc/i386/grub-install.in: Source
34687 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34689 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34691 Large file support for grub-mkisofs.
34693 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34694 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34695 (session_start): Upgrade type to `uint64_t'. Update all users.
34696 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34697 (struct directory_entry): Upgrade type of `starting_block' and
34698 `size' to `uint64_t'. Update all users.
34699 (struct deferred): Remove unused structure.
34700 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34702 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34703 file is larger than `UINT32_MAX'.
34704 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34705 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34707 (struct deferred_write): Upgrade type of `extent' and `size' to
34708 `uint64_t'. Update all users.
34709 (last_extent_written): Upgrade type to `uint64_t'. Update all
34711 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34712 Update all users. Upgrade type of `remain' to `int64_t' and
34713 `use' to `size_t'. Use error() to handle fread() errors.
34714 (write_files): Rely on write_one_file() rather than calling
34715 xfwrite() directly.
34717 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34719 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34721 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34723 * util/mkisofs/fnmatch.c: Remove.
34724 * util/mkisofs/getopt1.c: Likewise.
34725 * util/mkisofs/getopt.c: Likewise.
34726 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34727 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34728 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34729 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34730 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34732 * configure.ac: Detect `mingw32msvc' host_os.
34733 Check for lstat(), getuid() and getgid().
34735 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34736 instances of `u_char' with `uint8_t'.
34738 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34739 [!HAVE_GETUID] (getuid): New function (stub).
34740 [!HAVE_GETGID] (getgid): Likewise.
34741 [!HAVE_LSTAT] (lstat): Likewise.
34742 [!S_IROTH] (S_IROTH): New macro (dummy).
34743 [!S_IRGRP] (S_IRGRP): Likewise.
34745 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34747 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34748 conditional expression).
34750 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34752 Import from Gnulib.
34754 * gnulib/fnmatch.c: New file.
34755 * gnulib/fnmatch.h: Likewise.
34756 * gnulib/fnmatch_loop.c: Likewise.
34757 * gnulib/getopt.c: Likewise.
34758 * gnulib/getopt.h: Likewise.
34759 * gnulib/getopt1.c: Likewise.
34760 * gnulib/getopt_int.h: Likewise.
34761 * gnulib/gettext.h: Likewise.
34763 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34765 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34766 * normal/handler.c (read_handler_list): Likewise.
34768 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34772 * kern/command.c (grub_register_command_prio): Use
34773 grub_zalloc() instead of explicitly zeroing data.
34774 * kern/list.c: Include `<grub/mm.h>'.
34775 (grub_named_list_find): Replace `0' with `NULL'.
34776 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34777 (fs_module_list): Change type to `grub_named_list_t'. Update all
34779 * normal/dyncmd.c (read_command_list): Add space between function
34780 call and parenthesis.
34781 * normal/handler.c (read_handler_list): Likewise.
34783 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34785 * normal/auth.c (punishment_delay): Moved from here ...
34786 (grub_auth_strcmp): ... to here (inside function).
34788 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34790 * include/grub/list.h (struct grub_named_list): Remove `const'
34791 qualifier from `name'.
34792 (struct grub_prio_list): Likewise.
34794 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34796 * normal/auth.c: Include `<grub/time.h>'.
34797 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34799 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34801 * normal/auth.c (punishment_delay): New variable.
34802 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34803 (grub_auth_check_authentication): Punish failed login attempts with
34804 an incremental (2^N) delay.
34806 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34808 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34809 path with $(srcdir).
34811 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34813 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34815 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34817 * util/i386/coreboot/grub-mkrescue.in: New file.
34818 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34821 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34822 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34823 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34825 * util/mkisofs/defaults.h: New file.
34826 * util/mkisofs/eltorito.c: Likewise.
34827 * util/mkisofs/exclude.h: Likewise.
34828 * util/mkisofs/fnmatch.c: Likewise.
34829 * util/mkisofs/getopt.c: Likewise.
34830 * util/mkisofs/getopt1.c: Likewise.
34831 * util/mkisofs/hash.c: Likewise.
34832 * util/mkisofs/include/fctldefs.h: Likewise.
34833 * util/mkisofs/include/mconfig.h: Likewise.
34834 * util/mkisofs/include/prototyp.h: Likewise.
34835 * util/mkisofs/include/statdefs.h: Likewise.
34836 * util/mkisofs/iso9660.h: Likewise.
34837 * util/mkisofs/joliet.c: Likewise.
34838 * util/mkisofs/match.c: Likewise.
34839 * util/mkisofs/match.h: Likewise.
34840 * util/mkisofs/mkisofs.c: Likewise.
34841 * util/mkisofs/mkisofs.h: Likewise.
34842 * util/mkisofs/multi.c: Likewise.
34843 * util/mkisofs/name.c: Likewise.
34844 * util/mkisofs/rock.c: Likewise.
34845 * util/mkisofs/tree.c: Likewise.
34846 * util/mkisofs/write.c: Likewise.
34848 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34850 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34853 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34855 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34856 `grub-mkimage' (and use $0 when possible).
34858 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34860 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34861 error message for excessively large memory map.
34863 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34865 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34868 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34870 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34871 message for coreboot users.
34873 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34875 Fix build with GNU gold.
34877 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34878 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34879 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34881 * aclocal.m4: Likewise.
34883 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34885 * configure.ac (AC_PREREQ): Bump to 2.59d.
34886 * INSTALL: Make it more clear when Autoconf and Ruby are
34887 needed and when to run `./autogen.sh'.
34889 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34891 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34894 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34896 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34898 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34900 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34901 giving it to GNU Mach.
34903 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34905 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34906 GNU partition number to get internal GRUB partition number.
34908 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34910 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34911 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34913 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34915 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34916 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34919 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34921 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34923 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34927 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34928 `-isystem=$(srcdir)/include'.
34930 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34932 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34933 checked (grub-install doesn't currently rely on it).
34935 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34939 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34940 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34941 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34942 * conf/i386-ieee1275.rmk: Likewise.
34943 * conf/i386-pc.rmk: Likewise.
34944 * conf/powerpc-ieee1275.rmk: Likewise.
34945 * conf/sparc64-ieee1275.rmk: Likewise.
34946 * conf/x86_64-efi.rmk: Likewise.
34948 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34950 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34952 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34954 * include/grub/misc.h: Stop checking for APPLE_CC.
34956 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34958 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34959 doesn't cause an infinite call loop.
34961 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34963 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34966 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34968 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34970 * Makefile.in: Likewise.
34972 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34974 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34976 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34978 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34980 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34982 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34984 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34986 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34988 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34990 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34992 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34993 in $(MAKEINFO) invocation. This makes it clear in output that
34994 errors are being ignored.
34996 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34998 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35000 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35001 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35002 * conf/i386-ieee1275.rmk: Likewise.
35003 * conf/i386-pc.rmk: Likewise.
35004 * conf/powerpc-ieee1275.rmk: Likewise.
35005 * conf/sparc64-ieee1275.rmk: Likewise.
35006 * conf/x86_64-efi.rmk: Likewise.
35008 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35010 * util/grub-editenv.c (main): If only a command is given, use
35011 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35012 (usage): FILENAME is now optional and has a default.
35014 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35016 Improve grub-mkconfig performance when there are several menu
35017 entries on a single filesystem.
35019 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35020 prepare_grub_to_access_device.
35021 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35022 * util/grub.d/30_os-prober.in: Likewise.
35024 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35026 * util/grub.d/10_freebsd.in: Remove.
35027 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35028 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35030 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35032 * docs/grub.cfg: Fix example usage of *BSD loaders.
35034 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35036 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35037 grub_util_error() call.
35039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35041 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35042 `reserved_first_sector' member.
35043 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35044 `reserved_first_sector' to 1.
35045 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35046 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35047 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35048 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35049 filesystems which begin at first sector.
35050 (options): New option --skip-fs-probe.
35051 (main): Handle --skip-fs-probe and pass it to setup().
35053 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35055 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35056 (memset): Fix function prototype.
35058 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35059 2009-10-25 Vasily Averin <vvs@parallels.com>
35061 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35062 `dirent.direntlen == 0'.
35064 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35066 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35068 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35070 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35072 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35073 `__trampoline_setup' and `__ucmpdi2'.
35074 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35075 that libgcc provides.
35077 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35079 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35080 * include/grub/sparc64/libgcc.h (memset): Likewise.
35081 * include/grub/misc.h (memset, memcmp): New function prototypes.
35083 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35085 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35087 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35089 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35091 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35092 * docs/grub.cfg: Compensate for recent change in multiboot
35093 loader (since 2009-08-14 it won't pass filename to payload).
35094 * util/grub.d/10_hurd.in: Likewise.
35096 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35098 * config.guess: Update to latest version from config git
35100 * config.sub: Likewise.
35102 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35104 Fix build on sparc64.
35106 * configure.ac: Perform checks for libgcc symbols before
35107 adding `-nostdlib' to LDFLAGS.
35109 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35111 Let user specify OpenBSD root device.
35113 * loader/i386/bsd.c (openbsd_root): New variable.
35114 (openbsd_opts): New option 'root'.
35115 (OPENBSD_ROOT_ARG): New macro.
35116 (grub_openbsd_boot): Use 'openbsd_root'.
35117 (grub_cmd_openbsd): Fill 'openbsd_root'.
35119 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35121 * NEWS: Misc adjustments.
35123 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35125 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35127 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35129 * configure.ac: Bump version to 1.97.
35131 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35133 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35134 -mno-3dnow on x86 architectures. Some toolchains enable these
35135 features by default, but they rely on registers that aren't enabled
35136 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35138 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35140 Make entry text a bit more readable.
35142 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35144 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35146 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35148 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35150 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35153 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35155 * configure.ac: Add missing dollar.
35157 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35159 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35161 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35162 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35164 * include/grub/sparc64/libgcc.h: Likewise. Use
35165 preprocessor conditionals.
35167 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35169 * conf/common.rmk (grub-dumpbios): Remove rule.
35170 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35171 * util/grub-dumpbios.in: Remove file.
35173 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35175 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35176 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35178 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35179 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35182 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35183 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35184 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35185 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35188 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35190 * term/tparm.c: Switch to GPLv3.
35192 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35194 * include/grub/i386/cpuid.h: Add header protection.
35196 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35198 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35200 * include/grub/i386/cpuid.h: New file.
35201 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35202 (has_longmode): Rename to ...
35203 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35204 `static' attribute.
35205 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35206 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35207 on a CPU that doesn't implement AMD64 instruction set.
35209 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35211 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35212 that version.texi is rebuilt on version number changes.
35214 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35216 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35219 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35221 * util/i386/pc/grub-install.in: Source
35222 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35223 that the --grub-probe option will work.
35224 * util/sparc64/ieee1275/grub-install.in: Likewise.
35226 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35228 * configure.ac: Bump version to 1.97~beta4.
35230 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35232 Resync grub-mkdevicemap in x86_64-efi.
35234 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35235 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35236 `util/devicemap.c'.
35238 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35240 * util/grub-editenv.c (create_envblk_file): Write new block with a
35241 .new suffix and then rename it into place, to ensure atomic
35244 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35246 Do not automatically install headers.
35248 * Makefile.in (include_DATA): Remove. Update all users.
35250 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35252 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35253 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35255 * util/osdetect.lua: Remove.
35256 * script/lua/lauxlib.c: Likewise.
35257 * script/lua/ldebug.c: Likewise.
35258 * script/lua/grub_main.c: Likewise.
35259 * script/lua/lauxlib.h: Likewise.
35260 * script/lua/ldebug.h: Likewise.
35261 * script/lua/ltablib.c: Likewise.
35262 * script/lua/liolib.c: Likewise.
35263 * script/lua/lstrlib.c: Likewise.
35264 * script/lua/lualib.h: Likewise.
35265 * script/lua/ldo.c: Likewise.
35266 * script/lua/ldump.c: Likewise.
35267 * script/lua/ldo.h: Likewise.
35268 * script/lua/loslib.c: Likewise.
35269 * script/lua/lundump.c: Likewise.
35270 * script/lua/grub_lib.c: Likewise.
35271 * script/lua/ldblib.c: Likewise.
35272 * script/lua/lundump.h: Likewise.
35273 * script/lua/lmem.c: Likewise.
35274 * script/lua/grub_lib.h: Likewise.
35275 * script/lua/lmathlib.c: Likewise.
35276 * script/lua/lstate.c: Likewise.
35277 * script/lua/ltm.c: Likewise.
35278 * script/lua/lvm.c: Likewise.
35279 * script/lua/lmem.h: Likewise.
35280 * script/lua/lstate.h: Likewise.
35281 * script/lua/ltm.h: Likewise.
35282 * script/lua/ltable.c: Likewise.
35283 * script/lua/lvm.h: Likewise.
35284 * script/lua/llex.c: Likewise.
35285 * script/lua/lgc.c: Likewise.
35286 * script/lua/grub_lua.h: Likewise.
35287 * script/lua/loadlib.c: Likewise.
35288 * script/lua/lfunc.c: Likewise.
35289 * script/lua/lopcodes.c: Likewise.
35290 * script/lua/lparser.c: Likewise.
35291 * script/lua/ltable.h: Likewise.
35292 * script/lua/llex.h: Likewise.
35293 * script/lua/lgc.h: Likewise.
35294 * script/lua/lfunc.h: Likewise.
35295 * script/lua/lbaselib.c: Likewise.
35296 * script/lua/lopcodes.h: Likewise.
35297 * script/lua/lparser.h: Likewise.
35298 * script/lua/lzio.c: Likewise.
35299 * script/lua/linit.c: Likewise.
35300 * script/lua/lobject.c: Likewise.
35301 * script/lua/llimits.h: Likewise.
35302 * script/lua/lstring.c: Likewise.
35303 * script/lua/lzio.h: Likewise.
35304 * script/lua/lapi.c: Likewise.
35305 * script/lua/lcode.c: Likewise.
35306 * script/lua/lua.h: Likewise.
35307 * script/lua/lobject.h: Likewise.
35308 * script/lua/lstring.h: Likewise.
35309 * script/lua/lapi.h: Likewise.
35310 * script/lua/lcode.h: Likewise.
35311 * script/lua/luaconf.h: Likewise.
35313 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35315 * docs/grub.texi (Command-line and menu entry commands): Document
35316 date and echo commands.
35318 2009-09-24 Pavel Roskin <proski@gnu.org>
35320 * include/grub/kernel.h (struct grub_module_header): Remove
35321 `grub_module_header_types'. Make `type' unsigned. Make `size'
35322 32-bit on all platforms.
35323 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35324 8-bit field. Use grub_host_to_target32() for `size'.
35325 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35326 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35327 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35329 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35331 Fix "lost keypress" bug in at_keyboard.
35333 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35334 Checks for readyness of input buffer (without flushing it).
35335 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35336 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35338 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35340 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35341 size check within GRUB_MACHINE_PCBIOS section.
35343 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35345 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35347 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35348 KEYBOARD_ISREADY check.
35349 (grub_at_keyboard_checkkey): Rename to ...
35350 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35351 Remove gratuitous cast.
35353 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35355 * configure.ac: Call AC_PROG_MKDIR_P.
35356 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35357 version.texi in $(builddir) rather than $(srcdir).
35358 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35359 to makeinfo's @include search path.
35361 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35363 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35365 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35367 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35370 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35372 Build info documentation. Some code borrowed from Automake.
35374 * configure.ac: Check for makeinfo.
35375 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35376 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35378 (MOSTLYCLEANFILES): Add vti.tmp.
35379 (docs/version.texi, docs/stamp-vti): Update automatically.
35380 (docs/grub.info): Build info documentation. Use --force and ignore
35382 (all-local): Add $(INFOS).
35383 (install-local): Install info files.
35384 (uninstall): Uninstall info files.
35385 * docs/version.texi: Remove from revision control. This file is
35386 automatically generated on build now.
35387 * gendistlist.sh: Add `*.info'.
35389 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35391 * kern/term.c: Fix indentation.
35393 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35395 * util/hostdisk.c: Fix a comment.
35397 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35399 Fix regression introduced in r2539.
35401 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35404 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35406 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35407 os-prober. Under normal operation, it does not print anything to
35408 stderr; if it does, we need to debug it, and throwing away stderr
35409 makes that excessively difficult.
35411 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35413 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35415 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35417 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35418 AC_LANG_PROGRAM from autoconf.
35419 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35420 prototypes (fixes warning).
35422 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35423 `--disable-werror' was used.
35425 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35427 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35428 uninitialized `lastaddr'.
35430 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35432 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35434 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35436 * commands/test.c (get_fileinfo): Return immediately if
35437 grub_fs_probe fails.
35439 2009-09-14 José Martínez <xosemp@gmail.com>
35441 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35443 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35445 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35448 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35450 * configure.ac: Remove --enable-grub-pe2elf. Only build
35451 grub-pe2elf when needed by the build system itself.
35452 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35454 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35456 * configure.ac: Bump version to 1.97~beta3.
35457 * docs/version.texi: Likewise.
35459 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35461 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35462 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35464 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35465 (grub_linux_setup_video): ... to here (with some adjustments).
35467 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35469 Fix memory corruption issue (spotted by Colin Watson).
35471 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35472 causing returned size to be stored in an incorrect memory location.
35473 Fix use of uninitialized value when storing the returned size.
35475 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35477 Change clean rules to properly remove files
35479 * genmk.rb: add new clean rules
35480 * Makefile.in (clean): add the new targets
35481 (mostlyclean): likewise
35483 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35485 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35487 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35488 non-resident files.
35490 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35492 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35493 part of bug #27349.
35495 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35497 * util/grub-mkconfig.in: Make the created config mode 400 and
35498 print a warning if it fails.
35500 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35502 * util/grub.d/40_custom.in: Ask user to type custom entries below
35503 comment, rather than below 'exec tail' line.
35505 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35507 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35508 visible in grub.cfg.
35510 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35512 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35515 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35517 * docs/grub.cfg: Add an example menu entry for memtest86+.
35519 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35521 * config.guess: Update to latest version from config git.
35522 * config.sub: Likewise.
35524 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35526 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35527 unknown-command case. Fixes bug #27320.
35529 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35531 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35532 `help' if the command exists.
35534 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35536 * INSTALL: Require GCC 4.1.3 or later.
35538 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35540 * Makefile.in (RMKFILES): add i386-qemu.rmk
35541 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35542 $(srcdir)/stamp-h.in
35544 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35546 * util/grub-probe.c (probe): Comment out buggy codepath, which
35547 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35548 should be re-enabled after 1.97.
35550 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35552 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35555 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35557 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35558 unnecessary calls to grub_error.
35560 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35562 * NEWS: Mention `keystatus' and Unicode fonts.
35564 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35566 * configure.ac: Bump version to 1.97~beta2.
35567 * docs/version.texi: Likewise.
35569 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35571 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35572 containing unwind information in some cases where it previously did
35573 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35574 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35577 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35579 Embedding loadenv module into grub-emu
35581 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35583 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35584 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35585 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35588 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35590 2009-09-03 Magnus Granberg <zorry@ume.nu>
35592 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35593 include -fPIE in the default specs.
35594 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35597 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35599 * INSTALL: Note that GNU Bison 2.3 or later is required.
35601 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35603 * kern/i386/pc/startup.S: Fix typo.
35605 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35607 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35610 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35612 * docs/grub.texi (Naming convention): Describe one-based partition
35614 (Device syntax): Likewise.
35615 (File name syntax): Likewise.
35616 (Block list syntax): Likewise.
35617 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35619 (File name syntax): Likewise.
35620 (Command-line and menu entry commands): Document acpi, blocklist,
35621 crc, export, insmod, keystatus, ls, set, and unset commands.
35623 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35625 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35626 to avoid implying that only one of --shift, --ctrl, or --alt may be
35629 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35631 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35632 rather than comparing against S_IFREG, which will almost never work.
35634 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35636 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35637 (write_blocklists): Likewise.
35639 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35641 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35642 argument to grub_printf.
35644 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35646 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35649 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35651 * kern/file.c (grub_file_read): Spelling fix
35653 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35655 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35656 loading of headers in some cases.
35658 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35660 * configure.ac: Bump version to 1.97~beta1.
35661 * docs/version.texi: Likewise.
35663 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35665 * include/grub/i386/xnu.h: Add license header.
35666 include grub/err.h explicitly.
35668 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35670 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35671 to `ufs' in the vfs.root.mountfrom kernel parameter.
35673 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35675 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35677 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35678 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35680 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35681 `ARRAY_SIZE' macro.
35683 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35685 * kern/file.c (grub_file_read): Check offset.
35686 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35687 * fs/jfs.c (grub_jfs_read_file): Likewise.
35688 * fs/ntfs.c (grub_ntfs_read): Likewise.
35689 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35690 * fs/minix.c (grub_minix_read_file): Correct offset check.
35691 * fs/ufs.c (grub_ufs_read_file): Likewise.
35693 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35695 * term/i386/pc/console.c (bios_data_area): Cast
35696 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35698 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35700 1-bit optimised blitters.
35702 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35704 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35705 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35706 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35707 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35708 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35709 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35710 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35712 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35713 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35714 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35715 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35716 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35717 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35718 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35720 * video/video.c (grub_video_get_blit_format): Return
35721 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35723 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35725 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35726 the first argument to grub_printf.
35728 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35729 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35731 Add `getkeystatus' terminal method. Add a new `keystatus' command
35734 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35735 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35736 modifier key bitmasks.
35737 (struct grub_term_input): Add `getkeystatus' member.
35738 (grub_getkeystatus): Add prototype.
35739 * kern/term.c (grub_getkeystatus): New function.
35741 * include/grub/i386/pc/memory.h
35742 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35743 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35745 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35746 (grub_console_term_input): Set `getkeystatus' member.
35747 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35749 (grub_usb_keyboard_getreport): Likewise.
35750 (grub_usb_keyboard_checkkey): Likewise.
35751 (grub_usb_keyboard_getkeystatus): New function.
35752 (grub_usb_keyboard_term): Set `getkeystatus' member.
35754 * commands/keystatus.c: New file.
35755 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35756 (keystatus_mod_SOURCES): New variable.
35757 (keystatus_mod_CFLAGS): Likewise.
35758 (keystatus_mod_LDFLAGS): Likewise.
35759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35760 commands/keystatus.c.
35761 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35763 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35768 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35770 Split befs.mod and afs.mod into *_be.mod and *.mod
35772 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35773 (grub_fstest_SOURCES): Likewise.
35774 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35775 (afs_be_mod_SOURCES): New variable.
35776 (afs_be_mod_CFLAGS): Likewise.
35777 (afs_be_mod_LDFLAGS): Likewise.
35778 (befs_be_mod_SOURCES): Likewise.
35779 (befs_be_mod_CFLAGS): Likewise.
35780 (befs_be_mod_LDFLAGS): Likewise.
35781 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35782 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35783 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35784 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35785 (grub_emu_SOURCES): Likewise.
35786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35787 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35788 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35789 * fs/afs_be.c: New file.
35790 * fs/befs_be.c: New file.
35791 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35792 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35793 (U16): Replaced with ...
35794 (grub_afs_to_cpu16): ...this. All users updated.
35795 (U32): Replaced with ...
35796 (grub_afs_to_cpu32): ...this. All users updated.
35797 (U64): Replaced with ...
35798 (grub_afs_to_cpu64): ...this. All users updated.
35799 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35800 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35801 (grub_afs_validate_sblock): Check only one endianness.
35802 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35803 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35804 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35805 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35806 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35807 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35808 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35809 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35811 2009-08-26 Bean <bean123ch@gmail.com>
35813 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35815 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35816 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35817 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35819 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35821 NetBSD memory map support.
35823 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35824 (grub_netbsd_btinfo_mmap_header): New structure.
35825 (grub_netbsd_btinfo_mmap_entry): Likewise.
35826 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35828 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35830 Enable bsd.mod on coreboot.
35832 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35833 (bsd_mod_SOURCES): New variable.
35834 (bsd_mod_CFLAGS): Likewise.
35835 (bsd_mod_LDFLAGS): Likewise.
35836 (bsd_mod_ASFLAGS): Likewise.
35837 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35838 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35840 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35842 Cleanup NetBSD root support.
35844 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35845 grub_bsd_get_device.
35848 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35850 * util/grub.d/00_header.in: Move check for the video backend of
35851 gfxterm from here ...
35852 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35853 a suitable video backend.
35855 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35857 Fix breakage in grub-setup.
35859 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35860 "msdos_partition_map".
35862 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35864 Fix breakage in normal/auth.c.
35866 * normal/auth.c (grub_iswordseparator): New function.
35868 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35870 Authentication support.
35872 * commands/password.c: New file.
35873 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35874 (password_mod_SOURCES): New variable.
35875 (password_mod_CFLAGS): Likewise.
35876 (password_mod_LDFLAGS): Likewise.
35877 (normal_mod_SOURCES): Add normal/auth.c.
35878 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35880 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35881 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35882 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35885 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35886 * include/grub/auth.h: New file.
35887 * include/grub/err.h (grub_err_t): New enum value
35888 GRUB_ERR_ACCESS_DENIED.
35889 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35891 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35892 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35894 * normal/auth.c: New file.
35895 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35896 (grub_cmdline_run): Don't allow to go to command line without
35898 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35899 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35900 menuentry without superuser rights.
35901 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35902 user isn't a superuser.
35904 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35906 Save space by inlining misc.c functions.
35908 * kern/misc.c (grub_iswordseparator): Made static.
35909 * kern/misc.c (grub_strcat): Moved from here ...
35910 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35911 * kern/misc.c (grub_strncat): Moved from here ...
35912 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35913 * kern/misc.c (grub_strcasecmp): Moved from here ...
35914 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35915 * kern/misc.c (grub_strncasecmp): Moved from here ...
35916 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35917 * kern/misc.c (grub_isalpha): Moved from here ...
35918 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35919 * kern/misc.c (grub_isdigit): Moved from here ...
35920 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35921 * kern/misc.c (grub_isgraph): Moved from here ...
35922 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35923 * kern/misc.c (grub_tolower): Moved from here ...
35924 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35926 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35928 * script/sh/function.c (grub_script_function_find): Cut error message
35929 not to flood terminal.
35930 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35932 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35934 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35936 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35937 `report' grub_uint8_t *.
35938 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35939 Use a 50-millisecond timeout rather than just repeating
35940 grub_usb_keyboard_getreport 50 times.
35941 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35943 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35945 Rename *_partition_map to part_*
35947 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35948 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35949 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35950 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35952 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35954 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35955 * util/grub-probe.c (probe_partmap): Don't transform partition name
35956 to get module name.
35958 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35960 Fix OpenBSD and NetBSD support.
35962 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35963 memory address conflict.
35964 (OPENBSD_MMAP_ACPI): New definition.
35965 (OPENBSD_MMAP_NVS): Likewise.
35966 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35967 and OPENBSD_MMAP_NVS.
35968 Add memory map terminator
35969 Explicit cast when calling grub_unix_real_boot.
35970 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35972 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35974 Let user specify NetBSD root device.
35976 * loader/i386/bsd.c (netbsd_root): New variable.
35977 (netbsd_opts): New option 'root'.
35978 (NETBSD_ROOT_ARG): New macro.
35979 (grub_netbsd_boot): Use 'netbsd_root'.
35980 (grub_bsd_unload): Free 'netbsd_root'.
35981 (grub_cmd_netbsd): Fill 'netbsd_root'.
35983 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35985 Support for 64-bit NetBSD.
35987 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35988 point when booting non-FreeBSD.
35990 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35992 Support --no-smp and --no-acpi for NetBSD.
35994 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35995 (NETBSD_AB_NOACPI): Likewise.
35996 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35997 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35999 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36001 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36003 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36004 errors. Call grub_error when needed.
36006 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36008 * commands/search.c (search_fs): Try searching without autoload first.
36009 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36010 filesystem module explicitly for faster booting.
36012 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36014 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36016 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36018 * util/grub.d/30_os-prober.in: Disable os-prober if
36019 `GRUB_DISABLE_OS_PROBER' was set to true.
36021 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36023 * partmap/pc.c: Rename to ...
36024 * partmap/msdos.c: ... this. Update all users.
36025 (grub_pc_partition_map): Rename to ...
36026 (grub_msdos_partition_map): ... this. Update all users.
36028 * parttool/pcpart.c: Rename to ...
36029 * parttool/msdospart.c: ... this. Update all users.
36031 * include/grub/pc_partition.h: Rename to ...
36032 * include/grub/msdos_partition.h: ... this. Update all users.
36033 (grub_pc_partition_bsd_entry): Rename to ...
36034 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36035 (grub_pc_partition_disk_label): Rename to ...
36036 (grub_msdos_partition_disk_label): ... this. Update all users.
36037 (grub_pc_partition_entry): Rename to ...
36038 (grub_msdos_partition_entry): ... this. Update all users.
36039 (grub_pc_partition_mbr): Rename to ...
36040 (grub_msdos_partition_mbr): ... this. Update all users.
36041 (grub_pc_partition): Rename to ...
36042 (grub_msdos_partition): ... this. Update all users.
36043 (grub_pc_partition_is_empty): Rename to ...
36044 (grub_msdos_partition_is_empty): ... this. Update all users.
36045 (grub_pc_partition_is_extended): Rename to ...
36046 (grub_msdos_partition_is_extended): ... this. Update all users.
36047 (grub_pc_partition_is_bsd): Rename to ...
36048 (grub_msdos_partition_is_bsd): ... this. Update all users.
36050 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36051 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36052 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36053 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36054 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36055 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36056 (gpt_mod_LDFLAGS): Rename to ...
36057 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36058 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36059 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36060 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36061 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36062 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36063 (part_gpt_mod_LDFLAGS): ... this.
36064 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36065 `pcpart.mod' to `msdospart.mod'.
36066 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36068 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36069 (msdospart_mod_LDFLAGS): ... this.
36071 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36073 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36074 (openbsd_opts): Likewise.
36075 (netbsd_opts): Likewise.
36076 (freebsd_flags): Added 0 terminator.
36077 (openbsd_flags): Likewise.
36078 (netbsd_flags): Likewise.
36079 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36080 (grub_cmd_freebsd): Transformed into extended command.
36081 (grub_cmd_openbsd): Likewise.
36082 (grub_cmd_netbsd): Likewise.
36083 (cmd_freebsd): Changed type to grub_extcmd_t.
36084 (cmd_openbsd): Likewise.
36085 (cmd_netbsd): Likewise.
36086 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36087 grub_cmd_openbsd as extended commands.
36088 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36089 cmd_netbsd and cmd_openbsd
36091 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36093 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36095 2009-08-21 Pavel Roskin <proski@gnu.org>
36097 * Makefile.in (install-local): When checking if a file is in the
36098 build directory, use "test -e" to detect symlinks.
36100 * Makefile.in (install-local): Remove all files in
36101 $(DESTDIR)$(pkglibdir) before installing new files there.
36103 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36105 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36108 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36110 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36111 explicitly specified by the user.
36113 2009-08-18 Pavel Roskin <proski@gnu.org>
36115 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36116 grub_uint8_t pointer for data.
36117 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36119 * video/fb/fbutil.c: Remove unnecessary casts.
36121 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36125 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36126 (grub_vbe_set_video_mode): Save active mode info
36127 only after setting the mode.
36128 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36131 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36133 Rename variables for clarity.
36135 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36136 (active_vbe_mode_info): ... this. All users updated.
36137 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36139 (initial_mode): Rename to ...
36140 (initial_vbe_mode): ... this. All users updated.
36141 (mode_in_use): Rename to ..
36142 (vbe_mode_in_use): ... this. All users updated.
36143 (mode_list): Rename to ..
36144 (vbe_mode_list): ... this. All users updated.
36145 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36146 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36147 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36148 'mode_list_size' to 'vbe_mode_list_size'.
36149 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36150 'best_mode_info' to 'best_vbe_mode_info' and
36151 'best_mode' to 'best_vbe_mode'
36153 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36155 Remove duplicate grub_video_fb_get_video_ptr.
36157 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36158 (grub_video_fb_get_video_ptr): ... this.
36159 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36160 * video/fb/fbutil.c: Add comment about addressing.
36161 (get_data_ptr): Rename to ...
36162 (grub_video_fb_get_video_ptr): ... this. All users updated.
36163 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36165 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36167 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36168 grub_dprintf() that was just added.
36170 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36172 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36173 (DEFAULT_VIDEO_MODE): Remove macros.
36174 (grub_linux_boot): Remove assumption that Linux has FB support,
36175 and use "text" as default video mode.
36177 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36179 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36181 * fs/fat.c (grub_fat_read_data): Likewise.
36183 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36185 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36187 (grub_module): Likewise.
36189 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36191 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36192 mbi->cmdline but free playground.
36194 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36196 Handle group offset on UFS1.
36198 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36199 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36201 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36203 Split ufs.mod into ufs1.mod and ufs2.mod.
36205 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36206 (grub_fstest_SOURCES): Likewise.
36207 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36208 (ufs_mod_SOURCES): Remove.
36209 (ufs_mod_CFLAGS): Likewise.
36210 (ufs_mod_LDFLAGS): Likewise.
36211 (ufs1_mod_SOURCES): New variable.
36212 (ufs1_mod_CFLAGS): Likewise.
36213 (ufs1_mod_LDFLAGS): Likewise.
36214 (ufs2_mod_SOURCES): New variable.
36215 (ufs2_mod_CFLAGS): Likewise.
36216 (ufs2_mod_LDFLAGS): Likewise.
36217 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36218 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36220 (grub_emu_SOURCES): Likewise.
36221 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36222 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36223 (grub_setup_SOURCES): Likewise.
36224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36225 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36226 (grub_setup_SOURCES): Likewise.
36227 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36229 * fs/ufs2.c: New file.
36230 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36232 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36236 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36237 subsystem at the end.
36238 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36239 (video_fb_mod_SOURCES): New variable.
36240 (video_fb_mod_CFLAGS): Likewise.
36241 (video_fb_mod_LDFLAGS): Likewise.
36242 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36243 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36244 * video/i386/pc/vbeblit.c: Moved from here ...
36245 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36246 * video/i386/pc/vbefill.c: Moved from here ...
36247 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36248 * video/i386/pc/vbeutil.c: Moved from here ...
36249 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36250 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36251 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36252 * include/grub/i386/pc/vbefill.h: Moved from here ...
36253 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36254 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36255 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36256 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36257 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36258 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36259 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36260 (grub_video_adapter): Added 'get_info_and_fini'.
36261 (grub_video_get_info_and_fini): New prototype.
36262 (grub_video_set_mode): make modestring const char *.
36263 * loader/i386/linux.c (grub_linux_setup_video): Use
36264 grub_video_get_info_and_fini.
36265 (grub_linux_boot): Move modesetting just before booting.
36266 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36267 grub_video_get_info_and_fini.
36268 * video/i386/pc/vbe.c: Moved framebuffer part ...
36269 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36270 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36271 grub_video_fbstd_colors and grub_video_fb_set_palette.
36272 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36273 grub_video_fb_init.
36274 (grub_video_vbe_fini): Use grub_video_fb_fini.
36275 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36276 render_target and use grub_video_fb_set_active_render_target and
36277 grub_video_fb_set_palette.
36278 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36279 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36280 (grub_video_vbe_adapter): Use framebuffer.
36281 * video/video.c (grub_video_get_info_and_fini): New function.
36282 (grub_video_set_mode): Make modestring const char *.
36283 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36284 values are already initialised.
36286 2009-08-14 Pavel Roskin <proski@gnu.org>
36288 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36290 * boot/i386/pc/diskboot.S: Likewise.
36291 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36292 sectors allow compilation on MacOSX.
36293 * conf/i386-pc.rmk: Enable unconditional compilation of
36296 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36298 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36299 * util/grub.d/00_header.in: Enter interruptible sleep if
36300 GRUB_HIDDEN_TIMEOUT is set.
36302 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36304 * include/grub/symbol.h: Add the LOCAL macro.
36305 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36306 starting with "L_".
36308 2009-08-13 Pavel Roskin <proski@gnu.org>
36310 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36311 any modern compilers we support.
36313 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36314 Use local labels starting with "L_" so that Apple assembler
36315 knows they are local.
36317 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36319 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36320 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36321 (bsd_kernel_types): ... this enum.
36323 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36324 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36325 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36327 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36328 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36329 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36332 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36334 * util/grub-dumpdevtree: Moved from here ...
36335 * util/i386/efi/grub-dumpdevtree: ... to here.
36336 (hexify): New function. Converts a string to its hex version.
36337 Generate hex versions of "efi" and "device-properties" by calling
36338 hexify() on the ASCII strings rather than by hardcoding numbers.
36340 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36342 * fs/jfs.c: Update copyright year.
36344 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36346 * util/grub.d/00_header.in: Fix a comment.
36347 * util/grub.d/10_linux.in: Likewise.
36348 * util/grub.d/10_windows.in: Likewise.
36349 * util/grub.d/10_hurd.in: Likewise.
36351 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36353 * util/grub-mkconfig.in: Allow the user to specify the used font
36356 2009-08-08 Pavel Roskin <proski@gnu.org>
36358 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36359 available, xfs.mod needs it now.
36361 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36362 the "g" modifier in sed when the intention is to strip something
36363 once. This fixes comparison of kernels with multiple dashes.
36365 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36366 on it. Add missing space before closing bracket. Fix
36367 misleading formatting.
36369 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36371 * docs/grub.texi: Major overhaul. Remove all sections that are
36372 specific to GRUB Legacy, or mostly composed of Legacy-specific
36375 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36377 * docs/version.texi: New file. Provides version information for
36380 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36382 * docs/grub.texi: Update CVS information to SVN.
36383 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36385 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36387 * util/grub-mkconfig.in: Remove a wrong `fi'.
36389 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36391 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36392 (grub_jfs_uuid): New function.
36393 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36395 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36397 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36399 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36400 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36402 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36404 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36405 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36408 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36409 not just "vmlinu[zx]".
36410 Moved from here ...
36411 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36414 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36415 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36418 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36420 * util/grub.d/10_freebsd.in: Use an absolute device path for
36421 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36423 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36425 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36426 handling of multiple abstraction modules.
36428 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36430 Fix a bug resulting in black screen when loading Linux using a
36433 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36436 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36437 (grub_vbe_bios_getset_dac_palette_width): New function.
36438 (grub_vbe_bios_get_dac_palette_width)
36439 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36440 grub_vbe_bios_getset_dac_palette_width()).
36442 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36443 check for return status.
36444 (grub_vbe_get_video_mode_info): When getting information for a packed
36445 mode (<= 8 bpp), obtain DAC palette width using
36446 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36447 {red,green,blue}_mark_size.
36449 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36451 * commands/search.c (options): Fix help output to match actual code.
36453 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36455 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36458 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36460 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36461 on XFS or ReiserFS.
36463 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36465 Support Apple partition map with sector size different from 512 bytes.
36467 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36468 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36469 and 'apart.partmap_size'.
36471 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36472 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36476 * commands/i386/cpuid.c (options): New variable.
36477 (grub_cmd_cpuid): Return real error.
36478 (GRUB_MOD_INIT(cpuid)): Declare options.
36480 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36482 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36485 2009-07-31 Bean <bean123ch@gmail.com>
36487 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36489 (grub_fshelp_node): Move inode field to the end.
36490 (grub_xfs_data): Remove inode field.
36491 (grub_xfs_inode_block): Calculate inode size using sblock.
36492 (grub_xfs_inode_offset): Likewise.
36493 (grub_xfs_read_inode): Calculate inode size using sblock.
36494 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36495 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36496 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36497 to match inode size.
36498 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36499 not accessible when data is null.
36500 (grub_xfs_open): Likewise.
36502 2009-07-31 Bean <bean123ch@gmail.com>
36504 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36505 Don't change pv->disk if it's already set.
36507 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36508 (grub_raid_register): ... here.
36509 (grub_raid_rescan): Removed.
36511 * include/grub/raid.h (grub_raid_rescan): Removed.
36513 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36514 (fstest): Replace grub_raid_rescan with module fini function followed
36517 * util/grub-probe.c: Add include file <grub/raid.h>.
36518 (probe_raid_level): New function.
36519 (probe): Detect abstraction by walking the disk device, support two
36520 level of abstraction (LVM on RAID) when detecting partition map.
36522 2009-07-31 Pavel Roskin <proski@gnu.org>
36524 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36525 to grub_zalloc(), it was erroneous.
36526 Reported by Bean <bean123ch@gmail.com>
36528 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36530 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36531 embedding zone, not only the first one.
36533 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36535 * term/gfxterm.c (clear_char): New function.
36536 (grub_virtual_screen_setup): Use clear_char.
36537 (scroll_up): Likewise.
36538 (grub_virtual_screen_cls): Likewise.
36540 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36542 * util/deviceiter.c (get_acceleraid_disk_name): New static
36544 (grub_util_iterate_devices): Handle Accelraid devices.
36545 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36547 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36549 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36550 separator for the suggested gfxpayload string (';' collides with the
36551 parser and needs escaping).
36553 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36555 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36556 Clear direction flag before jumping to OS.
36557 (grub_multiboot2_real_boot): Likewise.
36559 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36561 * util/i386/pc/grub-install: Fix parsing of --disk-module
36564 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36566 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36569 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36571 * util/grub-mkconfig.in (package_version): New variable.
36572 Use it do display the version.
36574 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36576 * kern/file.c (grub_file_open): Revert to previous check with
36579 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36581 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36582 from help line. It's out of sync with code.
36584 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36586 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36587 entries on failed boot.
36589 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36591 * kern/file.c (grub_file_open): Fix an error check.
36593 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36595 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36596 partition map couldn't be identified.
36598 2009-07-23 Pavel Roskin <proski@gnu.org>
36600 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36601 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36602 case of little endian words becomes just an optimization.
36603 Respect const modifier.
36604 (md5_final): Use code that doesn't depend on endianness.
36606 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36607 to avoid loss of upper bits if align is unsigned and shorter
36610 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36612 UUID support for UFS
36614 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36615 (grub_ufs_uuid): New function.
36616 (grub_ufs_fs): add .uuid
36618 2009-07-21 Pavel Roskin <proski@gnu.org>
36620 * kern/dl.c (grub_dl_check_header): Make static.
36622 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36624 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36625 add drivemap for Vista. It breaks Windows 7.
36627 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36629 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36632 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36636 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36637 (grub_fstest_SOURCES): Likewise.
36638 (pkglib_MODULES): Add befs.mod.
36639 (befs_mod_SOURCES): New variable.
36640 (befs_mod_CFLAGS): Likewise.
36641 (befs_mod_LDFLAGS): Likewise.
36642 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36643 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36644 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36645 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36646 (grub_setup_SOURCES): Likewise.
36647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36648 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36649 (grub_setup_SOURCES): Likewise.
36650 * fs/befs.c: New file.
36651 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36652 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36653 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36654 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36655 (B_KEY_INDEX_ALIGN): New declaration.
36656 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36657 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36658 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36659 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36660 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36661 (grub_afs_mount) [MODE_BFS]: Likewise.
36662 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36663 (grub_afs_fs): Use GRUB_AFS_FSNAME
36664 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36665 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36666 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36667 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36669 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36671 * util/getroot.c (find_root_device): Add support for MacOSX.
36672 * util/hostdisk.c: Likewise.
36674 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36676 * font/font.c (find_glyph): Check whether a font is present to avoid
36677 segmentation fault.
36679 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36681 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36683 2009-07-20 Pavel Roskin <proski@gnu.org>
36685 * configure.ac: Trim excessively wordy excuses.
36687 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36689 Add symlink, mtime and label support to AtheFS.
36691 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36692 (grub_afs_iterate_dir): Handle symlinks.
36693 (grub_afs_open): Use grub_afs_read_symlink.
36694 (grub_afs_dir): Likewise.
36696 (grub_afs_label): New function.
36697 (grub_afs_fs): Add grub_afs_label.
36698 (grub_afs_read_symlink): New function.
36700 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36702 Fix AtheFS support.
36704 * fs/afs.c: Fix comments style.
36705 (grub_afs_blockrun): Declare as packed.
36706 (grub_afs_datastream): Likewise.
36707 (grub_afs_bnode): Likewise.
36708 (grub_afs_btree): Likewise.
36709 (grub_afs_sblock): Likewise.
36710 Declare `name' as char.
36711 (grub_afs_inode): Declare as packed.
36712 Change void *vnode to grub_uint32_t unused.
36713 (grub_afs_iterate_dir): Check that key_size is positive.
36714 (grub_afs_mount): Don't read superblock twice.
36715 (grub_afs_dir): Don't free node in case of error,
36716 grub_fshelp_find_file already handles this.
36717 (grub_afs_open): Likewise.
36719 2009-07-19 Pavel Roskin <proski@gnu.org>
36721 * Makefile.in: Remove LIBLZO and enable_lzo.
36722 * conf/i386-pc.rmk: Remove lzo support.
36723 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36724 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36726 * kern/i386/pc/lzo1x.S: Remove.
36727 * kern/i386/pc/startup.S: Remove lzo support.
36728 * util/i386/pc/grub-mkimage.c: Likewise.
36730 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36732 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36733 * fs/xfs.c (grub_xfs_dir): Likewise.
36734 * fs/afs.c (grub_afs_dir): Likewise.
36735 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36736 (grub_iso9660_open): Likewise.
36737 * fs/jfs.c (grub_jfs_open): Likewise.
36738 * fs/ext2.c (grub_ext2_dir): Likewise.
36739 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36740 * script/sh/lexer.c (grub_script_yylex): Likewise.
36742 2009-07-16 Pavel Roskin <proski@gnu.org>
36744 * configure.ac: Never add "-c" to CFLAGS.
36746 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36748 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36749 grub_cv_cc_efiemu should be used.
36751 * configure.ac: Typo fixes.
36753 * kern/mm.c (grub_zalloc): New function.
36754 (grub_debug_zalloc): Likewise.
36755 * include/grub/mm.h: Declare grub_zalloc() and
36756 grub_debug_zalloc().
36757 * util/misc.c (grub_zalloc): New function.
36758 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36759 instead of grub_malloc(), remove unneeded initializations.
36760 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36761 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36762 * commands/parttool.c (grub_cmd_parttool): Likewise.
36763 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36764 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36765 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36766 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36767 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36768 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36769 (grub_cmd_efiemu_pnvram): Likewise.
36770 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36771 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36772 (grub_iso9660_iterate_dir): Likewise.
36773 * fs/jfs.c (grub_jfs_opendir): Likewise.
36774 * fs/ntfs.c (list_file): Likewise.
36775 (grub_ntfs_mount): Likewise.
36776 * kern/disk.c (grub_disk_open): Likewise.
36777 * kern/dl.c (grub_dl_load_core): Likewise.
36778 * kern/elf.c (grub_elf_file): Likewise.
36779 * kern/env.c (grub_env_context_open): Likewise.
36780 (grub_env_set): Likewise.
36781 (grub_env_set_data_slot): Likewise.
36782 * kern/file.c (grub_file_open): Likewise.
36783 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36784 * loader/i386/multiboot.c (grub_module): Likewise.
36785 * loader/xnu.c (grub_xnu_create_key): Likewise.
36786 (grub_xnu_create_value): Likewise.
36787 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36788 (read_config_file): Likewise.
36789 * normal/menu_entry.c (make_screen): Likewise.
36790 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36791 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36792 * script/sh/script.c (grub_script_parse): Likewise.
36793 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36794 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36795 * video/readers/png.c (grub_png_output_byte): Likewise.
36796 (grub_video_reader_png): Likewise.
36798 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36800 Enable all targets that can be built by default
36802 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36803 grub-mkfont and grub-fstest if they can be built
36805 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36807 Fix hang and segmentation fault in grub-emu-usb
36809 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36810 * util/usb.c (grub_libusb_devices): likewise
36811 (grub_libusb_init): rename to ...
36812 (GRUB_MOD_INIT (libusb)):...this
36813 (grub_libusb_fini): rename to ..
36814 (GRUB_MOD_FINI (libusb)):...this
36815 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36816 * include/grub/disk.h (grub_raid_init): removed, it's useless
36817 (grub_raid_fini): likewise
36818 (grub_lvm_init): likewise
36819 (grub_lvm_fini): likewise
36820 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36823 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36827 * Makefile.in (LIBUSB): new macro
36828 * genmk.rb (Utility/print_tail): new method
36829 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36830 (top level): call util.print_tail at the end.
36832 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36834 Make FreeBSD accept zpool.cache
36836 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36837 type is /boot/zfs/zpool.cache
36839 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36843 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36844 correct wrong typedef
36845 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36847 2009-07-15 Pavel Roskin <proski@gnu.org>
36849 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36850 * kern/disk.c (struct grub_disk_cache): Likewise.
36852 * commands/probe.c (options): Typo fix.
36854 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36855 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36857 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36859 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36860 the end of "Error" to make the message more readable.
36862 * boot/i386/pc/boot.S (kernel_segment): Remove.
36863 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36866 * boot/i386/pc/boot.S (boot_version): Remove.
36867 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36870 * include/grub/i386/pc/boot.h: Sort all offsets.
36871 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36872 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36873 * boot/i386/pc/boot.S: Assert location of every offset listed in
36874 include/grub/i386/pc/boot.h.
36876 2009-07-13 Pavel Roskin <proski@gnu.org>
36878 * include/grub/i386/coreboot/machine.h: Rename
36879 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36880 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36881 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36883 * kern/dl.c: Force native word size to suppress warnings when
36884 compiling grub-emu.
36886 * kern/device.c (grub_device_iterate): Change struct part_ent to
36887 hold the name, not a pointer to it. Use one grub_malloc() per
36888 partition, not two. Free partition_name if grub_malloc() fails.
36889 Set ents to NULL only before grub_partition_iterate() is called.
36891 2009-07-11 Bean <bean123ch@gmail.com>
36893 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36896 2009-07-10 Bean <bean123ch@gmail.com>
36897 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36899 * kern/ieee1275/openfw.c (grub_children_iterate)
36900 (grub_devalias_iterate): Fix size evaluation for property or path
36901 strings, which was broken since r2132.
36903 2009-07-07 Pavel Roskin <proski@gnu.org>
36905 * commands/search.c (search_file): Merge into ...
36906 (search_fs): ... this. Accept search type as argument.
36907 (grub_cmd_search): Pass search type to search_fs().
36909 * include/grub/util/console.h: New file.
36910 * util/console.c: Use it instead of grub/machine/console.h.
36911 * util/grub-emu.c: Likewise.
36913 * lib/arg.c (find_long_option): Remove.
36914 (find_long): Add `len' argument, make `s' const char *.
36915 (grub_arg_parse): Parse long options in place, not in a
36918 2009-07-06 Pavel Roskin <proski@gnu.org>
36920 * commands/search.c (search_fs): Fix potential NULL pointer
36923 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36926 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36928 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36931 2009-07-05 Pavel Roskin <proski@gnu.org>
36933 * include/grub/i386/linux.h (struct linux_kernel_params):
36934 Restore padding3, it's still needed.
36936 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36938 * util/osdetect.lua: Likewise.
36940 2009-07-05 Bean <bean123ch@gmail.com>
36942 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36944 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36945 (grub_lua_getenv): Likewise.
36946 (grub_lua_setenv): Likewise.
36947 (save_errno): New function.
36948 (push_result): Likewise.
36949 (grub_lua_enum_device): Likewise.
36950 (grub_lua_enum_file): Likewise.
36951 (grub_lua_file_open): Likewise.
36952 (grub_lua_file_close): Likewise.
36953 (grub_lua_file_seek): Likewise.
36954 (grub_lua_file_read): Likewise.
36955 (grub_lua_file_getline): Likewise.
36956 (grub_lua_file_getsize): Likewise.
36957 (grub_lua_file_getpos): Likewise.
36958 (grub_lua_file_eof): Likewise.
36959 (grub_lua_file_exist): Likewise.
36960 (grub_lua_add_menu): Likewise.
36962 * script/lua/grub_lua.h (isupper): New inline function.
36963 (islower): Likewise.
36964 (ispunct): Likewise.
36965 (isxdigit): Likewise.
36966 (strcspn): Change to normal function.
36967 (strpbkr): New function declaration.
36968 (memchr): Likewise.
36970 * script/lua/grub_main.c (scan_str): New function.
36971 (strcspn): Likewise.
36972 (strpbrk): Likewise.
36973 (memchr): Likewise.
36975 * script/lua/linit.c (lualibs): Enable the string library.
36977 * util/osdetect.lua: New file.
36979 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36981 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36982 `capabilities' member.
36984 2009-07-02 Pavel Roskin <proski@gnu.org>
36986 * genparttoollist.sh: Add missing newline at the end.
36988 2009-07-01 Pavel Roskin <proski@gnu.org>
36990 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36992 * util/hostdisk.c (open_device): Remove `const' from
36993 `sysctl_size', as sysctlbyname() can change it (in this case it
36994 doesn't actually happen).
36996 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36997 using signed long int constants.
36999 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37000 constant to avoid a warning on FreeBSD.
37002 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37005 * Makefile.in: Install include/grub/machine symlink.
37007 * Makefile.in: When installing symlinks, use "cp -fR", which
37008 works on FreeBSD and MacOSX.
37009 From Yves Blusseau <cl7m42e02@sneakemail.com>
37011 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37012 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37014 * util/misc.c: Move grub_reboot() and grub_halt() ...
37015 * util/grub-emu.c: ... here. Make main_env static.
37016 * include/grub/util/misc.h: Remove main_env.
37018 * kern/mm.c: Use correct format to print size_t.
37020 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37021 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37022 * kern/powerpc/dl.c: Likewise.
37023 * kern/sparc64/dl.c: Likewise.
37024 * kern/x86_64/dl.c: Likewise.
37026 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37028 Fix grub-emu build on sparc64-ieee1275.
37030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37033 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37035 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37036 (grub_reboot, grub_halt): New functions.
37038 * util/i386/pc/misc.c: Delete. Update all users.
37039 * util/sparc64/ieee1275/misc.c: Likewise.
37040 * util/powerpc/ieee1275/misc.c: Likewise.
37042 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37044 * conf/i386.rmk (setjmp_mod_SOURCES)
37045 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37046 * conf/common.rmk (setjmp_mod_SOURCES)
37047 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37048 to use $(target_cpu).
37049 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37050 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37051 * conf/powerpc-ieee1275.rmk: Likewise.
37052 * conf/sparc64-ieee1275.rmk: Likewise.
37054 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37055 $(target_cpu) for kern/$(target_cpu)/dl.c.
37056 * conf/i386-efi.rmk: Likewise.
37057 * conf/i386-ieee1275.rmk: Likewise.
37058 * conf/x86_64-efi.rmk: Likewise.
37059 * conf/i386-coreboot.rmk: Likewise.
37060 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37061 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37062 kern/$(target_cpu)/cache.S.
37063 * conf/sparc64-ieee1275.rmk: Likewise.
37065 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37067 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37068 type to `grub_uint8_t', and adjust `padding9' accordingly.
37070 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37072 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37074 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37075 assembly in final jump, using register constraints.
37077 (grub_linux_boot): For text mode, initialize `have_vga' using
37078 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37080 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37081 right before the final jump.
37083 Set `video_mode' to 0x3.
37085 Document initialization of `video_page', `video_mode' and
37088 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37090 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37091 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37092 and set GRUB_LINUX_FLAG_QUIET appropriately.
37094 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37096 Fix build on Debian / sparc.
37098 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37100 2009-06-28 Pavel Roskin <proski@gnu.org>
37102 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37105 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37107 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37109 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37112 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37116 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37117 file can't be opened. grub_file_open() is already supposed to set
37118 grub_errno / grub_errmsg appropriately.
37119 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37121 2009-06-27 Pavel Roskin <proski@gnu.org>
37122 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37124 * include/grub/dl.h: Include grub/elf.h.
37125 (struct grub_dl): Add symtab field.
37126 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37127 GRUB_MODULES_MACHINE_READONLY.
37128 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37129 of the header for read-only modules.
37130 (grub_dl_unload): Free mod->symtab for read-only modules.
37131 * kern/i386/dl.c: Use mod->symtab.
37132 * kern/powerpc/dl.c: Likewise.
37133 * kern/sparc64/dl.c: Likewise.
37134 * kern/x86_64/dl.c: Likewise.
37136 * conf/i386-qemu.rmk: New file.
37137 * kern/i386/qemu/startup.S: Likewise.
37138 * kern/i386/qemu/mmap.c: Likewise.
37139 * boot/i386/qemu/boot.S: Likewise.
37140 * include/grub/i386/qemu/time.h: Likewise.
37141 * include/grub/i386/qemu/serial.h: Likewise.
37142 * include/grub/i386/qemu/kernel.h: Likewise.
37143 * include/grub/i386/qemu/console.h: Likewise.
37144 * include/grub/i386/qemu/boot.h: Likewise.
37145 * include/grub/i386/qemu/init.h: Likewise.
37146 * include/grub/i386/qemu/machine.h: Likewise.
37147 * include/grub/i386/qemu/loader.h: Likewise.
37148 * include/grub/i386/qemu/memory.h: Likewise.
37150 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37151 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37152 [qemu] (pkglib_IMAGES): Add `boot.img'.
37153 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37154 [qemu] (boot_img_FORMAT): New variables.
37155 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37156 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37157 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37158 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37159 [qemu] (kernel_img_FORMAT): New variables.
37161 * configure.ac: Recognise `i386-qemu'.
37163 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37164 (for no compression).
37165 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37166 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37167 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37168 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37171 2009-06-27 Pavel Roskin <proski@gnu.org>
37173 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37175 * efiemu/prepare32.c: Likewise.
37176 * efiemu/prepare64.c: Likewise.
37178 2009-06-26 Pavel Roskin <proski@gnu.org>
37180 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37181 * include/grub/elf.h: Define symbols without "32" or "64" based
37182 on GRUB_TARGET_WORDSIZE.
37183 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37184 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37186 * efiemu/loadcore64.c: Likewise.
37187 * loader/i386/bsd32.c: Likewise.
37188 * loader/i386/bsd64.c: Likewise.
37189 * kern/dl.c: Remove own ELF definitions.
37190 * util/i386/efi/grub-mkimage.c: Likewise.
37192 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37194 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37195 segment 0x0 unconditionally, because the reference generated by
37196 GAS is an absolute address.
37198 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37200 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37201 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37203 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37205 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37206 indexes. Check for -f explicitly.
37207 (search_file): Improve error message.
37208 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37210 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37212 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37213 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37215 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37218 * conf/i386-ieee1275.rmk: Likewise.
37219 * conf/i386-coreboot.rmk: Likewise.
37221 * kern/i386/pc/startup.S (grub_stop): Remove function.
37222 * kern/i386/ieee1275/startup.S: Likewise.
37223 * kern/i386/coreboot/startup.S: Likewise.
37224 * kern/i386/misc.S (grub_stop): New function.
37226 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37228 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37229 * kern/i386/realmode.S (real_to_prot): ... to here.
37231 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37233 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37235 (kernel_elf_SOURCES): Rename to ...
37236 (kernel_img_SOURCES): ... this.
37237 (kernel_elf_HEADERS): Rename to ...
37238 (kernel_img_HEADERS): ... this. Update all users.
37239 (kernel_elf_ASFLAGS): Rename to ...
37240 (kernel_img_ASFLAGS): ... this.
37241 (kernel_elf_CFLAGS): Rename to ...
37242 (kernel_img_CFLAGS): ... this.
37243 (kernel_elf_LDFLAGS): Rename to ...
37244 (kernel_img_LDFLAGS): ... this.
37245 * conf/i386-coreboot.rmk: Likewise.
37246 * conf/powerpc-ieee1275.rmk: Likewise.
37248 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37251 2009-06-21 Pavel Roskin <proski@gnu.org>
37253 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37254 to match nested functions.
37255 * loader/sparc64/ieee1275/linux.c: Likewise.
37257 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37259 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37261 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37262 all i386 platforms.
37264 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37266 Fix asm file handling on ELF, and remove workarounds.
37268 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37269 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37270 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37271 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37273 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37275 Load BSD ELF modules
37277 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37278 and loader/i386/bsd64.c
37279 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37280 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37281 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37282 (grub_freebsd_load_elfmodule32): New declaration
37283 (grub_freebsd_load_elfmoduleobj64): Likewise
37284 (grub_freebsd_load_elf_meta32): Likewise
37285 (grub_freebsd_load_elf_meta64): Likewise
37286 (grub_freebsd_add_meta): Likewise
37287 (grub_freebsd_add_meta_module): Likewise
37288 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37289 (grub_freebsd_add_meta_module): Likewise and move module-specific
37290 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37291 (grub_cmd_freebsd): Add elf-kernel specific parts
37292 based on grub_freebsd_add_meta_module
37293 (grub_cmd_freebsd_module): Add type parsing moved from
37294 grub_freebsd_add_meta_module
37295 (grub_cmd_freebsd_module_elf): New function
37296 (cmd_freebsd_module_elf): New variable
37297 (GRUB_MOD_INIT): Register freebsd_module_elf
37298 * loader/i386/bsd32.c: New file
37299 * loader/i386/bsd64.c: Likewise
37300 * loader/i386/bsdXX.c: Likewise
37301 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37302 (grub_elf64_load): Likewise
37303 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37305 (grub_elf64_load_hook_t): Likewise
37307 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37309 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37311 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37312 don't write a menu entry for recovery mode.
37314 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37316 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37317 after it's no longer needed.
37319 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37321 * include/grub/i386/loader.h (grub_linux_prot_size)
37322 (grub_linux_tmp_addr, grub_linux_real_addr)
37323 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37324 GRUB_MACHINE_PCBIOS.
37325 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37326 common grub_util_info() call to ...
37327 (generate_image): ... here.
37328 Fix use of uninitialized memory, comparison of signed with
37329 unsigned integers and memory leak.
37330 Remove bogus module address message.
37332 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37334 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37336 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37338 2009-06-19 Pavel Roskin <proski@gnu.org>
37340 * configure.ac: Remove stray AC_MSG_CHECKING.
37342 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37344 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37346 2009-06-18 Pavel Roskin <proski@gnu.org>
37348 * conf/common.rmk: Add fs_file.mod.
37349 * disk/fs_file.c: New file.
37350 * include/grub/disk.h (enum grub_disk_dev_id): Add
37351 GRUB_DISK_DEVICE_FILE_ID.
37353 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37355 Fix build with Apple's toolchain. Part 2
37357 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37360 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37362 Fix build with Apple's toolchain. Part 1
37364 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37366 * configure.ac: remove a leftover AC_MSG_RESULT
37367 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37370 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37374 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37375 (decomp_block): initialize ch
37376 use grub_memcpy instead of memcpy
37378 2009-06-17 Pavel Roskin <proski@gnu.org>
37380 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37381 version, use declarations needed to use vga_text as the startup
37384 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37385 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37387 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37388 and grub_at_keyboard_fini(), it's done on module load and
37391 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37393 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37394 file can't be found.
37395 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37397 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37399 Fix newline handling
37401 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37402 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37403 (grub_script_yylex): don't segfault on unterminated script
37404 newline terminates command and variable
37406 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37408 avoid double grub_adjust_range call. Bug reported by David Simner
37410 * kern/disk.c (grub_disk_write): change to raw disk access before
37413 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37415 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37416 spaces, for the benefit of help2man.
37417 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37419 2009-06-16 Pavel Roskin <proski@gnu.org>
37421 * kern/i386/halt.c: Include grub/machine/init.h.
37422 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37424 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37426 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37427 drivemap menuentry.
37429 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37431 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37434 2009-06-16 Pavel Roskin <proski@gnu.org>
37436 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37437 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37438 save %dx, we only need %dl and we never change it.
37439 * boot/i386/pc/cdboot.S: Don't set the root drive.
37440 * boot/i386/pc/pxeboot.S: Likewise.
37441 * include/grub/i386/pc/boot.h: Remove
37442 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37443 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37444 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37445 * kern/i386/pc/init.c (make_install_device): Remove references
37446 to grub_root_drive.
37447 * kern/i386/pc/startup.S: Likewise.
37448 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37450 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37454 * commands/xnu_uuid.c: new file
37455 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37456 (xnu_uuid_mod_SOURCES): new variable
37457 (xnu_uuid_mod_CFLAGS): likewise
37458 (xnu_uuid_mod_LDFLAGS): likewise
37459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37460 * conf/i386-ieee1275.rmk: likewise
37461 * conf/i386-pc.rmk: likewise
37462 * conf/powerpc-ieee1275.rmk: likewise
37463 * conf/sparc64-ieee1275.rmk: likewise
37464 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37466 2009-06-16 Pavel Roskin <proski@gnu.org>
37468 * configure.ac: Avoid '==' in test command, it's not portable.
37470 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37474 * commands/probe.c: new file
37475 * conf/common.rmk (pkglib_MODULES): add probe.mod
37476 (probe_mod_SOURCES): new variable
37477 (probe_mod_CFLAGS): likewise
37478 (probe_mod_LDFLAGS): likewise
37479 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37480 * conf/i386-ieee1275.rmk: likewise
37481 * conf/i386-pc.rmk: likewise
37482 * conf/powerpc-ieee1275.rmk: likewise
37483 * conf/sparc64-ieee1275.rmk: likewise
37485 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37487 Fix handling of string like \"hello\" and "a
37490 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37491 (grub_script_yylex): fix parsing of quoting, escaping and newline
37493 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37495 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37498 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37500 * util/grub-mkconfig.in: Fix parsing of --output option.
37502 2009-06-12 Pavel Roskin <proski@gnu.org>
37504 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37505 genmk.rb don't need to be generated or installed.
37507 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37509 * commands/i386/pc/drivemap_int13h.S: add more comments
37511 2009-06-11 Pavel Roskin <proski@gnu.org>
37513 * Makefile.in (uninstall): Uninstall manuals.
37515 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37516 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37517 and update-grub_lib in two places.
37518 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37520 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37521 a compiler warning.
37523 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37524 `entry_lo' to fix variable shadowing.
37526 2009-06-11 Christian Franke <franke@computer.org>
37528 * kern/misc.c (__enable_execute_stack): Add missing return type
37529 to prevent gcc warning.
37531 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37533 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37535 2009-06-11 Pavel Roskin <proski@gnu.org>
37537 * Makefile.in: Don't rely on any scripts being executable.
37538 Always use $(SHELL) to run shell scripts.
37540 * configure.ac: Always define ___main if using -nostdlib. This
37541 fixes tests on Cygwin.
37543 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37547 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37548 is in bytes and not in blocks
37550 2009-06-11 Pavel Roskin <proski@gnu.org>
37552 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37555 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37557 * util/grub.d/30_os-prober.in: Fix a comment. Source
37558 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37559 to set the root device. Place drivemap command in the generated
37562 2009-06-11 Pavel Roskin <proski@gnu.org>
37564 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37565 have long been resolved.
37567 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37569 * util/grub.d/10_linux.in: Capitalise "Linux".
37571 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37573 2009-06-11 Pavel Roskin <proski@gnu.org>
37575 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37576 fix a gcc warning and ensure that the function won't ever exit.
37578 * kern/i386/ieee1275/init.c: Add missing prototype for
37579 grub_stop_floppy().
37581 * loader/ieee1275/multiboot2.c [__i386__]: Include
37582 grub/cpu/multiboot.h.
37584 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37585 casts to short - they are not portable and cause warnings. Fix
37586 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37588 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37592 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37594 (grub_get_root_biosnumber_saved): new variable
37595 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37596 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37597 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37598 %dx after the call if necessary
37599 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37600 (boot_mod_SOURCES): remove
37601 (boot_mod_CFLAGS): remove
37602 (boot_mod_LDFLAGS): remove
37603 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37604 (boot_mod_SOURCES): new variable
37605 (boot_mod_CFLAGS): likewise
37606 (boot_mod_LDFLAGS): likewise
37607 * conf/i386-efi.rmk: likewise
37608 * conf/i386-ieee1275.rmk: likewise
37609 * conf/i386-pc.rmk: likewise
37610 * conf/powerpc-ieee1275.rmk: likewise
37611 * conf/sparc64-ieee1275.rmk: likewise
37612 * conf/x86_64-efi.rmk: likewise
37613 * include/grub/i386/pc/biosnum.h: new file
37614 * lib/i386/pc/biosnum.c: likewise
37615 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37616 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37617 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37619 2009-06-10 Pavel Roskin <proski@gnu.org>
37621 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37622 Use separate variables. Read only the file size at the end, but
37623 not the checksum that we don't use.
37625 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37626 Adjust all callers.
37628 * kern/ieee1275/openfw.c: Remove libc includes.
37629 * kern/ieee1275/cmain.c: Likewise.
37630 * include/grub/ieee1275/ieee1275.h: Likewise.
37632 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37635 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37637 * Makefile.in: Remove all trailing whitespace.
37638 * conf/i386-pc.rmk: Likewise.
37639 * conf/powerpc-ieee1275.rmk: Likewise.
37640 * conf/sparc64-ieee1275.rmk: Likewise.
37641 * docs/grub.texi: Likewise.
37642 * docs/texinfo.tex: Likewise.
37643 * disk/fs_uuid.c: Likewise.
37644 * disk/lvm.c: Likewise.
37645 * disk/scsi.c: Likewise.
37646 * disk/ata.c: Likewise.
37647 * disk/ieee1275/ofdisk.c: Likewise.
37648 * disk/i386/pc/biosdisk.c: Likewise.
37649 * disk/host.c: Likewise.
37650 * disk/raid.c: Likewise.
37651 * disk/efi/efidisk.c: Likewise.
37652 * disk/usbms.c: Likewise.
37653 * disk/memdisk.c: Likewise.
37654 * disk/loopback.c: Likewise.
37655 * kern/powerpc/dl.c: Likewise.
37656 * kern/device.c: Likewise.
37657 * kern/dl.c: Likewise.
37658 * kern/sparc64/dl.c: Likewise.
37659 * kern/ieee1275/ieee1275.c: Likewise.
37660 * kern/term.c: Likewise.
37661 * kern/fs.c: Likewise.
37662 * kern/i386/dl.c: Likewise.
37663 * kern/i386/pc/startup.S: Likewise.
37664 * kern/i386/pc/init.c: Likewise.
37665 * kern/i386/pc/mmap.c: Likewise.
37666 * kern/i386/pc/lzo1x.S: Likewise.
37667 * kern/i386/ieee1275/init.c: Likewise.
37668 * kern/i386/realmode.S: Likewise.
37669 * kern/i386/tsc.c: Likewise.
37670 * kern/partition.c: Likewise.
37671 * kern/corecmd.c: Likewise.
37672 * kern/file.c: Likewise.
37673 * kern/efi/efi.c: Likewise.
37674 * kern/efi/init.c: Likewise.
37675 * kern/efi/mm.c: Likewise.
37676 * kern/main.c: Likewise.
37677 * kern/err.c: Likewise.
37678 * kern/env.c: Likewise.
37679 * kern/disk.c: Likewise.
37680 * kern/generic/millisleep.c: Likewise.
37681 * kern/generic/rtc_get_time_ms.c: Likewise.
37682 * kern/misc.c: Likewise.
37683 * kern/parser.c: Likewise.
37684 * genmk.rb: Likewise.
37685 * configure.ac: Likewise.
37686 * boot/i386/pc/diskboot.S: Likewise.
37687 * boot/i386/pc/pxeboot.S: Likewise.
37688 * boot/i386/pc/boot.S: Likewise.
37689 * boot/i386/pc/lnxboot.S: Likewise.
37690 * boot/i386/pc/cdboot.S: Likewise.
37691 * parttool/pcpart.c: Likewise.
37692 * video/readers/tga.c: Likewise.
37693 * video/video.c: Likewise.
37694 * video/bitmap.c: Likewise.
37695 * lib/envblk.c: Likewise.
37696 * lib/i386/setjmp.S: Likewise.
37697 * fs/xfs.c: Likewise.
37698 * fs/afs.c: Likewise.
37699 * fs/fat.c: Likewise.
37700 * fs/ntfs.c: Likewise.
37701 * fs/udf.c: Likewise.
37702 * fs/affs.c: Likewise.
37703 * fs/iso9660.c: Likewise.
37704 * fs/hfs.c: Likewise.
37705 * fs/fshelp.c: Likewise.
37706 * fs/ext2.c: Likewise.
37707 * fs/jfs.c: Likewise.
37708 * fs/reiserfs.c: Likewise.
37709 * fs/hfsplus.c: Likewise.
37710 * fs/minix.c: Likewise.
37711 * fs/cpio.c: Likewise.
37712 * fs/sfs.c: Likewise.
37713 * fs/ufs.c: Likewise.
37714 * efiemu/prepare.c: Likewise.
37715 * efiemu/loadcore_common.c: Likewise.
37716 * efiemu/runtime/efiemu.sh: Likewise.
37717 * efiemu/runtime/efiemu.S: Likewise.
37718 * efiemu/runtime/efiemu.c: Likewise.
37719 * efiemu/pnvram.c: Likewise.
37720 * efiemu/main.c: Likewise.
37721 * efiemu/i386/pc/cfgtables.c: Likewise.
37722 * efiemu/i386/loadcore64.c: Likewise.
37723 * efiemu/i386/loadcore32.c: Likewise.
37724 * efiemu/loadcore.c: Likewise.
37725 * efiemu/symbols.c: Likewise.
37726 * efiemu/mm.c: Likewise.
37727 * include/grub/autoefi.h: Likewise.
37728 * include/grub/datetime.h: Likewise.
37729 * include/grub/term.h: Likewise.
37730 * include/grub/hfs.h: Likewise.
37731 * include/grub/lvm.h: Likewise.
37732 * include/grub/i386/tsc.h: Likewise.
37733 * include/grub/i386/linux.h: Likewise.
37734 * include/grub/i386/xnu.h: Likewise.
37735 * include/grub/i386/efiemu.h: Likewise.
37736 * include/grub/i386/pc/biosdisk.h: Likewise.
37737 * include/grub/i386/pc/memory.h: Likewise.
37738 * include/grub/i386/pc/vbe.h: Likewise.
37739 * include/grub/parttool.h: Likewise.
37740 * include/grub/video.h: Likewise.
37741 * include/grub/memory.h: Likewise.
37742 * include/grub/fs.h: Likewise.
37743 * include/grub/partition.h: Likewise.
37744 * include/grub/xnu.h: Likewise.
37745 * include/grub/efi/api.h: Likewise.
37746 * include/grub/efi/pe32.h: Likewise.
37747 * include/grub/efi/memory.h: Likewise.
37748 * include/grub/multiboot.h: Likewise.
37749 * include/grub/usbdesc.h: Likewise.
37750 * include/grub/multiboot2.h: Likewise.
37751 * include/grub/acpi.h: Likewise.
37752 * include/grub/efiemu/efiemu.h: Likewise.
37753 * include/grub/disk.h: Likewise.
37754 * include/grub/ieee1275/ieee1275.h: Likewise.
37755 * include/grub/net.h: Likewise.
37756 * include/grub/machoload.h: Likewise.
37757 * include/grub/macho.h: Likewise.
37758 * include/multiboot.h: Likewise.
37759 * genmoddep.awk: Likewise.
37760 * normal/main.c: Likewise.
37761 * normal/menu_entry.c: Likewise.
37762 * normal/menu_viewer.c: Likewise.
37763 * normal/completion.c: Likewise.
37764 * normal/cmdline.c: Likewise.
37765 * normal/misc.c: Likewise.
37766 * normal/datetime.c: Likewise.
37767 * bus/usb/usbtrans.c: Likewise.
37768 * bus/usb/ohci.c: Likewise.
37769 * bus/usb/uhci.c: Likewise.
37770 * bus/usb/usb.c: Likewise.
37771 * mmap/efi/mmap.c: Likewise.
37772 * mmap/i386/pc/mmap_helper.S: Likewise.
37773 * mmap/i386/pc/mmap.c: Likewise.
37774 * mmap/i386/mmap.c: Likewise.
37775 * mmap/i386/uppermem.c: Likewise.
37776 * mmap/mmap.c: Likewise.
37777 * commands/acpi.c: Likewise.
37778 * commands/echo.c: Likewise.
37779 * commands/blocklist.c: Likewise.
37780 * commands/loadenv.c: Likewise.
37781 * commands/usbtest.c: Likewise.
37782 * commands/boot.c: Likewise.
37783 * commands/parttool.c: Likewise.
37784 * commands/search.c: Likewise.
37785 * commands/cat.c: Likewise.
37786 * commands/i386/pc/play.c: Likewise.
37787 * commands/i386/pc/drivemap.c: Likewise.
37788 * commands/i386/pc/vbeinfo.c: Likewise.
37789 * commands/i386/pc/acpi.c: Likewise.
37790 * commands/i386/pc/vbetest.c: Likewise.
37791 * commands/ls.c: Likewise.
37792 * commands/cmp.c: Likewise.
37793 * commands/test.c: Likewise.
37794 * commands/efi/acpi.c: Likewise.
37795 * commands/gptsync.c: Likewise.
37796 * commands/help.c: Likewise.
37797 * partmap/amiga.c: Likewise.
37798 * partmap/apple.c: Likewise.
37799 * partmap/acorn.c: Likewise.
37800 * partmap/pc.c: Likewise.
37801 * partmap/sun.c: Likewise.
37802 * partmap/gpt.c: Likewise.
37803 * script/sh/lexer.c: Likewise.
37804 * script/sh/function.c: Likewise.
37805 * font/font.c: Likewise.
37806 * font/font_cmd.c: Likewise.
37807 * loader/powerpc/ieee1275/linux.c: Likewise.
37808 * loader/efi/chainloader.c: Likewise.
37809 * loader/multiboot_loader.c: Likewise.
37810 * loader/macho.c: Likewise.
37811 * loader/i386/multiboot.c: Likewise.
37812 * loader/i386/linux.c: Likewise.
37813 * loader/i386/pc/linux.c: Likewise.
37814 * loader/i386/pc/multiboot2.c: Likewise.
37815 * loader/i386/pc/chainloader.c: Likewise.
37816 * loader/i386/pc/xnu.c: Likewise.
37817 * loader/i386/bsd_trampoline.S: Likewise.
37818 * loader/i386/efi/linux.c: Likewise.
37819 * loader/i386/multiboot_elfxx.c: Likewise.
37820 * loader/i386/bsd_helper.S: Likewise.
37821 * loader/i386/bsd.c: Likewise.
37822 * loader/i386/linux_trampoline.S: Likewise.
37823 * loader/i386/xnu_helper.S: Likewise.
37824 * loader/i386/xnu.c: Likewise.
37825 * loader/i386/bsd_pagetable.c: Likewise.
37826 * loader/i386/multiboot_helper.S: Likewise.
37827 * loader/xnu.c: Likewise.
37828 * loader/xnu_resume.c: Likewise.
37829 * io/gzio.c: Likewise.
37830 * term/efi/console.c: Likewise.
37831 * term/terminfo.c: Likewise.
37832 * term/ieee1275/ofconsole.c: Likewise.
37833 * term/i386/pc/serial.c: Likewise.
37834 * term/i386/pc/vesafb.c: Likewise.
37835 * term/i386/pc/vga.c: Likewise.
37836 * term/usb_keyboard.c: Likewise.
37837 * term/gfxterm.c: Likewise.
37838 * aclocal.m4: Likewise.
37839 * util/lvm.c: Likewise.
37840 * util/grub.d/30_os-prober.in: Likewise.
37841 * util/grub.d/10_hurd.in: Likewise.
37842 * util/console.c: Likewise.
37843 * util/grub-macho2img.c: Likewise.
37844 * util/grub-probe.c: Likewise.
37845 * util/hostfs.c: Likewise.
37846 * util/i386/pc/grub-mkimage.c: Likewise.
37847 * util/i386/pc/grub-setup.c: Likewise.
37848 * util/i386/efi/grub-mkimage.c: Likewise.
37849 * util/grub-mkconfig.in: Likewise.
37850 * util/raid.c: Likewise.
37851 * util/resolve.c: Likewise.
37852 * util/grub-mkdevicemap.c: Likewise.
37853 * util/grub-emu.c: Likewise.
37854 * util/getroot.c: Likewise.
37855 * util/hostdisk.c: Likewise.
37856 * util/usb.c: Likewise.
37857 * util/grub-editenv.c: Likewise.
37858 * util/misc.c: Likewise.
37860 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37862 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37863 `genparttoollist.sh'.
37864 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37865 Add `*.sh' to the list find searches for and change `mdate.sh'
37868 2009-06-10 Pavel Roskin <proski@gnu.org>
37870 * include/grub/multiboot2.h: Provide compatibility defines for
37872 * include/multiboot2.h: Include stdint.h only if needed, using
37874 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37876 * loader/ieee1275/multiboot2.c: Likewise.
37877 * loader/multiboot2.c: Likewise.
37878 * loader/multiboot_loader.c: Likewise.
37880 * configure.ac: Use -nostdlib when probing for the target. It
37881 should not be required to have libc for the target.
37883 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37884 they fail without libc headers for the target.
37885 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37887 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37888 preprocessor conditionals.
37890 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37891 build system doesn't need to be aware of the tar.c internals.
37893 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37895 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37897 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37899 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37900 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37902 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37904 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37905 aren't available if ata.mod gets used.
37907 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37909 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37910 initialising controller.
37911 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37913 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37915 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37916 to choose between ata and biosdisk module on i386-pc.
37918 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37920 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37921 Subclass and Programming Interface fields in terms of the 3 byte
37922 Class Code register.
37923 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37925 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37926 interface is OHCI. Add grub_dprintf for symmetry with
37928 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37929 interface is UHCI. Add interf variable for programming
37930 interface. Print interface with class/subclass.
37932 * bus/usb/ohci.c: Set interf with correct field.
37934 * bus/usb/uhci.c: Remove unneeded doubled lines.
37935 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37936 Remove whitespace inside comment.
37938 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37940 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37941 as fallback an equivalent option without depth.
37943 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37945 Not fail if unable to retrieve C/H/S on LBA disks
37947 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37948 if unable to retrieve C/H/S on LBA disks
37950 2009-06-08 Pavel Roskin <proski@gnu.org>
37952 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37955 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37957 * Makefile.in (uninstall): Remove all $lib_DATA files.
37959 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37961 Bugfix: install on partitionless device
37963 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37966 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37968 * Makefile.in (uninstall): Remove all $include_DATA files.
37970 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37972 * commands/true.c: New file. Implement the true and false commands.
37973 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37974 (true_mod_SOURCES): New variable.
37975 (true_mod_CFLAGS): Likewise.
37976 (true_mod_LDFLAGS): Likewise.
37978 2009-06-05 Colin D Bennett <colin@gibibit.com>
37980 Optimized font character lookup using binary search instead of linear
37981 search. Fonts now are required to have the character index ordered by
37984 * font/font.c (load_font_index): Verify that fonts have ordered
37986 (find_glyph): Use binary search instead of linear search to find a
37987 character in a font.
37989 2009-06-05 Michael Scherer <misc@mandriva.org>
37991 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37992 uses case sensitive btree.
37993 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37994 only for case insensitive filesystems.
37996 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37998 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37999 * conf/common.rmk (search_mod_CFLAGS): likewise
38001 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38003 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38004 compensate a compiler bug
38006 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38008 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38011 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38013 Definitions for creating asm symbols with Apple's CC
38015 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38016 [APPLE_CC] (VARIABLE): likewise
38018 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38020 Disable lnxboot.img when compiled
38023 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38024 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38025 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38026 [! APPLE_CC] (CODE_LENG): skip
38027 [! APPLE_CC] (setup_sects): likewise
38028 [! APPLE_CC]: skip filling
38030 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38032 Address in trampolines based on 32-bit registers when compiled
38035 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38037 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38039 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38041 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38043 * kern/misc.c [APPLE_CC] (memcpy): new function
38044 [APPLE_CC] (memmove): likewise
38045 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38046 (memcpy): define alias conditionally on !APPLE_CC
38049 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38050 APPLE_CC are defined
38051 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38052 (grub_assert_fail): make prototype conditional
38054 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38056 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38058 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38060 (CLEANFILES): add grub-macho2img
38061 (grub_macho2img_SOURCES): new variable
38062 * kern/i386/pc/startup.S (bss_start): new variable
38063 (bss_end): likewise
38064 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38065 * util/grub-macho2img.c: new file
38067 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38069 Use objconv when compiling with Apple's CC
38071 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38072 (efiemu64.o): likewise
38073 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38074 when compiling with Apple's CC
38075 (efiemu64_s.o): likewise
38076 * configure.ac: check for objconv when compiling with Apple's CC
38077 * genmk.rb: use objconv for modules when compiled with Apple's CC
38079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38081 Define segment as well as section when compiling with
38084 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38085 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38086 (efiemu_convert_pointer): likewise
38087 (efiemu_set_virtual_address_map): likewise
38088 (efiemu_convert_pointer): likewise
38089 (efiemu_getcrc32): likewise
38090 (init_crc32_table): likewise
38091 (reflect): likewise
38092 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38093 (GRUB_MOD_DEP): likewise
38095 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38097 Allow a compilation without -mcmodel=large
38099 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38100 when compiled without -mcmodel=large
38101 (filter_memory_map): remove memory post 4 GiB when compiled
38102 without -mcmodel=large
38103 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38104 TARGET_CFLAGS when -mcmodel=large isn't supported
38106 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38108 Remove nested functions in efiemu core
38110 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38112 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38114 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38116 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38118 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38120 (grub_cpu_is_tsc_supported): likewise
38121 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38123 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38125 Absolute addressing through constant with Apple's cc
38127 * kern/i386/pc/startup.S: Define necessary constants
38128 and address through it when using ABS with Apple's CC
38129 * boot/i386/pc/diskboot.S: likewise
38130 * boot/i386/pc/boot.S: likewise
38131 * boot/i386/pc/lnxboot.S: likewise
38132 * boot/i386/pc/cdboot.S: likewise
38133 * mmap/i386/pc/mmap_helper.S: likewise
38134 * commands/i386/pc/drivemap_int13h.S: likewise
38136 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38138 Check if compiler is apple cc
38140 * Makefile.in (ASFLAGS): new variable
38141 (TARGET_ASFLAGS): likewise
38142 (TARGET_MODULE_FORMAT): likewise
38143 (TARGET_APPLE_CC): likewise
38144 (OBJCONV): likewise
38145 (TARGET_IMG_CFLAGS): likewise
38146 (TARGET_CPPFLAGS): add includedir
38147 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38148 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38149 Check for linker script only if compiler isn't Apple's CC
38150 (TARGET_MODULE_FORMAT): set
38151 (TARGET_APPLE_CC): likewise
38152 (TARGET_ASFLAGS): likewise
38153 (ASFLAGS): likewise
38154 Check for objcopy only if compiler isn't Apple's CC
38155 Check for BSS symbol only if compiler isn't Apple's CC
38156 * genmk.rb: adapt nm options if we use Apple's utils
38157 * aclocal.m4 (grub_apple_cc): new test
38158 (grub_apple_target_cc): likewise
38160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38162 Simplify sed expressions and improve awk
38164 * Makefile.in (install-local): simplify sed expression
38165 * gencmdlist.sh: likewise
38166 * genmoddep.awk: avoid adding module as a dependency of itself
38168 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38170 Add missing start symbols
38172 * boot/i386/pc/boot.S: add start
38173 * boot/i386/pc/pxeboot.S: likewise
38175 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38177 Fix wrong assumptions with grub-mkimage on EFI
38179 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38180 (relocate_addresses): consider both r_addend and value at offset
38181 (make_mods_section): zerofill modinfo and header
38182 (convert_elf): write prefix here
38184 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38186 Use .asciz instead of .string
38188 * i386/pc/diskboot.S: use .asciz instead of .string
38189 * i386/pc/boot.S: likewise
38190 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38191 (GRUB_MOD_NAME): likewise
38193 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38197 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38198 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38199 (grub_video_setup): remove
38200 (grub_video_set_mode): new prototype
38201 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38203 (linux_vesafb_res): compile only on PCBIOS
38204 (grub_linux_boot): support gfxpayload
38205 * loader/i386/pc/xnu.c (video_hook): new function
38206 (grub_xnu_set_video): support gfxpayload
38207 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38208 (DEFAULT_VIDEO_HEIGHT): likewise
38209 (DEFAULT_VIDEO_FLAGS): likewise
38210 (DEFAULT_VIDEO_MODE): new definition
38211 (video_hook): new function
38212 (grub_gfxterm_init): use grub_video_set_mode
38213 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38215 * video/video.c (grub_video_setup): removed
38216 (grub_video_set_mode): new function based on grub_gfxterm_init and
38219 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38221 Avoid calling biosdisk in drivemap
38223 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38224 (revparse_biosdisk): likewise
38225 (list_mappings): derive name from id directly
38226 (grub_cmd_drivemap): use tryparse_diskstring
38228 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38232 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38233 (grub_lexer_param): add tokenonhold
38234 (grub_script_create_cmdline): remove cmdline. All callers updated
38235 (grub_script_function_create): make functionname
38236 grub_script_arg. All callers updated
38237 (grub_script_execute_argument_to_string): new prototype
38238 * kern/parser.c (state_transitions): reorder
38239 (grub_parser_cmdline_state): fix a bug and make more compact
38240 * script/sh/execute.c (grub_script_execute_argument_to_string):
38242 (grub_script_execute_cmdline): use new format
38243 * script/sh/function.c (grub_script_function_create): make functionname
38244 grub_script_arg. All callers updated
38245 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38246 (grub_script_yylex): remove
38247 (grub_script_yylex2): renamed to ...
38248 (grub_script_yylex): ...renamed
38249 parse the expressions like a${b}c
38250 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38251 (GRUB_PARSER_TOKEN_VAR): remove
38252 (GRUB_PARSER_TOKEN_NAME): likewise
38253 ("if"): declare as typeless
38254 ("while"): likewise
38255 ("function"): likewise
38260 (argument): likewise
38261 (script): accept empty scripts and make exit on error
38262 (arguments): use GRUB_PARSER_TOKEN_ARG
38263 (function): likewise
38264 (command): move error handling to script
38265 (menuentry): move grub_script_lexer_ref before
38266 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38267 argument. All callers updated
38269 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38271 Prevent GRUB from probing floppies during boot.
38273 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38274 * commands/search.c (options): Add --no-floppy.
38275 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38276 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38277 --no-floppy when searching for UUIDs.
38279 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38281 Simplify the code duplication in commands/search.c.
38283 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38284 (search_fs): ... this. Update all users.
38286 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38288 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38290 2009-05-28 Pavel Roskin <proski@gnu.org>
38292 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38293 Remove the original symlink explicitly.
38295 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38296 just one slash. That's how grub_fshelp_find_file() does it.
38298 2009-05-26 Pavel Roskin <proski@gnu.org>
38300 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38303 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38306 2009-05-25 Christian Franke <franke@computer.org>
38308 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38310 (grub_atapi_identify): Add wait after drive select.
38311 (grub_ata_identify): Do more strict status register check before
38312 calling grub_atapi_identify (). Suppress error message if status
38313 register is 0x00 after command failure. Add status register
38314 check after PIO read to avoid bogus identify due to stuck DRQ.
38315 Thanks to Pavel Roskin for testing.
38316 (grub_device_initialize): Remove unsafe status register check.
38317 Thanks to 'phcoder' for problem report and patch.
38318 Prevent sign extension in debug message.
38320 2009-05-23 Colin D Bennett <colin@gibibit.com>
38322 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38323 definition file, and functions defined in `normal/menu.c' have had
38324 their prototypes moved to `include/grub/menu.h' for consistency.
38326 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38328 (grub_menu_get_entry): Likewise.
38329 (grub_menu_get_timeout): Likewise.
38330 (grub_menu_set_timeout): Likewise.
38331 (grub_menu_execute_entry): Likewise.
38332 (grub_menu_execute_with_fallback): Likewise.
38333 (grub_menu_entry_run): Likewise.
38335 * include/grub/normal.h: Re-ordered and grouped function
38336 prototypes by file that the function is defined in.
38337 (grub_menu_execute_callback): Removed; moved to menu.h.
38338 (grub_menu_get_entry): Likewise.
38339 (grub_menu_get_timeout): Likewise.
38340 (grub_menu_set_timeout): Likewise.
38341 (grub_menu_execute_entry): Likewise.
38342 (grub_menu_execute_with_fallback): Likewise.
38343 (grub_menu_entry_run): Likewise.
38344 (grub_menu_addentry): Renamed from this ...
38345 (grub_normal_add_menu_entry): ... to this.
38347 * normal/main.c (grub_menu_addentry): Renamed from this ...
38348 (grub_normal_add_menu_entry): ... to this.
38350 * script/sh/execute.c (grub_script_execute_menuentry): Update
38351 reference to renamed grub_menu_addentry function.
38353 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38355 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38357 2009-05-22 Pavel Roskin <proski@gnu.org>
38359 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38360 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38361 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38362 compiling for the i386 targets, but not for the utilities.
38364 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38366 (grub_root_drive): Likewise.
38367 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38369 (grub_root_drive): Change size to byte.
38370 (grub_start_addr): Remove.
38371 (grub_end_addr): Likewise.
38372 (grub_apm_bios_info): Likewise.
38374 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38376 * normal/i386: Remove.
38377 * normal/powerpc: Likewise.
38378 * normal/sparc64: Likewise.
38379 * normal/x86_64: Likewise.
38381 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38383 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38384 * loader/i386/linux_trampoline.S: Fix indentation
38385 * loader/i386/xnu_helper.S: Likewise
38387 2009-05-18 Colin D Bennett <colin@gibibit.com>
38389 Display error messages when parsing a Lua statement fails.
38390 Previously, executing a syntactically invalid statement like
38391 ")foo" or "bar;" would silently fail.
38393 * script/lua/grub_main.c (handle_lua_error): New function.
38394 (grub_lua_parse_line): Improved reporting of Lua parser and
38397 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38399 Remove -Werror which causes build to fail on some systems
38401 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38402 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38403 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38405 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38407 trampoline for linux on 64-bit platform
38409 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38410 loader/i386/efi/linux_trampoline.S
38411 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38413 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38415 * loader/i386/linux_trampoline.S: moved here
38416 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38418 (jumpvector): removed
38419 (grub_linux_trampoline_start): new declaration
38420 (grub_linux_trampoline_end): likewise
38421 (grub_linux_boot): use trampoline when on 64-bit platform
38422 * loader/i386/linux.c: likewise
38424 2009-05-16 Pavel Roskin <proski@gnu.org>
38426 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38427 const to avoid a warning.
38428 (grub_lua_setenv): Likewise.
38429 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38430 lmsg to fix a warning.
38432 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38434 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38435 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38436 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38437 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38438 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38439 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38440 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38441 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38443 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38445 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38447 2009-05-16 Bean <bean123ch@gmail.com>
38449 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38450 (lua_mod_SOURCES): New variable.
38451 (lua_mod_CFLAGS): Likewise.
38452 (lua_mod_LDFLAGS): Likewise.
38454 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38455 (setjmp_mod_SOURCES): New variable.
38456 (setjmp_mod_CFLAGS): Likewise.
38457 (setjmp_LDFLAGS): Likewise.
38459 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38460 (setjmp_mod_SOURCES): New variable.
38461 (setjmp_mod_CFLAGS): Likewise.
38462 (setjmp_LDFLAGS): Likewise.
38464 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38465 (setjmp_mod_SOURCES): New variable.
38466 (setjmp_mod_CFLAGS): Likewise.
38467 (setjmp_LDFLAGS): Likewise.
38469 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38470 (setjmp_mod_SOURCES): New variable.
38471 (setjmp_mod_CFLAGS): Likewise.
38472 (setjmp_LDFLAGS): Likewise.
38474 * normal/i386/setjmp.S: Moved from here ...
38475 * lib/i386/setjmp.S: ... Moved here
38476 * normal/x86_64/setjmp.S: Moved from here ...
38477 * lib/x86_64/setjmp.S: ... Moved here
38478 * normal/powerpc/setjmp.S: Moved from here ...
38479 * lib/powerpc/setjmp.S: ... Moved here
38480 * normal/sparc64/setjmp.S: Moved from here ...
38481 * lib/sparc64/setjmp.S: ... Moved here
38483 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38484 returns_twice in mingw.
38486 * script/lua/grub_lib.c: New file.
38487 * script/lua/grub_lib.h: Likewise.
38488 * script/lua/grub_lua.h: Likewise.
38489 * script/lua/grub_main.c: Likewise.
38490 * script/lua/lapi.c: Likewise.
38491 * script/lua/lapi.h: Likewise.
38492 * script/lua/lauxlib.c: Likewise.
38493 * script/lua/lauxlib.h: Likewise.
38494 * script/lua/lbaselib.c: Likewise.
38495 * script/lua/lcode.c: Likewise.
38496 * script/lua/lcode.h: Likewise.
38497 * script/lua/ldblib.c: Likewise.
38498 * script/lua/ldebug.c: Likewise.
38499 * script/lua/ldebug.h: Likewise.
38500 * script/lua/ldo.c: Likewise.
38501 * script/lua/ldo.h: Likewise.
38502 * script/lua/ldump.c: Likewise.
38503 * script/lua/lfunc.c: Likewise.
38504 * script/lua/lfunc.h: Likewise.
38505 * script/lua/lgc.c: Likewise.
38506 * script/lua/lgc.h: Likewise.
38507 * script/lua/linit.c: Likewise.
38508 * script/lua/liolib.c: Likewise.
38509 * script/lua/llex.c: Likewise.
38510 * script/lua/llex.h: Likewise.
38511 * script/lua/llimits.h: Likewise.
38512 * script/lua/lmathlib.c: Likewise.
38513 * script/lua/lmem.c: Likewise.
38514 * script/lua/lmem.h: Likewise.
38515 * script/lua/loadlib.c: Likewise.
38516 * script/lua/lobject.c: Likewise.
38517 * script/lua/lobject.h: Likewise.
38518 * script/lua/lopcodes.c: Likewise.
38519 * script/lua/lopcodes.h: Likewise.
38520 * script/lua/loslib.c: Likewise.
38521 * script/lua/lparser.c: Likewise.
38522 * script/lua/lparser.h: Likewise.
38523 * script/lua/lstate.c: Likewise.
38524 * script/lua/lstate.h: Likewise.
38525 * script/lua/lstring.c: Likewise.
38526 * script/lua/lstring.h: Likewise.
38527 * script/lua/lstrlib.c: Likewise.
38528 * script/lua/ltable.c: Likewise.
38529 * script/lua/ltable.h: Likewise.
38530 * script/lua/ltablib.c: Likewise.
38531 * script/lua/ltm.c: Likewise.
38532 * script/lua/ltm.h: Likewise.
38533 * script/lua/lua.h: Likewise.
38534 * script/lua/luaconf.h: Likewise.
38535 * script/lua/lualib.h: Likewise.
38536 * script/lua/lundump.c: Likewise.
38537 * script/lua/lundump.h: Likewise.
38538 * script/lua/lvm.c: Likewise.
38539 * script/lua/lvm.h: Likewise.
38540 * script/lua/lzio.c: Likewise.
38541 * script/lua/lzio.h: Likewise.
38543 2009-05-16 Bean <bean123ch@gmail.com>
38545 * include/grub/kernel.h (grub_module_header_types): Add type
38548 * kern/main.c (grub_load_config): New function.
38549 (grub_main): Call grub_load_config to read boot config.
38551 * grub-mkimage (generate_image): New parameter config_path.
38552 (options): New option --config.
38553 (main): Parse --config option, and pass it to generate_image.
38555 2009-05-14 Christian Franke <franke@computer.org>
38557 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38558 This fixes build on Cygwin.
38560 2009-05-14 Pavel Roskin <proski@gnu.org>
38562 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38563 jump. This saves two bytes, so the typical case of 2 swapped
38564 drives would fit 32 bytes.
38566 2009-05-13 Pavel Roskin <proski@gnu.org>
38568 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38569 grub_uint32_t to avoid a warning.
38571 * loader/i386/linux.c (allocate_pages): When assigning
38572 real_mode_mem, cast through grub_size_t to fix a warning. The
38573 code already makes sure that the value would fit a pointer.
38574 (grub_linux_setup_video): Cast render_target->data to
38575 grub_size_t to fix a warning.
38577 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38579 * commands/i386/pc/drivemap.c: New file - implement drivemap
38581 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38582 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38584 2009-05-13 Pavel Roskin <proski@gnu.org>
38586 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38587 embedding_area_exists.
38589 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38591 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38592 it easier to understand / work with.
38593 Improve warning messages for cases where there's no embedding area,
38594 or when it is too small (or core.img too large).
38596 2009-05-13 Pavel Roskin <proski@gnu.org>
38598 * loader/i386/pc/multiboot2.c: Add necessary includes for
38599 grub_multiboot2_real_boot().
38601 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38602 PX record is always little-endian. We only need the lower 2
38605 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38606 facilitate code reuse.
38607 (grub_cpio_mount): Use "struct head", not a char buffer. This
38608 fixes a warning reported by gcc 4.4.
38610 * kernel/disk.c (grub_disk_read): Use void pointer for the
38612 (grub_disk_write): Use const void pointer for the buffer.
38613 Adjust all callers. Remove unnecessary casts.
38615 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38617 * util/i386/pc/grub-install.in: Update copyright year.
38619 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38623 * commands/gptsync.c: new file
38624 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38625 (gptsync_mod_SOURCES): new variable
38626 (gptsync_mod_CFLAGS): likewise
38627 (gptsync_mod_LDFLAGS): likewise
38628 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38630 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38632 * conf/i386-ieee1275.rmk: likewise
38633 * conf/i386-pc.rmk: likewise
38634 * conf/powerpc-ieee1275.rmk: likewise
38636 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38640 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38641 (grub_dl_ref): likewise
38643 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38645 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38646 split in two functions (one for msdos and one for gpt).
38648 2009-05-08 Pavel Roskin <proski@gnu.org>
38650 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38653 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38654 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38655 Initialize them with -1. Add sanity check for bad1. Eliminate
38658 2009-05-08 David S. Miller <davem@davemloft.net>
38660 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38662 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38664 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38667 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38670 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38672 2009-05-05 David S. Miller <davem@davemloft.net>
38674 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38676 2009-05-05 Pavel Roskin <proski@gnu.org>
38678 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38679 of grub_dl_ref() and grub_dl_unref().
38680 * commands/parttool.c: Remove preprocessor conditionals around
38681 grub_dl_ref() and grub_dl_unref().
38682 * fs/affs.c: Likewise.
38683 * fs/afs.c: Likewise.
38684 * fs/cpio.c: Likewise.
38685 * fs/ext2.c: Likewise.
38686 * fs/fat.c: Likewise.
38687 * fs/hfs.c: Likewise.
38688 * fs/hfsplus.c: Likewise.
38689 * fs/iso9660.c: Likewise.
38690 * fs/jfs.c: Likewise.
38691 * fs/minix.c: Likewise.
38692 * fs/ntfs.c: Likewise.
38693 * fs/reiserfs.c: Likewise.
38694 * fs/sfs.c: Likewise.
38695 * fs/udf.c: Likewise.
38696 * fs/ufs.c: Likewise.
38697 * fs/xfs.c: Likewise.
38698 * include/grub/dl.h: Likewise.
38699 * loader/xnu.c: Likewise.
38701 2009-05-04 Pavel Roskin <proski@gnu.org>
38703 * commands/acpi.c: Remove unused variable my_mod.
38704 * partmap/amiga.c: Likewise.
38705 * partmap/apple.c: Likewise.
38706 * partmap/gpt.c: Likewise.
38707 * partmap/pc.c: Likewise.
38708 * partmap/sun.c: Likewise.
38709 * term/gfxterm.c: Likewise.
38710 * term/i386/pc/vesafb.c: Likewise.
38711 * term/i386/pc/vga.c: Likewise.
38713 2009-05-04 David S. Miller <davem@davemloft.net>
38715 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38716 pointer args to grub_ieee1275_get_property().
38718 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38721 devices, and do not traverse down under controller nodes.
38723 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38724 (grub_ofdisk_open): Use it to un-escape "," characters.
38725 * kern/disk.c (find_part_sep): New.
38726 (grub_disk_open): Use it to find the first non-escaped ','
38727 character in the disk name.
38728 * util/ieee1275/devicemap.c (escape_of_path): New.
38729 (grub_util_emit_devicemap_entry): Use it.
38730 * util/sparc64/ieee1275/grub-install.in: Update script to
38731 strip partition specifiers properly by not triggering on
38732 '\' escaped ',' characters.
38734 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38736 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38738 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38740 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38741 on documentation from Wikipedia).
38743 2009-05-04 Pavel Roskin <proski@gnu.org>
38745 * disk/ata.c: Spelling fixes.
38746 * disk/raid.c: Likewise.
38747 * disk/usbms.c: Likewise.
38748 * disk/dmraid_nvidia.c: Likewise.
38749 * kern/ieee1275/openfw.c: Likewise.
38750 * kern/ieee1275/init.c: Likewise.
38751 * kern/ieee1275/cmain.c: Likewise.
38752 * boot/i386/pc/cdboot.S: Likewise.
38753 * video/readers/png.c: Likewise.
38754 * video/i386/pc/vbe.c: Likewise.
38755 * fs/udf.c: Likewise.
38756 * fs/hfs.c: Likewise.
38757 * fs/reiserfs.c: Likewise.
38758 * efiemu/runtime/efiemu.c: Likewise.
38759 * efiemu/main.c: Likewise.
38760 * efiemu/mm.c: Likewise.
38761 * include/grub/elf.h: Likewise.
38762 * include/grub/xnu.h: Likewise.
38763 * include/grub/usbdesc.h: Likewise.
38764 * include/grub/usb.h: Likewise.
38765 * include/grub/script_sh.h: Likewise.
38766 * include/grub/lib/LzmaEnc.h: Likewise.
38767 * include/grub/efiemu/efiemu.h: Likewise.
38768 * include/grub/command.h: Likewise.
38769 * normal/menu.c: Likewise.
38770 * normal/main.c: Likewise.
38771 * normal/datetime.c: Likewise.
38772 * bus/usb/uhci.c: Likewise.
38773 * mmap/i386/uppermem.c: Likewise.
38774 * mmap/mmap.c: Likewise.
38775 * commands/acpi.c: Likewise.
38776 * commands/test.c: Likewise.
38777 * partmap/apple.c: Likewise.
38778 * font/font.c: Likewise.
38779 * loader/sparc64/ieee1275/linux.c: Likewise.
38780 * loader/macho.c: Likewise.
38781 * loader/i386/bsd_trampoline.S: Likewise.
38782 * loader/i386/bsd.c: Likewise.
38783 * loader/xnu.c: Likewise.
38784 * term/i386/pc/vesafb.c: Likewise.
38785 * term/usb_keyboard.c: Likewise.
38786 * util/resolve.c: Likewise.
38787 * util/getroot.c: Likewise.
38789 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38791 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38793 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38795 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38798 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38800 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38801 parameter only available on BIOS.
38803 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38805 Removed wrong semicolon in declaration
38807 * grub/misc.h (grub_dprintf): remove semicolon
38809 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38811 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38812 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38813 is done by grub_cmd_linux() now).
38814 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38815 restore video to text mode.
38816 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38817 indicates lack of "vga=" parameter. "vga=0" is mapped to
38818 `GRUB_LINUX_VID_MODE_NORMAL'.
38820 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38822 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38823 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38824 and `normal/script.c'. Add `kern/rescue_reader.c',
38825 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38826 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38827 `grub_script.tab.c'.
38829 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38830 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38833 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38835 * Makefile.in: Remove duplicated 2008 in Copyright line.
38837 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38839 * util/misc.c (grub_util_warn): New function. Emits a warning
38841 * include/grub/util/misc.h (grub_util_warn): New declaration.
38843 * util/i386/pc/grub-install.in: Understand --force and pass it down
38846 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38848 (setup): Improve error messages and add warnings when requested to
38849 install in odd layouts. Refuse to install using blocklists unless
38852 2009-05-04 martin f. krafft <madduck@madduck.net>
38854 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38856 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38858 Updated copyright year
38860 * fs/hfsplus.c: updated copyright year
38862 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38866 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38867 in the space previously used by unused3
38868 (grub_hfsplus_uuid): new function
38869 (grub_hfsplus_fs): added uuid field
38871 2009-05-03 Pavel Roskin <proski@gnu.org>
38873 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38874 suppress warnings. It's no longer needed.
38875 * disk/host.c: Likewise.
38876 * disk/ata_pthru.c: Likewise.
38877 * disk/loopback.c: Likewise.
38878 * hook/datehook.c: Likewise.
38879 * parttool/pcpart.c: Likewise.
38880 * fs/i386/pc/pxe.c: Likewise.
38881 * fs/ntfscomp.c: Likewise.
38882 * efiemu/main.c: Likewise.
38883 * mmap/mmap.c: Likewise.
38884 * commands/crc.c: Likewise.
38885 * commands/hexdump.c: Likewise.
38886 * commands/hdparm.c: Likewise.
38887 * commands/acpi.c: Likewise.
38888 * commands/echo.c: Likewise.
38889 * commands/minicmd.c: Likewise.
38890 * commands/blocklist.c: Likewise.
38891 * commands/memrw.c: Likewise.
38892 * commands/loadenv.c: Likewise.
38893 * commands/usbtest.c: Likewise.
38894 * commands/lsmmap.c: Likewise.
38895 * commands/boot.c: Likewise.
38896 * commands/parttool.c: Likewise.
38897 * commands/configfile.c: Likewise.
38898 * commands/search.c: Likewise.
38899 * commands/ieee1275/suspend.c: Likewise.
38900 * commands/cat.c: Likewise.
38901 * commands/i386/pc/pxecmd.c: Likewise.
38902 * commands/i386/pc/play.c: Likewise.
38903 * commands/i386/pc/halt.c: Likewise.
38904 * commands/i386/pc/vbeinfo.c: Likewise.
38905 * commands/i386/pc/vbetest.c: Likewise.
38906 * commands/lspci.c: Likewise.
38907 * commands/date.c: Likewise.
38908 * commands/handler.c: Likewise.
38909 * commands/ls.c: Likewise.
38910 * commands/test.c: Likewise.
38911 * commands/cmp.c: Likewise.
38912 * commands/efi/loadbios.c: Likewise.
38913 * commands/efi/fixvideo.c: Likewise.
38914 * commands/halt.c: Likewise.
38915 * commands/help.c: Likewise.
38916 * commands/reboot.c: Likewise.
38917 * hello/hello.c: Likewise.
38918 * script/sh/main.c: Likewise.
38919 * loader/xnu.c: Likewise.
38920 * term/terminfo.c: Likewise.
38921 * term/i386/pc/serial.c: Likewise.
38922 * term/usb_keyboard.c: Likewise.
38924 2009-05-03 David S. Miller <davem@davemloft.net>
38926 * normal/menu.c: Include grub/parser.h
38928 2009-05-03 Pavel Roskin <proski@gnu.org>
38930 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38932 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38933 Suggested by Javier Martín <lordhabbit@gmail.com>
38935 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38936 efiemu??.o doesn't exist.
38937 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38940 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38942 FreeBSD 64-bit support
38944 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38945 and loader/i386/bsd_trampoline.S
38946 (bsd_mod_ASFLAGS): new variable
38947 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38948 (FREEBSD_MODTYPE_KERNEL64): likewise
38949 (grub_bsd64_trampoline_start): likewise
38950 (grub_bsd64_trampoline_end): likewise
38951 (grub_bsd64_trampoline_selfjump): likewise
38952 (grub_bsd64_trampoline_gdt): likewise
38953 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38954 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38955 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38956 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38957 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38959 * loader/i386/bsd_pagetable.c: new file
38960 * loader/i386/bsd_trampoline.S: likewise
38961 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38962 (ALIGN_VAR): likewise
38963 (entry_hi): new variable
38964 (kern_end_mdofs): likewise
38965 (is_64bit): likewise
38966 (grub_freebsd_add_meta): use ALIGN_VAR
38967 (grub_e820_mmap): new declaration
38968 (grub_freebsd_add_mmap): new function
38969 (grub_freebsd_add_meta_module): support 64 bit kernels
38970 (grub_freebsd_list_modules): use ALIGN_VAR
38971 (gdt_descriptor): new declaration
38972 (grub_freebsd_boot): support 64 bit kernels
38973 (grub_bsd_elf64_hook): new function
38974 (grub_bsd_load_elf): support elf64
38976 2009-05-03 Bean <bean123ch@gmail.com>
38978 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38979 after we get the result of if statement.
38981 2009-05-03 Bean <bean123ch@gmail.com>
38983 * Makefile.in (enable_efiemu): New variable.
38985 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38987 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38989 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38990 path, add -mno-red-zone option.
38991 (efiemu64_s.o): Likewise.
38992 (efiemu64.o): Use macro $^ for source file.
38994 * configure.ac (--enable-efiemu): New option.
38996 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39000 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39001 (pkglib_MODULES): add xnu.mod
39002 (xnu_mod_SOURCES): new variable
39003 (xnu_mod_CFLAGS): likewise
39004 (xnu_mod_LDFLAGS): likewise
39005 (xnu_mod_ASFLAGS): likewise
39006 * conf/i386-pc.rmk: likewise
39007 * conf/x86_64-efi.rmk: likewise
39008 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39010 * include/grub/i386/macho.h: new file
39011 * include/grub/i386/xnu.h: likewise
39012 * include/grub/macho.h: likewise
39013 * include/grub/machoload.h: likewise
39014 * include/grub/x86_64/macho.h: likewise
39015 * include/grub/x86_64/xnu.h: likewise
39016 * include/grub/xnu.h: likewise
39017 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39018 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39019 * loader/i386/efi/xnu.c: new file
39020 * loader/i386/pc/xnu.c: likewise
39021 * loader/i386/xnu.c: likewise
39022 * loader/i386/xnu_helper.S: likewise
39023 * loader/macho.c: likewise
39024 * loader/xnu.c: likewise
39025 * loader/xnu_resume.c: likewise
39026 * util/grub-dumpdevtree: likewise
39027 * include/grub/i386/pit.h: include grub/err.h
39028 (grub_pit_wait): export
39029 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39031 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39035 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39036 _linux_efi, linux_efi.
39037 new files in grub-emu
39038 new targets efiemu32.o and efiemu64.o
39039 * loader/linux_normal_efiemu.c: likewise
39040 * loader/i386/efi/linux.c: added preliminary efiemu support
39041 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39043 * include/grub/autoefi.h: new file
39044 * include/grub/i386/efiemu.h: likewise
39045 * include/grub/i386/pc/efiemu.h: likewise
39046 * include/grub/efi/api.h: add LL suffix when necessary
39047 new definitions relating to tables
39048 * include/grub/efiemu/efiemu.h: new file
39049 * include/grub/efiemu/runtime.h: likewise
39050 * efiemu/prepare.c: likewise
39051 * efiemu/loadcore_common.c: likewise
39052 * efiemu/loadcore64.c: likewise
39053 * efiemu/runtime/efiemu.sh: likewise
39054 * efiemu/runtime/efiemu.S: likewise
39055 * efiemu/runtime/efiemu.c: likewise
39056 * efiemu/runtime/config.h: likewise
39057 * efiemu/prepare32.c: likewise
39058 * efiemu/main.c: likewise
39059 * efiemu/modules/pnvram.c: likewise
39060 * efiemu/modules/i386: likewise
39061 * efiemu/modules/i386/pc: likewise
39062 * efiemu/modules/acpi.c: likewise
39063 * efiemu/i386/pc/cfgtables.c: likewise
39064 * efiemu/i386/loadcore64.c: likewise
39065 * efiemu/i386/loadcore32.c: likewise
39066 * efiemu/prepare64.c: likewise
39067 * efiemu/loadcore.c: likewise
39068 * efiemu/symbols.c: likewise
39069 * efiemu/mm.c: likewise
39070 * efiemu/loadcore32.c: likewise
39072 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39076 * commands/acpi.c: new file
39077 * commands/i386/pc/acpi.c: likewise
39078 * commands/efi/acpi.c: likewise
39079 * include/grub/acpi.h: likewise
39080 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39081 (acpi_mod_SOURCES): new variable
39082 (acpi_mod_CFLAGS): likewise
39083 (acpi_mod_LDFLAGS): likewise
39084 * conf/i386-efi.rmk: likewise
39085 * conf/x86_64-efi.rmk: likewise
39087 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39089 Missing part from mmap patch
39091 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39092 (grub_mmap_unregister)
39093 (grub_mmap_free_and_unregister): use grub_mmap_register
39095 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39099 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39100 * loader/i386/linux.c (find_mmap_size): likewise
39101 (allocate_pages): likewise
39102 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39103 (grub_fill_multiboot_mmap): likewise
39104 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39105 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39106 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39107 (OPENBSD_MMAP_RESERVED): likewise
39108 * include/grub/i386/pc/memory.h: include grub/memory.h
39109 (grub_lower_mem): removed
39110 (grub_upper_mem): likewise
39111 (GRUB_MACHINE_MEMORY_ACPI): new definition
39112 (GRUB_MACHINE_MEMORY_NVS): likewise
39113 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39114 (GRUB_MACHINE_MEMORY_HOLE): likewise
39115 (grub_machine_mmap_register): likewise
39116 (grub_machine_mmap_unregister): likewise
39117 (grub_machine_get_upper): likewise
39118 (grub_machine_get_lower): likewise
39119 (grub_machine_get_post64): likewise
39120 * include/grub/i386/efi/memory.h: new file
39121 * include/grub/x86_64/efi/memory.h: likewise
39122 * include/grub/efi/memory.h: likewise
39123 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39124 (mmap_mod_SOURCES): new variable
39125 (mmap_mod_LDFLAGS): likewise
39126 (mmap_mod_ASFLAGS): likewise
39127 * conf/i386-coreboot.rmk: likewise
39128 * conf/i386-ieee1275.rmk: likewise
39129 * conf/i386-efi.rmk: likewise
39130 * conf/x86_64-efi.rmk: likewise
39131 * include/grub/types.h (UINT_TO_PTR): new macro
39132 (PTR_TO_UINT32): likewise
39133 (PTR_TO_UINT64): likewise
39134 * include/grub/memory.h: new file
39135 * mmap/i386/pc/mmap.c: likewise
39136 * mmap/i386/pc/mmap_helper.S: likewise
39137 * mmap/i386/uppermem.c: likewise
39138 * mmap/mmap.c: likewise
39139 * mmap/efi/mmap.c: likewise
39140 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39142 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39143 (grub_upper_mem): likewise
39144 (grub_machine_init): don't use grub_upper_mem,
39145 make grub_lower_mem local
39146 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39147 grub_mmap_iterate and grub_mmap_get_upper
39148 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39150 2009-05-02 Bean <bean123ch@gmail.com>
39152 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39153 script/sh/parser.y.
39154 (pkglib_MODULES): Add normal.mod and sh.mod.
39155 (normal_SOURCES): New variable.
39156 (normal_mod_CFLAGS): Likewise.
39157 (normal_mod_LDFLAGS): Likewise.
39158 (sh_mod_SOURCES): Likewise.
39159 (sh_mod_CFLAGS): Likewise.
39160 (sh_mod_LDFLAGS): Likewise.
39162 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39163 script/sh/lexer.c_DEPENDENCIES.
39164 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39165 kern/rescue_reader.c and kern/rescue_parser.c.
39166 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39167 (grub_emu_SOURCES): Change source files.
39168 (pkglib_MODULES): Remove normal.mod.
39169 (normal_SOURCES): Removed.
39170 (normal_mod_CFLAGS): Likewise.
39171 (normal_mod_LDFLAGS): Likewise.
39172 * conf/i386-coreboot.rmk: Likewise.
39173 * conf/i386-efi.rmk: Likewise.
39174 * conf/i386-ieee1276.rmk: Likewise.
39175 * conf/powerpc-ieee1275.rmk: Likewise.
39176 * conf/sparc64-ieee1275.rmk: Likewise.
39177 * conf/x86_64-efi.rmk: Likewise.
39179 * include/grub/command.h (grub_command_execute): New inline function.
39181 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39183 * include/grub/normal.h: Remove <grub/setjmp.h>.
39184 (grub_fs_module_list): Moved to normal/autofs.c.
39185 (grub_exit_env): Removed.
39186 (grub_command_execute): Likewise.
39187 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39189 (read_command_list): New function declaration.
39190 (read_fs_list): Likewise.
39192 * include/parser.h: Include <grub/reader.h>.
39193 (grub_parser_split_cmdline): Change type of getline parameter.
39194 (grub_parser): New structure.
39195 (grub_parser_class): New variable.
39196 (grub_parser_execute): New function declaration.
39197 (grub_register_rescue_parser): Likewise.
39198 (grub_parser_register): New inline function.
39199 (grub_parser_unregister): Likewise.
39200 (grub_parser_get_current): Likewise.
39201 (grub_parser_set_current): Likewise.
39203 * include/grub/reader.h: New file.
39204 * kern/reader.c: Likewise.
39205 * kern/rescue_parser.c: Likewise.
39206 * kern/rescue_reader.c: Likewise.
39207 * normal/autofs.c: Likewise.
39208 * normal/dyncmd.c: Likewise.
39210 * include/grub/rescue.h: Removed.
39211 * normal/command.h: Likewise.
39213 * include/grub/script.h: Moved to ...
39214 * include/grub/script_sh.h: ... Moved here.
39215 * normal/execute.c: Moved to ...
39216 * script/sh/execute.c: ... Moved here.
39217 * normal/function.c: Moved to ...
39218 * script/sh/function.c: ... Moved here.
39219 * normal/lexer.c: Moved to ...
39220 * script/sh/lexer.c: ... Moved here.
39221 * normal/parser.y: Moved to ...
39222 * script/sh/parser.y: ... Moved here.
39223 * normal/script.c: Moved to ...
39224 * script/sh/script.c: ... Moved here.
39226 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39228 (grub_exit_env): Removed.
39229 (fs_module_list): Moved to normal/autofs.c.
39230 (grub_file_getline): Don't handle comment here.
39231 (free_menu): Skip removed field entry->commands.
39232 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39234 (read_config_file): Removed nested parameter, change getline function.
39235 (grub_enter_normal_mode): Removed.
39236 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39237 (read_command_list): Likewise.
39238 (autoload_fs_module): Moved to normal/autofs.c.
39239 (read_fs_list): Likewise.
39240 (reader_nested): New variable.
39241 (grub_normal_execute): Run parser.sh to switch to sh parser.
39242 (grub_cmd_rescue): Removed.
39243 (cmd_normal): Removed.
39244 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39246 (grub_cmdline_run): New function.
39247 (grub_normal_reader_init): Likewise.
39248 (grub_normal_read_line): Likewise.
39249 (grub_env_write_pager): Likewise.
39250 (cmdline): New variable.
39251 (grub_normal_reader): Likewise.
39252 (GRUB_MOD_INIT): Register normal reader and set as current, register
39253 pager hook, register normal command with grub_register_command_prio,
39254 so that it won't show up in command.lst.
39255 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39256 grub_fs_autoload_hook.
39258 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39259 (grub_menu_execute_entry): Replace grub_script_execute with
39260 grub_parser_execute, change parameter to grub_command_execute.
39262 * normal/menu_text.c: Remove <grub/script.h>.
39264 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39265 and <grub/parser.h>.
39266 (run): Change editor_getline to use new parser interface. Change
39267 parameter to grub_command_execute.
39269 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39270 <grub/reader.h> and <grub/parser.h>.
39271 (grub_load_normal_mode): Execute normal command.
39272 (grub_main): Call grub_register_core_commands,
39273 grub_register_rescue_parser and grub_register_rescue_reader, use
39274 grub_reader_loop to enter input loop.
39276 * kern/parser.c (grub_parser_split_cmdline): Change type of
39278 (grub_parser_class): New variable.
39279 (grub_parser_execute): New function.
39281 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39282 * loader/multiboot2.c: Likewise.
39283 * loader/sparc64/ieee1275/linux.c: Likewise.
39285 * util/grub-emu.c (read_command_list): New dummy function.
39287 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39289 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39290 count to 16 for CCISS and IDA.
39292 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39294 * normal/menu_text.c (grub_wait_after_message): Print a newline
39295 after waiting for user input.
39297 * loader/i386/linux.c: Include `<grub/normal.h>'.
39298 (grub_cmd_linux): Improve the error message about `ask' mode, by
39299 waiting for user input so it's not missed (we can do this, since
39300 user requested interaction).
39302 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39304 Added missing lst to grub-mkrescue
39306 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39307 and ${input_dir}/parttool.lst
39309 2009-04-30 David S. Miller <davem@davemloft.net>
39311 * util/hostdisk.c (device_is_wholedisk): New function.
39312 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39313 zero only if device_is_wholedisk() returns true.
39315 * util/hostdisk.c (convert_system_partition_to_system_disk):
39316 Handle virtual disk devices named /dev/vdiskX as found on sparc
39319 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39320 lettered partition specifier is found, convert to numbered.
39322 2009-04-29 David S. Miller <davem@davemloft.net>
39324 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39325 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39327 * normal/command.c: Add missing newline at end of file.
39329 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39331 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39332 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39333 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39334 ihandles have a 32-bit type but need to be stored in a "void *".
39336 2009-04-28 Pavel Roskin <proski@gnu.org>
39338 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39339 not disk. Adjust all dependencies.
39340 (grub_fs_uuid_close): Use grub_device_close(), not
39343 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39344 parent's partition, don't copy it by reference, as it gets freed
39347 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39349 Preboot hooks support
39351 * commands/boot.c (struct grub_preboot_t): new declaration
39352 (preboots_head): new variable
39353 (preboots_tail): likewise
39354 (grub_loader_register_preboot_hook): new function
39355 (grub_loader_unregister_preboot_hook): likewise
39356 (grub_loader_set): launch preboot hooks
39357 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39358 (grub_loader_register_preboot_hook): new declaration
39359 (grub_loader_unregister_preboot_hook): likewise
39361 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39365 * disk/scsi.c (grub_scsi_open): added missing cast when
39366 calling grub_dprintf
39368 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39370 Bug and warning fixes
39372 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39374 * commands/test.c (test_parse): fixed bug with file tests and corrected
39375 declaration of find_file
39377 2009-04-26 Pavel Roskin <proski@gnu.org>
39379 * Makefile.in: Don't install empty manual pages if help2man is
39380 missing. Use help2man option for output, not shell redirection.
39382 2009-04-26 David S. Miller <davem@davemloft.net>
39384 * util/grub-mkdevicemap.c (make_device_map): Add missing
39385 NESTED_FUNC_ATTR to process_device().
39387 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39391 * commands/test.c: rewritten to use bash-like test
39393 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39395 Parttool autoloading and improvements
39397 * Makefile.in (pkglib_DATA): add parttool.lst
39398 (parttool.lst): new target
39399 * genmk.rb: generate parttool-*
39400 (CLEANFILES): add #{parttool}
39401 (PARTTOOLFILES): new variable
39402 * genparttoollist.sh: new file
39403 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39404 (grub_pcpart_type): likewise
39405 * commands/parttool.c (helpmsg): new variable
39406 (grub_cmd_parttool): output help if not enough arguments are supplied
39408 (GRUB_MOD_INIT(parttool)): use helpmsg
39410 2009-04-24 David S. Miller <davem@davemloft.net>
39412 Avoiding opening same device multiple times in device iterator.
39414 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39415 and use it to build a list of partitions in iterate_disk() and
39416 iterate_partition().
39418 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39421 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39422 grub_devalias_iterate() result instead of unconditional 0.
39423 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39424 Also, capture hook return value, either directly or via
39425 grub_children_iterate(), and propagate to caller.
39426 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39427 grub_children_iterate): Return value is now 'int' instead of
39429 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39430 like a proper iterator, stopping when hooks return non-zero.
39431 (grub_devalias_iterate): Likewise.
39433 2009-04-23 David S. Miller <davem@davemloft.net>
39435 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39437 2009-04-22 David S. Miller <davem@davemloft.net>
39439 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39440 is larger than address_cells, use that value for address_cells too.
39442 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39443 IEEE1275_MAX_PATH_LEN): Define.
39444 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39445 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39446 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39447 'devtype'. Explicitly NULL terminate devalias expansion.
39449 * util/sparc64/ieee1275/misc.c: New file.
39450 * util/sparc64/ieee1275/grub-setup.c: New file.
39451 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39452 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39453 * util/sparc64/ieee1275/grub-install.in: New file.
39454 * util/ieee1275/ofpath.c: New file.
39455 * util/ieee1275/devicemap.c: New file.
39456 * util/devicemap.c: New file.
39457 * util/deviceiter.c: New file.
39458 * kern/sparc64/ieee1275/init.c: New file.
39459 * include/grub/util/ofpath.h: New file.
39460 * include/grub/util/deviceiter.h: New file.
39461 * util/grub-mkdevicemap.c: Include deviceiter.h.
39462 Implement using grub_util_emit_devicemap_entry and
39463 grub_util_iterate_devices.
39464 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39465 util/devicemap.c into grub-mkdevicemap
39466 * conf/i386-efi.rmk: Likewise.
39467 * conf/i386-ieee1275.rmk: Likewise.
39468 * conf/i386-pc.rmk: Likewise.
39469 * conf/powerpc-ieee1275.rmk: Likewise.
39470 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39471 images and installation utilities. Build kernel as image
39472 instead of as elf binary. Use common rules as much as possible.
39474 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39476 Correct GPT definition
39478 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39481 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39483 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39485 2009-04-19 David S. Miller <davem@davemloft.net>
39487 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39488 (grub_rescue_cmd_linux): Rename to...
39489 (grub_cmd_linux): and fix prototype.
39490 (grub_rescue_cmd_initrd): Rename to...
39491 (grub_cmd_initrd): and fix prototype.
39492 (cmd_linux, cmd_initrd): New.
39493 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39494 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39496 2009-04-17 Pavel Roskin <proski@gnu.org>
39498 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39500 (grub_ohci_transfer): Likewise.
39502 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39504 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39505 return without a value. Fix inconsistent indentation.
39507 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39508 match struct grub_fs.
39510 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39511 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39512 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39513 * commands/lspci.c (grub_lspci_iter): Likewise.
39515 2009-04-16 Bean <bean123ch@gmail.com>
39517 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39520 2009-04-15 Pavel Roskin <proski@gnu.org>
39522 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39523 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39524 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39527 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39529 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39530 that no multiple data or metadata areas are supported and `Unknown
39533 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39535 Move loader out of the kernel
39537 * kern/loader.c: moved to ...
39538 * commands/boot.c: ... moved here
39539 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39540 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39541 * include/grub/kernel.h (grub_machine_fini): export
39542 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39543 (grub_loader_set): likewise
39544 (grub_loader_unset): likewise
39545 (grub_loader_boot): likewise
39546 * conf/common.rmk: new module boot.mod
39547 (pkglib_MODULES): add boot.mod
39548 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39549 (grub_emu_SOURCES): likewise
39550 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39551 (grub_emu_SOURCES): likewise
39552 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39553 (grub_emu_SOURCES): likewise
39554 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39555 (grub_emu_SOURCES): likewise
39556 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39557 (grub_emu_SOURCES): likewise
39558 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39559 (grub_emu_SOURCES): likewise
39560 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39561 (grub_emu_SOURCES): likewise
39563 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39565 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39567 * kern/misc.c (grub_itoa): Removed function
39568 (grub_ltoa): likewise
39569 (grub_vsprintf): use grub_lltoa
39571 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39575 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39576 * conf/i386-coreboot.rmk: likewise
39577 * conf/i386-ieee1275.rmk: likewise
39578 * conf/powerpc-ieee1275.rmk: likewise
39580 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39582 * INSTALL: Add that `./autogen.sh' needs to be run before
39585 2009-04-14 Bean <bean123ch@gmail.com>
39587 * Makefile.in (pkglib_DATA): Add handler.lst.
39588 (handler.lst): New rule.
39590 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39591 * conf/i386-coreboot.rmk: Likewise.
39592 * conf/i386-ieee1275.rmk: Likewise.
39593 * conf/i386-efi.rmk: Likewise.
39594 * conf/x86_64-efi.rmk: Likewise.
39595 * conf/powerpc-ieee1275.rmk: Likewise.
39596 * conf/sparc64-ieee1275.rmk: Likewise.
39598 * genhandlerlist.sh: New file.
39600 * genmk.rb: Add rules to generate handler.lst.
39602 * include/grub/normal.h (grub_file_getline): New function definition.
39603 (read_handler_list): Likewise.
39604 (free_handler_list): Likewise.
39606 * include/grub/term.h (grub_term_register_input): Add name parameter
39607 for auto generation of handler.lst.
39608 (grub_term_register_output): Likewise.
39610 * normal/handler.c: New file.
39612 * normal/main.c (get_line): Renamed to grub_file_getline.
39613 (read_config_file): Use the newly renamed grub_file_getline.
39614 (read_command_list): Likewise.
39615 (read_fs_list): Likewise.
39616 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39617 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39619 * term/efi/console.c (grub_console_init): Add name parameter for auto
39620 generation of handler.lst.
39621 * term/gfxterm.c: Likewise.
39622 * term/i386/pc/at_keyboard.c: Likewise.
39623 * term/i386/pc/console.c: Likewise.
39624 * term/i386/pc/serial.c: Likewise.
39625 * term/i386/pc/vesafb.c: Likewise.
39626 * term/i386/pc/vga.c: Likewise.
39627 * term/i386/pc/vga_text.c: Likewise.
39628 * term/ieee1275/ofconsole.c: Likewise.
39629 * term/usb_keyboard.c: Likewise.
39631 2009-04-14 Bean <bean123ch@gmail.com>
39633 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39634 properly with null character.
39636 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39638 * configure: Remove.
39639 * config.h.in: Likewise.
39640 * stamp-h.in: Likewise.
39641 * DISTLIST: Likewise.
39642 * conf/common.mk: Likewise.
39643 * conf/i386-coreboot.mk: Likewise.
39644 * conf/i386-efi.mk: Likewise.
39645 * conf/i386-ieee1275.mk: Likewise.
39646 * conf/i386.mk: Likewise.
39647 * conf/i386-pc.mk: Likewise.
39648 * conf/powerpc-ieee1275.mk: Likewise.
39649 * conf/sparc64-ieee1275.mk: Likewise.
39650 * conf/x86_64-efi.mk: Likewise.
39652 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39655 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39656 David S. Miller <davem@davemloft.net>
39658 * util/hostdisk.c (make_device_name): Fix buffer length
39661 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39663 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39664 <sys/param.h> and <sys/sysctl.h>.
39665 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39666 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39667 opening the device and reset them afterwards.
39669 2009-04-13 Pavel Roskin <proski@gnu.org>
39671 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39672 Reported by John Stanley <jpsinthemix@verizon.net>
39674 2009-04-13 Robert Millan <rmh@aybabtu.com>
39676 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39677 that name for menuentries when appropriate.
39679 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39681 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39683 2009-04-13 Robert Millan <rmh@aybabtu.com>
39685 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39686 to Linux, simply abort telling the user it's no longer supported.
39688 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39690 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39691 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39692 `freebsd_loadenv' only when devices.hints exist.
39694 2009-04-13 Pavel Roskin <proski@gnu.org>
39696 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39698 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39700 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39702 (grub_drive): Likewise.
39704 2009-04-13 David S. Miller <davem@davemloft.net>
39706 * kern/sparc64/ieee1275/ieee1275.c: New file.
39707 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39708 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39709 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39710 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39711 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39712 grub_ieee1275_alloc_physmem): Declare new exported functions.
39714 * include/grub/sparc64/ieee1275/loader.h: New file.
39715 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39716 * include/grub/sparc64/kernel.h: Likewise.
39717 * loader/sparc64/ieee1275/linux.c: Likewise.
39719 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39720 (grub_fstest_SOURCES): Likewise.
39722 * util/hostdisk.c (make_device_name): Do not make any assumptions
39723 about the length of drive names.
39725 * kern/dl.c (grub_dl_load_file): Close file immediately when
39726 we are done using it.
39728 2009-04-12 David S. Miller <davem@davemloft.net>
39730 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39731 values. Noticed by Pavel Roskin.
39733 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39736 * genmk.rb: Add more flexible image type specification, also
39737 pass --strip-unneeded to objcopy.
39738 * conf/i386-pc.rmk: Use *_FORMAT.
39739 * conf/i386-pc.mk: Rebuilt.
39741 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39742 (OFDISK_HASH_SZ): Define.
39743 (ofdisk_hash): New hash table.
39744 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39745 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39746 instead of device phandle which is not unique.
39748 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39749 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39750 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39751 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39752 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39753 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39754 GRUB_KERNEL_MACHINE_DATA_END): Define.
39755 (grub_kernel_image_size, grub_total_module_size): Declare.
39757 2009-04-12 Pavel Roskin <proski@gnu.org>
39759 * configure.ac: Change the logic when we check for target tools.
39760 Do it when the target is specified and it's different from the
39761 specified value of the host.
39763 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39765 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39766 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39767 GNU/kFreeBSD. Check if a device is a character device. Use
39768 DIOCGMEDIASIZE to get the size.
39769 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39770 support for GNU/kFreeBSD.
39771 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39772 is a character device instead of a block device. Add support for
39773 FreeBSD device names.
39775 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39776 is a character device instead of a block device.
39778 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39779 is a character device instead of a block device.
39781 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39783 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39784 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39785 FreeBSD. Check if a device is a character device. Use
39786 DIOCGMEDIASIZE to get the size.
39787 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39788 support for FreeBSD.
39789 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39790 is a character device instead of a block device. Add support for
39791 FreeBSD device names.
39793 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39794 a character device instead of a block device.
39795 (grub_util_check_char_device): New function.
39797 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39798 a character device instead of a block device.
39800 * include/grub/util/getroot.h (grub_util_check_char_device): New
39803 2009-04-11 David S. Miller <davem@davemloft.net>
39805 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39807 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39808 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39809 function, if present.
39810 (__bswapdi2): Likewise.
39812 * include/grub/sparc64/ieee1275/boot.h: New file.
39813 * boot/sparc64/ieee1275/boot.S: Likewise.
39814 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39816 * kern/misc.c (grub_ltoa): New function.
39817 (grub_vsprintf): Use it to format 'long' integers.
39819 2009-04-10 David S. Miller <davem@davemloft.net>
39821 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39822 slots are of type grub_ieee1275_cell_t.
39823 (grub_nand_read): Likewise.
39824 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39825 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39826 macros are used to compare values in arg/ret block of the call.
39827 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39828 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39829 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39830 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39831 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39832 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39833 grub_ieee1275_close, grub_ieee1275_set_property,
39834 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39835 grub_ieee1275_cell_t.
39836 * kern/ieee1275/openfw.c (grub_map): Likewise.
39837 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39838 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39840 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39841 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39842 (grub_devalias_iterate): Likewise.
39844 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39848 * fs/ufs.c (INODE_NBLOCKS): new definition
39849 (struct grub_ufs_dirent): added fields for non-BSD dirents
39850 (grub_ufs_get_file_block): fixed double indirect handling
39851 (grub_ufs_lookup_symlink): use more robust way to determine whether
39853 (grub_ufs_find_file): support for non-BSD dirents
39854 (grub_ufs_dir): support for non-BSD dirents
39856 2009-04-10 Bean <bean123ch@gnail.com>
39858 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39859 attribute, otherwise the size would be wrong for i386 platform.
39861 * include/grub/pci.h (grub_pci_read_word): New inline function.
39862 (grub_pci_read_byte): Likewise.
39863 (grub_pci_write): Likewise.
39864 (grub_pci_write_word): Likewise.
39865 (grub_pci_write_byte): Likewise.
39867 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39869 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39870 (find_framebuf): Scan pci to locate the frame buffer address.
39872 * commands/efi/fixvideo.c: New file.
39874 * commands/efi/loadbios.c: Likewise.
39876 * commands/memrw.c: Likewise.
39878 * util/grub-dumpbios.in: Likewise.
39880 * conf/common.rmk (grub-dumpbios): New utility.
39881 (pkglib_MODULES): New module memrw.mod.
39882 (memrw_mod_SOURCE): New macro.
39883 (memrw_mod_CFLAGS): Likewise.
39884 (memrw_mod_LDFLAGS): Likewise.
39886 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39888 (loadbios_mod_SOURCE): New macro.
39889 (loadbios_mod_CFLAGS): Likewise.
39890 (loadbios_mod_LDFLAGS): Likewise.
39891 (fixvideo_mod_SOURCE): Likewise.
39892 (fixvideo_mod_CFLAGS): Likewise.
39893 (fixvideo_mod_LDFLAGS): Likewise.
39895 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39897 (loadbios_mod_SOURCE): New macro.
39898 (loadbios_mod_CFLAGS): Likewise.
39899 (loadbios_mod_LDFLAGS): Likewise.
39900 (fixvideo_mod_SOURCE): Likewise.
39901 (fixvideo_mod_CFLAGS): Likewise.
39902 (fixvideo_mod_LDFLAGS): Likewise.
39904 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39906 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39908 2009-04-07 David S. Miller <davem@davemloft.net>
39910 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39911 support for R_SPARC_OLO10 relocations. Fix compile warning for
39912 R_SPARC_WDISP30 case.
39913 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39915 2009-04-06 Pavel Roskin <proski@gnu.org>
39917 * include/grub/misc.h (ARRAY_SIZE): New macro.
39918 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39920 * loader/i386/linux.c (allocate_pages): Use free_pages().
39921 (grub_linux_unload): Don't use free_pages().
39922 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39923 wrong index. Treat all other modes as text modes.
39924 (grub_cmd_linux): Initialize vid_mode unconditionally to
39925 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39927 * commands/help.c (print_command_help): Use cmd->prio, not
39928 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39930 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39934 * parttool/pcpart.c: new file
39935 * commands/parttool.c: likewise
39936 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39937 (parttool_mod_SOURCES): new variable
39938 (parttool_mod_CFLAGS): likewise
39939 (parttool_mod_LDFLAGS): likewise
39940 (pcpart_mod_SOURCES): likewise
39941 (pcpart_mod_CFLAGS): likewise
39942 (pcpart_mod_LDFLAGS): likewise
39943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39944 and parttool/pcpart.c
39945 * conf/i386-efi.rmk: likewise
39946 * conf/i386-ieee1275.rmk: likewise
39947 * conf/i386-pc.rmk: likewise
39948 * conf/powerpc-ieee1275.rmk: likewise
39949 * conf/sparc64-ieee1275.rmk: likewise
39950 * conf/x86_64-ieee1275.rmk: likewise
39952 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39954 Support for mtime and further expandability of dir command
39956 * include/grub/lib/datetime.h: moved to ...
39957 * include/grub/datetime.h: ... moved here and added
39958 declaration of grub_unixtime2datetime. All users updated
39959 * include/grub/fs.h: new syntax for dir and mtime functions in
39961 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39962 and GRUB_FSHELP_FLAGS_MASK
39963 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39964 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39965 (grub_ext2_mtime): new function
39966 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39967 (grub_hfsplus_mtime): new function
39968 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39969 (GRUB_UFS_ATTR_FILE): likewise
39970 (GRUB_UFS_ATTR_LNK): likewise
39971 (struct grub_ufs_sblock): new fields mtime
39972 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39974 (grub_ufs_dir): mtime support
39975 (grub_ufs_mtime): new function
39976 * fs/affs.c (grub_affs_dir): use new dir syntax
39977 * fs/afs.c (grub_afs_dir): likewise
39978 * fs/cpio.c (grub_cpio_dir): likewise
39979 * fs/fat.c (grub_fat_find_dir): likewise
39980 * fs/hfs.c (grub_hfs_dir): likewise
39981 * fs/iso9660.c (grub_iso9660_dir): likewise
39982 * fs/jfs.c (grub_jfs_dir): likewise
39983 * fs/minix.c (grub_minix_dir): likewise
39984 * fs/ntfs.c (grub_ntfs_dir): likewise
39985 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39986 * fs/sfs.c (grub_sfs_dir): likewise
39987 * fs/xfs.c (grub_xfs_dir): likewise
39988 * util/hostfs.c (grub_hostfs_dir): likewise
39989 * lib/datetime.c: moved to ...
39990 * normal/datetime.c: ... moved here
39991 (grub_unixtime2datetime): new function
39992 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39993 * normal/completion.c (iterate_dir): use new dir syntax
39994 * normal/misc.c (grub_normal_print_device_info): tell the
39995 last modification time of a volume
39996 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39997 * conf/common.rmk: added lib/datetime.c to ls.mod
39998 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39999 (normal_mod_SOURCES): likewise
40000 (datetime_mod_SOURCES): Removed lib/datetime.c
40001 * conf/i386-efi.rmk: likewise
40002 * conf/i386-ieee1275.rmk: likewise
40003 * conf/i386-pc.rmk: likewise
40004 * conf/powerpc-ieee1275.rmk: likewise
40005 * conf/sparc64-ieee1275.rmk: likewise
40006 * conf/x86_64-efi.rmk: likewise
40008 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40010 Trim trailing spaces in FAT label and support mtools-like labels
40012 * fs/fat.c (grub_fat_iterate_dir): New function based
40013 on grub_fat_find_dir
40014 (grub_fat_find_dir): use grub_fat_iterate_dir
40015 (grub_fat_label): likewise
40017 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40019 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40021 remove extraneous kernel_elf_HEADERS
40023 2009-04-04 Bean <bean123ch@gnail.com>
40025 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40027 * util/misc.c: Likewise.
40029 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40031 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40032 instead of grub_printf.
40034 2009-04-03 Robert Millan <rmh@aybabtu.com>
40036 * loader/i386/linux.c (grub_linux_setup_video): Fill
40037 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40038 values from `mode info' structure instead of hardcoded
40041 2009-04-01 Pavel Roskin <proski@gnu.org>
40043 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40045 * genmk.rb: Likewise.
40046 * configure.ac: Likewise.
40048 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40050 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40051 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40053 2009-04-01 David S. Miller <davem@davemloft.net>
40055 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40056 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40057 (grub_setjmp): Mark with 'returns_twice' attribute.
40058 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40059 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40060 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40062 2009-04-01 Robert Millan <rmh@aybabtu.com>
40064 Reapply fix from 2008-07-28 which was accidentally reverted; also
40065 perform the same fix to a similar check in same function.
40067 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40068 with the same number are found, just use issue a warning with
40069 grub_dprintf(), as this error has been reported to be non-fatal.
40071 2009-03-31 Pavel Roskin <proski@gnu.org>
40073 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40074 for cross-compilation.
40076 2009-03-30 Robert Millan <rmh@aybabtu.com>
40078 Fix i386-ieee1275 build.
40080 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40081 Remove declaration.
40083 2009-03-30 Pavel Roskin <proski@gnu.org>
40085 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40086 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40087 zero-terminated, rely only on the strlen value. Fix comparison
40088 of strings differing in length.
40090 2009-03-30 Robert Millan <rmh@aybabtu.com>
40092 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40093 checking for abi version. Improve error messages on BIOS to notify
40094 user about `linux16' command.
40096 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40100 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40101 in case of collision
40102 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40104 2009-03-29 Robert Millan <rmh@aybabtu.com>
40106 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40107 set `vid_mode' accordingly.
40108 (grub_linux_boot): Process `vid_mode' and set video mode.
40110 2009-03-29 Robert Millan <rmh@aybabtu.com>
40112 * util/grub.d/10_linux.in (linux_entry): New function.
40113 Factorize generation of Linux boot entries.
40115 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40117 Make the format of Environment Block plain text. The boot loader
40118 part is not tested well yet.
40120 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40122 (envblk): Likewise.
40123 (usage): Remove "info" and "clear". Add "unset". Update the
40124 description of "set", as this does not delete variables any
40126 (create_envblk_file): Complete rewrite.
40127 (open_envblk_file): Likewise.
40128 (cmd_info): Removed.
40129 (cmd_list): Likewise.
40130 (cmd_set): Likewise.
40131 (cmd_clear): Likewise.
40132 (list_variables): New function.
40133 (write_envblk): Likewise.
40134 (set_variables): Likewise.
40135 (unset_variables): Likewise.
40136 (main): Complete rewrite.
40138 * commands/loadenv.c (buffer): Removed.
40139 (envblk): Likewise.
40140 (open_envblk_file): New function.
40141 (read_envblk_file): Complete rewrite.
40142 (grub_cmd_load_env): Likewise.
40143 (grub_cmd_list_env): Likewise.
40144 (struct blocklist): New struct.
40145 (free_blocklists): New function.
40146 (check_blocklists): Likewise.
40147 (write_blocklists): Likewise.
40148 (grub_cmd_save_env): Complete rewrite.
40150 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40151 a plain text signature.
40152 (GRUB_ENVBLK_MAXLEN): Removed.
40153 (struct grub_envblk): Complete rewrite.
40154 (grub_envblk_find): Removed.
40155 (grub_envblk_insert): Likewise.
40156 (grub_envblk_open): New prototype.
40157 (grub_envblk_set): Likewise.
40158 (grub_envblk_delete): Put const to VALUE.
40159 (grub_envblk_iterate): Put const to NAME and VALUE.
40160 (grub_envblk_close): New prototype.
40161 (grub_envblk_buffer): New inline function.
40162 (grub_envblk_size): Likewise.
40164 * lib/envblk.c: Include grub/mm.h.
40165 (grub_env_find): Removed.
40166 (grub_envblk_open): New function.
40167 (grub_envblk_close): Likewise.
40168 (escaped_value_len): Likewise.
40169 (find_next_line): Likewise.
40170 (grub_envblk_insert): Removed.
40171 (grub_envblk_set): New function.
40172 (grub_envblk_delete): Complete rewrite.
40173 (grub_envblk_iterate): Likewise.
40175 2009-03-28 Robert Millan <rmh@aybabtu.com>
40177 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40178 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40179 variables. Use 16-bit loader.
40180 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40182 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40183 (grub_linux16_boot): ... this. Update all users.
40184 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40185 (grub_linux_boot): ... this. Update all users.
40187 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40188 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40189 commands to `linux16' and `initrd16'.
40190 (GRUB_MOD_FINI(linux)): Rename to ...
40191 (GRUB_MOD_FINI(linux16)): ... this.
40193 2009-03-24 Pavel Roskin <proski@gnu.org>
40195 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40196 not just for compilation.
40198 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40200 Move multiboot helper out of kernel
40202 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40203 `loader/i386/multiboot_helper.S'.
40204 * conf/i386-coreboot.rmk: Likewise
40205 * conf/i386-ieee1275.rmk: Likewise
40207 * kern/i386/loader.S: Move multiboot helpers from here...
40208 * loader/i386/multiboot_helper.S: ...moved here
40209 * include/grub/i386/loader.h: Move declarations of multiboot
40210 helpers from here...
40211 * include/grub/i386/multiboot.h: ...moved here
40212 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40214 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40216 * kern/env.c (grub_env_context_open): Added an argument to specify
40217 whether a new context inherits exported variables from current
40218 one. This is useful when making a sandbox to interpret a config
40220 All callers updated.
40222 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40224 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40226 * kern/env.c (grub_env_context_close): Fix memory leaks.
40228 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40230 * normal/main.c (grub_normal_execute): Added an argument
40231 BATCH to specify if an interactive interface should be provided
40232 after reading a config file.
40233 All callers updated.
40234 (read_command_list): Prevent being executed twice.
40235 (read_fs_list): Likewise.
40237 * include/grub/normal.h (grub_normal_execute): Updated the
40240 2009-03-22 Pavel Roskin <proski@gno.org>
40242 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40244 * kern/i386/pc/startup.S: Likewise.
40245 * kern/i386/efi/startup.S: Likewise.
40246 * kern/i386/ieee1275/startup.S: Likewise.
40247 * kern/i386/coreboot/startup.S: Likewise.
40248 * kern/x86_64/efi/startup.S: Likewise.
40250 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40251 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40252 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40254 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40256 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40258 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40260 Use vaddr of correct segment for entry_point.
40262 2009-03-21 Bean <bean123ch@gmail.com>
40264 * commands/blocklist.c: Add include file <grub/command.h>, remove
40265 <grub/normal.h> and <grub/arg.h>.
40266 (grub_cmd_blocklist): Use the new command interface.
40267 (GRUB_MOD_INIT): Likewise.
40268 (GRUB_MOD_FINI): Likewise.
40269 * commands/boot.c: Likewise.
40270 * commands/cat.c: Likewise.
40271 * commands/cmp.c: Likewise.
40272 * commands/configfile.c: Likewise.
40273 * commands/crc.c: Likewise.
40274 * commands/echo.c: Likewise.
40275 * commands/halt.c: Likewise.
40276 * commands/handler.c: Likewise.
40277 * commands/hdparm.c: Likewise.
40278 * commands/help.c: Likewise.
40279 * commands/hexdump.c: Likewise.
40280 * commands/loadenv.c: Likewise.
40281 * commands/ls.c: Likewise.
40282 * commands/lsmmap.c: Likewise.
40283 * commands/lspci.c: Likewise.
40284 * commands/loadenv.c: Likewise.
40285 * commands/read.c: Likewise.
40286 * commands/reboot.c: Likewise.
40287 * commands/search.c: Likewise.
40288 * commands/sleep.c: Likewise.
40289 * commands/test.c: Likewise.
40290 * commands/usbtest.c: Likewise.
40291 * commands/videotest.c: Likewise.
40292 * commands/i386/cpuid.c: Likewise.
40293 * commands/i386/pc/halt.c: Likewise.
40294 * commands/i386/pc/play.c: Likewise.
40295 * commands/i386/pc/pxecmd.c: Likewise.
40296 * commands/i386/pc/vbeinfo.c: Likewise.
40297 * commands/i386/pc/vbetest.c: Likewise.
40298 * commands/ieee1275/suspend.c: Likewise.
40299 * disk/loopback.c: Likewise.
40300 * font/font_cmd.c: Likewise.
40301 * hello/hello.c: Likewise.
40302 * loader/efi/appleloader.c: Likewise.
40303 * loader/efi/chainloader.c: Likewise.
40304 * loader/i386/bsd.c: Likewise.
40305 * loader/i386/efi/linux.c: Likewise.
40306 * loader/i386/ieee1275/linux.c: Likewise.
40307 * loader/i386/linux.c: Likewise.
40308 * loader/i386/pc/chainloader.c: Likewise.
40309 * loader/i386/pc/linux.c: Likewise.
40310 * loader/powerpc/ieee1275/linux.c: Likewise.
40311 * loader/multiboot_loader.c: Likewise.
40312 * term/gfxterm.c: Likewise.
40313 * term/i386/pc/serial.c: Likewise.
40314 * term/terminfo.c: Likewise.
40316 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40317 * term/i386/pc/vga.c: Likewise.
40318 * video/readers/jpeg.c: Likewise.
40319 * video/readers/png.c: Likewise.
40320 * video/readers/tga.c: Likewise.
40322 * util/grub-fstest (cmd_loopback): Removed.
40323 (cmd_blocklist): Likewise.
40324 (cmd_ls): Likewise.
40325 (grub_register_command): Likewise.
40326 (grub_unregister_command): Likewise.
40327 (execute_command): Use grub_command_find to locate command and execute
40330 * include/grub/efi/chainloader.h: Removed.
40331 * loader/efi/chainloader_normal.c: Likewise.
40332 * loader/i386/bsd_normal.c: Likewise.
40333 * loader/i386/pc/chainloader_normal.c: Likewise.
40334 * loader/i386/pc/multiboot_normal.c: Likewise.
40335 * loader/linux_normal.c: Likewise.
40336 * loader/multiboot_loader_normal.c: Likewise.
40337 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40339 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40340 and grub_register_command_p1.
40342 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40343 kern/command.c, lib/arg.c and commands/extcmd.c.
40344 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40345 (minicmd_mod_SOURCES): New variable.
40346 (minicmd_mod_CFLAGS): Likewise.
40347 (minicmd_mod_LDFLAGS): Likewise.
40348 (extcmd_mod_SOURCES): Likewise.
40349 (extcmd_mod_CFLAGS): Likewise.
40350 (extcmd_mod_LDFLAGS): Likewise.
40351 (boot_mod_SOURCES): Removed.
40352 (boot_mod_CFLAGS): Likewise.
40353 (boot_mod_LDFLAGS): Likewise.
40355 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40357 (kernel_img_HEADERS): Add command.h.
40358 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40359 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40361 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40362 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40363 remove the corresponding normal mode command.
40364 (normal_mod_SOURCES): Remove normal/arg.c.
40365 * conf/i386-coreboot.rmk: Likewise.
40366 * conf/i386-efi.rmk: Likewise.
40367 * conf/i386-ieee1275.rmk: Likewise.
40368 * conf/powerpc-ieee1275.rmk: Likewise.
40369 * conf/x86_64-efi.rmk: Likewise.
40371 * include/grub/arg.h: Move from here ...
40372 * include/grub/lib/arg.h: ... to here.
40374 * normal/arg.c: Move from here ...
40375 * lib/arg.c: ... to here.
40377 * commands/extcmd.c: New file.
40378 * commands/minicmd.c: Likewise.
40379 * include/grub/command.h: Likewise.
40380 * include/grub/extcmd.h: Likewise.
40381 * kern/command.c: Likewise.
40382 * kern/corecmd.c: Likewise.
40384 * kern/list.c (grub_list_iterate): Return int instead of void.
40385 (grub_list_insert): New function.
40386 (grub_prio_list_insert): Likewise.
40388 * kern/rescue.c (grub_rescue_command): Removed.
40389 (grub_rescue_command_list): Likewise.
40390 (grub_rescue_register_command): Likewise.
40391 (grub_rescue_unregister_command): Likewise.
40392 (grub_rescue_cmd_boot): Move to minicmd.c
40393 (grub_rescue_cmd_help): Likewise.
40394 (grub_rescue_cmd_info): Likewise.
40395 (grub_rescue_cmd_boot): Likewise.
40396 (grub_rescue_cmd_testload): Likewise.
40397 (grub_rescue_cmd_dump): Likewise.
40398 (grub_rescue_cmd_rmmod): Likewise.
40399 (grub_rescue_cmd_lsmod): Likewise.
40400 (grub_rescue_cmd_exit): Likewise.
40401 (grub_rescue_print_devices): Moved to corecmd.c.
40402 (grub_rescue_print_files): Likewise.
40403 (grub_rescue_cmd_ls): Likewise.
40404 (grub_rescue_cmd_insmod): Likewise.
40405 (grub_rescue_cmd_set): Likewise.
40406 (grub_rescue_cmd_unset): Likewise.
40407 (attempt_normal_mode): Use grub_command_find to get normal module.
40408 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40409 commands, remove grub_rescue_register_command calls.
40411 * normal/command.c (grub_register_command): Removed.
40412 (grub_unregister_command): Likewise.
40413 (grub_command_find): Likewise.
40414 (grub_iterate_commands): Likewise.
40415 (rescue_command): Likewise.
40416 (export_command): Moved to corecmd.c.
40417 (set_command): Removed.
40418 (unset_command): Likewise.
40419 (insmod_command): Likewise.
40420 (rmmod_command): Likewise.
40421 (lsmod_command): Likewise.
40422 (grub_command_init): Likewise.
40424 * normal/completion.c (iterate_command): Use cmd->prio to check for
40426 (complete_arguments): Use grub_extcmd_t structure to find options.
40427 (grub_normal_do_completion): Change function grub_iterate_commands to
40428 grub_command_iterate.
40430 * normal/execute.c (grub_script_execute_cmd): No need to parse
40433 * normal/main.c (grub_dyncmd_dispatcher): New function.
40434 (read_command_list): Register unload commands as dyncmd.
40435 (grub_cmd_normal): Use new command interface, register rescue,
40436 unregister normal at entry, register normal, unregister rescue at exit.
40438 * include/grub/list.h (grub_list_test_t): New type.
40439 (grub_list_iterate): Return int instead of void.
40440 (grub_list_insert): New function.
40441 (GRUB_AS_NAMED_LIST_P): New macro.
40442 (GRUB_AS_PRIO_LIST): Likewise.
40443 (GRUB_AS_PRIO_LIST_P): Likewise.
40444 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40445 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40446 (grub_prio_list): New structure.
40447 (grub_prio_list_insert): New function.
40448 (grub_prio_list_remove): New inline function.
40450 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40451 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40452 (GRUB_COMMAND_FLAG_MENU): Likewise.
40453 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40454 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40455 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40456 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40457 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40458 (grub_command): Likewise.
40459 (grub_register_command): Likewise.
40460 (grub_command_find): Likewise.
40461 (grub_iterate_commands): Likewise.
40462 (grub_command_init): Likewise.
40463 (grub_arg_parse): Likewise.
40464 (grub_arg_show_help): Likewise.
40466 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40467 (grub_rescue_unregister_command): Likewise.
40469 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40470 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40471 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40473 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40474 grub_rescue_cmd_initrd.
40475 * include/grub/i386/loader.h: Likewise.
40476 * include/grub/x86_64/loader.h: Likewise.
40478 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40480 2009-03-21 Bean <bean123ch@gmail.com>
40482 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40483 instead of stat in mingw environment.
40485 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40487 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40489 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40492 2009-03-21 Bean <bean123ch@gmail.com>
40494 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40495 out of range error.
40497 2009-03-18 Michel Dänzer <michel@daenzer.net>
40499 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40500 checking inode flags for EXT4_EXTENTS_FLAG.
40502 2009-03-18 Robert Millan <rmh@aybabtu.com>
40504 * loader/i386/linux.c: Include `<grub/video.h>' and
40505 `<grub/i386/pc/vbe.h>'..
40506 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40507 (grub_linux32_boot): Attempt to configure video settings with
40508 grub_linux_setup_video().
40509 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40510 to avoid grub_console_fini() which would step out of graphical mode
40513 2009-03-14 Robert Millan <rmh@aybabtu.com>
40515 Fix build on powerpc.
40516 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40518 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40520 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40521 background image command.
40523 2009-03-12 Colin D Bennett <colin@gibibit.com>
40525 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40526 (grub_gfxterm_putchar): Extract pairs of identical calls to
40527 draw_cursor out of conditional blocks.
40529 2009-03-11 Pavel Roskin <proski@gnu.org>
40531 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40532 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40534 2009-03-11 Robert Millan <rmh@aybabtu.com>
40536 * loader/i386/multiboot_elfxx.c
40537 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40539 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40541 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40544 2009-03-11 Robert Millan <rmh@aybabtu.com>
40546 * loader/i386/multiboot.c (code_size): New variable.
40547 (grub_multiboot): Define offsets by adding to `code_size' rather
40548 than subtracting from `grub_multiboot_payload_size'. Provide
40549 4-byte alignment to MBI and others by increasing
40550 `boot_loader_name_length' appropriately.
40552 * loader/i386/multiboot_elfxx.c
40553 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40555 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40560 2009-03-08 Robert Millan <rmh@aybabtu.com>
40562 Make loader/i386/linux.c usable on i386-pc again.
40564 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40566 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40569 2009-03-07 Bean <bean123ch@gmail.com>
40571 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40574 2009-03-06 Robert Millan <rmh@aybabtu.com>
40576 Fix display issue on terminals with screen size other than 80x25
40577 (e.g. gfxterm with resolution higher than 640x480).
40579 * normal/main.c (grub_normal_init_page): Display title text in a
40580 position relative to the center of the terminal instead of relying
40581 on a hardcoded offset.
40583 2009-03-04 Robert Millan <rmh@aybabtu.com>
40585 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40588 * Makefile.in (host_kernel): New variable.
40589 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40590 scripts instead of just the windows one.
40591 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40593 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40595 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40598 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40601 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40602 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40604 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40606 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40607 or if there's no space for the disk label and print the partition number on a
40610 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40612 * util/misc.c: Include <time.h>.
40613 (grub_millisleep): New function.
40615 2009-03-04 Bean <bean123ch@gmail.com>
40617 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40618 another option -mno-red-zone.
40620 * commands/handler.c: Change module description.
40622 * kern/handler.c: Add missing space at the end of description line.
40624 * kern/list.c: Likewise.
40626 2009-03-03 Robert Millan <rmh@aybabtu.com>
40628 Move more components to the relocation area, and fix mbi pointer
40629 handling to use the destination rather than the origin (thanks to
40630 Vladimir Serbinenko for spotting).
40632 * loader/i386/multiboot.c (mbi_dest): New variable.
40633 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40634 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40637 2009-03-01 Bean <bean123ch@gmail.com>
40639 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40640 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40641 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40642 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40644 * loader/i386/efi/linux.c (acpi_guid): New variable.
40645 (acpi_guid): Likewise.
40646 (EBDA_SEG_ADDR): New constant.
40647 (LOW_MEM_ADDR): Likewise.
40648 (FAKE_EBDA_SEG): Likewise.
40649 (fake_bios_data): New function.
40650 (grub_linux_boot): Call fake_bios_data.
40652 2009-03-01 Bean <bean123ch@gmail.com>
40654 * commands/terminal.c: Removed.
40656 * commands/handler.c: New file.
40658 * include/grub/list.h: Likewise.
40660 * include/grub/handler.h: Likewise.
40662 * kern/list.c: Likewise.
40664 * kern/handler.c: Likewise.
40666 * kern/term.h: Include header file <grub/handler.h>.
40667 (grub_term_input): Move next field to the beginning.
40668 (grub_term_output): Likewise.
40669 (grub_term_input_class): New variable.
40670 (grub_term_output_class): Likewise.
40671 (grub_term_register_input): Changed to inline function.
40672 (grub_term_register_output): Likewise.
40673 (grub_term_unregister_input): Likewise.
40674 (grub_term_unregister_output): Likewise.
40675 (grub_term_set_current_input): Likewise.
40676 (grub_term_set_current_output): Likewise.
40677 (grub_term_get_current_input): Likewise.
40678 (grub_term_get_current_output): Likewise.
40679 (grub_term_iterate_input): Removed.
40680 (grub_term_iterate_output): Likewise.
40682 * kern/term.c (grub_term_list_input): Removed.
40683 (grub_term_list_output): Likewise.
40684 (grub_term_input_class): New variable.
40685 (grub_term_output_class): Likewise.
40686 (grub_cur_term_input): Change variable as macro.
40687 (grub_cur_term_output): Likewise.
40688 (grub_term_register_input): Removed.
40689 (grub_term_register_output): Likewise.
40690 (grub_term_unregister_input): Likewise.
40691 (grub_term_unregister_output): Likewise.
40692 (grub_term_set_current_input): Likewise.
40693 (grub_term_set_current_output): Likewise.
40694 (grub_term_iterate_input): Likewise.
40695 (grub_term_iterate_output): Likewise.
40696 (grub_term_get_current_input): Likewise.
40697 (grub_term_get_current_output): Likewise.
40699 * util/grub-editenv.c: Include header file <grub/handler.h>.
40700 (grub_term_get_current_input): Removed.
40701 (grub_term_get_current_output): Likewise.
40702 (grub_term_input_class): New variable.
40703 (grub_term_output_class): Likewise.
40705 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40706 (grub_term_get_current_output): Likewise.
40707 (grub_term_input_class): New variable.
40708 (grub_term_output_class): Likewise.
40710 * util/grub-probe.c (grub_term_get_current_input): Removed.
40711 (grub_term_get_current_output): Likewise.
40712 (grub_term_input_class): New variable.
40713 (grub_term_output_class): Likewise.
40715 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40716 (grub_term_get_current_output): Likewise.
40717 (grub_term_input_class): New variable.
40718 (grub_term_output_class): Likewise.
40720 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40721 (terminal_mod_SOURCES): Likewise.
40722 (terminal_mod_CFLAGS): Likewise.
40723 (terminal_mod_LDFLAGS): Likewise.
40725 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40727 (kernel_img_SOURCES): Add list.c and handler.c.
40728 (kernel_img_HEADERS): Add list.h and handler.h.
40730 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40732 (kernel_mod_SOURCES): Add list.c and handler.c.
40733 (kernel_mod_HEADERS): Add list.h and handler.h.
40735 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40737 (kernel_elf_SOURCES): Add list.c and handler.c.
40738 (kernel_elf_HEADERS): Add list.h and handler.h.
40740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40742 (kernel_elf_SOURCES): Add list.c and handler.c.
40743 (kernel_elf_HEADERS): Add list.h and handler.h.
40745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40747 (kernel_mod_SOURCES): Add list.c and handler.c.
40748 (kernel_mod_HEADERS): Add list.h and handler.h.
40750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40752 (kernel_elf_SOURCES): Add list.c and handler.c.
40753 (kernel_elf_HEADERS): Add list.h and handler.h.
40755 2009-02-27 Robert Millan <rmh@aybabtu.com>
40757 Factorize elf32 / elf64 code in Multiboot loader. This will
40758 prevent it from getting out of sync again.
40760 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40761 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40762 grub_multiboot_load_elf64): Move from here ...
40763 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40764 grub_multiboot_load_elf): ... to here (new file).
40766 2009-02-27 Robert Millan <rmh@aybabtu.com>
40768 * util/grub.d/10_linux.in: Rename "single-user mode" to
40771 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40773 Don't leak in SCSI code.
40774 * disk/scsi.c (grub_scsi_close): free `scsi'.
40776 2009-02-27 Robert Millan <rmh@aybabtu.com>
40778 * loader/i386/pc/multiboot.c: Move from here ...
40779 * loader/i386/multiboot.c: ... to here. Update all users.
40781 2009-02-27 Robert Millan <rmh@aybabtu.com>
40783 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40784 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40786 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40788 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40791 2009-02-27 Robert Millan <rmh@aybabtu.com>
40793 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40794 `0x' qualifier as 0 when base is specified as parameter).
40796 2009-02-24 Bean <bean123ch@gmail.com>
40798 * configure.ac: Check for -mcmodel=large in x86_64 target.
40800 * include/grub/efi/api.h (efi_call_10): New macro.
40801 (efi_wrap_10): New function.
40803 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40804 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40805 (GRUB_PE32_REL_BASED_LOW): Likewise.
40806 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40807 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40808 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40809 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40810 (GRUB_PE32_REL_BASED_REL): Likewise.
40811 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40812 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40813 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40815 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40818 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40819 (efi_wrap_10): New function.
40821 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40823 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40824 MB/MBP model (NV chipset).
40825 (devdata_devs): Add devpath_5 to the list.
40827 * load/i386/efi/linux.c (video_base): Remove variable.
40828 (RGB_MASK): New macro.
40829 (RGB_MAGIC): Likewise.
40830 (LINE_MIN): Likewise.
40831 (LINE_MAX): Likewise.
40832 (FBTEST_STEP): Likewise.
40833 (FBTEST_COUNT): Likewise.
40834 (fb_list): New variable.
40835 (grub_find_video_card): Remove function.
40836 (find_framebuf): New function.
40837 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40840 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40841 problem for x86_64.
40843 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40845 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40847 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40850 2009-02-22 Robert Millan <rmh@aybabtu.com>
40852 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40853 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40854 in our relocation, instead of using it directly from heap. Also
40855 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40857 2009-02-21 Robert Millan <rmh@aybabtu.com>
40859 Implement USB keyboard support (based on patch by Marco Gerards)
40861 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40862 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40863 (usb_keyboard_mod_LDFLAGS): New variables.
40865 * term/usb_keyboard.c: New file.
40867 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40869 Corrected wrong declaration
40871 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40873 2009-02-14 Christian Franke <franke@computer.org>
40875 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40876 (grub_lspci_iter): Print class code and programming interface byte.
40878 2009-02-14 Christian Franke <franke@computer.org>
40880 * gendistlist.sh: Ignore `.svn' directories.
40882 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40884 * fs/fat.c: Add 2009 to Copyright line.
40886 2009-02-14 Christian Franke <franke@computer.org>
40888 * commands/hdparm.c: New file. Provides `hdparm' command
40889 which sends ATA commands via grub_disk_ata_pass_through ().
40891 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40893 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40894 and <grub/cpu/io.h> to include/grub/ata.h.
40895 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40896 (GRUB_CDROM_SECTOR_SIZE): Remove.
40897 (GRUB_ATA_*): Move to include/grub/ata.h.
40898 (GRUB_ATAPI_*): Likewise.
40899 (enum grub_ata_commands): Likewise.
40900 (enum grub_ata_timeout_milliseconds): Likewise.
40901 (struct grub_ata_device): Likewise.
40902 (grub_ata_regset): Likewise.
40903 (grub_ata_regget): Likewise.
40904 (grub_ata_regset2): Likewise.
40905 (grub_ata_regget2): Likewise.
40906 (grub_ata_check_ready): Likewise.
40907 (grub_ata_wait_not_busy): Remove static, exported in
40908 include/grub/ata.h.
40909 (grub_ata_wait_drq): Likewise.
40910 (grub_ata_pio_read): Likewise.
40912 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40913 function for hdparm.mod.
40915 * include/grub/ata.h: New file, contains declarations from
40917 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40919 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40920 (grub_disk_ata_pass_through): New exported variable.
40922 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40924 2009-02-13 Colin D Bennett <colin@gibibit.com>
40926 Support multiple fallback entries, and provide an API to support
40927 executing default+fallback menu entries. Renamed the `terminal' menu
40930 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40931 variable declaration.
40932 (grub_menu_execute_callback): New structure declaration.
40933 (grub_menu_execute_callback_t): New typedef.
40934 (grub_menu_execute_with_fallback): New function declaration.
40935 (grub_menu_get_entry): Likewise.
40936 (grub_menu_get_timeout): Likewise.
40937 (grub_menu_set_timeout): Likewise.
40939 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40941 * normal/menu.c (grub_wait_after_message): Moved to
40942 `normal/menu_text.c'.
40943 (draw_border): Likewise.
40944 (print_message): Likewise.
40945 (print_entry): Likewise.
40946 (print_entries): Likewise.
40947 (grub_menu_init_page): Likewise.
40948 (get_entry_number): Likewise.
40949 (print_timeout): Likewise.
40950 (run_menu): Likewise.
40951 (grub_menu_execute_entry): Likewise.
40952 (show_text_menu): Likewise.
40953 (get_and_remove_first_entry_number): New function.
40954 (grub_menu_execute_with_fallback): Likewise.
40955 (get_entry): Renamed to ...
40956 (grub_menu_get_entry): .. this and made it global.
40957 (get_timeout): Renamed to ...
40958 (grub_menu_get_timeout): ... this and made it global.
40959 (set_timeout): Renamed to ...
40960 (grub_menu_set_timeout): ... this and made it global.
40961 (grub_normal_terminal_menu_viewer): Renamed to ...
40962 (grub_normal_text_menu_viewer): ... this.
40964 * normal/menu_text.c: New file. Extracted text-menu-specific code
40965 from normal/menu.c.
40967 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40968 (normal_mod_SOURCES): Likewise.
40970 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40971 (normal_mod_SOURCES): Likewise.
40973 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40974 (normal_mod_SOURCES): Likewise.
40976 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40977 (normal_mod_SOURCES): Likewise.
40979 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40980 (normal_mod_SOURCES): Likewise.
40982 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40983 (normal_mod_SOURCES): Likewise.
40985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40986 (normal_mod_SOURCES): Likewise.
40988 2009-02-11 Robert Millan <rmh@aybabtu.com>
40990 * util/grub.d/00_header.in: Update old reference to `font' command.
40992 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40994 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40996 Based on patch from Javier Martín.
40998 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41000 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41001 to avoid false positives with FAT.
41002 (grub_fstest_SOURCES): Likewise.
41003 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41004 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41007 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41010 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41012 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41013 bpb.version_specific.fat12_or_fat16.fstype and
41014 bpb.version_specific.fat32.fstype.
41016 2009-02-08 Robert Millan <rmh@aybabtu.com>
41018 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41020 2009-02-08 Robert Millan <rmh@aybabtu.com>
41022 * Makefile.in (host_os, host_cpu): New variables.
41023 (target_os): Remove. Update all users.
41025 2009-02-08 Marco Gerards <marco@gnu.org>
41027 * Makefile.in (enable_grub_emu_usb): New variable.
41028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41029 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41030 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41031 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41032 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41033 `usbtest.mod' and `usbms.mod'.
41034 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41035 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41036 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41037 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41038 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41041 * disk/usbms.c: New file.
41043 * include/grub/usb.h: Likewise.
41045 * include/grub/usbtrans.h: Likewise.
41047 * include/grub/usbdesc.h: Likewise.
41049 * bus/usb/usbtrans.c: Likewise.
41051 * bus/usb/ohci.c: Likewise.
41053 * bus/usb/uhci.c: Likewise.
41055 * bus/usb/usbhub.c: Likewise.
41057 * bus/usb/usb.c: Likewise.
41059 * commands/usbtest.c: Likewise.
41061 * util/usb.c: Likewise.
41063 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41065 * configure.ac: Test for libusb presence.
41067 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41069 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41071 * kern/mm.c: Add more comments.
41073 2009-02-08 Robert Millan <rmh@aybabtu.com>
41075 Patch from Javier Martín.
41076 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41077 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41079 2009-02-08 Robert Millan <rmh@aybabtu.com>
41081 * fs/cpio.c: Split tar functionality to ...
41082 * fs/tar.c: ... here (new file). Update all users.
41084 2009-02-07 Robert Millan <rmh@aybabtu.com>
41086 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41087 backward-incompatible features.
41089 Based on patch from Javier Martín, with some adjustments.
41091 2009-02-07 Michael Scherer <misc@mandriva.org>
41093 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41095 2009-02-07 Robert Millan <rmh@aybabtu.com>
41097 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41098 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41099 after the RAID stuff.
41101 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41103 Fixes problem when running vbetest command as reported by
41104 Vladimir Serbinenko <phcoder@gmail.com>.
41106 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41108 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41110 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41111 /dev/md/NpN style mdraid devices.
41113 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41115 * util/unifont2pff.rb: Remove.
41117 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41119 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41122 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41124 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41126 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41127 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41129 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41132 2009-02-02 Christian Franke <franke@computer.org>
41134 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41136 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41138 * INSTALL: Note that we now require at least autoconf 2.59 and
41139 that LZO is optional.
41141 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41143 Base on patch on bug #24154 created by Tomas Tintera
41144 <trosos@seznam.cz>.
41146 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41148 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41150 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41151 <bero@arklinux.org>.
41153 * normal/parser.y (script_init): Add missing semicolon.
41155 2009-01-31 Colin D Bennett <colin@gibibit.com>
41157 * normal/main.c: Add include to grub/menu_viewer.h.
41158 (free_menu_entry_classes): Added.
41159 (grub_normal_menu_addentry): Added class property handling.
41160 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41161 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41163 * normal/menu_viewer.c: New file.
41165 * normal/menu.c (run_menu_entry): Renamed to ...
41166 (grub_menu_execute_entry): ... this and made it as global.
41167 (grub_menu_run): Renamed to ...
41168 (show_text_menu): ... this and made it local.
41169 (show_text_menu): Adapt to new function names.
41170 (grub_normal_terminal_menu_viewer): New global variable.
41172 * include/grub/menu.h: New file.
41174 * include/grub/menu_viewer.h: New file.
41176 * include/grub/normal.h: Added include to grub/menu.h.
41177 (grub_menu_entry): Moved to include/grub/menu.h.
41178 (grub_menu_entry_t): Likewise.
41179 (grub_menu): Likewise.
41180 (grub_menu_t): Likewise.
41181 (grub_normal_terminal_menu_viewer): Added.
41182 (grub_menu_execute_entry): Likewise.
41183 (grub_menu_run): Removed.
41185 * DISTLIST: Added include/grub/menu.h.
41186 Added include/grub/menu_viewer.h.
41187 Added normal/menu_viewer.c.
41189 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41191 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41192 arglist for menutitle arguments.
41194 * normal/main.c (grub_normal_menu_addentry): Likewise.
41196 * normal/parser.y (menuentry): Likewise.
41198 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41200 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41201 (grub_script_create_cmdmenu): Likewise.
41203 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41205 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41208 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41210 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41212 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41214 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41216 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41218 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41220 2009-01-30 Christian Franke <franke@computer.org>
41222 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41223 in option help text.
41225 2009-01-27 Pavel Roskin <proski@gnu.org>
41227 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41229 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41231 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41233 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41235 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41236 unregister function.
41238 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41240 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41242 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41244 * util/grub-mkfont.c (usage): Fix typo.
41246 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41248 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41250 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41252 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41254 * kern/misc.c (grub_strcasecmp): New function.
41255 (grub_strcasecmp): Use grub_size_t instead of int for length.
41257 * include/grub/misc.h: Update function prototypes.
41259 2009-01-26 Robert Millan <rmh@aybabtu.com>
41261 * configure.ac: Fix cross-compilation check.
41263 2009-01-22 Christian Franke <franke@computer.org>
41265 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41266 (precision) digit string. Allow `.format2' without `format1' (width).
41267 Limit input chars for `%s' output to `format2' if specified. This is
41268 compatible with standard printf ().
41270 2009-01-22 Christian Franke <franke@computer.org>
41272 * disk/ata.c (grub_ata_wait_status): Replace by ...
41273 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41274 other status bits may be invalid while BSY is asserted.
41275 (grub_ata_check_ready): New function.
41276 (grub_ata_cmd): Removed.
41277 (grub_ata_wait_drq): New function.
41278 (grub_ata_strncpy): Remove inline.
41279 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41280 and error check now done by grub_ata_wait_drq ().
41281 (grub_ata_pio_write): Likewise.
41282 (grub_atapi_identify): Set DEV before check for !BSY. Use
41283 grub_ata_wait_drq () to wait for data.
41284 (grub_ata_device_initialize): Add status register check to
41285 detect missing SATA slave devices. Add debug messages.
41286 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41287 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41288 transfer loop by grub_ata_pio_write ().
41289 (grub_ata_identify): Set DEV before check for !BSY. Use
41290 grub_ata_wait_drq () to wait for data.
41291 (grub_ata_setaddress): Set DEV before check for !BSY.
41292 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41293 read/write in one loop. Fix invalid command on write. Fix incomplete
41294 command on (size % batch) == 0. Add missing error check after write of
41295 last block. Add debug messages.
41296 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41298 2009-01-19 Christian Franke <franke@computer.org>
41300 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41301 (GRUB_ATAPI_IREASON_*): Likewise.
41302 (grub_ata_pio_write): Fix timeout error return.
41303 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41304 (grub_atapi_wait_drq): New function.
41305 (grub_atapi_packet): New parameter `size'.
41306 Use grub_atapi_wait_drq () and direct write instead of
41307 grub_ata_pio_write ().
41308 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41309 reads the number of bytes requested by the device for each DRQ
41311 (grub_atapi_write): Remove old implementation, return not
41312 implemented instead.
41314 2009-01-19 Christian Franke <franke@computer.org>
41316 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41317 of 512 to calculate data size.
41318 (grub_scsi_read12): Likewise.
41319 (grub_scsi_write10): Likewise.
41320 (grub_scsi_write12): Likewise.
41321 (grub_scsi_read): Adjust size according to blocksize.
41322 Add checks for invalid blocksize and unaligned transfer.
41324 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41326 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41328 * term/gfxterm.c (write_char): Fix background rendering for wide
41331 2009-01-19 Robert Millan <rmh@aybabtu.com>
41333 * config.guess: Update to latest version from config git.
41334 * config.sub: Likewise.
41336 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41338 * Makefile.in: Change font compilation to use new grub-mkfont instead
41341 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41342 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41343 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41344 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41345 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41346 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41347 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41348 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41349 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41351 2009-01-16 Christian Franke <franke@computer.org>
41353 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41354 (enum grub_ata_timeout_milliseconds): New enum.
41355 (grub_ata_wait_status): Add parameter milliseconds.
41356 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41357 recovery from timed-out commands.
41358 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41359 return grub_errno instead of REG_ERROR.
41360 (grub_ata_pio_write): Add parameter milliseconds.
41361 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41362 Pass milliseconds to grub_ata_wait_status () and
41363 grub_ata_pio_read ().
41364 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41365 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41366 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41367 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41368 It is not suitable for device detection, because DEV bit is ignored,
41369 the command may run too long, and not all devices set the signature
41371 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41372 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41373 Fix device selection, DEV bit must be set first to address the registers
41374 of the correct device.
41375 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41376 grub_ata_pio_read/write ().
41377 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41378 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41380 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41382 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41384 2009-01-13 Bean <bean123ch@gmail.com>
41386 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41388 2009-01-13 Bean <bean123ch@gmail.com>
41390 * Makefile.in: (enable_grub_mkfont): New variable.
41391 (freetype_cflags): Likewise.
41392 (freetype_libs): Likewise.
41394 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41395 (grub_mkfont_SOURCES): New variable.
41396 (grub_mkfont_CFLAGS): Likewise.
41397 (grub_mkfont_LDFLAGS): Likewise.
41399 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41400 library if `--enable-grub-mkfont' is requested.
41401 (enable_grub_mkfont): New variable.
41402 (freetype_cflags): Likewise.
41403 (freetype_libs): Likewise.
41405 * util/grub-mkfont.c: New file.
41407 2009-01-12 Christian Franke <franke@computer.org>
41409 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41410 mode check. Fix setting of compat_use[].
41412 2009-01-10 Robert Millan <rmh@aybabtu.com>
41414 Update a few copyright years which we forgot to do in 2008 (only for
41415 files whose changes made in 2008 were copyright-significant)
41417 * Makefile.in: Add 2008 to Copyright line.
41418 * disk/ieee1275/ofdisk.c: Likewise.
41419 * disk/efi/efidisk.c: Likewise.
41420 * kern/dl.c: Likewise.
41421 * kern/sparc64/ieee1275/init.c: Likewise.
41422 * kern/mm.c: Likewise.
41423 * kern/efi/mm.c: Likewise.
41424 * boot/i386/pc/boot.S: Likewise.
41425 * genfslist.sh: Likewise.
41426 * fs/iso9660.c: Likewise.
41427 * fs/hfs.c: Likewise.
41428 * fs/jfs.c: Likewise.
41429 * fs/minix.c: Likewise.
41430 * fs/ufs.c: Likewise.
41431 * gensymlist.sh.in: Likewise.
41432 * genkernsyms.sh.in: Likewise.
41433 * include/grub/misc.h: Likewise.
41434 * include/grub/types.h: Likewise.
41435 * include/grub/symbol.h: Likewise.
41436 * include/grub/elf.h: Likewise.
41437 * include/grub/kernel.h: Likewise.
41438 * include/grub/disk.h: Likewise.
41439 * include/grub/dl.h: Likewise.
41440 * include/grub/i386/linux.h: Likewise.
41441 * include/grub/i386/pc/biosdisk.h: Likewise.
41442 * include/grub/efi/api.h: Likewise.
41443 * include/grub/efi/pe32.h: Likewise.
41444 * include/grub/util/misc.h: Likewise.
41445 * normal/execute.c: Likewise.
41446 * normal/arg.c: Likewise.
41447 * normal/completion.c: Likewise.
41448 * normal/lexer.c: Likewise.
41449 * normal/parser.y: Likewise.
41450 * normal/misc.c: Likewise.
41451 * commands/i386/pc/vbeinfo.c: Likewise.
41452 * commands/hexdump.c: Likewise.
41453 * commands/terminal.c: Likewise.
41454 * commands/ls.c: Likewise.
41455 * commands/help.c: Likewise.
41456 * partmap/pc.c: Likewise.
41457 * loader/efi/chainloader.c: Likewise.
41458 * loader/multiboot_loader.c: Likewise.
41459 * loader/i386/pc/multiboot2.c: Likewise.
41460 * term/efi/console.c: Likewise.
41461 * term/i386/pc/serial.c: Likewise.
41462 * util/lvm.c: Likewise.
41463 * util/console.c: Likewise.
41464 * util/i386/efi/grub-mkimage.c: Likewise.
41465 * util/raid.c: Likewise.
41467 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41469 * commands/videotest.c: Removed include to grub/machine/memory.h.
41471 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41472 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41473 (video_mod_SOURCES): Removed.
41474 (video_mod_CFLAGS): Likewise.
41475 (video_mod_LDFLAGS): Likewise.
41476 (gfxterm_mod_SOURCES): Likewise.
41477 (gfxterm_mod_CFLAGS): Likewise.
41478 (gfxterm_mod_LDFLAGS): Likewise.
41479 (videotest_mod_SOURCES): Likewise.
41480 (videotest_mod_CFLAGS): Likewise.
41481 (videotest_mod_LDFLAGS): Likewise.
41482 (bitmap_mod_SOURCES): Likewise.
41483 (bitmap_mod_CFLAGS): Likewise.
41484 (bitmap_mod_LDFLAGS): Likewise.
41485 (tga_mod_SOURCES): Likewise.
41486 (tga_mod_CFLAGS): Likewise.
41487 (tga_mod_LDFLAGS): Likewise.
41488 (jpeg_mod_SOURCES): Likewise.
41489 (jpeg_mod_CFLAGS): Likewise.
41490 (jpeg_mod_LDFLAGS): Likewise.
41491 (png_mod_SOURCES): Likewise.
41492 (png_mod_CFLAGS): Likewise.
41493 (png_mod_LDFLAGS): Likewise.
41495 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41496 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41497 (video_mod_SOURCES): Added.
41498 (video_mod_CFLAGS): Likewise.
41499 (video_mod_LDFLAGS): Likewise.
41500 (videotest_mod_SOURCES): Likewise.
41501 (videotest_mod_CFLAGS): Likewise.
41502 (videotest_mod_LDFLAGS): Likewise.
41503 (bitmap_mod_SOURCES): Likewise.
41504 (bitmap_mod_CFLAGS): Likewise.
41505 (bitmap_mod_LDFLAGS): Likewise.
41506 (tga_mod_SOURCES): Likewise.
41507 (tga_mod_CFLAGS): Likewise.
41508 (tga_mod_LDFLAGS): Likewise.
41509 (jpeg_mod_SOURCES): Likewise.
41510 (jpeg_mod_CFLAGS): Likewise.
41511 (jpeg_mod_LDFLAGS): Likewise.
41512 (png_mod_SOURCES): Likewise.
41513 (png_mod_CFLAGS): Likewise.
41514 (png_mod_LDFLAGS): Likewise.
41515 (gfxterm_mod_SOURCES): Likewise.
41516 (gfxterm_mod_CFLAGS): Likewise.
41517 (gfxterm_mod_LDFLAGS): Likewise.
41519 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41520 grub/machine/console.h.
41522 2009-01-04 Jerone Young <jerone@gmail.com>
41524 Make on screen instructions clearer
41526 Based on patch created by Jidanni <jidanni@jidanni.org>
41528 * normal/menu.c: print clearer instructions on the screen
41530 2009-01-02 Colin D Bennett <colin@gibibit.com>
41534 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41535 build system and fixed gfxterm.c to work with different sized fonts.
41537 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41539 * configure: Re-generated.
41541 * DISTLIST: Removed font/manager.c.
41543 Added font/font_cmd.c.
41545 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41548 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41550 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41552 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41554 * normal/menu.c: Likewise.
41556 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41557 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41559 * include/grub/font.h: Replaced with new file.
41561 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41562 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41563 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41564 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41565 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41566 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41567 fg_red, fg_green, fg_blue, fg_alpha.
41568 (grub_video_adapter): Removed blit_glyph.
41569 (grub_video_blit_glyph): Removed.
41571 * font/manager.c: Removed file.
41573 * font/font.c: New file.
41575 * font/font_cmd.c: Likewise.
41577 * video/video.c (grub_video_blit_glyph): Removed.
41579 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41580 (grub_video_vbe_map_rgba): Likewise.
41581 (grub_video_vbe_unmap_color_int): Likewise.
41582 (grub_video_vbe_blit_glyph): Removed.
41583 (grub_video_vbe_adapter): Removed blit_glyph.
41585 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41586 (get_pixel): Likewise.
41587 (set_pixel): Likewise.
41589 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41591 * term/gfxterm.c: Adapted to new font engine.
41593 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41595 * term/i386/pc/vga.c: Likewise.
41597 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41599 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41601 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41603 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41605 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41607 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41609 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41611 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41613 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41615 * util/grub.d/00_header.in: Changed to use new loadfont command.
41617 * util/grub-mkconfig_lib.in: Changed font extension.
41619 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41621 * util/getroot.c (grub_util_get_grub_dev): Add support for
41622 /dev/md/dNNpNN style partitionable mdraid devices.
41624 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41626 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41627 at a time limit of the PXE TFTP API correctly.
41628 (grub_pxefs_close): Likewise.
41630 2008-11-29 Robert Millan <rmh@aybabtu.com>
41632 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41633 grub_ata_device_initialize() calls.
41635 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41637 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41639 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41641 2008-11-28 Robert Millan <rmh@aybabtu.com>
41643 Fix build on powerpc-ieee1275. Based on patch created by
41644 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41645 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41646 `kern/ieee1275/mmap.c'.
41647 * include/grub/powerpc/ieee1275/memory.h: New file.
41649 Provide grub-install on coreboot.
41650 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41651 (grub_install_SOURCES): New variable.
41652 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41653 usable on coreboot.
41655 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41657 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41658 to `grub_term_input_t'.
41659 (grub_term_get_current_output): Change return type to
41660 `grub_term_output_t'.
41662 2008-11-22 Robert Millan <rmh@aybabtu.com>
41664 Fix breakage on coreboot due to declaration mismatch.
41665 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41666 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41667 grub_vga_text_cls().
41669 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41670 comments. Avoid copying one more byte than necessary (just in case).
41672 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41673 to 0x200000 (avoids trouble with some OFW implementations, and matches
41674 with the one in Yaboot).
41675 Reported by Manoel Abranches
41677 2008-11-20 Robert Millan <rmh@aybabtu.com>
41679 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41680 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41682 * util/grub-mkconfig_lib.in (grub_warn): New function.
41683 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41684 warnings, to obtain consistent formatting.
41685 * util/grub.d/00_header.in: Likewise.
41686 * util/update-grub_lib.in: Likewise.
41688 * loader/i386/linux.c (allocate_pages): Fix a warning.
41689 Move comment text to `#error' stanza.
41691 Harmonize ieee1275's grub_available_iterate() with the generic
41692 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41693 build problem on i386-ieee1275):
41694 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41695 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41696 parameter `type'. Update all users of this function.
41697 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41698 `kern/ieee1275/mmap.c'.
41699 * kern/ieee1275/init.c
41700 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41702 (grub_machine_mmap_iterate): ... this.
41703 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41704 return type to `grub_err_t'. Update all implementations of this
41705 function prototype.
41706 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41709 Add `lsmmap' command (lists firmware-provided memory map):
41710 * commands/lsmmap.c: New file.
41711 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41712 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41714 * conf/powerpc-ieee1275.rmk: Likewise.
41715 * conf/i386-coreboot.rmk: Likewise.
41716 * conf/i386-ieee1275.rmk: Likewise.
41718 2008-11-19 Robert Millan <rmh@aybabtu.com>
41720 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41721 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41722 constraints to initrd allocation (based on code from
41723 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41724 for Linux to find it.
41726 2008-11-14 Robert Millan <rmh@aybabtu.com>
41728 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41729 order to cope with duplicate slashes.
41731 2008-11-14 Robert Millan <rmh@aybabtu.com>
41733 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41734 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41735 don't want to mess with lower memory, because it is used in the Linux
41738 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41739 an appropriate place in lower memory, between 0x10000 and 0x90000,
41740 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41741 is in our heap (probably as a result of it being corrupted during
41742 decompression). Add #error instance with comment to explain why this
41743 loader isn't currently usable on PC/BIOS.
41745 2008-11-14 Robert Millan <rmh@aybabtu.com>
41747 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41748 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41750 2008-11-12 Robert Millan <rmh@aybabtu.com>
41752 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41754 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41755 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41757 * include/grub/i386/pc/memory.h: ... to here.
41759 2008-11-12 Robert Millan <rmh@aybabtu.com>
41761 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41764 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41765 (grub_console_cur_color, grub_console_real_putchar)
41766 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41767 (grub_console_setcolorstate, grub_console_setcolor)
41768 (grub_console_getcolor): Move from here ...
41769 * include/grub/i386/vga_common.h: ... to here (new file).
41771 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41772 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41773 `<grub/i386/io.h>'.
41774 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41775 `<grub/i386/vga_common.h>'.
41777 2008-11-12 Robert Millan <rmh@aybabtu.com>
41779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41780 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41781 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41783 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41784 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41786 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41787 grub_console_init() with call to grub_vga_text_init().
41788 (grub_machine_fini): Replace call to
41789 grub_console_fini() with call to grub_vga_text_fini() and
41790 grub_at_keyboard_fini().
41792 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41793 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41794 (grub_console_setcolorstate, grub_console_setcolor)
41795 (grub_console_getcolor): New function prototypes.
41797 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41798 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41799 (grub_vga_text_setcursor): Static-ize.
41800 (grub_vga_text_term): New structure.
41801 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41803 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41804 (grub_console_cur_color, grub_console_standard_color)
41805 (grub_console_normal_color, grub_console_highlight_color)
41806 (map_char, grub_console_putchar, grub_console_getcharwidth)
41807 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41808 (grub_console_getcolor): Move from here ...
41809 * term/i386/vga_common.c: ... to here (same function names).
41811 2008-11-12 Robert Millan <rmh@aybabtu.com>
41813 Use newly-added Multiboot support in coreboot.
41815 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41816 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41818 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41819 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41820 (codestart): Store the MBI in `startup_multiboot_info' when we're
41821 being loaded using Multiboot.
41823 * kern/i386/coreboot/init.c (grub_machine_init): Move
41824 grub_at_keyboard_init() call to beginning of function (useful for
41825 debugging). Call grub_machine_mmap_init() before attempting to use
41826 grub_machine_mmap_iterate().
41827 (grub_lower_mem, grub_upper_mem): Move from here ...
41828 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41831 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41832 function prototype.
41834 2008-11-12 Robert Millan <rmh@aybabtu.com>
41836 Fix a regression introduced by the at_keyboard.mod split. Because
41837 some terminals are default on some platforms and non-default on
41838 others, the first terminal being registered determines which is
41839 going to be default.
41841 * kern/term.c (grub_term_register_input): If this is the first
41842 terminal being registered, set it as the current one.
41843 (grub_term_register_output): Likewise.
41845 * term/efi/console.c (grub_console_init): Do not call
41846 grub_term_set_current_output() or grub_term_set_current_input().
41847 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41848 * term/i386/pc/console.c (grub_console_init): Likewise.
41849 (grub_console_fini): Do not call grub_term_set_current_input()
41850 (but leave grub_term_set_current_output() to restore text mode).
41852 2008-11-10 Robert Millan <rmh@aybabtu.com>
41854 * util/grub.d/00_header.in: Add backward compatibility check for
41855 versions of terminal.mod that don't understand `terminal_input' or
41858 2008-11-09 Robert Millan <rmh@aybabtu.com>
41860 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41861 `terminal_input' / `terminal_output', not `terminal'.
41863 2008-11-08 Robert Millan <rmh@aybabtu.com>
41865 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41866 (DISTCLEANFILES): Add `build_env.mk'.
41868 2008-11-08 Robert Millan <rmh@aybabtu.com>
41870 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41871 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41872 members. Update all users.
41873 * util/console.c (grub_ncurses_term): Split in ...
41874 (grub_ncurses_term_input): ... this, and ...
41875 (grub_ncurses_term_output): ... this. Update all users.
41876 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41878 2008-11-08 Robert Millan <rmh@aybabtu.com>
41880 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41881 (PKGDATA): Add $(pkgdata_SRCDIR).
41882 (pkglib_BUILDDIR): New variable.
41883 (pkgdata_SRCDIR): New variable.
41884 (build_env.mk): New target.
41885 (include_DATA): New variable.
41886 (install-local): Install $(include_DATA) files in $(includedir).
41888 2008-11-07 Pavel Roskin <proski@gnu.org>
41890 * gendistlist.sh: Use C locale for sorting to ensure consistent
41891 output on all systems.
41893 * util/grub.d/00_header.in: Remove incorrect space before
41896 2008-11-07 Robert Millan <rmh@aybabtu.com>
41898 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41900 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41901 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41902 (based on find_multi_boot1_header).
41903 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41904 using find_multi_boot2_header(), and abort if neither Multiboot or
41905 Multiboot headers were found.
41907 2008-11-07 Robert Millan <rmh@aybabtu.com>
41909 Modularize at_keyboard.mod:
41911 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41912 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41913 (at_keyboard_mod_LDFLAGS): New variables.
41915 Actual terminal split:
41917 * include/grub/term.h (struct grub_term): Split in ...
41918 (struct grub_term_input): ... this, and ...
41919 (struct grub_term_output): ... this. Update all users.
41920 (grub_term_set_current): Split in ...
41921 (grub_term_set_current_input): ... this, and ...
41922 (grub_term_set_current_output): ... this.
41923 (grub_term_get_current): Split in ...
41924 (grub_term_get_current_input): ... this, and ...
41925 (grub_term_get_current_output): ... this.
41926 (grub_term_register): Split in ...
41927 (grub_term_register_input): ... this, and ...
41928 (grub_term_register_output): ... this.
41929 (grub_term_unregister): Split in ...
41930 (grub_term_unregister_input): ... this, and ...
41931 (grub_term_unregister_output): ... this.
41932 (grub_term_iterate): Split in ...
41933 (grub_term_iterate_input): ... this, and ...
41934 (grub_term_iterate_output): ... this.
41936 * kern/term.c (grub_term_list): Split in ...
41937 (grub_term_list_input): ... this, and ...
41938 (grub_term_list_output): ... this. Update all users.
41939 (grub_cur_term): Split in ...
41940 (grub_cur_term_input): ... this, and ...
41941 (grub_cur_term_output): ... this. Update all users.
41942 (grub_term_set_current): Split in ...
41943 (grub_term_set_current_input): ... this, and ...
41944 (grub_term_set_current_output): ... this.
41945 (grub_term_get_current): Split in ...
41946 (grub_term_get_current_input): ... this, and ...
41947 (grub_term_get_current_output): ... this.
41948 (grub_term_register): Split in ...
41949 (grub_term_register_input): ... this, and ...
41950 (grub_term_register_output): ... this.
41951 (grub_term_unregister): Split in ...
41952 (grub_term_unregister_input): ... this, and ...
41953 (grub_term_unregister_output): ... this.
41954 (grub_term_iterate): Split in ...
41955 (grub_term_iterate_input): ... this, and ...
41956 (grub_term_iterate_output): ... this.
41958 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41959 a check for input and one for output (and only attempt to get keys
41960 from user when input works).
41962 * util/grub-probe.c (grub_term_get_current): Split in ...
41963 (grub_term_get_current_input): ... this, and ...
41964 (grub_term_get_current_output): ... this.
41965 * util/grub-fstest.c: Likewise.
41966 * util/i386/pc/grub-setup.c: Likewise.
41967 * util/grub-editenv.c: Likewise.
41969 Portability adjustments:
41971 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41972 `term/i386/pc/at_keyboard.c'.
41973 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41974 grub_keyboard_controller_init() (now handled by terminal .init).
41975 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41976 grub_at_keyboard_init().
41977 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41978 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41979 at_keyboard.mod via input terminal interface).
41980 * include/grub/i386/coreboot/console.h: Convert into a stub for
41981 `<grub/i386/pc/console.h>'.
41983 Migrate full terminals to new API:
41985 * term/efi/console.c (grub_console_term): Split into ...
41986 (grub_console_term_input): ... this, and ...
41987 (grub_console_term_output): ... this. Update all users.
41988 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41989 (grub_ofconsole_init): Split into ...
41990 (grub_ofconsole_init_input): ... this, and ...
41991 (grub_ofconsole_init_output): ... this.
41992 (grub_ofconsole_term): Split into ...
41993 (grub_ofconsole_term_input): ... this, and ...
41994 (grub_ofconsole_term_output): ... this. Update all users.
41995 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41996 (grub_serial_term_input): ... this, and ...
41997 (grub_serial_term_output): ... this. Update all users.
41998 * term/i386/pc/console.c (grub_console_term): Split into ...
41999 (grub_console_term_input): ... this, and ...
42000 (grub_console_term_output): ... this. Update all users.
42001 (grub_console_term_input): Only enable it on PC/BIOS platform.
42002 (grub_console_init): Remove grub_keyboard_controller_init() call.
42004 Migrate input terminals to new API:
42006 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42007 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42008 i386-specific anyway).
42009 (grub_console_checkkey): Rename to ...
42010 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42012 (grub_keyboard_controller_orig): New variable.
42013 (grub_console_getkey): Rename to ...
42014 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42016 (grub_keyboard_controller_init): Static-ize. Save original
42017 controller value so that it can be restored ...
42018 (grub_keyboard_controller_fini): ... here (new function).
42019 (grub_at_keyboard_term): New structure.
42020 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42023 Migrate output terminals to new API:
42025 * term/i386/pc/vga.c (grub_vga_term): Change type to
42026 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42027 members. Update all users.
42028 * term/gfxterm.c (grub_video_term): Change type to
42029 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42030 members. Update all users.
42031 * include/grub/i386/pc/console.h (grub_console_checkkey)
42032 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42035 Migrate `terminal' command and userland tools to new API:
42037 * commands/terminal.c (grub_cmd_terminal): Split into ...
42038 (grub_cmd_terminal_input): ... this, and ...
42039 (grub_cmd_terminal_output): ... this.
42040 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42041 `terminal_input' and `terminal_output'.
42042 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42043 `terminal_input' / `terminal_output' API.
42044 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42045 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42046 provided ${GRUB_TERMINAL}, convert it).
42048 2008-11-04 Robert Millan <rmh@aybabtu.com>
42050 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42052 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42054 2008-11-03 Bean <bean123ch@gmail.com>
42056 * kern/elf.c (grub_elf32_load): Revert to previous code.
42057 (grub_elf64_load): Likewise.
42059 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42061 2008-11-01 Robert Millan <rmh@aybabtu.com>
42063 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42064 (TARGET_CPPFLAGS): Likewise.
42065 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42067 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42069 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42071 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42073 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42074 addition of objects until the code is not going to be able to fail.
42076 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42078 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42079 (add a missing NULL check, and correct them by moving the pointer
42080 operations after the actual check).
42082 2008-10-29 Robert Millan <rmh@aybabtu.com>
42084 * util/i386/pc/grub-install.in: Handle empty string as output from
42085 make_system_path_relative_to_its_root().
42087 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42089 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42090 circular metadata worst case scenario. If the metadata is circular
42091 then copy the wrap in place.
42092 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42093 project lib/format_text/layout.h
42094 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42096 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42098 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42100 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42102 * util/update-grub_lib.in: Mention filename in warning message.
42104 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42106 * NEWS: Update for rename of update-grub to grub-mkconfig.
42108 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42110 * util/update-grub_lib.in: Copy to ...
42111 * util/grub-mkconfig_lib.in: ... this. Update all users.
42112 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42113 * util/update-grub.in: Rename to ...
42114 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42115 option. Add `--output' option to allow users to specify the generated
42116 configuration file. Default to stdout.
42117 (update_grub_dir): Rename to ...
42118 (grub_mkconfig_dir): ... this.
42119 (grub_cfg): Default to an empty string.
42120 * conf/common.rmk (update-grub): Rename to ...
42121 (grub-mkconfig): ... this.
42122 (update-grub_lib): Copy to ...
42123 (grub-mkconfig_lib): ... this.
42124 (update-grub_SCRIPTS): Copy to ...
42125 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42126 (update-grub_DATA): Rename to ...
42127 (grub-mkconfig_DATA): ... this.
42129 2008-09-28 Robert Millan <rmh@aybabtu.com>
42131 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42132 to `modified'. Add the real `created' field.
42133 (grub_iso9660_uuid): Use `modified' rather than `created' for
42134 constructing the UUID.
42136 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42138 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42139 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42141 2008-09-28 Bean <bean123ch@gmail.com>
42143 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42144 Thanks to Christian Franke for finding this bug.
42146 2008-09-25 Robert Millan <rmh@aybabtu.com>
42148 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42149 instances of grub_util_get_disk_name() (see previous commit).
42151 2008-09-25 Robert Millan <rmh@aybabtu.com>
42153 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42154 `util/i386/get_disk_name.c'.
42155 * conf/i386-efi.rmk: Likewise.
42156 * conf/x86_64-efi.rmk: Likewise.
42157 * conf/i386-coreboot.rmk: Likewise.
42158 * conf/i386-ieee1275.rmk: Likewise.
42159 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42160 `util/ieee1275/get_disk_name.c'.
42161 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42162 * util/ieee1275/get_disk_name.c: Remove file.
42163 * util/i386/get_disk_name.c: Remove file.
42164 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42165 "hd%d" for device.map entries, rather than using
42166 grub_util_get_disk_name().
42168 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42170 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42172 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42174 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42176 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42178 (GRUB_TERM_PPAGE): Changed to 0x4900.
42180 2008-09-24 Robert Millan <rmh@aybabtu.com>
42182 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42183 macros (they were i386-pc specific).
42184 * include/grub/sparc64/ieee1275/console.h: Likewise.
42185 * include/grub/efi/console.h: Likewise.
42187 2008-09-22 Bean <bean123ch@gmail.com>
42189 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42190 resident and in attribute list.
42192 * include/grub/ntfs.h (BMP_LEN): Removed.
42194 2008-09-22 Bean <bean123ch@gmail.com>
42196 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42197 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42199 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42200 error occurs, as grub_disk_open will call grub_disk_close, which will
42201 call p->close (scsi).
42203 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42205 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42206 (AC_PREREQ): Bumped to 2.59.
42207 (AC_TRY_COMPILE): Replace obsolete macro with ...
42208 (AC_COMPILE_IFELSE): ... this.
42209 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42210 (AC_LINK_IFELSE): ... this.
42212 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42214 * autogen.sh: Add a call to `gendistlist.sh'.
42216 2008-09-19 Christian Franke <franke@computer.org>
42218 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42219 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42220 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42221 Export __enable_execute_stack() to modules.
42222 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42225 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42227 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42230 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42232 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42233 #include <grub/util/hostdisk.h>.
42235 2008-09-08 Robert Millan <rmh@aybabtu.com>
42237 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42238 segments when their filesz is zero (grub_file_read() interprets
42239 zero-size as "read until EOF", which results in memory corruption).
42240 Use `lowest_segment' rather than 0 for calculating the current
42241 segment load address.
42243 2008-09-08 Robert Millan <rmh@aybabtu.com>
42245 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42246 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42247 clobbered useful information.
42249 2008-09-08 Robert Millan <rmh@aybabtu.com>
42251 * include/grub/util/biosdisk.h: Move to ...
42252 * include/grub/util/hostdisk.h: ... here. Update all users.
42253 * util/biosdisk.c: Move to ...
42254 * util/hostdisk.c: ... here. Update all users.
42256 2008-09-07 Robert Millan <rmh@aybabtu.com>
42258 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42260 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42261 and length can be stored directly in the `mbi->mmap_addr' and
42262 `mbi->mmap_length' struct fields.
42264 2008-09-07 Robert Millan <rmh@aybabtu.com>
42266 * conf/i386.rmk: New file. Provides declaration for building
42268 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42269 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42271 Include `conf/i386.mk'.
42272 * conf/i386-efi.rmk: Likewise.
42273 * conf/x86_64-efi.rmk: Likewise.
42274 * conf/i386-coreboot.rmk: Likewise.
42275 * conf/i386-ieee1275.rmk: Likewise.
42277 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42279 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42280 Adds optimization support for BGR based modes.
42282 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42283 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42284 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42285 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42286 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42287 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42288 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42289 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42290 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42291 (grub_video_i386_vbeblit_index_index): Likewise.
42292 (grub_video_i386_vbeblit_replace_directN): Added.
42293 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42294 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42295 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42296 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42297 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42298 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42299 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42300 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42301 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42302 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42303 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42304 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42305 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42307 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42308 (grub_video_i386_vbefill_R8G8B8): Likewise.
42309 (grub_video_i386_vbefill_index): Likewise.
42310 (grub_video_i386_vbefill_direct32): Added.
42311 (grub_video_i386_vbefill_direct24): Likewise.
42312 (grub_video_i386_vbefill_direct16): Likewise.
42313 (grub_video_i386_vbefill_direct8): Likewise.
42315 * include/grub/video.h (grub_video_blit_format): Removed
42316 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42317 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42318 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42319 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42320 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42322 * video/video.c (grub_video_get_blit_format): Updated to use new
42323 blit formats. Added handling for 16 bit color modes.
42325 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42327 (common_blitter): Updated to use new blitters.
42329 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42331 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42332 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42333 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42334 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42335 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42336 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42338 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42339 (grub_video_i386_vbeblit_index_index): Likewise.
42340 (grub_video_i386_vbeblit_replace_directN): Added.
42341 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42342 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42343 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42344 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42345 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42346 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42347 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42348 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42349 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42350 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42351 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42352 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42353 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42355 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42356 (grub_video_i386_vbefill_R8G8B8): Likewise.
42357 (grub_video_i386_vbefill_index): Likewise.
42358 (grub_video_i386_vbefill_direct32): Added.
42359 (grub_video_i386_vbefill_direct24): Likewise.
42360 (grub_video_i386_vbefill_direct16): Likewise.
42361 (grub_video_i386_vbefill_direct8): Likewise.
42363 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42366 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42369 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42372 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42375 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42377 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42380 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42382 * fs/iso9660.c (grub_iso9660_date): New structure.
42383 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42384 (grub_iso9660_uuid): New function.
42386 2008-09-05 Bean <bean123ch@gmail.com>
42388 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42390 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42391 insensitive bit for names in Win32 and Win32 & DOS namespace.
42393 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42395 * include/grub/types.h (LONG_MAX): Likewise.
42397 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42399 * util/getroot.c: Include <config.h>.
42400 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42401 add support for /dev/md/N devices and handle LVM double dash escaping.
42403 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42405 * config.guess: Update to latest version from config git.
42406 * config.sub: Likewise.
42408 2008-09-03 Robert Millan <rmh@aybabtu.com>
42410 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42411 `disk->total_sectors'.
42413 2008-09-01 Colin D Bennett <colin@gibibit.com>
42415 * include/grub/normal.h: Fixed incorrect comment for
42416 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42418 2008-09-01 Colin D Bennett <colin@gibibit.com>
42420 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42421 values with defines.
42423 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42424 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42425 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42426 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42427 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42428 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42429 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42430 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42431 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42432 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42433 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42434 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42435 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42436 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42437 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42438 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42439 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42440 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42441 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42443 2008-08-31 Robert Millan <rmh@aybabtu.com>
42445 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42447 (grub_multiboot): Fix a few warnings.
42449 2008-08-31 Robert Millan <rmh@aybabtu.com>
42451 * loader/i386/pc/multiboot.c: Update comment not to say that
42452 boot_device support is unimplemented.
42454 2008-08-31 Robert Millan <rmh@aybabtu.com>
42456 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42457 or memory map support are unimplemented.
42459 2008-08-31 Colin D Bennett <colin@gibibit.com>
42461 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42463 2008-08-31 Colin D Bennett <colin@gibibit.com>
42465 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42466 total video memory in 'vbeinfo' output; show color format details for
42469 2008-08-30 Pavel Roskin <proski@gnu.org>
42471 * util/genmoddep.c: Remove for real this time.
42472 * DISTLIST: Remove util/genmoddep.c.
42474 2008-08-30 Robert Millan <rmh@aybabtu.com>
42476 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42477 as required by Multiboot spec (it was already 4-byte aligned, but
42480 2008-08-29 Pavel Roskin <proski@gnu.org>
42482 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42483 * kern/powerpc/ieee1275/startup.S: ... this.
42484 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42485 * DISTLIST: Likewise.
42487 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42488 grub/cpu/kernel.h. Add start label for consistency with other
42489 platforms. Add grub_prefix immediately after start. Add jump
42490 to the code after grub_prefix.
42491 * include/grub/powerpc/kernel.h: Provide valid values for
42492 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42494 2008-08-29 Bean <bean123ch@gmail.com>
42496 * configure.ac: Change host_os to cygwin for mingw.
42497 (asprintf): New check for function.
42499 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42500 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42502 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42503 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42504 sync, sleep and grub_util_get_disk_size for mingw.
42506 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42507 to get size in mingw.
42508 (open_device): Use flag O_BINARY if it's defined.
42509 (find_root_device): Add dummy code for mingw.
42511 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42512 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42513 (get_scsi_disk_name): Return 0 for mingw.
42515 * util/hostfs.c: #include <grub/util/misc.h>.
42516 (grub_hostfs_open): Use "rb" flag to open file, use
42517 grub_util_get_disk_size to get disk size for mingw.
42519 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42520 (asprintf): New function if HAVE_ASPRINTF is not set.
42521 (sync): New function for mingw.
42523 (grub_util_get_disk_size): Likewise.
42525 2008-08-28 Pavel Roskin <proski@gnu.org>
42527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42530 2008-08-28 Robert Millan <rmh@aybabtu.com>
42532 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42534 2008-08-28 Robert Millan <rmh@aybabtu.com>
42536 Change find_grub_drive() syntax so it doesn't prevent it from
42537 detecting NULL names as errors.
42539 * util/biosdisk.c (find_grub_drive): Move free slot search code
42541 (find_free_slot): ... to here.
42542 (read_device_map): Use find_free_slot() to search for free slots.
42544 2008-08-27 Marco Gerards <marco@gnu.org>
42546 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42547 (scsi_mod_SOURCES): New variable.
42548 (scsi_mod_CFLAGS): Likewise
42549 (scsi_mod_LDFLAGS): Likewise.
42551 * disk/scsi.c: New file.
42553 * include/grub/scsi.h: Likewise.
42555 * include/grub/scsicmd.h: Likewise.
42557 * disk/ata.c: Include <grub/scsi.h>.
42558 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42560 (grub_ata_iterate): Skip ATAPI devices.
42561 (grub_ata_open): Only handle ATAPI devices.
42562 (struct grub_atapi_read): Removed.
42563 (grub_atapi_readsector): Likewise.
42564 (grub_ata_read): No longer handle ATAPI devices.
42565 (grub_ata_write): Likewise.
42566 (grub_atapi_iterate): New function.
42567 (grub_atapi_read): Likewise.
42568 (grub_atapi_write): Likewise.
42569 (grub_atapi_open): Likewise.
42570 (grub_atapi_close): Likewise.
42571 (grub_atapi_dev): New variable.
42572 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42573 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42575 * include/grub/disk.h (enum grub_disk_dev_id): Add
42576 `GRUB_DISK_DEVICE_SCSI_ID'.
42578 2008-08-26 Robert Millan <rmh@aybabtu.com>
42580 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42581 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42584 2008-08-23 Bean <bean123ch@gmail.com>
42586 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42587 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42588 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42589 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42591 (raid5rec_mod_SOURCES): New macro.
42592 (raid5rec_mod_CFLAGS): Likewise.
42593 (raid5rec_mod_LDFLAGS): Likewise.
42594 (raid6rec_mod_SOURCES): Likewise.
42595 (raid6rec_mod_CFLAGS): Likewise.
42596 (raid6rec_mod_LDFLAGS): Likewise.
42597 (mdraid_mod_SOURCES): Likewise.
42598 (mdraid_mod_CFLAGS): Likewise.
42599 (mdraid_mod_LDFLAGS): Likewise.
42600 (dm_nv_mod_SOURCES): Likewise.
42601 (dm_nv_mod_CFLAGS): Likewise.
42602 (dm_nv_mod_LDFLAGS): Likewise.
42604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42605 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42606 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42608 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42609 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42611 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42613 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42619 * disk/raid5_recover.c: New file.
42621 * disk/raid6_recover.c: Likewise.
42623 * disk/mdraid_linux.c: Likewise.
42625 * disk/dmraid_nvidia.c: Likewise.
42627 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42630 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42631 calculate the size of raid device.
42632 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42633 different layout of raid5.
42634 (grub_raid_scan_device): Remove code specific to mdraid.
42635 (grub_raid_list): New variable.
42636 (free_array): New function.
42637 (grub_raid_register): Likewise.
42638 (grub_raid_unregister): Likewise.
42639 (grub_raid_rescan): Likewise.
42640 (GRUB_MOD_INIT): Don't iterate device here.
42641 (GRUB_MOD_FINI): Use free_array to release resource.
42643 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42644 (grub_raid5_recover_func_t): New function variable type.
42645 (grub_raid6_recover_func_t): Likewise.
42646 (grub_raid5_recover_func): New variable.
42647 (grub_raid6_recover_func): Likewise.
42648 (grub_raid_register): New function.
42649 (grub_raid_unregister): Likewise.
42650 (grub_raid_rescan): Likewise.
42651 (grub_raid_block_xor): Likewise.
42653 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42654 (CMD_CRC): New macro.
42656 (read_file): Handle device as well as file.
42657 (cmd_crc): New function.
42658 (fstest): Handle multiple disks.
42659 (options): Remove part, raw and long, add root and diskcount.
42660 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42661 (main): Find the first non option entry and ignore subsequent options,
42662 add handling for the new options, support multiple disks.
42664 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42666 2008-08-23 Bean <bean123ch@gmail.com>
42668 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42670 * genfslist.sh: Ignore kernel.mod.
42672 * genpartmaplist.sh: Likewise.
42674 2008-08-23 Robert Millan <rmh@aybabtu.com>
42676 * util/getroot.c (find_root_device): Skip anything that starts with
42677 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42679 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42681 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42682 * util/grub.d/00_header.in: Allow the administrator to change default
42683 gfxmode via ${GRUB_GFXMODE}.
42685 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42687 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42689 2008-08-21 Robert Millan <rmh@aybabtu.com>
42691 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42693 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42694 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42696 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42698 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42699 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42701 2008-08-19 Robert Millan <rmh@aybabtu.com>
42703 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42704 (struct grub_virtual_screen): Remove `cursor_color'.
42705 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42707 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42709 2008-08-18 Robert Millan <rmh@aybabtu.com>
42711 Unify (identical) linux_normal.c files.
42712 * loader/i386/efi/linux_normal.c: Move from here ...
42713 * loader/linux_normal.c: ... to here. Update all users.
42714 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42715 * loader/i386/ieee1275/linux_normal.c: Likewise.
42717 2008-08-18 Robert Millan <rmh@aybabtu.com>
42719 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42720 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42721 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42722 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42723 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42725 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42726 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42727 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42728 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42729 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42730 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42731 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42732 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42733 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42734 portably using grub_getxy().
42735 Replace `-EFI' with `-bzImage' in boot message.
42737 2008-08-17 Robert Millan <rmh@aybabtu.com>
42739 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42741 2008-08-17 Robert Millan <rmh@aybabtu.com>
42743 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42745 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42746 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42747 (grub_machine_mmap_iterate): New function declaration.
42748 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42750 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42753 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42754 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42755 Move e820 parsing from here ...
42756 * kern/i386/pc/mmap.c: New file.
42757 (grub_machine_mmap_iterate): ... to here.
42759 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42760 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42761 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42762 (grub_available_iterate): Redeclare to return `void', and redeclare
42763 its hook to use grub_uint64_t as addr and size parameters, and rename
42765 (grub_machine_mmap_iterate): ... this. Update all users.
42767 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42768 to make it more readable. Rename to ...
42769 (grub_machine_mmap_iterate): ... this.
42771 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42772 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42773 (grub_multiboot): Allocate an extra region after the payload, and fill
42774 it with a Multiboot memory map. Adjust a.out loader to calculate size
42775 with the extra space.
42776 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42777 with the extra space.
42779 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42781 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42783 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42785 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42786 mdate-sh to the list `find' searches for.
42787 * DISTLIST: Regenerated.
42789 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42791 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42792 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42793 genmoddep.awk, gensymlist.sh.in.
42794 (DISTDIRS): Add bus, docs, hook, lib.
42795 * DISTLIST: Regenerated.
42796 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42798 2008-08-16 Robert Millan <rmh@aybabtu.com>
42800 * disk/raid.c (grub_raid_init): Handle/report errors set by
42801 grub_device_iterate().
42802 * disk/lvm.c (grub_lvm_init): Likewise.
42804 2008-08-15 Bean <bean123ch@gmail.com>
42806 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42808 (datetime_mod_SOURCES): New macro.
42809 (datetime_mod_CFLAGS): Likewise.
42810 (datetime_mod_LDFLAGS): Likewise.
42811 (date_mod_SOURCES): Likewise.
42812 (date_mod_CFLAGS): Likewise.
42813 (date_mod_LDFLAGS): Likewise.
42814 (datehook_mod_SOURCES): Likewise.
42815 (datehook_mod_CFLAGS): Likewise.
42816 (datehook_mod_LDFLAGS): Likewise.
42818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42820 (datetime_mod_SOURCES): New macro.
42821 (datetime_mod_CFLAGS): Likewise.
42822 (datetime_mod_LDFLAGS): Likewise.
42823 (date_mod_SOURCES): Likewise.
42824 (date_mod_CFLAGS): Likewise.
42825 (date_mod_LDFLAGS): Likewise.
42826 (datehook_mod_SOURCES): Likewise.
42827 (datehook_mod_CFLAGS): Likewise.
42828 (datehook_mod_LDFLAGS): Likewise.
42830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42832 (datetime_mod_SOURCES): New macro.
42833 (datetime_mod_CFLAGS): Likewise.
42834 (datetime_mod_LDFLAGS): Likewise.
42835 (date_mod_SOURCES): Likewise.
42836 (date_mod_CFLAGS): Likewise.
42837 (date_mod_LDFLAGS): Likewise.
42838 (datehook_mod_SOURCES): Likewise.
42839 (datehook_mod_CFLAGS): Likewise.
42840 (datehook_mod_LDFLAGS): Likewise.
42842 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42844 (datetime_mod_SOURCES): New macro.
42845 (datetime_mod_CFLAGS): Likewise.
42846 (datetime_mod_LDFLAGS): Likewise.
42847 (date_mod_SOURCES): Likewise.
42848 (date_mod_CFLAGS): Likewise.
42849 (date_mod_LDFLAGS): Likewise.
42850 (datehook_mod_SOURCES): Likewise.
42851 (datehook_mod_CFLAGS): Likewise.
42852 (datehook_mod_LDFLAGS): Likewise.
42854 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42856 (datetime_mod_SOURCES): New macro.
42857 (datetime_mod_CFLAGS): Likewise.
42858 (datetime_mod_LDFLAGS): Likewise.
42859 (date_mod_SOURCES): Likewise.
42860 (date_mod_CFLAGS): Likewise.
42861 (date_mod_LDFLAGS): Likewise.
42862 (datehook_mod_SOURCES): Likewise.
42863 (datehook_mod_CFLAGS): Likewise.
42864 (datehook_mod_LDFLAGS): Likewise.
42866 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42868 * commands/date.c: New file.
42870 * hook/datehook.c: Likewise.
42872 * include/grub/lib/datetime.h: Likewise.
42874 * include/grub/i386/cmos.h: Likewise.
42876 * lib/datetime.c: Likewise.
42878 * lib/i386/datetime.c: Likewise.
42880 * lib/efi/datetime.c: Likewise.
42882 2008-08-14 Robert Millan <rmh@aybabtu.com>
42884 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42885 (grub_mkelfimage_SOURCES): New variable.
42886 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42888 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42889 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42890 * conf/powerpc-ieee1275.rmk: Likewise.
42891 * conf/i386-ieee1275.rmk: Likewise.
42893 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42894 * kern/i386/coreboot/init.c: Likewise.
42896 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42897 with `<grub/cpu/kernel.h>'.
42898 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42900 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42901 * kern/i386/coreboot/startup.S: Likewise.
42903 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42904 (GRUB_MOD_GAP): Remove.
42905 * include/grub/powerpc/kernel.h: New file.
42906 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42907 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42908 * include/grub/i386/kernel.h: New file.
42909 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42910 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42911 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42913 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42915 Use --directory when invoking grub_mkimage.
42917 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42918 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42919 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42920 and GRUB_KERNEL_CPU_PREFIX.
42922 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42924 * include/grub/err.h (grub_err_printf): New function prototype.
42925 * util/misc.c (grub_err_printf): New function.
42926 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42928 * kern/err.c (grub_print_error): Use grub_err_printf.
42930 2008-08-13 Robert Millan <rmh@aybabtu.com>
42932 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42934 2008-08-13 Robert Millan <rmh@aybabtu.com>
42936 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42939 2008-08-12 Robert Millan <rmh@aybabtu.com>
42941 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42942 of the relocation code from here ...
42943 (grub_multiboot): ... to here.
42944 (forward_relocator, backward_relocator): Move from here ...
42945 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42946 (grub_multiboot_backward_relocator): ... to here.
42947 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42948 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42949 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42950 (grub_multiboot_forward_relocator_end)
42951 (grub_multiboot_backward_relocator)
42952 (grub_multiboot_backward_relocator_end): New variables.
42954 2008-08-12 Bean <bean123ch@gmail.com>
42956 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42958 2008-08-11 Robert Millan <rmh@aybabtu.com>
42960 * kern/i386/linuxbios/startup.S: Move from here ...
42961 * kern/i386/coreboot/startup.S: ... to here.
42963 * kern/i386/linuxbios/init.c: Move from here ...
42964 * kern/i386/coreboot/init.c: ... to here.
42966 * kern/i386/linuxbios/table.c: Move from here ...
42967 * kern/i386/coreboot/mmap.c: ... to here.
42969 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42971 2008-08-11 Robert Millan <rmh@aybabtu.com>
42973 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42974 errors. Leave it to the upper layer to handle them.
42976 2008-08-09 Christian Franke <franke@computer.org>
42978 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42979 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42980 Install `grub.d/10_windows' only on Cygwin.
42981 * configure.ac: Add subst of `target_os'.
42982 Check `target_os' also before setting TARGET_OBJ2ELF.
42983 Add `--enable-grub-pe2elf'.
42985 2008-08-08 Robert Millan <rmh@aybabtu.com>
42987 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42988 (grub_last_time): Change type to grub_uint64_t.
42989 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42990 (grub_disk_close): Likewise.
42992 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42993 (run_menu): Migrate code from to using grub_get_time_ms().
42995 * util/misc.c (grub_get_time_ms): New function.
42997 2008-08-08 Marco Gerards <marco@gnu.org>
42999 * disk/ata.c (grub_ata_regget): Change return type to
43001 (grub_ata_regget2): Likewise.
43002 (grub_ata_wait_status): New function.
43003 (grub_ata_wait_busy): Removed function, updated all users to use
43004 `grub_ata_wait_status'.
43005 (grub_ata_wait_drq): Likewise.
43006 (grub_ata_cmd): New function.
43007 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43009 (grub_ata_pio_write): Add error handling.
43010 (grub_atapi_identify): Likewise.
43011 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43013 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43014 handling. Actually use the detected registers. Reorder the
43015 detection logic such that it is easier to read.
43016 (grub_ata_pciinit): Do not assign the same ID to each controller.
43017 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43019 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43021 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43023 2008-08-08 Marco Gerards <marco@gnu.org>
43027 2008-08-07 Bean <bean123ch@gmail.com>
43029 * include/grub/x86_64/pci.h: New file.
43031 2008-08-07 Christian Franke <franke@computer.org>
43033 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43034 (TIMER2_GATE): Likewise.
43035 (grub_pit_wait): Add enable/disable of the timer2 gate
43036 bit of port 0x61. This fixes a possible infinite loop.
43038 2008-08-07 Bean <bean123ch@gmail.com>
43040 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43041 kern/i386/tsc.c and kern/i386/pit.c.
43043 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43046 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43049 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43051 2008-08-07 Bean <bean123ch@gmail.com>
43053 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43055 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43057 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43058 multiple inclusion. Add #include <grub/types.h>.
43060 2008-08-06 Christian Franke <franke@computer.org>
43062 * conf/common.rmk: Build and install `10_windows'.
43063 * util/grub.d/10_windows.in: New script.
43065 2008-08-06 Pavel Roskin <proski@gnu.org>
43067 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43069 2008-08-06 Robert Millan <rmh@aybabtu.com>
43071 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43072 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43074 2008-08-06 Bean <bean123ch@gmail.com>
43076 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43077 (grub_pxefs_fs_int): Remove dummy definition.
43078 (grub_pxefs_open): Use data->block_size to store the current block
43080 (grub_pxefs_read): Use block size stored in data->block_size. As the
43081 value of grub_pxe_blksize can be changed after the file is opened.
43083 2008-08-06 Bean <bean123ch@gmail.com>
43085 * fs/i386/pc/pxe.c (curr_file): new variable.
43086 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43087 require the dummy internal file system anymore.
43088 (grub_pxefs_read): Removed.
43089 (grub_pxefs_close): Likewise.
43090 (grub_pxefs_fs_int): Likewise.
43091 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43092 connection when we switch file.
43093 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43095 2008-08-06 Robert Millan <rmh@aybabtu.com>
43097 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43099 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43100 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43102 * kern/i386/halt.c: New file.
43103 * kern/i386/reboot.c: Likewise.
43104 * include/grub/i386/reboot.h: Likewise.
43105 * include/grub/i386/halt.h: Likewise.
43107 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43108 Include `<grub/cpu/halt.h>'.
43109 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43110 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43112 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43113 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43114 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43115 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43116 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43117 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43119 * include/grub/i386/at_keyboard.h: ... to here.
43121 2008-08-05 Robert Millan <rmh@aybabtu.com>
43123 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43125 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43126 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43127 `kern/generic/millisleep.c'.
43129 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43130 instead of grub_get_rtc().
43131 (grub_tsc_init): Initialize `tsc_boot_time'.
43133 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43134 (grub_machine_init): Use grub_tsc_init() rather than
43135 installing an RTC-based handler via grub_install_get_time_ms().
43137 * kern/i386/pit.c: New file.
43138 * include/grub/i386/pit.h: Likewise.
43140 2008-08-05 Bean <bean123ch@gmail.com>
43142 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43144 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43145 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43146 (pxe_mod_SOURCES): New macro.
43147 (pxe_mod_CFLAGS): Likewise.
43148 (pxe_mod_LDFLAGS): Likewise.
43149 (pxecmd_mod_SOURCES): Likewise.
43150 (pxecmd_mod_CFLAGS): Likewise.
43151 (pxecmd_mod_LDFLAGS): Likewise.
43153 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43154 (grub_pxe_call): Likewise.
43156 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43158 * commands/i386/pc/pxecmd.c: New file.
43160 * fs/i386/pc/pxe.c: Likewise.
43162 * include/grub/i386/pc/pxe.h: Likewise.
43164 2008-08-05 Bean <bean123ch@gmail.com>
43166 * util/console.c (grub_console_cur_color): New variable.
43167 (grub_console_standard_color): Likewise.
43168 (grub_console_normal_color): Likewise.
43169 (grub_console_highlight_color): Likewise.
43170 (color_map): Likewise.
43171 (use_color): Likewise.
43172 (NUM_COLORS): New macro.
43173 (grub_ncurses_setcolorstate): Handle color properly.
43174 (grub_ncurses_setcolor): Don't change color here, just remember the
43175 settings, color will be set in grub_ncurses_setcolorstate.
43176 (grub_ncurses_getcolor): New function.
43177 (grub_ncurses_init): Initialize color pairs.
43178 (grub_ncurses_term): New member grub_ncurses_getcolor.
43180 2008-08-05 Colin D Bennett <colin@gibibit.com>
43182 High resolution timer support. Implemented for x86 CPUs using TSC.
43183 Extracted generic grub_millisleep() so it's linked in only as needed.
43184 This requires a Pentium compatible CPU; if the RDTSC instruction is
43185 not supported, then it falls back on the generic grub_get_time_ms()
43186 implementation that uses the machine's RTC.
43188 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43189 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43190 `kern/generic/millisleep.c'.
43192 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43193 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43195 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43196 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43198 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43200 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43201 `kern/generic/millisleep.c'.
43203 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43205 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43207 * kern/generic/rtc_get_time_ms.c: New file.
43209 * kern/generic/millisleep.c: New file.
43211 * kern/misc.c: Don't include
43212 <kern/time.h> anymore.
43213 (grub_millisleep_generic): Removed.
43215 * commands/sleep.c (grub_interruptible_millisleep): Uses
43216 grub_get_time_ms() instead of grub_get_rtc().
43218 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43220 (grub_cpu_is_cpuid_supported): New inline function.
43221 (grub_cpu_is_tsc_supported): New inline function.
43222 (grub_tsc_init): New function prototype.
43223 (grub_tsc_get_time_ms): New function prototype.
43225 * kern/i386/tsc.c (grub_get_time_ms): New file.
43227 * include/grub/time.h: Include <grub/types.h.
43228 (grub_millisleep_generic): Removed.
43229 (grub_get_time_ms): New prototype.
43230 (grub_install_get_time_ms): New prototype.
43231 (grub_rtc_get_time_ms): New prototype.
43233 * kern/time.c (grub_get_time_ms): New function.
43234 (grub_install_get_time_ms): New function.
43236 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43237 <grub/time.h> anymore.
43238 (grub_millisleep): Removed.
43239 (grub_machine_init): Call grub_tsc_init.
43241 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43242 get_time_ms() implementation.
43244 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43245 (ieee1275_get_time_ms): New function.
43246 (grub_machine_init): Install get_time_ms() implementation.
43248 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43249 (grub_machine_init): Call grub_tsc_init().
43250 (grub_millisleep): Removed.
43252 * kern/ieee1275/init.c (grub_millisleep): Removed.
43253 (grub_machine_init): Install ieee1275_get_time_ms()
43255 (ieee1275_get_time_ms): New function.
43256 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43259 2008-08-05 Marco Gerards <marco@gnu.org>
43261 * disk/ata.c: Include <grub/pci.h>.
43262 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43263 (grub_ata_initialize): Rewritten.
43264 (grub_ata_device_initialize): New function.
43266 2008-08-04 Pavel Roskin <proski@gnu.org>
43268 * kern/main.c: Include grub/mm.h.
43270 2008-08-04 Robert Millan <rmh@aybabtu.com>
43272 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43273 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43274 corruption problem).
43276 2008-08-04 Robert Millan <rmh@aybabtu.com>
43278 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43279 warnings introduced in my last commit.
43281 2008-08-03 Robert Millan <rmh@aybabtu.com>
43283 Make PCI available on all i386 architectures.
43285 * include/grub/i386/pc/pci.h: Move from here ...
43286 * include/grub/i386/pci.h: ... to here.
43288 * include/grub/i386/pc/pci.h: Remove.
43289 * include/grub/i386/efi/pci.h: Remove.
43290 * include/grub/x86_64/efi/pci.h: Remove.
43292 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43293 `<grub/cpu/pci.h>'.
43295 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43296 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43297 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43299 * conf/i386-ieee1275.rmk: Likewise.
43301 2008-08-03 Robert Millan <rmh@aybabtu.com>
43303 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43304 (grub_console_setcursor): Make it possible to set cursor off.
43306 2008-08-03 Robert Millan <rmh@aybabtu.com>
43308 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43309 of modules instead of assuming which platform provides what.
43310 * util/update-grub.in: Likewise.
43312 2008-08-03 Robert Millan <rmh@aybabtu.com>
43314 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43315 instead of `grub_install_dos_part' to determine whether a drive needs
43316 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43317 because it can be overridden when loading GRUB via Multiboot).
43319 2008-08-02 Robert Millan <rmh@aybabtu.com>
43321 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43323 2008-08-02 Robert Millan <rmh@aybabtu.com>
43325 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43326 of informational grub_dprintf() calls.
43328 2008-08-02 Robert Millan <rmh@aybabtu.com>
43330 * disk/memdisk.c (memdisk_size): Don't initialize.
43331 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43333 * include/grub/i386/pc/kernel.h
43334 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43335 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43336 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43337 (grub_arch_memdisk_size): Remove.
43339 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43340 field (was only used to transfer a constant). Add `type' field to
43341 support multiple module types.
43342 (grub_module_iterate): New function.
43344 * kern/device.c (grub_device_open): Do not hide error messages
43345 when grub_disk_open() fails. Use grub_print_error() instead.
43347 * kern/i386/pc/init.c (grub_arch_modules_addr)
43348 (grub_arch_memdisk_size): Remove functions.
43349 (grub_arch_modules_addr): Return the module address in high memory
43350 (now that it isn't copied anymore).
43352 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43353 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43354 decompression routine (grub_total_module_size already includes that
43355 now). Don't copy modules back to low memory.
43357 * kern/main.c: Include `<grub/mm.h>'.
43358 (grub_load_modules): Split out (and use) ...
43359 (grub_module_iterate): ... this function, which iterates through
43360 module objects and runs a hook.
43361 Comment out grub_mm_init_region() call, as it would cause non-ELF
43362 modules to be overwritten.
43364 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43365 the memdisk image in its own region, make it part of the module list.
43366 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43367 (main): Parse --memdisk|-m option, and pass user-provided path as
43368 parameter to generate_image().
43369 (add_segments): Pass `memdisk_path' down to load_modules().
43370 (load_modules): Embed memdisk image in module section when requested.
43371 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43372 `header.type' instead of `header.offset'.
43374 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43375 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43376 (memdisk_mod_LDFLAGS): New variables.
43377 * conf/i386-coreboot.rmk: Likewise.
43378 * conf/i386-ieee1275.rmk: Likewise.
43380 2008-08-02 Robert Millan <rmh@aybabtu.com>
43382 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43383 (backward_relocator): New variables. Used to allocate and relocate
43384 the payload, respectively.
43385 (grub_multiboot_load_elf32): Load into heap instead of requested
43386 address, install the appropriate relocator code in each bound of
43387 the payload, and set the entry point such that
43388 grub_multiboot_real_boot() will jump to one of them.
43390 * kern/i386/loader.S (grub_multiboot_payload_size)
43391 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43392 (grub_multiboot_payload_entry_offset): New variables.
43393 (grub_multiboot_real_boot): Set cpu context to what the relocator
43394 expects, and jump to the relocator instead of the payload.
43396 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43397 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43398 (grub_multiboot_payload_entry_offset): Export.
43400 2008-08-01 Bean <bean123ch@gmail.com>
43402 * normal/menu_entry.c (editor_getline): Don't return the original
43403 string as result, as it will be released by lexer once it has done
43406 2008-08-01 Robert Millan <rmh@aybabtu.com>
43408 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43409 within menuentries, not before them.
43410 util/grub.d/10_hurd.in: Likewise.
43412 2008-08-01 Bean <bean123ch@gmail.com>
43414 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43415 (bufio_mod_SOURCES): New macro.
43416 (bufio_mod_CFLAGS): Likewise.
43417 (bufio_mod_LDFLAGS): Likewise.
43419 * include/grub/bufio.h: New file.
43421 * io/bufio.c: Likewise.
43423 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43424 (grub_video_reader_png): Use grub_buffile_open to open file.
43426 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43427 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43429 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43430 (grub_video_reader_tga): Use grub_buffile_open to open file.
43432 * font/manager.c: Include <grub/bufio.h>.
43433 (add_font): Use grub_buffile_open to open file.
43435 2008-07-31 Robert Millan <rmh@aybabtu.com>
43437 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43438 ELF segments, use a macro for arbitrarily accessing any of them instead
43439 of preparing a pointer that allows access to one at a time.
43440 (grub_multiboot_load_elf64): Likewise.
43442 2008-07-31 Bean <bean123ch@gmail.com>
43444 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43445 GRUB_KERNEL_MACHINE_DATA_END.
43447 2008-07-30 Robert Millan <rmh@aybabtu.com>
43449 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43450 Increase from 0x50 to 0x60.
43451 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43452 use UUIDs to identify the root drive for them. If that's not
43454 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43455 check, for cross-disk installs.
43457 2008-07-30 Robert Millan <rmh@aybabtu.com>
43459 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43460 is non-empty, use it to set the `prefix' environment variable instead
43461 of the usual approach.
43462 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43463 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43464 environment variable instead of dummy make_install_device().
43466 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43467 (start): Insert a data section, with `grub_prefix' variable.
43468 * kern/i386/linuxbios/startup.S: Likewise.
43470 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43471 New variable reference.
43472 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43473 New macro. Defines offset of `grub_prefix' within startup.S (relative
43475 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43476 section within startup.S (relative to `start').
43477 * include/grub/i386/coreboot/kernel.h: Likewise.
43479 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43480 Overwrite grub_prefix with its contents, at the beginning of the
43482 (main): Understand -p|--prefix.
43484 2008-07-30 Robert Millan <rmh@aybabtu.com>
43486 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43488 2008-07-30 Robert Millan <rmh@aybabtu.com>
43490 * term/i386/pc/vga_text.c (grub_console_cls): Use
43491 grub_console_gotoxy() to go back to beginning of the screen.
43492 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43494 2008-07-29 Christian Franke <franke@computer.org>
43496 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43497 Add conversion of emulated mount points on Cygwin.
43499 2008-07-29 Christian Franke <franke@computer.org>
43501 * util/update-grub.in: Add a check for admin
43503 Remove old `grub.cfg.new' before creation.
43504 Add `-f' to `mv' to handle the different filesystem
43505 semantics of Windows.
43507 2008-07-29 Bean <bean123ch@gmail.com>
43509 * normal/main.c (get_line): Fix buffer overflow bug.
43511 2008-07-28 Robert Millan <rmh@aybabtu.com>
43513 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43514 (struct grub_apple_header): New struct. Describes the layout of
43515 the partmap header.
43516 (apple_partition_map_iterate): Check the header magic as well as the
43517 partition magic (which was already being checked).
43519 2008-07-28 Pavel Roskin <proski@gnu.org>
43521 * genmk.rb: Add a warning to the beginning of the output that
43522 it's a generated file and should not be edited.
43524 2008-07-28 Robert Millan <rmh@aybabtu.com>
43526 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43527 with the same number are found, just use issue a warning with
43528 grub_dprintf(), as this error has been reported to be non-fatal.
43530 2008-07-27 Robert Millan <rmh@aybabtu.com>
43532 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43535 2008-07-27 Bean <bean123ch@gmail.com>
43537 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43538 (grub_fat_find_dir): Ignore case when comparing filename.
43540 2008-07-27 Bean <bean123ch@gmail.com>
43542 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43543 smallino, as it's more descriptive, and i8count can be confused with
43544 the other field count.
43545 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43548 2008-07-27 Bean <bean123ch@gmail.com>
43550 * commands/crc.c: New file.
43552 * lib/crc.c: Likewise.
43554 * include/grub/lib/crc.h: Likewise.
43556 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43558 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43559 (hexdump): Move this function to ...
43561 * lib/hexdump.c: ... here.
43563 * include/grub/hexdump.h: Renamed to ...
43565 * include/grub/lib/hexdump.h: ... this.
43567 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43569 * util/grub-editenv.c: Likewise.
43571 * include/envblk.h: Renamed to ...
43573 * include/lib/envblk.h: ... this.
43575 * util/envblk.c: Renamed to ...
43577 * lib/envblk.c: ... this.
43579 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43581 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43582 (pkglib_MODULES): Add crc.mod.
43583 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43584 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43585 (crc_mod_SOURCES): New macro.
43586 (crc_mod_CFLAGS): Likewise.
43587 (crc_mod_LDFLAGS): Likewise.
43589 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43591 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43593 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43597 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43599 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43601 * commands/help.c: Include <grub/term.h>.
43602 (TERM_WIDTH): Removed. Updated all users.
43604 2008-07-27 Pavel Roskin <proski@gnu.org>
43606 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43607 spurious warnings about a comment within a comment.
43609 2008-07-25 Robert Millan <rmh@aybabtu.com>
43611 * util/getroot.c (find_root_device): Skip devices that match
43612 /dev/dm-[0-9]. This lets the real device be found for any type of
43613 abstraction (LVM, EVMS, RAID..).
43614 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43615 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43616 device is found first, find_root_device() will now skip it.
43618 2008-07-24 Pavel Roskin <proski@gnu.org>
43620 * include/grub/types.h: Use __builtin_bswap32() and
43621 __builtin_bswap64() with gcc 4.3 and newer.
43623 2008-07-24 Christian Franke <franke@computer.org>
43625 * util/i386/pc/grub-install.in: If `--debug' is specified,
43626 pass `--verbose' to grub-setup.
43627 Abort script if make_system_path_relative_to_its_root() fails.
43629 2008-07-24 Bean <bean123ch@gmail.com>
43631 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43632 variable `target_platform' should be `platform'.
43634 2008-07-24 Bean <bean123ch@gmail.com>
43636 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43637 (grub_png_init_fixed_block): New function.
43638 (grub_png_decode_image_data): Handle fixed huffman code compression.
43640 2008-07-24 Bean <bean123ch@gmail.com>
43642 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43643 (grub_pe2elf_SOURCES): New macro.
43644 (CLEANFILES): Add grub-pe2elf.
43646 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43647 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43648 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43649 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43650 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43651 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43652 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43653 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43654 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43655 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43656 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43657 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43658 (GRUB_PE32_DT_FUNCTION): Likewise.
43659 (GRUB_PE32_REL_I386_DIR32): Likewise.
43660 (GRUB_PE32_REL_I386_REL32): Likewise.
43661 (grub_pe32_symbol): New structure.
43662 (grub_pe32_reloc): Likewise.
43664 * util/grub-pe2elf.c: New file.
43666 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43667 start symbol in non pc platform.
43669 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43671 The following patches are from Christian Franke.
43673 * include/grub/dl.h: Remove .previous, gas supports this only
43676 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43677 Remove .type, gas supports this only for ELF format.
43679 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43680 nullbytes in symbol table. This fixes an infinite loop if table is
43683 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43684 TARGET_IMG_LDFLAGS and EXEEXT.
43686 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43687 TARGET_IMG_LDFLAGS_AC.
43688 (grub_CHECK_STACK_ARG_PROBE): New function.
43690 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43692 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43694 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43695 to set TARGET_IMG_LD* accordingly.
43696 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43697 Add call to grub_CHECK_STACK_ARG_PROBE.
43698 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43700 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43702 * genmk.rb: Add EXEEXT to CLEANFILES.
43704 2008-07-23 Robert Millan <rmh@aybabtu.com>
43706 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43707 define the codes for arrows and lines used for the menu).
43708 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43711 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43712 fonts, because the latter are too slow.
43714 2008-07-21 Bean <bean123ch@gmail.com>
43716 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43717 a20. Run keyboard test last, as it will cause macbook to halt.
43719 2008-07-18 Pavel Roskin <proski@gnu.org>
43721 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43722 load foreign architecture modules correctly anyway. Keep
43723 support for loading host architecture modules, whether we
43724 compile them or not.
43726 2008-07-17 Pavel Roskin <proski@gnu.org>
43728 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43729 change target_cpu. The compiler default can mismatch target_cpu
43732 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43733 * kern/efi/efi.c: Likewise.
43735 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43736 target compiler is functional.
43737 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43740 * configure.ac: Default to efi platform for x86_64-apple. Allow
43741 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43742 adjustments from the rest, only do them if target is not
43743 explicitly given. Merge other adjustments with the final sanity
43744 check. Remove an extraneous check for supported CPU. Be
43745 specific which CPU and which platform is not supported.
43747 * configure.ac: Default to pc platform for x86_64.
43749 2008-07-17 Robert Millan <rmh@aybabtu.com>
43751 Partial LinuxBIOS -> Coreboot rename.
43753 * conf/i386-linuxbios.rmk: Renamed to ...
43754 * conf/i386-coreboot.rmk: ... this.
43755 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43756 * configure.ac: Accept "coreboot" as input platform (but maintain
43757 compatibility with "linuxbios").
43758 * include/grub/i386/linuxbios: Renamed to ...
43759 * include/grub/i386/coreboot: ... this.
43761 2008-07-17 Bean <bean123ch@gmail.com>
43763 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43764 (appleldr_mod_SOURCE): New variable.
43765 (appleldr_mod_CFLAGS): Likewise.
43766 (appleldr_mod_LDFLAGS): Likewise.
43767 (pci_mod_SOURCES): Likewise.
43768 (pci_mod_CFLAGS): Likewise.
43769 (pci_mod_LDFLAGS): Likewise.
43770 (lspci_mod_SOURCES): Likewise.
43771 (lspci_mod_CFLAGS): Likewise.
43772 (lspci_mod_LDFLAGS): Likewise.
43774 * conf/x86_64-efi.rmk: New file.
43776 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43778 (grub_efidisk_write): Likewise.
43780 * include/efi/api.h (efi_call_0): New macro.
43781 (efi_call_1): Likewise.
43782 (efi_call_2): Likewise.
43783 (efi_call_3): Likewise.
43784 (efi_call_4): Likewise.
43785 (efi_call_5): Likewise.
43786 (efi_call_6): Likewise.
43788 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43789 grub_rescue_cmd_chainloader.
43791 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43792 (grub_pe32_optional_header): Change some fields based on i386 or
43794 (GRUB_PE32_PE32_MAGIC): Likewise.
43796 * include/grub/efi/uga_draw.h: New file.
43798 * include/grub/elf.h (STN_ABS): New constant.
43799 (R_X86_64_NONE): Relocation constant for x86_64.
43800 (R_X86_64_64): Likewise.
43801 (R_X86_64_PC32): Likewise.
43802 (R_X86_64_GOT32): Likewise.
43803 (R_X86_64_PLT32): Likewise.
43804 (R_X86_64_COPY): Likewise.
43805 (R_X86_64_GLOB_DAT): Likewise.
43806 (R_X86_64_JUMP_SLOT): Likewise.
43807 (R_X86_64_RELATIVE): Likewise.
43808 (R_X86_64_GOTPCREL): Likewise.
43809 (R_X86_64_32): Likewise.
43810 (R_X86_64_32S): Likewise.
43811 (R_X86_64_16): Likewise.
43812 (R_X86_64_PC16): Likewise.
43813 (R_X86_64_8): Likewise.
43814 (R_X86_64_PC8): Likewise.
43816 * include/grub/i386/efi/pci.h: New file.
43818 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43819 Change it value based on platform.
43820 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43821 (GRUB_E820_RAM): Likewise.
43822 (GRUB_E820_RESERVED): Likewise.
43823 (GRUB_E820_ACPI): Likewise.
43824 (GRUB_E820_NVS): Likewise.
43825 (GRUB_E820_EXEC_CODE): Likewise.
43826 (GRUB_E820_MAX_ENTRY): Likewise.
43827 (grub_e820_mmap): New structure.
43828 (linux_kernel_header): Change the efi field according to different
43829 kernel version, also field from linux_kernel_header.
43831 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43833 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43834 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43835 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43836 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43837 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43838 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43839 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43840 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43841 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43842 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43844 * include/grub/x86_64/efi/kernel.h: New file.
43846 * include/grub/x86_64/efi/loader.h: Likewise.
43848 * include/grub/x86_64/efi/machine.h: Likewise.
43850 * include/grub/x86_64/efi/pci.h: Likewise.
43852 * include/grub/x86_64/efi/time.h: Likewise.
43854 * include/grub/x86_64/linux.h: Likewise.
43856 * include/grub/x86_64/setjmp.h: Likewise.
43858 * include/grub/x86_64/time.h: Likewise.
43860 * include/grub/x86_64/types.h: Likewise.
43862 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43863 GRUB_TARGET_SIZEOF_VOID_P.
43865 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43866 (grub_efi_locate_handle): Likewise.
43867 (grub_efi_open_protocol): Likewise.
43868 (grub_efi_set_text_mode): Likewise.
43869 (grub_efi_stall): Likewise.
43870 (grub_exit): Likewise.
43871 (grub_reboot): Likewise.
43872 (grub_halt): Likewise.
43873 (grub_efi_exit_boot_services): Likewise.
43874 (grub_get_rtc): Likewise.
43876 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43877 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43878 (grub_efi_allocate_pages): Wrap efi calls.
43879 (grub_efi_free_pages): Wrap efi calls.
43880 (grub_efi_get_memory_map): Wrap efi calls.
43882 * kern/x86_64/dl.c: New file.
43884 * kern/x86_64/efi/callwrap.S: Likewise.
43886 * kern/x86_64/efi/startup.S: Likewise.
43888 * loader/efi/appleloader.c: Likewise.
43890 * loader/efi/chainloader.c (cmdline): New variable.
43891 (grub_chainloader_unload): Wrap efi calls.
43892 (grub_chainloader_boot): Likewise.
43893 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43896 * loader/efi/chainloader_normal.c (chainloader_command):
43897 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43900 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43902 (grub_e820_add_region): New function.
43903 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43905 (grub_find_video_card): New function.
43906 (grub_linux_setup_video): New function.
43907 (grub_rescue_cmd_linux): Probe for video information.
43909 * normal/x86_64/setjmp.S: New file.
43911 * term/efi/console.c (map_char): New function.
43912 (grub_console_putchar): Map unicode char.
43913 (grub_console_checkkey): Wrap efi calls.
43914 (grub_console_getkey): Likewise.
43915 (grub_console_getwh): Likewise.
43916 (grub_console_gotoxy): Likewise.
43917 (grub_console_cls): Likewise.
43918 (grub_console_setcolorstate): Likewise.
43919 (grub_console_setcursor): Likewise.
43921 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43923 2008-07-16 Pavel Roskin <proski@gnu.org>
43925 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43928 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43929 pointer, not an integer. This fixes a warning and prevents
43930 precision loss on 64-bit systems.
43931 (relocate_addresses): Remove unneeded cast.
43933 2008-07-15 Pavel Roskin <proski@gnu.org>
43935 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43937 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43939 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43940 Fix comparison between signed and unsigned.
43942 * include/grub/i386/ieee1275/console.h: Declare
43943 grub_console_init() and grub_console_fini().
43945 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43946 It's empty and unused.
43948 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43949 beginning to avoid warnings with some compilers.
43951 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43952 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43954 2008-07-14 Pavel Roskin <proski@gnu.org>
43956 * kern/env.c (grub_register_variable_hook): Don't copy empty
43957 string, it leaks memory. Pass "" to grub_env_set(), it should
43958 handle constant strings.
43960 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43961 * commands/cmp.c (grub_cmd_cmp): Likewise.
43962 * kern/dl.c (grub_dl_flush_cache): Likewise.
43963 (grub_dl_load_core): Likewise.
43964 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43965 (grub_elf64_load_phdrs): Likewise.
43967 2008-07-13 Pavel Roskin <proski@gnu.org>
43969 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43970 between signed and unsigned.
43971 (LzmaEnc_Finish): Fix warning about an unused parameter.
43973 2008-07-13 Bean <bean123ch@gmail.com>
43975 * Makefile.in (enable_lzo): New rule.
43977 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43979 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43981 * boot/i386/pc/lnxboot.S: #include <config.h>.
43983 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43984 its value according to the compression algorithm used, lzo or lzma.
43986 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43987 compression algorithm according to configure macro.
43989 * kern/i386/pc/startup.S (codestart): Likewise.
43991 * kern/i386/pc/lzma_decode.S: New file.
43993 * include/grub/lib/LzFind.h: Likewise.
43995 * include/grub/lib/LzHash.h: Likewise.
43997 * include/grub/lib/LzmaDec.h: Likewise.
43999 * include/grub/lib/LzmaEnc.h: Likewise.
44001 * include/grub/lib/LzmaTypes.h: Likewise.
44003 * lib/LzFind.c: Likewise.
44005 * lib/LzmaDec.c: Likewise.
44007 * lib/LzmaEnc.c: Likewise.
44009 2008-07-13 Bean <bean123ch@gmail.com>
44011 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44012 (grub_ext4_extent_header): New structure.
44013 (grub_ext4_extent): Likewise.
44014 (grub_ext4_extent_idx): Likewise.
44015 (grub_ext4_find_leaf): New function.
44016 (grub_ext2_read_block): Handle extents.
44018 2008-07-12 Robert Millan <rmh@aybabtu.com>
44020 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44022 2008-07-11 Robert Millan <rmh@aybabtu.com>
44024 * util/grub.d/40_custom.in: New file. Example on how to add custom
44025 entries to /etc/grub.d.
44026 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44027 40_custom (implicitly, by merging all the grub.d rules).
44029 2008-07-11 Pavel Roskin <proski@gnu.org>
44031 * commands/read.c (grub_getline): Fix invalid memory access.
44032 Don't add newline to the variable value.
44034 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44035 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44036 (serial_hw_get_port): Check validity of the port number.
44037 (grub_cmd_serial): Check return value of serial_hw_get_port().
44039 2008-07-07 Pavel Roskin <proski@gnu.org>
44041 * boot/i386/pc/diskboot.S (notification_string): Replace
44042 "Loading kernel" with just "loading". This is shorter, less
44043 confusing and saves a few bytes for possible future changes.
44045 2008-07-05 Pavel Roskin <proski@gnu.org>
44047 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44048 size for ATAPI devices, they are undefined. Output sector
44049 number in decimal form.
44051 * disk/ata.c: Use named constants for status bits.
44053 2008-07-04 Pavel Roskin <proski@gnu.org>
44055 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44056 grub_addr_t before casting it to the void pointer to fix a
44057 warning. Non-addressable regions are discarded earlier.
44058 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44059 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44060 (check_signature): Don't shadow table_header.
44061 (grub_linuxbios_table_iterate): Cast numeric constants to
44062 grub_linuxbios_table_header_t.
44063 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44066 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44069 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44070 pointer, which can cause warnings. Support 64-bit addresses.
44072 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44073 of sizeof(long). This fixes PowerPC image generation on x86_64.
44075 2008-07-04 Robert Millan <rmh@aybabtu.com>
44077 This fixes a performance issue when pc & gpt partmap iterators
44078 didn't abort iteration even after our hook found what it was
44079 looking for (often causing expensive probes of non-existent drives).
44081 Some callers relied on previous buggy behaviour, since they would
44082 raise an error when their own hooks caused early abortion of its
44085 * kern/device.c (grub_device_open): Improve error message.
44086 * disk/lvm.c (grub_lvm_open): Likewise.
44087 * disk/raid.c (grub_raid_open): Likewise.
44089 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44090 when hook requests it, independently of grub_errno.
44091 (pc_partition_map_probe): Do not fail when find_func() caused
44092 early abortion of pc_partition_map_iterate().
44094 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44095 when hook requests it, independently of grub_errno.
44096 (gpt_partition_map_probe): Do not fail when find_func() caused
44097 early abortion of gpt_partition_map_iterate().
44099 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44100 when hook requests it, independently of grub_errno. Do not fail when
44101 part_map_iterate_hook() caused early abortion of p->iterate().
44103 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44104 when grub_partition_iterate() returned with non-zero.
44106 2008-07-03 Pavel Roskin <proski@gnu.org>
44108 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44109 like we do in grub_ata_pio_read().
44110 (grub_ata_readwrite): Always write individual sectors. Fix the
44111 sector count for the remainder.
44112 (grub_ata_write): Enable writing to ATA devices. Correctly
44113 report error for ATAPI devices.
44115 2008-07-02 Pavel Roskin <proski@gnu.org>
44117 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44120 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44121 for every read sector, we already increment it for the whole
44122 batch. This fixes reading more than 256 sectors at once.
44124 * util/grub-editenv.c (cmd_info): Cast argument to long
44125 explicitly. ptrdiff_t reduces to int on i386.
44127 * util/grub-editenv.c (main): Be specific which parameter is
44130 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44131 (memdisk): Make memdisk_orig_addr a pointer.
44133 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44134 for file offsets, use grub_off_t instead. Fix printf format
44137 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44138 there. Real unexpected warnings should not drown in the noise
44139 about known problems.
44141 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44142 grub_disk_addr_t for memory addresses.
44144 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44145 explicitly to fix a warning.
44147 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44149 * Makefile.in (MODULE_LDFLAGS): New variable.
44150 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44151 the linker accepts --build-id=none.
44152 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44154 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44156 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44157 those in Linux XFS code. Provide a way to access 64-bit parent
44159 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44160 the end of struct grub_xfs_dir_header.
44162 2008-07-02 Bean <bean123ch@gmail.com>
44164 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44165 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44166 and GRUB_IEEE1275_FLAG_NO_ANSI.
44168 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44169 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44170 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44172 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44173 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44175 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44176 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44178 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44179 esc sequence on non ANSI terminal.
44180 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44182 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44185 2008-07-02 Bean <bean123ch@gmail.com>
44187 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44188 (grub_editenv_SOURCES): New variable.
44189 (pkglib_MODULES): Add loadenv.mod.
44190 (loadenv_mod_SOURCES): New variable.
44191 (loadenv_mod_CFLAGS): Likewise.
44192 (loadenv_mod_LDFLAGS): Likewise.
44194 * include/grub/envblk.h: New file.
44196 * util/envblk.c: New file.
44198 * util/grub-editenv.c: New file.
44200 * commands/loadenv.c: New file.
44202 2008-07-01 Pavel Roskin <proski@gnu.org>
44204 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44205 not unsigned char. This fixes warnings and is consistent with
44208 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44210 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44212 * term/tparm.c (analyze): Always set *popcount.
44214 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44215 cast to fix a warning.
44217 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44218 cast to suppress a warning.
44220 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44221 grub_fshelp_read_file() expects.
44223 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44224 write uuid as a 32-bit value in CPU byte order, so declare and
44227 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44228 long if the format specifier expects it.
44229 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44230 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44231 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44232 long to fix a warning.
44233 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44234 grub_dprintf() arguments to fix warnings.
44236 2008-06-30 Pavel Roskin <proski@gnu.org>
44238 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44239 install_bsd_part immediately before core.img is embedded or
44240 modified on disk. This fixes core.img verification if core.img
44241 cannot be embedded.
44243 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44244 core_path to calculate the blocklist.
44245 Patch from Javier Martín <lordhabbit@gmail.com>
44247 2008-06-29 Robert Millan <rmh@aybabtu.com>
44249 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44250 block to disk block.
44251 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44252 Patch from Niels Böhm <bitbucket@arcor.de>
44254 2008-06-29 Robert Millan <rmh@aybabtu.com>
44256 * util/update-grub_lib.in (font_path): Search for fonts in
44257 /boot/grub first, which is more likely to be readable (we aren't
44258 deciding where fonts live, just looking for them).
44260 2008-06-26 Pavel Roskin <proski@gnu.org>
44262 * util/biosdisk.c (read_device_map): Don't leave dead map
44263 entries for devices failing stat() check.
44265 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44266 core_path_dev for the core.img path on the target device.
44268 2008-06-26 Robert Millan <rmh@aybabtu.com>
44270 * disk/fs_uuid.c: New file.
44271 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44272 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44273 (fs_uuid_mod_LDFLAGS): New variables.
44274 * include/grub/disk.h (grub_disk_dev_id): Add
44275 `GRUB_DISK_DEVICE_UUID_ID'.
44276 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44277 implement iterate().
44279 2008-06-26 Robert Millan <rmh@aybabtu.com>
44281 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44282 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44283 Linux image includes no initrd.
44285 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44287 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44288 call to resolve the core image location that effectively appended the
44291 2008-06-21 Robert Millan <rmh@aybabtu.com>
44293 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44296 * util/grub.d/10_hurd.in: ... to here ...
44297 * util/grub.d/10_linux.in: ... and here.
44299 2008-06-19 Robert Millan <rmh@aybabtu.com>
44301 * kern/main.c (grub_main): Export `prefix' variable immediately
44302 after it has been set by grub_machine_set_prefix().
44304 2008-06-19 Robert Millan <rmh@aybabtu.com>
44306 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44307 search result when not saving to variable, not the other way around.
44308 When saving to variable, abort iteration as soon as a match is found.
44310 2008-06-19 Robert Millan <rmh@aybabtu.com>
44312 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44313 check for partition that provides /boot/grub. Its logic is flawed,
44314 as it prevents prepare_grub_to_access_device() from being called
44317 2008-06-19 Robert Millan <rmh@aybabtu.com>
44319 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44320 "insmod" command directly when abstraction modules are needed,
44321 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44322 since it had already been processed).
44324 2008-06-19 Pavel Roskin <proski@gnu.org>
44326 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44327 changed. This is needed in case GRUB_LIBDIR changes.
44328 * conf/i386-ieee1275.rmk: Likewise.
44329 * conf/i386-linuxbios.rmk: Likewise.
44330 * conf/i386-pc.rmk: Likewise.
44331 * conf/powerpc-ieee1275.rmk: Likewise.
44333 2008-06-18 Pavel Roskin <proski@gnu.org>
44335 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44336 kernel_elf_symlist.c to symlist.c for consistency with other
44337 architectures. Update all users.
44338 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44340 2008-06-18 Robert Millan <rmh@aybabtu.com>
44342 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44345 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44346 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44347 a RAID device, run setup() for all members independently on whether
44348 LVM abstraction is being used.
44349 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44350 If grub-mkimage has set `*install_dos_part == -2', don't override this
44352 Perform *install_dos_part adjustments independently on whether
44353 we're embedding or not.
44354 Clarify error message when image is too big for embedding.
44355 Remove duplicate *install_dos_part stanza.
44357 2008-06-17 Robert Millan <rmh@aybabtu.com>
44359 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44360 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44362 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44363 values in grub_ofconsole_normal_color and
44364 grub_ofconsole_highlight_color (they're not directly related to
44365 background and foreground).
44366 (grub_ofconsole_setcolorstate): Extract background and foreground
44367 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44369 2008-06-17 Robert Millan <rmh@aybabtu.com>
44371 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44372 /boot/grub for the check in last commit, not /boot (they could be
44373 different partitions).
44375 2008-06-16 Robert Millan <rmh@aybabtu.com>
44377 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44378 asked to setup access for the same partition that provides /boot,
44379 don't bother using UUIDs since our root already has the value we
44382 2008-06-16 Robert Millan <rmh@aybabtu.com>
44384 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44386 Patch from Sven Mueller <sven@debian.org>.
44388 2008-06-16 Robert Millan <rmh@aybabtu.com>
44390 * util/update-grub.in: Check for $EUID instead of $UID.
44391 Reported by Vincent Zweije.
44393 2008-06-16 Bean <bean123ch@gmail.com>
44395 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44396 (grub_ext2_read_block): Likewise.
44397 (grub_ext2_read_inode): Likewise.
44398 (grub_ext2_mount): Likewise.
44399 (grub_ext2_close): Likewise.
44400 (grub_ext3_get_journal): Removed.
44402 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44403 (grub_reiserfs_read_symlink): Likewise.
44404 (grub_reiserfs_mount): Likewise.
44405 (grub_reiserfs_open): Likewise.
44406 (grub_reiserfs_read): Likewise.
44407 (grub_reiserfs_close): Likewise.
44408 (grub_reiserfs_get_journal): Removed.
44410 * fs/fshelp.c (grub_fshelp_read): Removed.
44411 (grub_fshelp_map_block): Likewise.
44413 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44414 (grub_fshelp_journal): Likewise.
44415 (grub_fshelp_read): Likewise.
44416 (grub_fshelp_map_block): Likewise.
44418 2008-06-16 Pavel Roskin <proski@gnu.org>
44420 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44421 floating point anymore.
44422 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44424 2008-06-15 Pavel Roskin <proski@gnu.org>
44426 * commands/ls.c (grub_ls_list_files): Use integer calculations
44427 for human readable format, avoid floating point use.
44428 * kern/misc.c (grub_ftoa): Remove.
44429 (grub_vsprintf): Remove floating point support.
44431 2008-06-15 Robert Millan <rmh@aybabtu.com>
44433 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44435 Reported by Max Vozeler.
44437 2008-06-15 Robert Millan <rmh@aybabtu.com>
44439 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44440 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44442 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44443 the beginning of the prefix.
44445 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44446 It is assumed that if we have a memdisk, grub-mkimage has set
44447 grub_prefix to include the "(memdisk)" drive in it.
44449 2008-06-15 Robert Millan <rmh@aybabtu.com>
44451 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44452 Initialize keyboard controller after registering the terminal, so that
44453 grub_printf() can be called from grub_keyboard_controller_init().
44455 2008-06-15 Robert Millan <rmh@aybabtu.com>
44457 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44458 extent-btree which is written as big endian on disk.
44459 Reported by Alain Greppin <al@chilibi.org>.
44461 2008-06-14 Robert Millan <rmh@aybabtu.com>
44463 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44464 * util/i386/pc/grub-install.in (modules): Likewise.
44466 2008-06-13 Pavel Roskin <proski@gnu.org>
44468 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44470 2008-06-13 Bean <bean123ch@gmail.com>
44472 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44474 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44476 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44477 to indicate sparse block.
44479 2008-06-12 Pavel Roskin <proski@gnu.org>
44481 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44482 number, grub_fshelp_read() does it for us.
44484 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44485 linear disk read with journal translation.
44486 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44487 * include/grub/fshelp.h: Declare grub_fshelp_read().
44489 2008-06-09 Pavel Roskin <proski@gnu.org>
44491 * fs/minix.c (grub_minix_mount): Handle error reading
44494 2008-06-08 Robert Millan <rmh@aybabtu.com>
44496 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44497 don't append the RAID prefix afterwards.
44498 Reported by Clint Adams.
44500 2008-06-08 Robert Millan <rmh@aybabtu.com>
44502 Based on description from Pavel:
44503 * kern/disk.c (grub_disk_check_range): Rename to ...
44504 (grub_disk_adjust_range): ... this. Add a comment explaining the
44505 tasks performed by this function.
44507 2008-06-08 Robert Millan <rmh@aybabtu.com>
44509 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44510 `num_serial' (for consistency with other variables).
44511 (struct grub_ntfs_data): Add `uuid' member.
44512 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44513 (grub_ntfs_uuid): New function.
44514 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44516 2008-06-07 Pavel Roskin <proski@gnu.org>
44518 * util/biosdisk.c (open_device): Revert last change to the
44519 function, it broke installation. The sector needs to be
44520 different dependent on which device is opened.
44522 2008-06-06 Robert Millan <rmh@aybabtu.com>
44524 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44525 rest of GRUB, and breakage doesn't happen if its value were modified.
44527 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44528 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44529 a constant (same value).
44530 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44531 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44533 2008-06-06 Robert Millan <rmh@aybabtu.com>
44535 * util/biosdisk.c (open_device): Do not modify sector offset when
44536 accessing a partition. kern/disk.c already handles this for us.
44538 2008-06-06 Robert Millan <rmh@aybabtu.com>
44540 * util/grub-emu.c (grub_machine_init): Move code in this function from
44542 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44543 segfault in case grub_printf() is called).
44545 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44546 grub_probe. Update all users not to explicitly add it again.
44547 (grub_device): New variable; contains corresponding device for grubdir.
44548 (fs_module, partmap_module, devabstraction_module): Pass
44549 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44552 2008-06-05 Robert Millan <rmh@aybabtu.com>
44554 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44555 is found, print it (same layout as with labels).
44557 2008-06-04 Robert Millan <rmh@aybabtu.com>
44559 * util/biosdisk.c (get_drive): Rename to ...
44560 (find_grub_drive): ... this. Update all users.
44562 (get_os_disk): Rename to ...
44563 (convert_system_partition_to_system_disk): ... this. Update all users.
44565 (find_drive): Rename to ...
44566 (find_system_device): ... this. Update all users.
44568 2008-06-04 Robert Millan <rmh@aybabtu.com>
44570 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44571 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44572 (make_device_map): Likewise.
44574 2008-06-01 Robert Millan <rmh@aybabtu.com>
44576 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44577 before dereferencing it.
44579 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44580 union with fat12/fat16-specific ones. Add some new fields, including
44581 `num_serial' for both versions.
44582 (struct grub_fat_data): Add `uuid' member.
44583 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44584 names. Initialize `data->uuid' using `num_serial'.
44585 (grub_fat_uuid): New function.
44586 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44588 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44589 (grub_reiserfs_uuid): New function.
44590 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44593 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44594 (grub_xfs_uuid): New function.
44595 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44597 2008-06-01 Robert Millan <rmh@aybabtu.com>
44599 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44600 code that is backward compatible with pre-uuid search command.
44602 2008-05-31 Robert Millan <rmh@aybabtu.com>
44604 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44605 floppies after everything else, to ensure floppy drive isn't accessed
44606 unnecessarily (patch from Bean).
44608 2008-05-31 Robert Millan <rmh@aybabtu.com>
44610 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44611 not print device names when we were asked to set a variable.
44613 2008-05-31 Robert Millan <rmh@aybabtu.com>
44615 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44616 using "cursor-on" and "cursor-off" commands (understood at least by
44617 the Open Firmware flavour on OLPC).
44619 2008-05-31 Michael Gorven <michael@gorven.za.net>
44621 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44622 on and off sequences.
44624 2008-05-31 Robert Millan <rmh@aybabtu.com>
44626 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44627 * util/update-grub.in: Likewise.
44629 2008-05-30 Pavel Roskin <proski@gnu.org>
44631 * util/biosdisk.c (linux_find_partition): Simplify logic and
44632 make the code more universal. Keep special processing for
44633 devfs, but use a simple rule for all other devices. If the
44634 device ends with a number, append 'p' and the partition number.
44635 Otherwise, append only the partition number.
44637 2008-05-30 Robert Millan <rmh@aybabtu.com>
44639 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44640 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44641 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44642 the `root' parameter to Linux.
44644 2008-05-30 Robert Millan <rmh@aybabtu.com>
44646 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44647 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44648 --fs_uuid with --fs-uuid.
44649 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44650 all filesystems support them).
44652 2008-05-30 Robert Millan <rmh@aybabtu.com>
44654 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44655 grub_printf() flags, since we're printing in units of 2 bytes.
44657 2008-05-30 Robert Millan <rmh@aybabtu.com>
44659 * util/grub.d/00_header.in: Remove obsolete comment referencing
44660 convert_system_path_to_grub_path().
44661 * util/update-grub.in: Likewise.
44662 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44663 (convert_system_path_to_grub_path): Add a warning message explaining
44664 that this function is deprecated. Rely on is_path_readable_by_grub()
44665 for the readability checks.
44666 (font_path): Use is_path_readable_by_grub() for the readability
44667 check rather than convert_system_path_to_grub_path().
44669 2008-05-30 Robert Millan <rmh@aybabtu.com>
44671 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44672 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44673 converting it first.
44674 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44675 grub.cfg for access to font file, and afterwards call it again to set
44678 2008-05-30 Robert Millan <rmh@aybabtu.com>
44680 * commands/search.c (options): Add --fs_uuid option.
44681 (search_fs_uuid): New function.
44682 (grub_cmd_search): Fix --set argument passing.
44683 Use search_fs_uuid() when requested via --fs_uuid.
44684 (grub_search_init): Update help message.
44685 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44686 and redeclare it as an array of 16-bit words.
44687 (grub_ext2_uuid): New function.
44688 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44689 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44690 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44691 (GRUB_DEVICE_BOOT_UUID): New variables.
44692 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44693 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44695 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44696 just assume `root' variable has the right value.
44697 * util/grub.d/10_linux.in: Likewise.
44698 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44700 (main): Recognise `-t fs_uuid' argument.
44702 2008-05-30 Robert Millan <rmh@aybabtu.com>
44704 * util/biosdisk.c (map): Redefine structure to hold information
44705 about GRUB drive name.
44706 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44708 (call_hook): Remove.
44709 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44710 member. Assume drive has partitions.
44711 (grub_util_biosdisk_open): Access device names via `.device' struct
44713 (open_device): Likewise.
44714 (find_drive): Likewise.
44715 (read_device_map): Adjust map[] usage to match the new struct
44716 definition. Don't check for duplicates (still possible, but not cheap
44718 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44719 (make_device_name): Remove assumption of BIOS-like drive names.
44721 2008-05-30 Pavel Roskin <proski@gnu.org>
44723 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44724 compiling execute.c doesn't need grub_script.tab.h anymore.
44725 (normal/command.c_DEPENDENCIES): Likewise.
44726 (normal/function.c_DEPENDENCIES): Likewise.
44727 * conf/i386-ieee1275.rmk: Likewise.
44728 * conf/i386-linuxbios.rmk: Likewise.
44729 * conf/i386-pc.rmk: Likewise.
44730 * conf/powerpc-ieee1275.rmk: Likewise.
44731 * conf/sparc64-ieee1275.rmk: Likewise.
44733 2008-05-29 Pavel Roskin <proski@gnu.org>
44735 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44736 when scanning metadata for volume group name.
44738 * include/grub/script.h: Don't include grub_script.tab.h. It's
44739 a generated file, which may only be included from the files with
44740 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44741 use union YYSTYPE, as the later allows forward declaration.
44742 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44744 2008-05-29 Robert Millan <rmh@aybabtu.com>
44746 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44747 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44748 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44749 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44752 2008-05-29 Robert Millan <rmh@aybabtu.com>
44754 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44755 control key combinations.
44757 2008-05-29 Robert Millan <rmh@aybabtu.com>
44759 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44760 * util/ieee1275/grub-install.in: ... to here.
44761 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44762 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44763 (grub_install_SOURCES): Likewise.
44765 2008-05-29 Robert Millan <rmh@aybabtu.com>
44767 * fs/affs.c: Update copyright year.
44768 * fs/ext2.c: Likewise.
44769 * fs/fshelp.c: Likewise.
44770 * fs/hfsplus.c: Likewise.
44771 * fs/ntfs.c: Likewise.
44772 * fs/xfs.c: Likewise.
44773 * include/grub/fshelp.h: Likewise.
44774 * util/grub-mkdevicemap.c: Likewise.
44776 2008-05-28 Robert Millan <rmh@aybabtu.com>
44778 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44779 might need to be fatfs to support some firmware implementations
44782 2008-05-28 Robert Millan <rmh@aybabtu.com>
44784 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44786 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44787 (make_device_map): Likewise.
44789 2008-05-20 Bean <bean123ch@gmail.com>
44791 * fs/fshelp.c (grub_fshelp_map_block): New function.
44792 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44793 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44795 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44796 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44797 (grub_fshelp_journal): New structure.
44798 (grub_fshelp_map_block): New function prototype.
44799 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44800 (grub_fshelp_map_block): Likewise.
44802 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44803 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44804 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44805 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44806 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44807 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44808 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44809 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44810 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44811 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44812 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44813 (grub_ext2_sblock): New members for journal support.
44814 (grub_ext3_journal_header): New structure.
44815 (grub_ext3_journal_revoke_header): Likewise.
44816 (grub_ext3_journal_block_tag): Likewise.
44817 (grub_ext3_journal_sblock): Likewise.
44818 (grub_fshelp_node): New members logfile and journal.
44819 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44820 grub_fshelp_map_block to get real block number.
44821 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44823 (grub_ext2_read_inode): Likewise.
44824 (grub_ext3_get_journal): New function.
44825 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44826 (grub_ext2_close): Release memory used by journal.
44828 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44829 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44830 (grub_reiserfs_transaction_header): Renamed to
44831 grub_reiserfs_description_block, replace field data with real_blocks.
44832 (grub_reiserfs_commit_block): New structure.
44833 (grub_reiserfs_data): New member journal.
44834 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44836 (grub_reiserfs_read_symlink): Likewise.
44837 (grub_reiserfs_iterate_dir): Likewise.
44838 (grub_reiserfs_open): Likewise.
44839 (grub_reiserfs_read): Likewise.
44840 (grub_reiserfs_get_journal): New function.
44841 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44842 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44843 using grub_reiserfs_get_journal.
44844 (grub_reiserfs_close): Release memory used by journal.
44846 * fs/affs.c (grub_affs_read_block): Change block type to
44847 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44849 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44851 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44853 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44855 * fs/udf.c (grub_udf_read_block): Change block type to
44856 grub_disk_addr_t. Use type cast to avoid warning.
44858 * fs/xfs.c (grub_xfs_read_block): Likewise.
44860 2008-05-16 Christian Franke <franke@computer.org>
44862 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44863 to ensure that break with ESC will always work.
44864 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44865 Remove ESC from keyboard queue.
44867 2008-05-16 Christian Franke <franke@computer.org>
44869 * util/biosdisk.c: [__CYGWIN__] Add includes.
44870 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44871 (get_os_disk): Move variable declarations to OS specific
44872 parts to avoid warning.
44873 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44874 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44875 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44877 * util/getroot.c: [__CYGWIN__] Add includes.
44878 (strip_extra_slashes): Fix "/" case.
44879 [__CYGWIN__] (get_win32_path): New function.
44880 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44881 [__CYGWIN__] (find_root_device): Disable.
44882 [__CYGWIN__] (get_bootsec_serial): New function.
44883 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44884 [__linux__] (grub_guess_root_device): Add early returns to simplify
44886 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44887 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44888 check for Linux only.
44890 2008-05-15 Bean <bean123ch@gmail.com>
44892 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44893 keyboard hang problem in apple's intel mac.
44895 2008-05-09 Robert Millan <rmh@aybabtu.com>
44897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44899 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44900 (make_device_map): Likewise.
44901 Reported by Aurelien Jarno <aurel32@debian.org>
44903 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44905 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44906 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44907 (make_device_map): Output entries for xvd type disks.
44909 2008-05-07 Robert Millan <rmh@aybabtu.com>
44911 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44913 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44914 (make_device_map): Likewise.
44915 Reported by Roland Dreier <rdreier@cisco.com>
44917 2008-05-07 Robert Millan <rmh@aybabtu.com>
44919 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44920 grub_strstr() call. Correct a few mistakes in failure path handling.
44922 2008-05-06 Robert Millan <rmh@aybabtu.com>
44924 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44925 Do not print a trailing slash (therefore, the root directory is an
44927 (convert_system_path_to_grub_path): Do not remove trailing slash
44928 from make_system_path_relative_to_its_root() output.
44930 * util/i386/pc/grub-install.in: Add trailing slash to output from
44931 make_system_path_relative_to_its_root().
44933 2008-05-06 Robert Millan <rmh@aybabtu.com>
44935 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44936 ensures that output lines aren't intermangled with those sent to
44937 stderr (via grub_util_info()).
44938 * util/grub-probe.c (grub_refresh): Likewise.
44939 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44941 2008-05-05 Christian Franke <franke@computer.org>
44943 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44944 Add Cygwin device names.
44945 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44946 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44947 (check_device): Return error instead of success on empty name.
44948 (make_device_map): Move label inside linux specific code to
44949 prevent compiler warning.
44951 2008-04-30 Robert Millan <rmh@aybabtu.com>
44953 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44954 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44956 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44958 2008-04-29 Robert Millan <rmh@aybabtu.com>
44960 * docs/grub.cfg: New file (example GRUB configuration).
44962 2008-04-26 Robert Millan <rmh@aybabtu.com>
44964 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44965 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44966 and `disk/ieee1275/nand.c'.
44968 2008-04-25 Bean <bean123ch@gmail.com>
44970 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44973 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44974 change the buffer size to 4096 for cdrom device.
44976 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44978 (_linux_mod_SOURCES): New variable.
44979 (_linux_mod_CFLAGS): Likewise.
44980 (_linux_mod_LDFLAGS): Likewise.
44981 (linux_mod_SOURCES): Likewise.
44982 (linux_mod_CFLAGS): Likewise.
44983 (linux_mod_LDFLAGS): Likewise.
44984 (nand_mod_SOURCES): Likewise.
44985 (nand_mod_CFLAGS): Likewise.
44986 (nand_mod_LDFLAGS): Likewise.
44988 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44989 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44990 type property. (nand device in olpc don't have this property)
44992 * include/grub/disk.h (grub_disk_dev_id): New macro
44993 GRUB_DISK_DEVICE_NAND_ID.
44995 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44996 function prototype.
44997 (grub_rescue_cmd_initrd): Likewise.
44999 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45000 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45001 ofw_cif_handler and ofw_idt, adjust padding number.
45003 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45004 GRUB_MACHINE_IEEE1275 is defined.
45006 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45007 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45009 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45010 on nested function heap_init.
45011 (grub_upper_mem): New variable for i386-ieee1275.
45012 (grub_get_extended_memory): New function for i386-ieee1275.
45013 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45015 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45016 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45019 * loader/i386/ieee1275/linux.c: New file.
45021 * loader/i386/ieee1275/linux_normal.c: New file.
45023 * disk/ieee1275/nand.c: New file.
45025 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45027 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45029 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45031 2008-04-18 Robert Millan <rmh@aybabtu.com>
45033 Restructures early code path on ieee1275 to unify grub_main() as
45034 the first C function that is executed in every platform.
45036 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45037 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45039 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45040 * kern/ieee1275/cmain.c (cmain): Rename to ...
45041 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45042 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45045 2008-04-18 Robert Millan <rmh@aybabtu.com>
45047 * util/update-grub.in: Fix syntax error when setting
45048 `GRUB_PRELOAD_MODULES'.
45049 Reported by Stephane Chazelas <stephane@artesyncp.com>
45051 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45053 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45054 section into account, newer toolchains generate unique build ids
45055 * configure.ac: remove the test for --build-id=none acceptance,
45056 we want build ids to be preserved
45057 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45058 far from other sections don't cause the raw binary images grow
45061 2008-04-15 Robert Millan <rmh@aybabtu.com>
45063 * disk/lvm.c: Update copyright year.
45064 * kern/misc.c: Likewise.
45066 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45068 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45069 there is no memory left for physical volume name.
45071 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45073 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45074 volume name mapping to support bigger than 9 character names properly.
45076 2008-04-13 Robert Millan <rmh@aybabtu.com>
45078 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45079 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45081 2008-04-13 Christian Franke <franke@computer.org>
45083 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45084 to create a floppy emulation boot CD when non emulation mode
45086 Enable Joliet CD filesystem extension.
45088 2008-04-13 Robert Millan <rmh@aybabtu.com>
45090 * kern/misc.c (grub_strncat): Fix off-by-one error.
45091 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45093 * kern/env.c (grub_env_context_close): Clear current context, not
45095 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45097 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45099 2008-04-13 Robert Millan <rmh@aybabtu.com>
45101 Improve robustness when handling LVM.
45103 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45104 (and leave `*p' unmodified).
45105 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45107 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45108 iterating through it.
45109 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45111 (grub_lvm_scan_device): Check the return value (and fail gracefully
45112 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45113 Don't assume `vg->pvs != NULL' when iterating through it.
45115 2008-04-13 Robert Millan <rmh@aybabtu.com>
45117 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45118 * genmk.rb (partmap): New variable.
45119 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45120 (#{partmap}): New target rule.
45121 * genpartmaplist.sh: New file.
45122 * Makefile.in (pkglib_DATA): Add partmap.lst.
45123 (partmap.lst): New target rule.
45124 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45125 modules (including all partition maps), instead of preloading them.
45127 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45129 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45130 `linux-boot-prober' (if installed) to detect other operating
45131 systems which are installed on the computer and add them to
45133 * conf/common.rmk: Build and install 30_os-prober.
45135 2008-04-12 Robert Millan <rmh@aybabtu.com>
45137 * kern/powerpc/ieee1275/init.c: Move from here ...
45138 * kern/ieee1275/init.c: ... to here. Update all users.
45140 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45141 * kern/ieee1275/cmain.c: ... to here. Update all users.
45143 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45144 * kern/ieee1275/openfw.c: ... to here. Update all users.
45146 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45147 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45149 2008-04-10 Pavel Roskin <proski@gnu.org>
45151 * configure.ac: Always use "_cv_" in cache variables for
45152 compatibility with Autoconf 2.62.
45154 2008-04-07 Robert Millan <rmh@aybabtu.com>
45156 Revert grub/machine/init.h addition by Pavel (since it breaks on
45157 i386-ieee1275 and others):
45158 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45159 * util/powerpc/ieee1275/misc.c: Likewise.
45161 2008-04-07 Robert Millan <rmh@aybabtu.com>
45163 * util/grub-probe.c (probe): Improve error message.
45165 2008-04-07 Robert Millan <rmh@aybabtu.com>
45167 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45168 (this prevents the presence of a bogus entry from ruining the whole
45171 2008-04-06 Pavel Roskin <proski@gnu.org>
45173 * util/biosdisk.c: Include grub/util/biosdisk.h.
45174 * util/grub-fstest.c (execute_command): Make static.
45175 * util/grub-mkdevicemap.c (check_device): Likewise.
45176 * util/i386/pc/misc.c: Include grub/machine/init.h.
45177 * util/powerpc/ieee1275/misc.c: Likewise.
45178 * util/lvm.c: Include grub/util/lvm.h.
45179 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45181 * util/raid.c: Include grub/util/raid.h.
45182 (grub_util_getdiskname): Make static.
45184 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45185 grub_hostfs_fini(), as they are called from grub_init_all() and
45186 grub_fini_all() respectively. This fixes an infinite loop in
45187 grub-fstest due to double registration of hostfs.
45188 Reported by Christian Franke <Christian.Franke@t-online.de>
45190 2008-04-05 Pavel Roskin <proski@gnu.org>
45192 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45193 all 8 functions. Otherwise, probe function 0 only.
45195 2008-04-04 Pavel Roskin <proski@gnu.org>
45197 * commands/lspci.c (grub_lspci_iter): Print the bus number
45200 * commands/lspci.c (grub_pci_classes): Fix typos.
45201 (grub_lspci_iter): Don't print func twice. Print vendor ID
45202 before device ID, as it's normally done.
45204 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45205 Fix signedness warnings.
45206 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45208 * util/ieee1275/get_disk_name.c: Include config.h so that
45209 _GNU_SOURCE is defined and getline() is declared. Mark an
45210 unused argument as such. Fix a signedness warning.
45212 2008-04-02 Pavel Roskin <proski@gnu.org>
45214 * genkernsyms.sh.in: Use more robust assignments for CC and
45215 srcdir. Quote srcdir.
45216 * gensymlist.sh.in: Likewise. Assert at the compile time that
45217 the symbol table is not empty.
45219 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45220 * fs/cpio.c (grub_cpio_read): Likewise.
45222 2008-04-01 Pavel Roskin <proski@gnu.org>
45224 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45225 * disk/host.c (grub_host_open): Likewise.
45226 * disk/loopback.c (grub_loopback_open): Likewise.
45227 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45228 disk->id as in disk/host.c, not a multi-character constant.
45230 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45231 later is obsolete, potentially dangerous and sets a bad example.
45232 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45233 * util/misc.c (grub_util_get_image_size): Likewise.
45235 * disk/loopback.c (options): Improve help for "--partitions".
45237 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45238 options to align them with the short options, e.g. "echo -e".
45240 2008-03-31 Bean <bean123ch@gmail.com>
45242 * video/reader/png.c (grub_png_data): New member is_16bit and
45244 (grub_png_decode_image_header): Detect 16 bit png image.
45245 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45246 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45247 (grub_video_reader_png): Release memory occupied by image_data.
45249 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45251 (grub_nfs_mount): Skip the test for sector per cluster.
45253 * include/grub/ntfs.h (MAX_SPC): Removed.
45255 2008-03-31 Bean <bean123ch@gmail.com>
45257 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45258 (grub_probe_SOURCES): Add fs/afs.c.
45259 (grub_fstest_SOURCES): Likewise.
45260 (afs_mod_SOURCES): New variable.
45261 (afs_mod_CFLAGS): Likewise.
45262 (afs_mod_LDFLAGS): Likewise.
45264 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45265 (grub_emu_SOURCES): Likewise.
45267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45271 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45275 * fs/afs.c: New file.
45277 2008-03-30 Pavel Roskin <proski@gnu.org>
45279 * disk/host.c: Include grub/misc.h to fix a warning.
45280 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45281 warnings about implicit declarations.
45283 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45285 * include/grub/i386/loader.h: Change declaration of
45286 grub_linux_boot() to match what grub_loader_set() expects.
45287 * util/getroot.c (grub_guess_root_device): Return const char* to
45289 * util/grub-probe.c (probe): Fix a warning about uninitialized
45290 abstraction_name variable.
45291 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45292 second argument as unused to fix a warning.
45294 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45295 missing grub_error() call.
45297 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45298 2.60 and newer uses it to define datadir.
45300 * commands/sleep.c: Fix warning about implicit declaration.
45301 * disk/memdisk.c: Likewise.
45302 * loader/aout.c: Likewise.
45303 * loader/i386/bsd_normal.c: Likewise.
45304 * util/grub-probe.c: Likewise.
45306 * commands/i386/cpuid.c (has_longmode): Make static.
45307 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45308 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45310 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45311 GDT. This is more robust, as %ds can change.
45312 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45313 calling real_to_prot().
45314 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45316 2008-03-28 Pavel Roskin <proski@gnu.org>
45318 * kern/i386/pc/startup.S: Assert that uncompressed functions
45319 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45320 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45321 code, as they push parts of the code (error handlers) beyond
45322 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45323 code as correctness and size.
45325 2008-03-28 Pavel Roskin <proski@gnu.org>
45327 * kern/i386/pc/startup.S
45328 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45329 data block address to the real mode, keep offset minimal. This
45330 works around a bug in AWARD BIOS on old Athlon systems, which
45331 makes CD detection hang.
45333 2008-03-26 Pavel Roskin <proski@gnu.org>
45335 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45337 * include/grub/normal.h: Add grub_parse_color_name_pair()
45340 2008-03-24 Bean <bean123ch@gmail.com>
45342 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45343 (cd_count): Removed.
45344 (cd_drive): New variable.
45345 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45346 (grub_biosdisk_call_hook): Likewise.
45347 (grub_biosdisk_iterate): Change cdrom detection method.
45348 (grub_biosdisk_open): Replace cd_start with cd_drive.
45349 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45350 detect cdrom device.
45352 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45354 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45355 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45356 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45357 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45358 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45359 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45360 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45361 (grub_biosdisk_cdrp): New structure.
45362 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45364 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45366 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45369 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45372 2008-03-20 Robert Millan <rmh@aybabtu.com>
45374 Remove 2 TiB limit in ata.mod.
45375 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45376 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45377 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45378 grub_uint64_t instead of grub_uint32_t.
45380 2008-03-05 Bean <bean123ch@gmail.com>
45382 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45383 (grub_multiboot): Set boot device.
45385 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45387 2008-03-02 Bean <bean123ch@gmail.com>
45389 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45392 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45394 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45397 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45400 * docs/fdl.texi: New file.
45402 * docs/mdate-sh: New file. Copied from gnulib.
45403 * docs/texinfo.tex: Likewise.
45405 * config.guess: Updated from gnulib.
45406 * install-sh: Likewise.
45408 2008-02-28 Robert Millan <rmh@aybabtu.com>
45410 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45411 (aout_mod_SOURCES): New variable.
45412 (aout_mod_CFLAGS): Likewise.
45413 (aout_mod_LDFLAGS): Likewise.
45415 * conf/i386-ieee1275.rmk: Likewise.
45417 2008-02-28 Robert Millan <rmh@aybabtu.com>
45419 * util/update-grub.in: Reorganise terminal validity check. Accept
45420 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45421 Based on suggestion by Franklin PIAT.
45423 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45425 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45427 * util/getroot.c (grub_util_check_block_device): New function that
45428 returns the given argument if it is a block device and returns NULL else.
45429 * util/grub-probe.c (argument_is_device): New variable.
45430 (probe): Promote device_name from a variable to an argument. Receive
45431 device_name from grub_util_check_block_device() if path is NULL and from
45432 grub_guess_root_device() else. Do not free() device_name anymore.
45433 (options): Introduce new parameter '-d, --device'.
45434 (main): Add description of the new parameter to the help screen.
45435 Rename path variable to argument. Set argument_is_device if the '-d'
45436 option is given. Pass argument to probe() depending on
45437 argument_is_device.
45439 2008-02-24 Bean <bean123ch@gmail.com>
45441 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45442 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45443 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45444 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45445 (GRUB_ISO9660_VOLDESC_END): Likewise.
45446 (grub_iso9660_primary_voldesc): New member escape.
45447 (grub_iso9660_data): New member joliet.
45448 (grub_iso9660_convert_string): New function.
45449 (grub_iso9660_mount): Detect joliet extension.
45450 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45451 (grub_iso9660_iso9660_label): Likewise.
45453 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45454 (grub_setup_SOURCES): Add fs/udf.c.
45455 (grub_fstest_SOURCES): Likewise.
45456 (udf_mod_SOURCES): New variable.
45457 (udf_mod_CFLAGS): Likewise.
45458 (udf_mod_LDFLAGS): Likewise.
45460 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45461 (grub_emu_SOURCES): Likewise.
45463 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45465 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45467 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45471 * fs/udf.c: New file.
45473 2008-02-24 Robert Millan <rmh@aybabtu.com>
45475 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45476 (normal/lexer.c_DEPENDENCIES): New variables.
45477 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45478 (normal/lexer.c_DEPENDENCIES): Likewise.
45479 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45480 (normal/lexer.c_DEPENDENCIES): Likewise.
45481 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45482 (normal/lexer.c_DEPENDENCIES): Likewise.
45483 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45484 (normal/lexer.c_DEPENDENCIES): Likewise.
45485 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45486 (normal/lexer.c_DEPENDENCIES): Likewise.
45488 2008-02-23 Robert Millan <rmh@aybabtu.com>
45490 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45491 since they were intended to be in hex. This didn't break previously
45492 because of a bug in gpt_partition_map_iterate() (see below).
45494 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45495 when checking the validity of GPT header.
45496 Remove `partno', since it always provides the same information as `i'.
45498 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45500 * include/grub/efi/time.h: Fix a wrong comment.
45502 2008-02-19 Pavel Roskin <proski@gnu.org>
45504 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45507 2008-02-19 Bean <bean123ch@gmail.com>
45509 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45510 (aout_mod_SOURCES): New variable.
45511 (aout_mod_CFLAGS): Likewise.
45512 (aout_mod_LDFLAGS): Likewise.
45513 (_bsd_mod_SOURCES): New variable.
45514 (_bsd_mod_CFLAGS): Likewise.
45515 (_bsd_mod_LDFLAGS): Likewise.
45516 (bsd_mod_SOURCES): New variable.
45517 (bsd_mod_CFLAGS): Likewise.
45518 (bsd_mod_LDFLAGS): Likewise.
45520 * include/grub/aout.h: New file.
45522 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45524 * include/grub/i386/bsd.h: New file.
45526 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45529 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45530 function is called, so that it's possible to change it inside the hook.
45531 (grub_elf64_load): Likewise.
45532 (grub_elf_file): Don't close the file if elf header is not found.
45533 (grub_elf_close): Close the file if grub_elf_file fails (The new
45534 grub_elf_file won't close it).
45535 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45536 (grub_elf64_size): Likewise.
45538 * kern/i386/loader.S (grub_unix_real_boot): New function.
45540 * loader/aout.c: New file.
45542 * loader/i386/bsd.c: New file.
45544 * loader/i386/bsd_normal.c: New file.
45546 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45548 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45549 can test other formats.
45551 2008-02-19 Robert Millan <rmh@aybabtu.com>
45553 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45554 (grub_gpt_partition_type_empty): Redefine with macro from
45555 `<grub/gpt_partition.h>'.
45556 (gpt_partition_map_iterate): Adjust partition type comparison.
45558 Export `entry' as partmap-specific `part.data' struct.
45559 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45561 * include/grub/gpt_partition.h (grub_gpt_header)
45562 (grub_gpt_partentry): ... to here (new file).
45564 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45566 (grub_gpt_partition_type_bios_boot): New const variable, defined
45567 with macro from `<grub/gpt_partition.h>'.
45569 (setup): Replace `first_start' with `embed_region', which keeps
45570 track of the embed region (and is partmap-agnostic).
45572 Replace find_first_partition_start() with find_usable_region(),
45573 which finds a usable region for embedding using partmap-specific
45574 knowledge (supports PC/MSDOS and GPT).
45576 Fix all assumptions that the embed region start at sector 1, using
45577 `embed_region.start' from now on. Similarly, use `embed_region.end'
45578 rather than `first_start' to calculate available size.
45580 In grub_util_info() message, replace "into after the MBR" with an
45581 indication of the specific sector our embed region starts at.
45583 2008-02-19 Robert Millan <rmh@aybabtu.com>
45585 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45586 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45587 `commands/reboot.c'.
45588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45589 (halt_mod_SOURCES): Likewise.
45590 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45591 (halt_mod_SOURCES): Likewise.
45593 2008-02-17 Christian Franke <franke@computer.org>
45595 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45597 2008-02-17 Robert Millan <rmh@aybabtu.com>
45599 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45600 set `first_start' to 0 for non-PC/MSDOS partition maps.
45602 2008-02-16 Robert Millan <rmh@aybabtu.com>
45604 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45605 do not assume partition map is PC/MSDOS before performing checks that
45606 are specific to that layout.
45608 2008-02-13 Robert Millan <rmh@aybabtu.com>
45610 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45611 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45612 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45614 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45616 * configure.ac: Only a cosmetic change on the handling of
45617 -fno-stack-protector.
45619 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45621 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45622 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45624 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45625 (halt_mod_SOURCES): New variable.
45626 (halt_mod_CFLAGS): Likewise.
45627 (halt_mod_LDFLAGS): Likewise.
45628 (reboot_mod_SOURCES): Likewise.
45629 (reboot_mod_CFLAGS): Likewise.
45630 (reboot_mod_LDFLAGS): Likewise.
45632 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45633 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45635 (halt_mod_SOURCES): Likewise.
45636 (reboot_mod_SOURCES): Likewise.
45638 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45639 commands/i386/pc/reboot.c by commands/reboot.c.
45640 (reboot_mod_SOURCES): Likewise.
45642 * commands/i386/pc/reboot.c: merge this file ...
45644 * commands/ieee1275/reboot.c: ... and this file ...
45646 * commands/reboot.c: ... to this file.
45647 Add some precompiler directive to include the correct header for
45650 * commands/ieee1275/halt.c: move this file ...
45652 * commands/halt.c: ... to here.
45653 Add some precompiler directive to include the correct header for
45656 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45657 (grub_halt): Likewise.
45659 * kern/efi/efi.c (grub_reboot): New function.
45660 (grub_halt): Likewise.
45662 2008-02-12 Robert Millan <rmh@aybabtu.com>
45664 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45665 /dev (like it is done for /dev/mapper). This doesn't provide support
45666 for EVMS, but at least it is now easy to identify the problem when it
45669 2008-02-11 Robert Millan <rmh@aybabtu.com>
45671 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45672 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45673 comparing it with -1, not 0.
45675 2008-02-10 Robert Millan <rmh@aybabtu.com>
45677 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45679 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45680 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45682 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45683 `disk/lvm.c' to the end of the list.
45684 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45685 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45687 2008-02-10 Robert Millan <rmh@aybabtu.com>
45689 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45690 grub_print_error() instead. This will let user know why we're entering
45692 Based on suggestions from Sam Morris.
45694 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45696 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45697 on remaining N args, instead of "--" arg N times.
45699 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45701 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45702 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45703 pattern for unknown glyphs.
45705 2008-02-09 Robert Millan <rmh@aybabtu.com>
45707 * configure.ac: Probe for `help2man'.
45708 * Makefile.in (builddir): New variable.
45709 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45710 or otherwise add a few flags/options to it.
45711 (install-local): For every executable utility or script that is
45712 installed, invoke $(HELP2MAN) to install a manpage based on --help
45715 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45716 that it doesn't prevent --help from working in build tree.
45718 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45719 with `bug-grub@gnu.org'.
45720 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45721 * util/update-grub.in (usage): New function.
45722 Implement proper argument check, with support for --help and --version
45723 (as well as existing -y).
45725 2008-02-09 Christian Franke <franke@computer.org>
45727 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45728 avoid overwriting previous output.
45729 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45731 2008-02-09 Robert Millan <rmh@aybabtu.com>
45733 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45736 2008-02-09 Robert Millan <rmh@aybabtu.com>
45738 * commands/sleep.c: New file.
45739 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45740 (sleep_mod_SOURCES): New variable.
45741 (sleep_mod_CFLAGS): Likewise.
45742 (sleep_mod_LDFLAGS): Likewise.
45744 2008-02-09 Robert Millan <rmh@aybabtu.com>
45746 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45747 situations in which we can deduce the RAID size and the superblock
45750 2008-02-09 Robert Millan <rmh@aybabtu.com>
45752 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45753 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45754 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45756 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45757 and return a grub_diskmemberlist_t composed of physical array members.
45758 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45760 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45762 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45763 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45764 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45766 * util/grub-probe.c (probe): Move partmap probing code from here ...
45767 (probe_partmap): ... to here.
45768 (probe): Use probe_partmap() once for the disk we're probing, and
45769 additionally, when such disk contains a memberlist() struct member,
45770 once for each disk that is contained in the structure returned by
45773 2008-02-09 Robert Millan <rmh@aybabtu.com>
45775 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45776 environment variable to 'all' in order to obtain debug output from
45778 * util/i386/pc/grub-setup.c (main): Likewise.
45780 2008-02-08 Robert Millan <rmh@aybabtu.com>
45782 * disk/raid.c (grub_raid_scan_device): Check for
45783 `array->device[sb.this_disk.number]' rather than for
45784 `array->device[sb.this_disk.number]->name', since the latter is not
45785 guaranteed to be accessible.
45787 2008-02-08 Robert Millan <rmh@aybabtu.com>
45789 * disk/raid.c: Update copyright.
45790 * fs/cpio.c: Likewise.
45791 * include/grub/raid.h: Likewise.
45792 * loader/i386/pc/multiboot.c: Likewise.
45793 * util/hostfs.c: Likewise.
45795 2008-02-08 Robert Millan <rmh@aybabtu.com>
45797 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45798 to a grub_disk_t array.
45799 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45801 (grub_raid_scan_device): Replace `device[x].name' accesses with
45802 `device[x]->name'. Simplify initialization of `array->device[x]'.
45804 2008-02-08 Robert Millan <rmh@aybabtu.com>
45806 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45807 grub_dprintf() calls.
45808 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45811 2008-02-07 Christian Franke <franke@computer.org>
45813 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45814 instead of fseek and ftell to support large files.
45815 (grub_hostfs_read): Likewise.
45817 2008-02-07 Robert Millan <rmh@aybabtu.com>
45819 Patch from Jeroen Dekkers.
45820 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45821 failure, since successfully reading all array members might not be
45824 2008-02-06 Robert Millan <rmh@aybabtu.com>
45826 * util/grub-probe.c (probe): Simplify partmap probing (with the
45827 assumption that the first word up to the underscore equals to
45830 2008-02-06 Christian Franke <franke@computer.org>
45832 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45833 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45834 last block of a cpio or tar stream.
45835 Check for "TRAILER!!!" instead of any empty data
45836 block to detect last block of a cpio stream.
45837 (grub_cpio_dir): Fix constness of variable np.
45838 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45839 cpio or tar trailer is detected. This fixes a crash
45840 on open of a non existing file.
45842 2008-02-05 Bean <bean123ch@gmail.com>
45844 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45846 (grub_multiboot_load_elf64): Likewise.
45847 (grub_multiboot): Initialize mbi structure.
45849 * util/grub-fstest.c: Don't include unused header file script.h.
45851 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45853 (grub_fstest_SOURCES): Likewise.
45855 2008-02-05 Robert Millan <rmh@aybabtu.com>
45857 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45858 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45859 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45860 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45862 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45863 (translation_table): Replace hardcoded values with macros
45864 provided by `<grub/term.h>'.
45866 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45867 (keyboard_map): Correct/add a few values, with macros provided
45868 by `<grub/term.h>'.
45869 (keyboard_map_shift): Zero values that don't differ from their
45870 `keyboard_map' equivalents.
45871 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45872 Discard the second scan code that is always sent by Caps lock.
45873 Only use `keyboard_map_shift' when it provides a non-zero value,
45874 otherwise fallback to `keyboard_map'.
45876 2008-02-04 Bean <bean123ch@gmail.com>
45878 * Makefile.in (enable_grub_fstest): New variable.
45880 * conf/common.rmk (grub_fstest_init.lst): New rule.
45881 (grub_fstest_init.h): Likewise.
45882 (grub_fstest_init.c): Likewise.
45883 (util/grub-fstest.c_DEPENDENCIES): New variable.
45884 (grub_fstest_SOURCES): Likewise.
45886 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45888 * util/grub-fstest.c: New file.
45890 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45892 Make grub-setup handle a separate root device.
45894 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45895 so that the root device can be compared with the destination
45897 When embedding the core image, if the root and destination devices
45898 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45900 When not embedding, set ROOT_DRIVE to 0xFF.
45902 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45904 Add support for having a grub directory in a different drive. This
45905 is still only the data handling part.
45907 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45908 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45909 (grub_root_drive): New variable.
45911 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45912 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45913 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45916 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45918 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45920 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45922 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45923 is bogus, because PXE booting does not specify any drive
45926 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45927 am not sure if this is really correct.
45929 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45930 is always identical to the boot drive when booting from a CD.
45932 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45934 (root_drive): New variable.
45935 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45936 (setup_sectors): Push %dx right after popping it, because %dh will
45938 (copy_buffer): Restore %dx.
45940 2008-02-03 Robert Millan <rmh@aybabtu.com>
45942 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45943 use `cdboot.img' for cdrom images.
45945 2008-02-03 Robert Millan <rmh@aybabtu.com>
45947 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45948 only setup gfxterm when `font' command has succeeded.
45950 2008-02-03 Robert Millan <rmh@aybabtu.com>
45952 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45953 (grub_rescue_cmd_multiboot_loader)
45954 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45956 2008-02-03 Pavel Roskin <proski@gnu.org>
45958 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45959 %edx and %esi from stack only after grub_gate_a20() is called.
45960 grub_gate_a20() clobbers %edx.
45962 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45964 * configure.ac (AC_INIT): Bumped to 1.96.
45966 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45967 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45968 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45969 video/readers/png.c.
45971 2008-02-03 Bean <bean123ch@gmail.com>
45973 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45974 (cdboot_img_SOURCES): New variable.
45975 (cdboot_img_ASFLAGS): New variable.
45976 (cdboot_img_LDFLAGS): New variable.
45978 * boot/i386/pc/cdboot.S: New file.
45980 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45981 (cd_count): Likewise.
45982 (grub_biosdisk_get_drive): Add support for cd device.
45983 (grub_biosdisk_call_hook): Likewise.
45984 (grub_biosdisk_iterate): Likewise.
45985 (grub_biosdisk_open): Likewise.
45986 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45987 (grub_biosdisk_rw): Support reading from cd device.
45988 (GRUB_MOD_INIT): Iterate cd devices.
45990 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45991 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45992 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45994 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45996 2008-02-02 Robert Millan <rmh@aybabtu.com>
45998 * commands/read.c: New file.
45999 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46000 (read_mod_SOURCES): New variable.
46001 (read_mod_CFLAGS): Likewise.
46002 (read_mod_LDFLAGS): Likewise.
46004 2008-02-02 Robert Millan <rmh@aybabtu.com>
46006 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46007 determining whether menu has to be displayed.
46009 2008-02-02 Marco Gerards <marco@gnu.org>
46011 * bus/pci.c: New file.
46013 * include/grub/pci.h: Likewise.
46015 * include/grub/i386/pc/pci.h: Likewise.
46017 * commands/lspci.c: Likewise.
46019 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46021 (pci_mod_SOURCES): New variable.
46022 (pci_mod_CFLAGS): Likewise.
46023 (pci_mod_LDFLAGS): Likewise.
46024 (lspci_mod_SOURCES): Likewise.
46025 (lspci_mod_CFLAGS): Likewise.
46026 (lspci_mod_LDFLAGS): Likewise.
46028 2008-02-02 Bean <bean123ch@gmail.com>
46030 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46031 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46033 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46034 (grub_xfs_btree_node): New structure.
46035 (grub_xfs_btree_root): New structure.
46036 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46037 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46038 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46039 (GRUB_XFS_EXTENT_SIZE): Likewise.
46040 (grub_xfs_read_block): Support btree format type.
46041 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46042 Use directory block as basic unit.
46044 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46046 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46047 __attribute__ ((__regparm__ (1))).
46049 2008-02-01 Robert Millan <rmh@aybabtu.com>
46051 Correct a mistake in previous commit.
46053 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46055 (normal/command.c_DEPENDENCIES): New variable.
46057 2008-02-01 Robert Millan <rmh@aybabtu.com>
46059 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46061 (normal/command.c_DEPENDENCIES): New variable.
46062 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46063 * conf/i386-ieee1275.rmk: Likewise.
46064 * conf/i386-linuxbios.rmk: Likewise.
46065 * conf/i386-pc.rmk: Likewise.
46066 * conf/sparc64-ieee1275.rmk: Likewise.
46067 * conf/powerpc-ieee1275.rmk: Likewise.
46068 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46070 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46072 2008-02-01 Robert Millan <rmh@aybabtu.com>
46074 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46075 call at beginning of function.
46077 2008-01-31 Pavel Roskin <proski@gnu.org>
46079 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46080 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46081 (grub_mkrescue_SOURCES): Likewise.
46082 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46084 2008-01-30 Robert Millan <rmh@aybabtu.com>
46086 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46087 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46088 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46089 (grub_probe_SOURCES): ... to here.
46091 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46092 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46093 * conf/i386-ieee1275.rmk: Likewise.
46094 * conf/i386-linuxbios.rmk: Likewise.
46095 * conf/powerpc-ieee1275.rmk: Likewise.
46097 2008-01-30 Tristan Gingold <gingold@free.fr>
46099 * kern/rescue.c: Silently accept empty lines.
46101 2008-01-29 Bean <bean123ch@gmail.com>
46103 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46104 (real_code_2): Code cleanup and change comment style.
46105 (move_memory): Avoid using 32-bit address mode.
46107 2008-01-29 Bean <bean123ch@gmail.com>
46109 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46110 (png_mod_SOURCES): New variable.
46111 (png_mod_CFLAGS): Likewise.
46112 (png_mod_LDFLAGS): Likewise.
46114 * video/readers/png.c: New file.
46116 2008-01-28 Robert Millan <rmh@aybabtu.com>
46118 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46119 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46120 `ifndef GRUB_MOD_GAP' hack.
46121 * util/elf/grub-mkimage.c (add_segments): Likewise.
46123 2008-01-27 Robert Millan <rmh@aybabtu.com>
46125 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46126 `GRUB_MOD_GAP' for platforms in which it's not defined.
46127 * util/elf/grub-mkimage.c (add_segments): Likewise.
46129 2008-01-27 Robert Millan <rmh@aybabtu.com>
46131 Get grub-emu to build again (including parallel builds).
46133 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46135 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46136 (normal/execute.c_DEPENDENCIES): ... this, ...
46137 (grub-emu_DEPENDENCIES): ... and this.
46139 * conf/i386-efi.rmk: Likewise.
46140 * conf/i386-linuxbios.rmk: Likewise.
46141 * conf/i386-ieee1275.rmk: Likewise.
46142 * conf/powerpc-ieee1275.rmk: Likewise.
46143 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46145 2008-01-27 Robert Millan <rmh@aybabtu.com>
46147 * NEWS: Add a few items.
46149 2008-01-27 Robert Millan <rmh@aybabtu.com>
46151 Fix parallel builds with grub-emu. Based on earlier commit for
46152 grub-probe and grub-setup.
46154 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46155 (util/grub-emu.c_DEPENDENCIES): ... this.
46156 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46157 (util/grub-emu.c_DEPENDENCIES): ... this.
46158 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46159 (util/grub-emu.c_DEPENDENCIES): ... this.
46160 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46161 (util/grub-emu.c_DEPENDENCIES): ... this.
46162 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46163 (util/grub-emu.c_DEPENDENCIES): ... this.
46165 2008-01-27 Pavel Roskin <proski@gnu.org>
46167 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46168 to create a gap between _end and the modules added to the image
46169 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46170 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46171 * util/elf/grub-mkimage.c (add_segments): Likewise.
46173 2008-01-26 Pavel Roskin <proski@gnu.org>
46175 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46176 just return an error.
46178 2008-01-26 Bean <bean123ch@gmail.com>
46180 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46181 (grub_reiserfs_get_item): Save offset of the next item.
46182 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46184 2008-01-25 Robert Millan <rmh@aybabtu.com>
46186 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46187 make all filesystem sources appear together (possibly fixing omissions
46189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46191 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46194 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46196 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46197 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46198 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46199 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46201 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46202 (probe): Add a sanity check to make sure of our ability to read
46203 requested files when probing for filesystem type.
46205 * genmk.rb: Update copyright year (2007).
46207 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46208 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46209 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46210 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46211 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46212 : Remove function prototypes.
46214 2008-01-25 Robert Millan <rmh@aybabtu.com>
46216 Revert my previous commits (based on wrong assumption of how grub_errno
46219 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46220 * kern/file.c (grub_file_open): Likewise.
46222 2008-01-24 Pavel Roskin <proski@gnu.org>
46224 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46225 that hang if GRUB tries to setup colors.
46226 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46227 colors for firmwares that don't support it.
46228 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46229 Recognize Open Hack'Ware, set flags to work around its
46232 2008-01-24 Robert Millan <rmh@aybabtu.com>
46234 * kern/file.c (grub_file_open): Do not account previous failures of
46235 unrelated functions when grub_errno is checked for.
46236 Reported by Oleg Strikov.
46238 2008-01-24 Bean <bean123ch@gmail.com>
46240 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46241 (grub_ufs_sblock): New member volume name.
46242 (grub_ufs_find_file): Fix string copy bug.
46243 (grub_ufs_label): Implement this function properly.
46245 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46246 (grub_hfs_iterate_records): Use the correct file number for extents
46247 and catalog file. Fix problem in next index calculation.
46248 (grub_hfs_find_node): Replace recursive function call with loop.
46249 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46251 2008-01-23 Robert Millan <rmh@aybabtu.com>
46253 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46254 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46255 (grub_multiboot2_real_boot): New function prototype.
46257 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46258 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46260 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46261 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46263 2008-01-23 Robert Millan <rmh@aybabtu.com>
46265 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46266 #ifdef'ed out grub_printf().
46268 2008-01-23 Robert Millan <rmh@aybabtu.com>
46270 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46271 grub_dprintf calls, since they make "debug=all" mode unusable.
46272 (grub_console_checkkey): Likewise.
46274 2008-01-23 Robert Millan <rmh@aybabtu.com>
46276 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46277 `term/i386/pc/at_keyboard.c'.
46278 (pkglib_MODULES): Add `serial.mod'.
46279 (serial_mod_SOURCES): New variable.
46280 (serial_mod_CFLAGS): Likewise.
46281 (serial_mod_LDFLAGS): Likewise.
46283 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46284 `<grub/powerpc/ieee1275/console.h>'.
46285 (grub_keyboard_controller_init): New function prototype.
46286 (grub_console_checkkey): Likewise.
46287 (grub_console_getkey): Likewise.
46289 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46292 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46293 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46295 2008-01-23 Robert Millan <rmh@aybabtu.com>
46297 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46298 present, "(memdisk)/boot/grub" becomes the default prefix.
46300 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46301 a memdisk tarball with all the modules. Add --overlay=DIR option that
46302 allows users to overlay additional files into the image.
46304 2008-01-23 Robert Millan <rmh@aybabtu.com>
46306 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46307 and `machine/memory.h'.
46308 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46309 (_multiboot_mod_SOURCES): New variable.
46310 (_multiboot_mod_CFLAGS): Likewise.
46311 (_multiboot_mod_LDFLAGS): Likewise.
46312 (multiboot_mod_SOURCES): Likewise.
46313 (multiboot_mod_CFLAGS): Likewise.
46314 (multiboot_mod_LDFLAGS): Likewise.
46316 * include/grub/i386/ieee1275/loader.h: New file.
46318 * include/grub/i386/ieee1275/machine.h: Likewise.
46320 * include/grub/i386/ieee1275/memory.h: Likewise.
46322 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46323 variable declaration.
46324 (grub_os_area_size): Likewise.
46326 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46327 (grub_lower_mem, grub_upper_mem): New variables.
46328 (grub_stop_floppy): New function (just to make
46329 grub_multiboot2_real_boot() happy).
46331 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46332 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46333 (grub_stop): New function.
46334 Include `"../realmode.S"' and `"../loader.S"'.
46336 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46337 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46339 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46340 rely on grub_multiboot2_real_boot() for final boot.
46342 2008-01-22 Robert Millan <rmh@aybabtu.com>
46344 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46345 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46346 device that doesn't look like an SD card.
46347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46348 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46349 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46350 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46353 2008-01-22 Robert Millan <rmh@aybabtu.com>
46355 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46356 avoid claiming over our own code.
46358 2008-01-22 Bean <bean123ch@gmail.com>
46360 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46361 (jpeg_mod_SOURCES): New variable.
46362 (jpeg_mod_CFLAGS): Likewise.
46363 (jpeg_mod_LDFLAGS): Likewise.
46365 * video/readers/jpeg.c : New file.
46367 2008-01-22 Bean <bean123ch@gmail.com>
46369 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46370 there are no more items.
46372 2008-01-21 Robert Millan <rmh@aybabtu.com>
46374 * kern/mm.c (grub_mm_init_region): Improve debug message.
46376 2008-01-21 Robert Millan <rmh@aybabtu.com>
46378 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46379 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46381 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46383 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46384 Indicates start of upper memory.
46385 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46386 (generate_image): Abort when image size is big enough to corrupt
46389 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46390 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46391 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46392 instead of hardcoding 0xA0000.
46393 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46394 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46395 instead of hardcoding 0xA0000.
46397 2008-01-21 Robert Millan <rmh@aybabtu.com>
46399 * disk/memdisk.c (memdisk_size): New variable.
46400 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46402 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46403 image to dynamic memory.
46404 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46405 `memdisk_size'. Free memdisk block.
46407 2008-01-21 Robert Millan <rmh@aybabtu.com>
46409 Fix detection of very small filesystems (like tar).
46411 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46412 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46413 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46414 a problem with this disk).
46416 2008-01-21 Robert Millan <rmh@aybabtu.com>
46418 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46419 on grub_biosdisk_rw_standard() error.
46421 2008-01-21 Robert Millan <rmh@aybabtu.com>
46423 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46425 * kern/elf.c: Likewise.
46426 * kern/ieee1275/ieee1275.c: Likewise.
46427 * kern/powerpc/ieee1275/openfw.c: Likewise.
46428 * term/ieee1275/ofconsole.c: Likewise.
46430 2008-01-21 Robert Millan <rmh@aybabtu.com>
46432 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46434 * include/grub/kernel.h (grub_arch_memdisk_addr)
46435 (grub_arch_memdisk_size): Moved from here ...
46437 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46438 (grub_arch_memdisk_size): ... to here.
46440 2008-01-21 Robert Millan <rmh@aybabtu.com>
46442 Mostly based on bugfix from Bean.
46444 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46445 attribute with hook() parameter.
46446 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46448 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46449 attribute with hook() parameter.
46450 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46453 2008-01-21 Robert Millan <rmh@aybabtu.com>
46455 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46456 (pkglib_MODULES): Add `memdisk.mod'.
46457 (memdisk_mod_SOURCES): New variable.
46458 (memdisk_mod_CFLAGS): Likewise.
46459 (memdisk_mod_LDFLAGS): Likewise.
46461 * disk/memdisk.c: New file.
46463 * include/grub/disk.h (grub_disk_dev_id): Add
46464 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46466 * include/grub/i386/pc/kernel.h
46467 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46468 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46469 (grub_kernel_image_size): New variable declaration.
46470 (grub_total_module_size): Likewise.
46471 (grub_memdisk_image_size): Likewise.
46473 * include/grub/i386/pc/memory.h
46474 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46476 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46477 (grub_arch_memdisk_addr): New variable declaration.
46478 (grub_arch_memdisk_size): Likewise.
46480 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46481 (grub_arch_memdisk_size): Likewise.
46483 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46484 (codestart): Replace hardcoded `0x100000' with
46485 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46487 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46488 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46489 not NULL, append the contents of the file it refers to, at the end of
46490 the compressed kernel image. Initialize `grub_memdisk_image_size'
46491 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46492 (options): Add "memdisk"|'m' option.
46493 (main): Parse --memdisk|-m option, and pass user-provided path as
46494 parameter to generate_image().
46496 2008-01-20 Robert Millan <rmh@aybabtu.com>
46498 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46499 grub_dprintf() calls from here ...
46500 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46502 2008-01-20 Robert Millan <rmh@aybabtu.com>
46504 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46508 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46509 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46510 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46511 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46513 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46514 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46516 2008-01-19 Robert Millan <rmh@aybabtu.com>
46518 Get rid of confusing function (superseded by
46519 `grub_ieee1275_get_integer_property')
46520 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46522 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46524 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46525 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46526 in native endianness from grub_ieee1275_get_integer_property().
46528 2008-01-19 Robert Millan <rmh@aybabtu.com>
46530 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46531 command after "shut-down", since implementations differ on which
46532 the command for halt is.
46534 2008-01-19 Robert Millan <rmh@aybabtu.com>
46536 * include/grub/i386/linuxbios/console.h: Add header protection.
46537 (grub_keyboard_controller_init): New function prototype.
46538 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46539 (KEYBOARD_COMMAND_READ): Likewise.
46540 (KEYBOARD_COMMAND_WRITE): Likewise.
46541 (KEYBOARD_SCANCODE_SET1): Likewise.
46542 (grub_keyboard_controller_write): New function.
46543 (grub_keyboard_controller_read): Likewise.
46544 (grub_keyboard_controller_init): Likewise.
46546 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46547 (grub_console_init): On coreboot/LinuxBIOS, call
46548 grub_keyboard_controller_init().
46550 2008-01-19 Robert Millan <rmh@aybabtu.com>
46552 PowerPC changes provided by Pavel Roskin.
46554 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46555 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46556 don't rely on cmain() doing it.
46557 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46558 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46560 2008-01-16 Robert Millan <rmh@aybabtu.com>
46562 * include/grub/i386/linuxbios/memory.h
46563 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46564 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46565 receive `table_header' as argument. Instead, probe for it in the
46566 known memory ranges where it can be present.
46567 (grub_available_iterate): Do not pass a fixed `table_header' address
46568 to grub_linuxbios_table_iterate().
46570 2008-01-15 Robert Millan <rmh@aybabtu.com>
46572 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46573 * conf/i386-ieee1275.rmk: New file.
46574 * include/grub/i386/ieee1275/console.h: Likewise.
46575 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46576 * include/grub/i386/ieee1275/kernel.h: Likewise.
46577 * include/grub/i386/ieee1275/time.h: Likewise.
46578 * kern/i386/ieee1275/init.c: Likewise.
46579 * kern/i386/ieee1275/startup.S: Likewise.
46581 2008-01-15 Robert Millan <rmh@aybabtu.com>
46583 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46584 when pointers are 32-bit (but still do set it to one when they are
46587 2008-01-15 Robert Millan <rmh@aybabtu.com>
46589 * include/grub/ieee1275/ieee1275.h
46590 (grub_ieee1275_get_integer_property): New function prototype.
46592 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46593 (grub_ieee1275_get_integer_property): New function. Wraps around
46594 grub_ieee1275_get_property() to handle endianness.
46596 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46597 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46599 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46600 (grub_map): Likewise.
46601 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46603 2008-01-15 Bean <bean123ch@gmail.com>
46605 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46606 (grub_script_execute_cmdline): Reset grub_errno.
46608 * normal/main.c (read_config_file): Reset grub_errno.
46610 * normal/parse.y (script_init): New.
46611 (script): Move function and menuentry here.
46613 (command): Add delimiter at the end of command.
46614 (commands): Adjust to match the new command.
46615 (commandblock): Remove grub_script_lexer_record_start.
46616 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46617 (if): Use the new commands.
46619 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46621 2008-01-15 Robert Millan <rmh@aybabtu.com>
46623 * normal/menu.c (run_menu): Move timeout message from here ...
46624 (print_timeout): ... to here.
46625 (run_menu): Use print_timeout() once during initial draw to print
46626 the whole message, and again in every clock tick to update only
46627 the number of seconds.
46629 2008-01-15 Robert Millan <rmh@aybabtu.com>
46631 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46632 actual size of `available' from grub_ieee1275_get_property(), and
46633 restrict parsing to that bound.
46635 2008-01-15 Christian Franke <franke@computer.org>
46637 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46638 (argp_program_version): Remove variable.
46639 (argp_program_bug_address): Likewise.
46640 (options): Convert from struct argp_option to struct option.
46641 (struct arguments): Remove.
46642 (parse_opt): Remove.
46643 (usage): New function.
46644 (main): Replace struct args members by simple variables.
46645 Replace argp_parse() by getopt_long().
46646 Add switch to evaluate options.
46647 Add missing "(...)" around root_dev in prefix string.
46649 2008-01-14 Robert Millan <rmh@aybabtu.com>
46651 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46652 for grub_ieee1275_exit(), in order to improve portability.
46654 2008-01-14 Robert Millan <rmh@aybabtu.com>
46656 * util/grub.d/10_linux.in (prefix): Define.
46657 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46659 2008-01-13 Pavel Roskin <proski@gnu.org>
46661 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46662 grub_errno if no errors have been detected.
46664 2008-01-12 Robert Millan <rmh@aybabtu.com>
46666 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46667 (grub_util_get_dev_abstraction): New function prototype.
46669 * util/getroot.c: Include `<grub/util/getroot.h>'
46670 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46671 (grub_util_get_dev_abstraction): ... here (new function).
46673 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46674 `PRINT_ABSTRACTION'.
46675 (probe): Probe for abstraction type when requested.
46676 (main): Understand `--target=abstraction'.
46678 * util/i386/efi/grub-install.in: Add abstraction module to core
46679 image when it is found to be necessary.
46680 * util/i386/pc/grub-install.in: Likewise.
46681 * util/powerpc/ieee1275/grub-install.in: Likewise.
46683 * util/update-grub_lib.in (font_path): Return system path without
46684 converting to GRUB path.
46685 * util/update-grub.in: Convert system path returned by font_path()
46686 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46687 abstraction module is needed for loading fonts (if any). Export
46688 that as `GRUB_PRELOAD_MODULES'.
46689 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46692 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46694 Remove some unused code from reiserfs.
46696 * fs/reiserfs.c (struct grub_reiserfs_key)
46697 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46698 (struct grub_reiserfs_node_body): Removed.
46699 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46701 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46703 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46705 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46707 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46709 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46711 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46712 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46713 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46715 2008-01-10 Robert Millan <rmh@aybabtu.com>
46717 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46718 Determines if a file is garbage left by packaging systems, etc.
46719 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46720 for processing /etc/grub.d scripts.
46721 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46722 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46723 as a condition for processing Linux images.
46725 2008-01-10 Pavel Roskin <proski@gnu.org>
46727 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46728 to compile reiserfs.c on PowerPC.
46730 2008-01-10 Robert Millan <rmh@aybabtu.com>
46732 * kern/device.c (grub_device_iterate): Do not abort device iteration
46733 when one of the devices cannot be opened.
46734 * kern/disk.c (grub_disk_open): Do not account previous failures of
46735 unrelated functions when grub_errno is checked for.
46737 2008-01-08 Robert Millan <rmh@aybabtu.com>
46739 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46740 `! grub_linux_is_bzimage', change order of address comparison to make
46741 it more intuitive, and improve "too big zImage" error message.
46743 2008-01-08 Robert Millan <rmh@aybabtu.com>
46745 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46746 `$(update-grub_DATA)'.
46747 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46750 2008-01-07 Robert Millan <rmh@aybabtu.com>
46752 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46753 which instruction is modified by grub-setup during installation
46754 (since it wasn't obvious by only looking at this file).
46756 2008-01-07 Robert Millan <rmh@aybabtu.com>
46758 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46759 listing actual TODO items.
46761 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46763 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46765 (grub_reiserfs_get_key_offset): Likewise.
46766 (grub_reiserfs_set_key_offset): Likewise.
46767 (grub_reiserfs_set_key_type): Likewise.
46768 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46770 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46771 better to remove the bitfield version completely.
46773 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46775 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46776 allocated from the heap, due to the fshelp implementation.
46777 (grub_reiserfs_dir): Free NODE, due to the same reason.
46779 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46781 Mostly from Vincent Pelletier:
46783 * fs/reiserfs.c: New file.
46785 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46786 (reiserfs_mod_SOURCES): New variable.
46787 (reiserfs_mod_CFLAGS): Likewise.
46788 (reiserfs_mod_LDFLAGS): Likewise.
46790 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46791 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46792 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46795 2008-01-06 Robert Millan <rmh@aybabtu.com>
46797 * normal/color.c: Remove `<grub/env.h>'.
46799 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46801 * include/grub/normal.h: Include <grub/env.h>.
46803 2008-01-05 Robert Millan <rmh@aybabtu.com>
46805 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46806 usage example with `(hd0,1)'.
46807 Reported by Samuel Thibault.
46809 2008-01-05 Robert Millan <rmh@aybabtu.com>
46811 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46812 (grub_linux_boot_zimage): Rename to ...
46813 (grub_linux_boot): ... this.
46814 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46815 (grub_linux_boot_zimage): Conditionalize zImage copy.
46817 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46818 (grub_linux_boot_bzimage): Remove prototype.
46819 (grub_linux_boot_zimage): Rename to ...
46820 (grub_linux_boot): ... this.
46822 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46823 (grub_linux_boot): Remove function.
46825 2008-01-05 Robert Millan <rmh@aybabtu.com>
46827 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46828 (grub_env_write_color_highlight): Likewise.
46829 (grub_wait_after_message): Likewise.
46831 * normal/color.c: New file.
46833 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46834 (normal_mod_DEPENDENCIES): Likewise.
46836 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46837 (normal_mod_DEPENDENCIES): Likewise.
46839 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46840 (normal_mod_DEPENDENCIES): Likewise.
46842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46843 (normal_mod_DEPENDENCIES): Likewise.
46845 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46846 for waiting after a message is printed.
46847 * normal/main.c (read_config_file): Likewise.
46848 (grub_normal_init): Register grub_env_write_color_normal() and
46849 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46850 `color_highlight' variables as global.
46852 * normal/menu.c (grub_wait_after_message): New function.
46853 (grub_color_menu_normal): New variable. Replaces ...
46854 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46855 (grub_color_menu_highlight): New variable. Replaces ...
46856 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46857 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46858 `GRUB_TERM_COLOR_STANDARD'.
46859 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46860 `normal_code' and `highlight_code' to `old_color_normal' and
46861 `old_color_highlight', respectively.
46862 (grub_menu_init_page): Update colors when drawing the menu, based on
46863 `menu_color_normal' and `menu_color_highlight' variables.
46864 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46865 a message is printed.
46867 2008-01-05 Robert Millan <rmh@aybabtu.com>
46869 * kern/env.c (grub_env_context_open): Propagate hooks for global
46870 variables to new context.
46872 * kern/main.c (grub_set_root_dev): Export `root' variable.
46874 2008-01-05 Robert Millan <rmh@aybabtu.com>
46876 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46877 discs unconditionally, since udev and others have options to provide
46880 2008-01-05 Robert Millan <rmh@aybabtu.com>
46882 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46884 2008-01-04 Christian Franke <franke@computer.org>
46886 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46889 2008-01-03 Pavel Roskin <proski@gnu.org>
46891 * kern/i386/linuxbios/init.c: Put "void" to all function
46892 declarations with no arguments.
46893 * kern/powerpc/ieee1275/init.c: Likewise.
46894 * term/i386/pc/at_keyboard.c: Likewise.
46895 * term/i386/pc/vga_text.c: Likewise.
46896 * util/grub-mkdevicemap.c: Likewise.
46898 2008-01-02 Robert Millan <rmh@aybabtu.com>
46900 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46901 message when loaded image is out of bounds.
46902 (grub_multiboot_load_elf64): Likewise.
46904 2008-01-02 Pavel Roskin <proski@gnu.org>
46906 * util/grub.d/10_linux.in: Try version without ".old" when
46907 looking for initrd. It's better to use initrd from the newer
46908 kernel of the same version than no initrd at all.
46910 2008-01-01 Robert Millan <rmh@aybabtu.com>
46912 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46914 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46916 * include/grub/video.h: Added grub_video_unmap_color and
46917 grub_video_get_active_render_target.
46918 (grub_video_adapter): Added unmap_color and get_active_render_target.
46920 * video/video.c: Added grub_video_unmap_color and
46921 grub_video_get_active_render_target.
46922 (grub_video_get_info): Changed method to accept NULL pointer as an
46923 argument to allow detection of active video adapter.
46925 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46926 grub_video_vbe_unmap_color_int.
46927 Added grub_video_vbe_unmap_color and
46928 grub_video_vbe_get_active_render_target.
46929 (grub_video_vbe_adapter): Added unmap_color and
46930 get_active_render_target.
46932 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46933 with grub_video_vbe_unmap_color_int.
46935 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46936 (DEFAULT_NORMAL_COLOR): Likewise.
46937 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46938 (DEFAULT_FG_COLOR): Removed.
46939 (DEFAULT_BG_COLOR): Likewise.
46940 (DEFAULT_CURSOR_COLOR): Changed value.
46941 (grub_virtual_screen): Added standard_color_setting,
46942 normal_color_setting, highlight_color_setting and term_color.
46943 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46944 (bitmap_width): Added.
46945 (bitmap_height): Likewise.
46946 (bitmap): Likewise.
46947 (set_term_color): Likewise.
46948 (grub_virtual_screen_setup): Changed to use new terminal coloring
46950 (grub_gfxterm_init): Added init for bitmap.
46951 (grub_gfxterm_fini): Added destroy for bitmap.
46952 (redraw_screen_rect): Updated to use background bitmap and new
46954 (scroll_up): Added optimization for case when there is no bitmap.
46955 (grub_gfxterm_cls): Fixed to use correct background color.
46956 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46958 (grub_virtual_screen_setcolor): Likewise.
46959 (grub_virtual_screen_getcolor): Added.
46960 (grub_gfxterm_background_image_cmd): Likewise.
46961 (grub_video_term): Added setcolor and getcolor.
46962 (MOD_INIT): Added registration of background_image command.
46963 (MOD_TERM): Added unregistration for background_image command.
46965 2007-12-30 Pavel Roskin <proski@gnu.org>
46967 * loader/multiboot_loader.c: Fix multiboot command
46968 unregistration. Fix all typos in the word "multiboot".
46970 2007-12-29 Pavel Roskin <proski@gnu.org>
46972 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46973 support for initrd names used in Fedora.
46975 2007-12-26 Bean <bean123ch@gmail.com>
46977 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46978 (cpio_mod_SOURCES): New variable.
46979 (cpio_mod_CFLAGS): Likewise.
46980 (cpio_mod_LDFLAGS): Likewise.
46982 * fs/cpio.c: New file.
46984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46986 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46988 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46992 2007-12-25 Robert Millan <rmh@aybabtu.com>
46994 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46995 (grub_getcolor): New function.
46997 * kern/term.c (grub_getcolor): New function.
46998 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46999 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47000 (print_entry): Set normal and highlight colors to
47001 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47002 respectively, before printing and restore them to old
47004 (grub_menu_init_page): Likewise. Fill an additional colored space
47005 that would otherwise be left blank.
47007 * term/efi/console.c (grub_console_getcolor): New function.
47008 (struct grub_console_term.getcolor): New variable.
47009 * term/i386/pc/console.c (grub_console_getcolor): New function.
47010 (struct grub_console_term.getcolor): New variable.
47011 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47012 (struct grub_console_term.getcolor): New variable.
47014 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47015 (struct grub_console_term.setcolor): Remove variable.
47016 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47017 (struct grub_console_term.setcolor): Remove variable.
47018 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47019 (struct grub_console_term.setcolor): Remove variable.
47020 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47021 (struct grub_console_term.setcolor): Remove variable.
47023 2007-12-25 Robert Millan <rmh@aybabtu.com>
47025 * configure.ac: Search for possible unifont.hex locations, and
47026 define UNIFONT_HEX if found.
47028 * Makefile.in (UNIFONT_HEX): Define variable.
47029 (DATA): Rename to ...
47030 (PKGLIB): ... this. Update all users.
47031 (PKGDATA): New variable.
47032 (pkgdata_IMAGES): Rename to ...
47033 (pkglib_IMAGES): ... this. Update all users.
47034 (pkgdata_MODULES): Rename to ...
47035 (pkglib_MODULES): ... this. Update all users.
47036 (pkgdata_PROGRAMS): Rename to ...
47037 (pkglib_PROGRAMS): ... this. Update all users.
47038 (pkgdata_DATA): Rename to ...
47039 (pkglib_DATA): ... this. Update all users.
47040 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47041 (unicode.pff, ascii.pff): New rules.
47042 (all-local): Add `$(PKGDATA)' dependency.
47043 (install-local): Process `$(PKGDATA)'.
47045 * util/update-grub_lib.in (font_path): Search for *.pff files in
47046 a few more locations, including `${pkgdata}'.
47048 2007-12-23 Robert Millan <rmh@aybabtu.com>
47050 Patch from Bean <bean123ch@gmail.com>:
47051 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47054 2007-12-21 Bean <bean123ch@gmail.com>
47056 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47057 (ntfscomp_mod_SOURCES): New variable.
47058 (ntfscomp_mod_CFLAGS): Likewise.
47059 (ntfscomp_mod_LDFLAGS): Likewise.
47061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47062 (grub_probe_SOURCES): Likewise.
47063 (grub_emu_SOURCES): Likewise.
47065 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47066 (grub_emu_SOURCES): Likewise.
47068 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47069 (grub_emu_SOURCES): Likewise.
47071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47072 (grub_emu_SOURCES): Likewise.
47074 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47075 (read_run_list): Renamed to grub_ntfs_read_run_list.
47076 (decomp_nextvcn): Moved to ntfscomp.c.
47077 (decomp_getch): Likewise.
47078 (decomp_get16): Likewise.
47079 (decomp_block): Likewise.
47080 (read_block): Likewise.
47081 (read_data): Partially moved to ntfscomp.c.
47082 (fixup): Change unsigned to grub_uint16_t.
47083 (read_mft): Change unsigned long to grub_uint32_t.
47084 (read_attr): Likewise.
47085 (read_data): Likewise.
47086 (read_run_data): Likewise.
47087 (read_run_list): Likewise.
47088 (read_mft): Likewise.
47090 * fs/ntfscomp.c: New file.
47092 * include/grub/ntfs.h: New file.
47094 2007-12-16 Robert Millan <rmh@aybabtu.com>
47096 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47097 IDE disk check, since Linux is known to support 20 IDE disks.
47098 Reported by Colin Watson.
47100 2007-12-15 Bean <bean123ch@gmail.com>
47102 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47103 (lnxboot_img_SOURCES): New variable.
47104 (lnxboot_img_ASFLAGS): Likewise.
47105 (lnxboot_img_LDFLAGS): Likewise.
47107 * boot/i386/pc/lnxboot.S: New file.
47109 2007-11-24 Pavel Roskin <proski@gnu.org>
47111 * configure.ac: Test if '--build-id=none' is supported by the
47112 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47113 objcopy to generate incorrect binary files (binutils
47114 2.17.50.0.18-1 as shipped by Fedora 8).
47115 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47116 linking, so that build ID doesn't break the test.
47118 2007-11-24 Pavel Roskin <proski@gnu.org>
47120 * include/grub/i386/time.h: use "void" in the argument list
47121 of grub_cpu_idle().
47122 * include/grub/powerpc/time.h: Likewise.
47123 * include/grub/sparc64/time.h: Likewise.
47125 2007-11-18 Christian Franke <franke@computer.org>
47127 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47128 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47129 This fixes the problem that function keys did not work in grub-emu.
47131 2007-11-18 Christian Franke <franke@computer.org>
47133 * disk/host.c (grub_host_open): Remove attribute unused from
47134 name parameter. Add check for "host". This fixes the problem
47135 that grub-emu does not find partitions.
47137 2007-11-18 Christian Franke <franke@computer.org>
47139 * util/hostfs.c (is_dir): New function.
47140 (grub_hostfs_dir): Handle missing dirent.d_type case.
47141 (grub_hostfs_read): Add missing fseek().
47142 (grub_hostfs_label): Clear label pointer. This fixes a crash
47143 of grub-emu on "ls (host)".
47145 2007-11-18 Christian Franke <franke@computer.org>
47147 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47148 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47149 to 64 bit boundary by default.
47151 2007-11-18 Bean <bean123ch@gmail.com>
47153 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47154 (hexdump_mod_SOURCES): New variable.
47155 (hexdump_mod_CFLAGS): Likewise.
47156 (hexdump_mod_LDFLAGS): Likewise.
47158 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47160 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47162 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47166 * include/grub/hexdump.h: New file.
47168 * commands/hexdump.c: New file.
47170 2007-11-10 Robert Millan <rmh@aybabtu.com>
47172 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47173 in grub_outb() calls.
47174 (beep_on): Likewise.
47176 2007-11-10 Christian Franke <franke@computer.org>
47178 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47179 (grub_menu_run): Likewise.
47181 2007-11-10 Robert Millan <rmh@aybabtu.com>
47183 * include/grub/i386/efi/machine.h: New file.
47184 * include/grub/i386/linuxbios/machine.h: Likewise.
47185 * include/grub/i386/pc/machine.h: Likewise.
47186 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47187 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47189 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47190 (serial_hw_io_addr): New variable.
47191 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47192 instead of `(unsigned short *) 0x400'.
47194 2007-11-10 Bean <bean123ch@gmail.com>
47196 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47198 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47200 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47201 (vga_mod_SOURCES): Added.
47202 (vga_mod_CFLAGS): Likewise.
47203 (vga_mod_LDFLAGS): Likewise.
47205 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47207 (set_map_mask): Likewise.
47208 (set_read_map): Likewise.
47209 (set_read_address): Likewise.
47210 (vga_font): Removed variable.
47211 (get_vga_glyph): Removed function.
47212 (invalidate_char): Likewise.
47213 (write_char): Changed to use grub_font_get_glyph() for font
47215 (grub_vga_putchar): Likewise.
47216 (grub_vga_getcharwidth): Likewise.
47218 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47220 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47222 (pxeboot_img_LDFLAGS): Likewise.
47223 (diskboot_img_LDFLAGS): Likewise.
47224 (kernel_img_LDFLAGS): Likewise.
47226 2007-11-06 Robert Millan <rmh@aybabtu.com>
47228 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47229 in grub_outb() calls.
47230 (serial_hw_init): Likewise.
47232 2007-11-05 Robert Millan <rmh@aybabtu.com>
47234 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47235 spaces. Skip non-regular files.
47237 2007-11-05 Robert Millan <rmh@aybabtu.com>
47239 * kern/disk.c (grub_disk_firmware_fini)
47240 (grub_disk_firmware_is_tainted): New variables.
47242 * include/grub/disk.h (grub_disk_firmware_fini)
47243 (grub_disk_firmware_is_tainted): Likewise.
47245 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47246 (grub_disk_biosdisk_fini): ... to here.
47247 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47248 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47249 is set. Register grub_disk_biosdisk_fini() in
47250 `grub_disk_firmware_fini'.
47252 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47253 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47254 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47255 to finish existing firmware disk interface.
47257 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47258 (ata_mod_SOURCES): New variable.
47259 (ata_mod_CFLAGS): Likewise.
47260 (ata_mod_LDFLAGS): Likewise.
47262 2007-11-05 Robert Millan <rmh@aybabtu.com>
47264 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47265 (grub_ata_wait): Reimplement using grub_millisleep().
47267 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47268 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47270 2007-11-03 Marco Gerards <marco@gnu.org>
47272 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47273 (CRTC_ADDR_PORT): New macro.
47274 (CRTC_DATA_PORT): Likewise.
47275 (CRTC_CURSOR): Likewise.
47276 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47277 (CRTC_CURSOR_ADDR_LOW): Likewise.
47278 (update_cursor): New function.
47279 (grub_console_real_putchar): Call `update_cursor'.
47280 (grub_console_gotoxy): Likewise.
47281 (grub_console_cls): Set the default color when clearing the
47283 (grub_console_setcursor): Implemented.
47285 2007-11-03 Marco Gerards <marco@gnu.org>
47287 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47289 (grub_ata_pio_write): Likewise.
47291 (grub_atapi_identify): Wait after issuing an ATA command.
47292 (grub_atapi_packet): Likewise.
47293 (grub_ata_identify): Likewise.
47294 (grub_ata_readwrite): Likewise.
47296 2007-11-03 Marco Gerards <marco@gnu.org>
47298 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47299 (grub_ata_pio_write): Likewise.
47300 (grub_ata_readwrite): Use `grub_error', instead of
47301 returning `grub_errno'.
47303 2007-11-03 Marco Gerards <marco@gnu.org>
47305 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47306 grub_ata_pio_write once for every single sector, instead of for
47309 2007-10-31 Robert Millan <rmh@aybabtu.com>
47311 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47313 * conf/i386-linuxbios.rmk: New file.
47315 * kern/i386/pc/hardware.c: Likewise.
47316 * term/i386/pc/at_keyboard.c: Likewise.
47317 * term/i386/pc/vga_text.c: Likewise.
47319 * include/grub/i386/linuxbios/boot.h: Likewise.
47320 * include/grub/i386/linuxbios/console.h: Likewise.
47321 * include/grub/i386/linuxbios/init.h: Likewise.
47322 * include/grub/i386/linuxbios/kernel.h: Likewise.
47323 * include/grub/i386/linuxbios/loader.h: Likewise.
47324 * include/grub/i386/linuxbios/memory.h: Likewise.
47325 * include/grub/i386/linuxbios/serial.h: Likewise.
47326 * include/grub/i386/linuxbios/time.h: Likewise.
47328 * kern/i386/linuxbios/init.c: Likewise.
47329 * kern/i386/linuxbios/startup.S: Likewise.
47330 * kern/i386/linuxbios/table.c: Likewise.
47332 2007-10-31 Marco Gerards <marco@gnu.org>
47334 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47335 (ata_mod_SOURCES): New variable.
47336 (ata_mod_CFLAGS): Likewise.
47337 (ata_mod_LDFLAGS): Likewise.
47339 * disk/ata.c: New file.
47341 * include/grub/disk.h (grub_disk_dev_id): Add
47342 `GRUB_DISK_DEV_ATA_ID'.
47344 2007-10-31 Robert Millan <rmh@aybabtu.com>
47346 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47347 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47349 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47350 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47352 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47355 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47357 2007-10-27 Robert Millan <rmh@aybabtu.com>
47359 * include/grub/types.h (ULONG_MAX): Define macro.
47361 2007-10-22 Robert Millan <rmh@aybabtu.com>
47363 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47365 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47367 2007-10-22 Robert Millan <rmh@aybabtu.com>
47369 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47370 (pkgdata_MODULES): Add `biosdisk.mod'.
47371 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47374 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47375 (grub_biosdisk_init): Replace with ...
47376 (GRUB_MOD_INIT(biosdisk)): ... this.
47377 (grub_biosdisk_fini): Replace with ...
47378 (GRUB_MOD_FINI(biosdisk)): ... this.
47380 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47381 (grub_machine_init): Remove call to grub_biosdisk_init().
47382 (grub_machine_fini): Remove call to grub_machine_fini().
47384 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47386 2007-10-22 Robert Millan <rmh@aybabtu.com>
47388 * include/grub/time.h: New file.
47389 * include/grub/i386/time.h: Likewise.
47390 * include/grub/powerpc/time.h: Likewise.
47391 * include/grub/sparc64/time.h: Likewise.
47393 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47395 (KERNEL_MACHINE_TIME_HEADER): ... this.
47396 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47398 (KERNEL_MACHINE_TIME_HEADER): ... this.
47399 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47401 (KERNEL_MACHINE_TIME_HEADER): ... this.
47403 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47404 (grub_millisleep): New function.
47405 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47406 (grub_millisleep): New function.
47407 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47408 Remove `grub/machine/time.h' include.
47409 (grub_millisleep): New function.
47410 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47411 Remove `grub/machine/time.h' include.
47412 (grub_millisleep): New function.
47414 * include/grub/misc.h (grub_div_roundup): New function.
47416 * kern/misc.c: Include `<grub/time.h>'.
47417 (grub_millisleep_generic): New function.
47419 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47421 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47423 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47424 `machine/time.h'. Add `time.h'.
47425 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47427 2007-10-21 Robert Millan <rmh@aybabtu.com>
47429 * include/grub/misc.h (grub_max): New function.
47431 2007-10-21 Robert Millan <rmh@aybabtu.com>
47433 * util/misc.c (grub_util_info): Call fflush() before returning.
47435 2007-10-20 Robert Millan <rmh@aybabtu.com>
47437 * genmk.rb (Image): Copy `extra_flags' from here ...
47438 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47440 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47441 to `argc' and `args' arguments.
47443 2007-10-17 Robert Millan <rmh@aybabtu.com>
47445 * kern/i386/loader.S: New file.
47447 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47448 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47449 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47450 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47451 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47452 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47453 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47454 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47455 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47456 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47457 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47458 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47459 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47460 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47462 * kern/i386/realmode.S: New file.
47464 * kern/i386/pc/startup.S (protstack): Moved from here ...
47465 * kern/i386/realmode.S (protstack)... to here.
47466 * kern/i386/pc/startup.S (gdt): Moved from here ...
47467 * kern/i386/realmode.S (gdt)... to here.
47468 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47469 * kern/i386/realmode.S (prot_to_real)... to here.
47471 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47472 `kern/i386/realmode.S'.
47474 2007-10-17 Robert Millan <rmh@aybabtu.com>
47476 * include/grub/i386/loader.h: New file.
47478 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47479 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47480 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47481 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47482 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47483 * include/grub/i386/loader.h (grub_linux_prot_size)
47484 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47485 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47486 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47487 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47489 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47491 2007-10-15 Robert Millan <rmh@aybabtu.com>
47493 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47494 filesystem when dev->disk is unset.
47495 Do probe for filesystem even when dev->disk->has_partitions is set.
47496 In case a filesystem is found, always report it.
47497 In case it isn't, if dev->disk->has_partitions is set, report that
47498 a partition table was found instead of reporting that no filesystem
47499 could be identified.
47501 2007-10-12 Robert Millan <rmh@aybabtu.com>
47503 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47504 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47506 * include/grub/types.h (grub_host_to_target16): New macro.
47507 (grub_host_to_target32): Likewise.
47508 (grub_host_to_target64): Likewise.
47509 (grub_target_to_host16): Likewise.
47510 (grub_target_to_host32): Likewise.
47511 (grub_target_to_host64): Likewise.
47513 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47514 Renamed from to ...
47515 (GRUB_MOD_ALIGN): ...this. Update all users.
47517 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47518 grub_host_to_target32.
47519 Replace grub_be_to_cpu32 with grub_target_to_host32.
47520 (load_modules): Likewise.
47521 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47522 Replace grub_be_to_cpu32 with grub_target_to_host32.
47523 Replace grub_cpu_to_be16 with grub_host_to_target16.
47524 Replace grub_cpu_to_be32 grub_host_to_target32.
47526 2007-10-12 Robert Millan <rmh@aybabtu.com>
47528 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47529 * util/elf/grub-mkimage.c: ... here.
47531 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47532 `util/powerpc/ieee1275/grub-mkimage.c'.
47534 2007-10-07 Robert Millan <rmh@aybabtu.com>
47536 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47537 and make it easier to figure out.
47538 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47539 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47540 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47541 leave us with less than HEAP_MIN_SIZE total heap.
47542 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47544 2007-10-03 Robert Millan <rmh@aybabtu.com>
47546 * include/grub/i386/io.h: New file.
47547 * commands/i386/pc/play.c (inb): Removed.
47549 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47551 * term/i386/pc/serial.c (inb): Removed.
47553 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47555 * term/i386/pc/vga.c (inb): Removed.
47557 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47560 2007-10-02 Robert Millan <rmh@aybabtu.com>
47562 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47563 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47564 Reported by Marcin Kurek.
47566 2007-09-07 Robert Millan <rmh@aybabtu.com>
47568 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47569 SmartFirmware version updates (as released by Sven Luther), and avoid
47570 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47571 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47574 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47576 From Hitoshi Ozeki:
47577 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47578 when merging two regions.
47580 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47582 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47583 * normal/completion.c (grub_normal_do_completion): Likewise.
47584 Reported by Hitoshi Ozeki.
47586 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47588 Do not use devices at boot in chainloading.
47590 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47591 (boot_part_addr): Likewise.
47592 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47593 with BOOT_DRIVE and BOOT_PART_ADDR.
47594 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47595 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47597 2007-08-29 Robert Millan <rmh@aybabtu.com>
47599 Patch from Simon Peter <dn.tlp@gmx.net>:
47600 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47601 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47602 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47603 util/i386/pc/grub-setup.c_DEPENDENCIES.
47604 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47605 util/grub-probe.c_DEPENDENCIES.
47606 * conf/powerpc-ieee1275.rmk: Likewise.
47608 2007-08-28 Robert Millan <rmh@aybabtu.com>
47610 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47611 to tell grub-mkdevicemap how to name devices.
47612 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47615 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47616 util/i386/get_disk_name.c.
47617 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47618 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47619 util/ieee1275/get_disk_name.c.
47621 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47623 * DISTLIST: Add util/i386/get_disk_name.c and
47624 util/ieee1275/get_disk_name.c.
47626 * util/grub-mkdevicemap.c: Replace device naming logic with
47627 grub_util_get_disk_name() calls.
47629 2007-08-20 Robert Millan <rmh@aybabtu.com>
47631 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47632 (so that it works for both plural and singular quantities).
47634 2007-08-05 Robert Millan <rmh@aybabtu.com>
47636 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47637 so that [xz] isn't taken into account when determining order.
47639 2007-08-02 Marco Gerards <marco@gnu.org>
47641 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47642 `include/multiboot2.h', `include/grub/elfload.h',
47643 `include/multiboot.h', `include/grub/multiboot.h',
47644 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47645 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47646 `kern/elf.c', `loader/multiboot_loader.c',
47647 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47648 `loader/i386/pc/multiboot2.c',
47649 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47650 `util/i386/pc/grub-mkrescue.in'. Remove
47651 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47652 `include/grub/i386/pc/util/biosdisk.h' and
47653 `include/grub/powerpc/ieee1275/multiboot.h'.
47655 2007-08-02 Bean <bean123ch@gmail.com>
47657 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47658 (ntfs_mod_SOURCES): New variable.
47659 (ntfs_mod_CFLAGS): Likewise.
47660 (ntfs_mod_LDFLAGS): Likewise.
47662 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47663 (grub_probe_SOURCES): Likewise.
47664 (grub_emu_SOURCES): Likewise.
47666 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47667 (grub_emu_SOURCES): Likewise.
47669 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47670 (grub_emu_SOURCES): Likewise.
47672 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47674 * fs/ntfs.c: New file.
47676 2007-08-02 Bean <bean123ch@gmail.com>
47678 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47680 * file.h (grub_file): Likewise.
47682 * fshelp.h (grub_fshelp_read_file): Likewise.
47684 * util/i386/pc/grub-setup.c (setup): Likewise.
47685 (save_first_sector): Likewise.
47686 (save_blocklists): Likewise.
47688 * fs/affs.c (grub_affs_read_file): Likewise.
47690 * fs/ext2.c (grub_ext2_read_file): Likewise.
47692 * fs/fat.c (grub_fat_read_data): Likewise.
47694 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47696 * fs/hfs.c (grub_hfs_read_file): Likewise.
47698 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47700 * fs/jfs.c (grub_jfs_read_file): Likewise.
47702 * fs/minix.c (grub_minix_read_file): Likewise.
47704 * fs/sfs.c (grub_sfs_read_file): Likewise.
47706 * fs/ufs.c (grub_ufs_read_file): Likewise.
47708 * fs/xfs.c (grub_xfs_read_file): Likewise.
47710 * command/blocklist.c (read_blocklist): Likewise.
47711 (print_blocklist): Likewise.
47713 2007-08-02 Marco Gerards <marco@gnu.org>
47715 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47718 * disk/host.c: New file.
47720 * util/hostfs.c: Likewise.
47722 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47723 return `GRUB_ERR_BAD_FS'.
47724 * fs/sfs.c (grub_sfs_mount): Likewise.
47725 * fs/xfs.c (grub_xfs_mount): Likewise.
47727 * include/grub/disk.h (enum grub_disk_dev_id): Add
47728 `GRUB_DISK_DEVICE_HOST_ID'.
47730 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47732 2007-07-24 Jerone Young <jerone@gmail.com>
47734 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47735 modules for compilation.
47736 * conf/powerpc-ieee1275.rmk: Likewise.
47738 * include/multiboot.h: Move multiboot definitions to one file. Rename
47739 many definitions to not get grub specific.
47740 * include/multiboot2.h: Create header with multiboot 2 definitions.
47741 * include/grub/multiboot.h: Header for grub specific function
47742 prototypes and definitions.
47743 * include/grub/multiboot2.h: Likewise.
47744 * include/grub/multiboot_loader.h: Likewise.
47745 * include/grub/i386/pc/multiboot.h: Removed.
47746 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47748 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47749 and 2 to allow for one multiboot and module commands.
47750 * loader/multiboot2.c: Add multiboot2 functionality.
47751 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47752 and definition names.
47753 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47755 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47756 ieee1275 specific multiboot2 code.
47758 * kern/i386/pc/startup.S: Change headers and definition names for
47759 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47761 2007-07-22 Robert Millan <rmh@aybabtu.com>
47763 * geninitheader.sh: Process file specified in first parameter rather
47764 than hardcoding grub_modules_init.lst.
47765 * geninit.sh: Likewise. Also, construct header name dynamically rather
47766 than hardcoding grub_modules_init.h.
47768 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47769 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47770 grub_probe_init.[ch] and grub_setup_init.[ch].
47772 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47773 grub_modules_init.h with grub_emu_init.h.
47774 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47775 grub_probe_init.[ch] files.
47776 * conf/i386-efi.rmk: Likewise.
47777 * conf/i386-pc.rmk: Likewise.
47778 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47779 grub_setup_init.[ch] files.
47781 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47782 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47783 to initialize modules rather than a list of hardcoded functions.
47784 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47785 grub_init_all() to initialize modules rather than a list of hardcoded
47788 2007-07-22 Robert Millan <rmh@aybabtu.com>
47790 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47791 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47793 2007-07-22 Robert Millan <rmh@aybabtu.com>
47795 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47796 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47797 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47798 flag when running on SmartFirmware.
47799 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47800 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47803 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47804 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47805 rather than decreasing it.
47807 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47808 there's not enough space to do it, fail in the same way as when it
47809 can't be done because there are no partitions.
47811 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47812 when nvsetenv failed.
47814 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47816 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47817 because this rule is automatically generated.
47818 (grub-mkrescue): Removed for the same reason as above.
47820 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47822 Migrate to GNU General Public License Version 3.
47824 * COPYING: Replaced with the plain text version of GPLv3.
47826 * config.guess: Updated from gnulib.
47827 * config.sub: Likewise.
47829 * geninit.sh: Output a GPLv3 copyright notice.
47830 * geninitheader.sh: Likewise.
47831 * genmodsrc.sh: Likewise.
47832 * gensymlist.sh.in: Likewise.
47834 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47835 * boot/i386/pc/diskboot.S: Likewise.
47836 * boot/i386/pc/pxeboot.S: Likewise.
47837 * commands/blocklist.c: Likewise.
47838 * commands/boot.c: Likewise.
47839 * commands/cat.c: Likewise.
47840 * commands/cmp.c: Likewise.
47841 * commands/configfile.c: Likewise.
47842 * commands/echo.c: Likewise.
47843 * commands/help.c: Likewise.
47844 * commands/ls.c: Likewise.
47845 * commands/search.c: Likewise.
47846 * commands/terminal.c: Likewise.
47847 * commands/test.c: Likewise.
47848 * commands/videotest.c: Likewise.
47849 * commands/i386/cpuid.c: Likewise.
47850 * commands/i386/pc/halt.c: Likewise.
47851 * commands/i386/pc/play.c: Likewise.
47852 * commands/i386/pc/reboot.c: Likewise.
47853 * commands/i386/pc/vbeinfo.c: Likewise.
47854 * commands/i386/pc/vbetest.c: Likewise.
47855 * commands/ieee1275/halt.c: Likewise.
47856 * commands/ieee1275/reboot.c: Likewise.
47857 * commands/ieee1275/suspend.c: Likewise.
47858 * disk/loopback.c: Likewise.
47859 * disk/lvm.c: Likewise.
47860 * disk/raid.c: Likewise.
47861 * disk/efi/efidisk.c: Likewise.
47862 * disk/i386/pc/biosdisk.c: Likewise.
47863 * disk/ieee1275/ofdisk.c: Likewise.
47864 * font/manager.c: Likewise.
47865 * fs/affs.c: Likewise.
47866 * fs/ext2.c: Likewise.
47867 * fs/fat.c: Likewise.
47868 * fs/fshelp.c: Likewise.
47869 * fs/hfs.c: Likewise.
47870 * fs/hfsplus.c: Likewise.
47871 * fs/iso9660.c: Likewise.
47872 * fs/jfs.c: Likewise.
47873 * fs/minix.c: Likewise.
47874 * fs/sfs.c: Likewise.
47875 * fs/ufs.c: Likewise.
47876 * fs/xfs.c: Likewise.
47877 * hello/hello.c: Likewise.
47878 * include/grub/acorn_filecore.h: Likewise.
47879 * include/grub/arg.h: Likewise.
47880 * include/grub/bitmap.h: Likewise.
47881 * include/grub/boot.h: Likewise.
47882 * include/grub/cache.h: Likewise.
47883 * include/grub/device.h: Likewise.
47884 * include/grub/disk.h: Likewise.
47885 * include/grub/dl.h: Likewise.
47886 * include/grub/elfload.h: Likewise.
47887 * include/grub/env.h: Likewise.
47888 * include/grub/err.h: Likewise.
47889 * include/grub/file.h: Likewise.
47890 * include/grub/font.h: Likewise.
47891 * include/grub/fs.h: Likewise.
47892 * include/grub/fshelp.h: Likewise.
47893 * include/grub/gzio.h: Likewise.
47894 * include/grub/hfs.h: Likewise.
47895 * include/grub/kernel.h: Likewise.
47896 * include/grub/loader.h: Likewise.
47897 * include/grub/lvm.h: Likewise.
47898 * include/grub/misc.h: Likewise.
47899 * include/grub/mm.h: Likewise.
47900 * include/grub/net.h: Likewise.
47901 * include/grub/normal.h: Likewise.
47902 * include/grub/parser.h: Likewise.
47903 * include/grub/partition.h: Likewise.
47904 * include/grub/pc_partition.h: Likewise.
47905 * include/grub/raid.h: Likewise.
47906 * include/grub/rescue.h: Likewise.
47907 * include/grub/script.h: Likewise.
47908 * include/grub/setjmp.h: Likewise.
47909 * include/grub/symbol.h: Likewise.
47910 * include/grub/term.h: Likewise.
47911 * include/grub/terminfo.h: Likewise.
47912 * include/grub/tparm.h: Likewise.
47913 * include/grub/types.h: Likewise.
47914 * include/grub/video.h: Likewise.
47915 * include/grub/efi/api.h: Likewise.
47916 * include/grub/efi/chainloader.h: Likewise.
47917 * include/grub/efi/console.h: Likewise.
47918 * include/grub/efi/console_control.h: Likewise.
47919 * include/grub/efi/disk.h: Likewise.
47920 * include/grub/efi/efi.h: Likewise.
47921 * include/grub/efi/pe32.h: Likewise.
47922 * include/grub/efi/time.h: Likewise.
47923 * include/grub/i386/linux.h: Likewise.
47924 * include/grub/i386/setjmp.h: Likewise.
47925 * include/grub/i386/types.h: Likewise.
47926 * include/grub/i386/efi/kernel.h: Likewise.
47927 * include/grub/i386/efi/loader.h: Likewise.
47928 * include/grub/i386/efi/time.h: Likewise.
47929 * include/grub/i386/pc/biosdisk.h: Likewise.
47930 * include/grub/i386/pc/boot.h: Likewise.
47931 * include/grub/i386/pc/chainloader.h: Likewise.
47932 * include/grub/i386/pc/console.h: Likewise.
47933 * include/grub/i386/pc/init.h: Likewise.
47934 * include/grub/i386/pc/kernel.h: Likewise.
47935 * include/grub/i386/pc/loader.h: Likewise.
47936 * include/grub/i386/pc/memory.h: Likewise.
47937 * include/grub/i386/pc/multiboot.h: Likewise.
47938 * include/grub/i386/pc/serial.h: Likewise.
47939 * include/grub/i386/pc/time.h: Likewise.
47940 * include/grub/i386/pc/vbe.h: Likewise.
47941 * include/grub/i386/pc/vbeblit.h: Likewise.
47942 * include/grub/i386/pc/vbefill.h: Likewise.
47943 * include/grub/i386/pc/vbeutil.h: Likewise.
47944 * include/grub/i386/pc/vga.h: Likewise.
47945 * include/grub/ieee1275/ieee1275.h: Likewise.
47946 * include/grub/ieee1275/ofdisk.h: Likewise.
47947 * include/grub/powerpc/libgcc.h: Likewise.
47948 * include/grub/powerpc/setjmp.h: Likewise.
47949 * include/grub/powerpc/types.h: Likewise.
47950 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47951 * include/grub/powerpc/ieee1275/console.h: Likewise.
47952 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47953 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47954 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47955 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47956 * include/grub/powerpc/ieee1275/time.h: Likewise.
47957 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47958 * include/grub/sparc64/libgcc.h: Likewise.
47959 * include/grub/sparc64/setjmp.h: Likewise.
47960 * include/grub/sparc64/types.h: Likewise.
47961 * include/grub/sparc64/ieee1275/console.h: Likewise.
47962 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47963 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47964 * include/grub/sparc64/ieee1275/time.h: Likewise.
47965 * include/grub/util/biosdisk.h: Likewise.
47966 * include/grub/util/getroot.h: Likewise.
47967 * include/grub/util/lvm.h: Likewise.
47968 * include/grub/util/misc.h: Likewise.
47969 * include/grub/util/raid.h: Likewise.
47970 * include/grub/util/resolve.h: Likewise.
47971 * io/gzio.c: Likewise.
47972 * kern/device.c: Likewise.
47973 * kern/disk.c: Likewise.
47974 * kern/dl.c: Likewise.
47975 * kern/elf.c: Likewise.
47976 * kern/env.c: Likewise.
47977 * kern/err.c: Likewise.
47978 * kern/file.c: Likewise.
47979 * kern/fs.c: Likewise.
47980 * kern/loader.c: Likewise.
47981 * kern/main.c: Likewise.
47982 * kern/misc.c: Likewise.
47983 * kern/mm.c: Likewise.
47984 * kern/parser.c: Likewise.
47985 * kern/partition.c: Likewise.
47986 * kern/rescue.c: Likewise.
47987 * kern/term.c: Likewise.
47988 * kern/efi/efi.c: Likewise.
47989 * kern/efi/init.c: Likewise.
47990 * kern/efi/mm.c: Likewise.
47991 * kern/i386/dl.c: Likewise.
47992 * kern/i386/efi/init.c: Likewise.
47993 * kern/i386/efi/startup.S: Likewise.
47994 * kern/i386/pc/init.c: Likewise.
47995 * kern/i386/pc/lzo1x.S: Likewise.
47996 * kern/i386/pc/startup.S: Likewise.
47997 * kern/ieee1275/ieee1275.c: Likewise.
47998 * kern/powerpc/cache.S: Likewise.
47999 * kern/powerpc/dl.c: Likewise.
48000 * kern/powerpc/ieee1275/cmain.c: Likewise.
48001 * kern/powerpc/ieee1275/crt0.S: Likewise.
48002 * kern/powerpc/ieee1275/init.c: Likewise.
48003 * kern/powerpc/ieee1275/openfw.c: Likewise.
48004 * kern/sparc64/cache.S: Likewise.
48005 * kern/sparc64/dl.c: Likewise.
48006 * kern/sparc64/ieee1275/init.c: Likewise.
48007 * kern/sparc64/ieee1275/openfw.c: Likewise.
48008 * loader/efi/chainloader.c: Likewise.
48009 * loader/efi/chainloader_normal.c: Likewise.
48010 * loader/i386/efi/linux.c: Likewise.
48011 * loader/i386/efi/linux_normal.c: Likewise.
48012 * loader/i386/pc/chainloader.c: Likewise.
48013 * loader/i386/pc/chainloader_normal.c: Likewise.
48014 * loader/i386/pc/linux.c: Likewise.
48015 * loader/i386/pc/linux_normal.c: Likewise.
48016 * loader/i386/pc/multiboot.c: Likewise.
48017 * loader/i386/pc/multiboot_normal.c: Likewise.
48018 * loader/powerpc/ieee1275/linux.c: Likewise.
48019 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48020 * normal/arg.c: Likewise.
48021 * normal/cmdline.c: Likewise.
48022 * normal/command.c: Likewise.
48023 * normal/completion.c: Likewise.
48024 * normal/execute.c: Likewise.
48025 * normal/function.c: Likewise.
48026 * normal/lexer.c: Likewise.
48027 * normal/main.c: Likewise.
48028 * normal/menu.c: Likewise.
48029 * normal/menu_entry.c: Likewise.
48030 * normal/misc.c: Likewise.
48031 * normal/parser.y: Likewise.
48032 * normal/script.c: Likewise.
48033 * normal/i386/setjmp.S: Likewise.
48034 * normal/powerpc/setjmp.S: Likewise.
48035 * normal/sparc64/setjmp.S: Likewise.
48036 * partmap/acorn.c: Likewise.
48037 * partmap/amiga.c: Likewise.
48038 * partmap/apple.c: Likewise.
48039 * partmap/gpt.c: Likewise.
48040 * partmap/pc.c: Likewise.
48041 * partmap/sun.c: Likewise.
48042 * term/gfxterm.c: Likewise.
48043 * term/terminfo.c: Likewise.
48044 * term/efi/console.c: Likewise.
48045 * term/i386/pc/console.c: Likewise.
48046 * term/i386/pc/serial.c: Likewise.
48047 * term/i386/pc/vesafb.c: Likewise.
48048 * term/i386/pc/vga.c: Likewise.
48049 * term/ieee1275/ofconsole.c: Likewise.
48050 * util/biosdisk.c: Likewise.
48051 * util/console.c: Likewise.
48052 * util/genmoddep.c: Likewise.
48053 * util/getroot.c: Likewise.
48054 * util/grub-emu.c: Likewise.
48055 * util/grub-mkdevicemap.c: Likewise.
48056 * util/grub-probe.c: Likewise.
48057 * util/lvm.c: Likewise.
48058 * util/misc.c: Likewise.
48059 * util/raid.c: Likewise.
48060 * util/resolve.c: Likewise.
48061 * util/update-grub.in: Likewise.
48062 * util/update-grub_lib.in: Likewise.
48063 * util/grub.d/00_header.in: Likewise.
48064 * util/grub.d/10_hurd.in: Likewise.
48065 * util/grub.d/10_linux.in: Likewise.
48066 * util/i386/efi/grub-install.in: Likewise.
48067 * util/i386/efi/grub-mkimage.c: Likewise.
48068 * util/i386/pc/grub-install.in: Likewise.
48069 * util/i386/pc/grub-mkimage.c: Likewise.
48070 * util/i386/pc/grub-mkrescue.in: Likewise.
48071 * util/i386/pc/grub-setup.c: Likewise.
48072 * util/i386/pc/misc.c: Likewise.
48073 * util/powerpc/ieee1275/grub-install.in: Likewise.
48074 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48075 * util/powerpc/ieee1275/misc.c: Likewise.
48076 * video/bitmap.c: Likewise.
48077 * video/video.c: Likewise.
48078 * video/i386/pc/vbe.c: Likewise.
48079 * video/i386/pc/vbeblit.c: Likewise.
48080 * video/i386/pc/vbefill.c: Likewise.
48081 * video/i386/pc/vbeutil.c: Likewise.
48082 * video/readers/tga.c: Likewise.
48084 2007-07-02 Robert Millan <rmh@aybabtu.com>
48086 * conf/i386-efi.rmk: Replace obsolete reference to
48087 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48088 with util/getroot.c.
48089 * conf/powerpc-ieee1275.rmk: Likewise.
48090 * conf/sparc64-ieee1275.rmk: Likewise.
48092 * util/grub-emu.c (main): Fix unchecked pointer handling.
48094 2007-07-02 Robert Millan <rmh@aybabtu.com>
48096 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48097 invocation to fail, in order to support partition-less media.
48099 * util/i386/pc/grub-install.in: Likewise.
48101 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48102 which fs or partmap modules are needed (akin to its sister scripts).
48104 Also use grub-probe to get rid of unportable /proc/mounts check.
48106 Print the same informational message that the other scripts do, before
48109 2007-06-23 Robert Millan <rmh@aybabtu.com>
48111 * util/update-grub_lib.in (font_path): New function. Determine whether
48112 a font file can be found and, if so, echo the GRUB path to it.
48114 * util/update-grub.in: Handle multiple terminals depending on user
48115 input, platform availability and font file presence. Propagate
48116 variables of our findings to /etc/grub.d/ children.
48118 * util/grub.d/00_header.in: Handle multiple terminals, based on
48119 environment setup by update-grub.
48121 2007-06-23 Robert Millan <rmh@aybabtu.com>
48123 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48125 2007-06-21 Robert Millan <rmh@aybabtu.com>
48127 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48128 indicate end of data section in kernel image.
48129 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48130 GRUB_KERNEL_MACHINE_DATA_END.
48132 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48134 * kern/i386/efi/startup.S: Likewise.
48136 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48137 during image generation. Implement --prefix option to override this
48139 * util/i386/efi/grub-mkimage.c: Likewise.
48141 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48142 code to make path relative to its root into a separate function.
48144 * util/i386/pc/grub-install.in: Use newly provided
48145 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48146 pass the result to grub-install --prefix.
48148 2007-06-13 Robert Millan <rmh@aybabtu.com>
48150 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48151 DEFAULT_DEVICE_MAP.
48152 * util/grub-emu.c: Use above definitions from misc.h instead of
48154 * util/grub-mkdevicemap.c: Likewise.
48155 * util/i386/pc/grub-setup.c: Likewise.
48156 * util/grub-probe.c: Likewise.
48157 (probe): Abort with grub_util_error() when either
48158 grub_guess_root_device or grub_util_get_grub_dev fails.
48160 2007-06-12 Robert Millan <rmh@aybabtu.com>
48162 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48163 "pager" assignment.
48164 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48166 * util/grub-probe.c (probe): Likewise for "drive_name".
48168 2007-06-11 Robert Millan <rmh@aybabtu.com>
48170 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48171 not just the cdrom one.
48173 2007-06-11 Robert Millan <rmh@aybabtu.com>
48175 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48176 Add --pkglibdir=DIR option to override pkglibdir.
48177 Mention --image-type=TYPE in help output.
48178 Fix --grub-mkimage (it was a no-op).
48179 Abort gracefully when no parameter is given.
48181 2007-06-11 Robert Millan <rmh@aybabtu.com>
48183 * util/i386/pc/grub-mkrescue.in: New file.
48184 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48185 * Makefile.in: Handle bin_SCRIPTS.
48187 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48189 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48190 list of video modes.
48192 2007-06-06 Robert Millan <rmh@aybabtu.com>
48194 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48195 file doesn't exist, or if it is in a filesystem grub can't read.
48197 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48198 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48199 header comment to fit in 80 columns when the variables are resolved.
48201 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48202 could be identified by update-grub. Remove redundant check for
48203 unifont.pff existence (since convert_system_path_to_grub_path now
48206 2007-06-04 Robert Millan <rmh@aybabtu.com>
48208 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48210 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48212 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48214 2007-06-04 Robert Millan <rmh@aybabtu.com>
48216 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48218 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48219 grub_apple_partition_map_fini.
48222 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48223 to access >2 TiB disks).
48225 Print disk->total_sectors with %llu instead of %lu, since this
48226 variable is always 64-bit (prevents wrong disk size from being displayed
48227 on either >2 TiB disk or big-endian CPU).
48229 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48230 into a generic case that supports all (sane) partition maps.
48232 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48235 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48236 and grub_apple_partition_map_fini() after that.
48238 2007-06-01 Robert Millan <rmh@aybabtu.com>
48240 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48242 * util/grub.d/00_header.in: Only enable gfxterm when
48243 convert_system_path_to_grub_path() succeeds.
48245 2007-05-20 Robert Millan <rmh@aybabtu.com>
48247 * util/update-grub_lib.in: New file.
48248 * DISTLIST: Add update-grub_lib.in.
48249 * conf/common.rmk: Generate update-grub_lib and install it in
48251 * Makefile.in: Add install routine for $(lib_DATA).
48253 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48254 function provided by update-grub_lib to support arbitrary paths of
48256 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48257 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48259 2007-05-19 Robert Millan <rmh@aybabtu.com>
48261 * commands/i386/cpuid.c: New module.
48262 * DISTLIST: Add it.
48263 * conf/i386-efi.rmk: Enable cpuid.mod.
48264 * conf/i386-pc.rmk: Likewise.
48266 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48268 * kern/disk.c (grub_disk_read): Check return value of
48271 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48273 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48275 * disk/raid.c (grub_raid_open): Likewise.
48277 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48279 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48280 stack instead of on the heap.
48282 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48283 before doing a read on it.
48285 * configure.ac: Only use -fno-stack-protector for the target
48288 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48290 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48291 __attribute_ ((unused)) to mode_type argument.
48293 * util/getroot.c (grub_guess_root_device): Fix #endif.
48295 * kern/misc.c (memcmp): Fix prototype.
48297 * include/grub/partition.h [GRUB_UTIL]
48298 (grub_gpt_partition_map_init): Add prototype.
48299 (grub_gpt_partition_map_fini): Likewise.
48301 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48302 at the right place.
48304 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48305 (grub_fat_read_data): Likewise.
48306 (grub_fat_find_dir): Likewise.
48308 * font/manager.c (find_glyph): Make table a const.
48309 (grub_font_get_glyph): Remove bitmap from if statement.
48311 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48313 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48314 code, first search for device in /dev/mapper, then in /dev.
48315 (grub_util_get_grub_dev): New function.
48316 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48318 * util/grub-probe.c (probe): Remove check for RAID, call
48319 grub_util_get_grub_dev() instead of
48320 grub_util_biosdisk_get_grub_dev().
48321 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48322 grub_util_biosdisk_get_grub_dev().
48323 * util/i386/pc/grub-setup.c (main): Likewise.
48325 2007-05-16 Robert Millan <rmh@aybabtu.com>
48327 * DISTLIST: Update for the latest changes.
48328 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48329 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48330 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48331 grub/util/biosdisk.h.
48332 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48333 grub/util/biosdisk.h.
48335 2007-05-16 Robert Millan <rmh@aybabtu.com>
48337 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48339 2007-05-16 Robert Millan <rmh@aybabtu.com>
48341 * util/i386/efi/grub-install.in: New.
48342 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48343 newly added grub-install.
48344 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48346 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48347 grub/util/biosdisk.h.
48348 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48349 grub/util/biosdisk.h.
48351 2007-05-16 Robert Millan <rmh@aybabtu.com>
48353 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48354 * include/grub/util/biosdisk.h: ... here.
48355 * util/i386/pc/biosdisk.c: Moved to ...
48356 * util/biosdisk.c: ... here.
48357 * util/i386/pc/getroot.c: Moved to ...
48358 * util/getroot.c: ... here.
48359 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48360 * util/grub-mkdevicemap.c: ... here.
48361 * util/i386/pc/grub-probe.c: Moved to ...
48362 * util/grub-probe.c: ... here.
48364 2007-05-15 Robert Millan <rmh@aybabtu.com>
48366 * util/update-grub.in: Remove duplicated line in grub.cfg header
48369 2007-05-13 Robert Millan <rmh@aybabtu.com>
48371 * util/update-grub.in: Fix a few assumptions about the devices holding
48372 /, /boot and /boot/grub being the same.
48373 * util/grub.d/00_header.in: Likewise.
48374 * util/grub.d/10_hurd.in: Likewise.
48375 * util/grub.d/10_linux.in: Likewise.
48377 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48378 patterns. Use that to define the `.old' suffix as older than `'.
48380 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48382 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48383 the grub.cfg header message.
48385 2007-05-11 Robert Millan <rmh@aybabtu.com>
48387 * util/update-grub.in: Create device.map if it doesn't already exist,
48388 before attempting to run grub-probe.
48389 Check for grub-probe and grub-mkdevicemap with the same code
48390 grub-install is using.
48393 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48395 * Makefile.in: Add the datarootdir autoconf variable.
48397 2007-05-09 Robert Millan <rmh@aybabtu.com>
48399 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48400 fail gracefully if dev->disk->partition == NULL.
48402 2007-05-07 Robert Millan <rmh@aybabtu.com>
48404 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48405 determine partition map module.
48406 * util/i386/pc/grub-install.in: Use this feature to decide which
48407 partition module to load, instead of hardcoding pc and gpt.
48409 2007-05-07 Robert Millan <rmh@aybabtu.com>
48411 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48412 source directory differs from build directory.
48414 2007-05-05 Robert Millan <rmh@aybabtu.com>
48416 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48419 2007-05-05 Robert Millan <rmh@aybabtu.com>
48421 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48423 2007-05-05 Robert Millan <rmh@aybabtu.com>
48425 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48426 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48428 2007-05-05 Robert Millan <rmh@aybabtu.com>
48430 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48431 (grub_probe_SOURCES): Likewise.
48432 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48433 GPT and initialize dos_part and bsd_part accordingly.
48434 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48436 (main): Activate gpt module for use during partition identification,
48437 and deactivate it afterwards.
48438 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48439 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48440 partition identification, and deactivate it afterwards.
48442 2007-05-05 Robert Millan <rmh@aybabtu.com>
48444 * term/i386/pc/console.c (grub_console_fini): Call
48445 grub_term_set_current() before grub_term_unregister().
48447 2007-05-04 Robert Millan <rmh@aybabtu.com>
48449 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48450 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48451 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48452 and update-grub_DATA.
48453 * conf/common.rmk: Build and install update-grub components.
48454 * conf/common.mk: Regenerate.
48455 * util/update-grub.in: New. Core of update-grub.
48456 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48457 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48458 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48459 * util/grub.d/README: New. Document grub.d directory layout.
48461 2007-05-01 Robert Millan <rmh@aybabtu.com>
48463 * util/grub-emu.c: Move initialization functions
48464 grub_util_biosdisk_init() and grub_init_all() before
48465 grub_util_biosdisk_get_grub_dev(), which relies on them.
48467 2007-04-19 Robert Millan <rmh@aybabtu.com>
48469 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48472 2007-04-18 Jerone Young <jerone@gmail.com>
48474 * kernel/elf.c: Add missing parenthesis for conditional statement
48477 2007-04-10 Jerone Young <jerone@gmail.com>
48479 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48480 continue on and look for device node with real device name.
48482 2007-04-10 Jerone Young <jerone@gmail.com>
48484 * configure.ac: Add argument for autoconf to use transformation
48486 * Makefile.in: Add autoconf package transformation code.
48487 * util/i386/pc/grub-install.in: Likewise.
48488 * util/powerpc/ieee1275/grub-install.in: Likewise.
48490 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48492 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48493 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48494 (EXT2_REVISION): Likewise.
48495 (EXT2_INODE_SIZE): Likewise.
48496 (struct grub_ext2_block_group): Added a missing member
48498 (grub_ext2_read_inode): Divide by the inode size in a superblock
48499 instead of 128 to obtain INODES_PER_BLOCK.
48500 Use the macro EXT2_INODE_SIZE instead of directly using
48501 SBLOCK->INODE_SIZE.
48503 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48505 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48506 superblock instead of the structure size to compute an
48507 offset. This fixes the problem that GRUB could not read a
48508 filesystem when inode size is different from 128-byte.
48510 2007-03-05 Marco Gerards <marco@gnu.org>
48512 * normal/main.c (read_config_file): When "menu" is not set, create
48513 an initial context.
48515 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48517 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48518 (HEAP_LIMIT): New macro.
48519 (grub_claim_heap): Claim memory up to `heaplimit'.
48521 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48523 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48524 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48525 (_start): Likewise.
48526 (grub_arch_modules_addr): Return address after `_end'.
48527 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48528 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48529 (add_segments): Calculate `_end' from phdr size and location.
48530 (ALIGN_UP): Moved to ...
48531 * include/grub/misc.h: here.
48532 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48534 (GRUB_IEEE1275_MODULE_BASE): Removed.
48536 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48538 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48541 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48543 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48545 (grub_elf64_load_hook_t): Likewise.
48546 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48549 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48551 * kern/mm.c: Update copyright.
48552 (grub_mm_debug): Correct syntax error.
48553 (grub_mm_dump_free): New function.
48554 (grub_debug_free): Call `grub_free'.
48555 * include/grub/mm.h: Update copyright.
48556 (grub_mm_dump_free): Add declaration.
48558 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48560 * include/grub/ieee1275/ieee1275.h: Update copyright.
48561 * kern/powerpc/ieee1275/init.c: Likewise.
48562 * kern/powerpc/ieee1275/openfw.c: Likewise.
48564 * loader/powerpc/ieee1275/linux.c: Likewise.
48565 * include/grub/elfload.h: Likewise.
48566 * kern/elf.c: Likewise.
48567 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48569 (grub_elf64_load): Likewise.
48570 (grub_elf32_load_segment): Move to a nested function.
48571 (grub_elf64_load_segment): Likewise.
48573 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48575 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48577 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48578 (grub_heap_len): Likewise.
48579 (HEAP_SIZE): New macro.
48580 (grub_claim_heap): New function.
48581 (grub_machine_init): Don't claim heap directly. Call
48583 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48584 (grub_available_iterate): New function.
48586 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48588 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48589 * configure.ac: Use it for testing the HOST and TARGET compilers.
48591 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48593 * Makefile.in (enable_grub_emu): New variable.
48594 * configure.ac (--enable-grub-emu): New option.
48595 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48596 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48597 * conf/i386-pc.rmk: Likewise.
48598 * conf/powerpc-ieee1275.rmk: Likewise.
48599 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48601 2006-12-12 Marco Gerards <marco@gnu.org>
48603 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48605 * kern/env.c (grub_env_unset): Don't free the member `value' when
48606 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48609 * normal/main.c (current_menu): Removed.
48610 (free_menu): Unset the `menu' environment variable.
48611 (grub_normal_menu_addentry): Make use of the environment variable
48612 `menu', instead of using the global `current_menu'. Allocate
48613 memory for the sourcecode of this entry.
48614 (read_config_file): New argument `nested', changed all callers.
48615 Only in the case of a new context, initialize a new menu. Set the
48616 `menu' environment variable.
48617 (grub_normal_execute): Don't set and unset the environment
48618 variable `menu' here anymore. Only free the menu when leaving the
48621 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48624 2006-12-11 Marco Gerards <marco@gnu.org>
48626 * normal/menu_entry.c (run): Fix off by one bug so the last line
48627 is executed. Move the loader check to outside the loop.
48629 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48631 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48633 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48635 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48636 the number of sectors. Reported by Andrey Shuvikov
48637 <mr_hyro@yahoo.com>.
48639 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48641 * kern/disk.c (grub_disk_read): When there is a read error, always
48642 try to read only the necessary data.
48644 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48646 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48648 [GRUB_UTIL] (grub_raid_fini): Likewise.
48649 [GRUB_UTIL] (grub_lvm_init): Likewise.
48650 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48651 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48652 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48653 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48654 and grub_raid_fini().
48656 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48658 * include/grub/types.h (__unused): Rename to UNUSED.
48659 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48660 (grub_elf64_size): Likewise.
48662 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48664 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48665 grub_error_push and grub_error_pop in the error-handling path.
48666 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48669 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48671 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48672 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48674 (kernel_elf_SOURCES): Likewise.
48675 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48676 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48677 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48678 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48679 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48680 (elf_mod_SOURCES): New variable.
48681 (elf_mod_CFLAGS): Likewise.
48682 (elf_mod_LDFLAGS): Likewise.
48683 * include/grub/types.h (__unused): New macro.
48684 * include/grub/elfload.h: New file.
48685 * kern/elf.c: Likewise.
48686 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48687 (ELF32_LOADMASK): New macro.
48688 (ELF64_LOADMASK): Likewise.
48689 (vmlinux): Removed.
48690 (grub_linux_load32): New function.
48691 (grub_linux_load64): Likewise.
48692 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48693 Use grub_elf_t instead of grub_file_t.
48695 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48697 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48698 `catch_result' to struct set_color_args.
48700 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48702 * normal/menu.c: Include grub/script.h.
48703 * normal/menu_entry.c: Likewise.
48704 * include/grub/normal.h: Do not include grub/script.h.
48706 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48708 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48710 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48712 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48714 (grub_disk_close): Print debug messages when closing a disk.
48715 (grub_disk_read): Print debug messages when disk read fails.
48716 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48718 * kern/partition.c: Include misc.h.
48719 (grub_partition_iterate): Print debug messages when detecting
48722 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48724 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48726 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48728 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48730 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48731 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48733 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48735 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48736 instead of sizeof(lv). Patch by Michael Guntsche.
48738 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48740 * disk/lvm.c: Rename VGS to VG_LIST.
48741 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48742 (grub_lvm_open): Likewise.
48743 Thanks to Michael Guntsche for finding this bug.
48745 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48747 * configure.ac (AC_INIT): Bumped to 1.95.
48749 2006-10-14 Robert Millan <rmh@aybabtu.com>
48751 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48752 with "/dev/.static/dev/md".
48754 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48756 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48757 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48758 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48759 DRIVE_NAME are always freed.
48761 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48762 DOS_PART, as a DOS partition is counted from one instead of zero
48763 now. Reported by Robert Millan.
48765 2006-10-14 Robert Millan <rmh@aybabtu.com>
48767 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48768 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48769 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48770 string returned by grub_guess_root_device.
48771 * util/i386/pc/grub-setup.c: Likewise.
48772 * util/i386/pc/grub-probefs.c: Likewise.
48774 * util/i386/pc/grub-probefs.c: Rename to ...
48775 * util/i386/pc/grub-probe.c: ... this.
48776 * DISTLIST: Remove grub-probefs, add grub-probe.
48777 * conf/i386-efi.rmk: Likewise.
48778 * conf/i386-pc.rmk: Likewise.
48779 * util/i386/pc/grub-install.in: Likewise.
48781 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48782 choose which information we want to print.
48784 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48786 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48787 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48788 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48789 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48790 video/readers/tga.c and video/i386/pc/vbeutil.c.
48792 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48794 Added support for RAID and LVM.
48796 * disk/lvm.c: New file.
48797 * disk/raid.c: Likewise.
48798 * include/grub/lvm.h: Likewise.
48799 * include/grub/raid.h: Likewise.
48800 * include/grub/util/lvm.h: Likewise.
48801 * include/grub/util/raid.h: Likewise.
48802 * util/lvm.c: Likewise.
48803 * util/raid.c: Likewise.
48805 * include/grub/disk.h (grub_disk_dev_id): Add
48806 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48807 (grub_disk_get_size): New prototype.
48808 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48809 returns a partition.
48810 (grub_disk_get_size): New function.
48812 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48813 verbatim if grub_install_dos_part is -2.
48815 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48818 * util/i386/pc/grub-setup.c (setup): New argument
48819 MUST_EMBED. Force embedding of GRUB when the argument is
48820 true. Close FILE before returning.
48821 (main): Add support for RAID and LVM.
48823 * conf/common.rmk: Add RAID and LVM modules.
48824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48826 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48828 * kern/misc.c (grub_strstr): New function.
48829 * include/grub/misc.h (grub_strstr): New prototype.
48831 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48833 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48835 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48837 * kern/misc.c (grub_strtoull): Guess the base only if not
48840 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48842 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48845 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48847 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48850 Remove `flags' argument. All callers changed.
48851 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48852 (IEEE1275_IHANDLE_INVALID): New variable.
48853 (IEEE1275_CELL_INVALID): New variable.
48854 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48855 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48856 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48857 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48858 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48859 codes from Open Firmware. All callers updated.
48860 (grub_ieee1275_next_property): Directly return Open Firmware return
48862 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48863 Standardize error checking from `grub_ieee1275_get_property'.
48864 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48865 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48867 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48869 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48870 `instance_to_package_args' to `instance_to_path_args'.
48872 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48873 `grub_ieee1275_chosen'.
48875 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48876 `grub_ieee1275_interpret'.
48878 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48880 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48882 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48884 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48885 (__cmpdi): Likewise.
48887 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48888 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48891 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48893 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48894 to type `grub_ssize_t'.
48895 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48897 2006-09-22 Marco Gerards <marco@gnu.org>
48899 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48902 2006-09-22 Marco Gerards <marco@gnu.org>
48904 * commands/echo.c: New file.
48906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48908 * conf/common.rmk (echo_mod_SOURCES): New variable.
48909 (echo_mod_CFLAGS): Likewise.
48910 (echo_mod_LDFLAGS): Likewise.
48912 2006-09-22 Marco Gerards <marco@gnu.org>
48914 * normal/main.c (get_line): Malloc memory instead of using
48915 preallocated memory. Removed the arguments `cmdline' and
48916 `max_len'. Updated all callers.
48918 2006-09-22 Marco Gerards <marco@gnu.org>
48920 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48921 (normal_mod_DEPENDENCIES): Likewise.
48923 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48924 (normal_mod_DEPENDENCIES): Likewise.
48926 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48928 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48930 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48932 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48933 (normal_mod_DEPENDENCIES): Likewise.
48934 * conf/i386-pc.mk: Regenerate.
48935 * conf/i386-efi.mk: Likewise
48936 * conf/common.mk: Likewise.
48937 * conf/powerpc-ieee1275.mk: Likewise.
48938 * conf/sparc64-ieee1275.mk: Likewise.
48940 2006-09-22 Robert Millan <rmh@aybabtu.com>
48942 Sync with i386 version.
48943 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48944 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48946 2006-09-21 Robert Millan <rmh@aybabtu.com>
48948 Import from GRUB Legacy (lib/device.c):
48949 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48950 (init_device_map) [__linux__]: Add support for I2O devices.
48952 2006-09-14 Marco Gerards <marco@gnu.org>
48954 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48957 2006-09-14 Robert Millan <rmh@aybabtu.com>
48959 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48962 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48964 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48965 before adding it to device.map.
48967 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48969 * genmk.rb: Let GCC generate dependencies the first time it
48970 compiles a file; using the -MD option.
48971 * conf/common.mk: Regenerate.
48972 * conf/i386-pc.mk: Likewise.
48973 * conf/i386-efi.mk: Likewise.
48974 * conf/powerpc-ieee1275.mk: Likewise.
48975 * conf/sparc64-ieee1275.mk: Likewise.
48977 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48979 Move the prototypes of grub_setjmp and grub_longjmp to
48980 cpu/setjmp.h, so that each architecture may specify different
48983 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48984 (grub_longjmp): Likewise.
48985 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48986 (grub_longjmp): Likewise.
48987 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48988 (grub_longjmp): Likewise.
48990 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48991 [!GRUB_UTIL] (grub_longjmp): Removed.
48993 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48995 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48996 "color!" method does not return any value.
48998 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49000 * include/grub/bitmap.h: New file.
49002 * include/grub/i386/pc/vbeutil.h: Likewise.
49004 * video/bitmap.c: Likewise.
49006 * video/readers/tga.c: Likewise.
49008 * video/i386/pc/vbeutil.c: Likewise.
49010 * commands/videotest.c: Code cleanup and updated to reflect to new
49013 * term/gfxterm.c: Likewise.
49015 * video/video.c: Likewise.
49017 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49018 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49019 (bitmap_mod_SOURCES): New entry.
49020 (bitmap_mod_CFLAGS): Likewise.
49021 (bitmap_mod_LDFLAGS): Likewise.
49022 (tga_mod_SOURCES): Likewise.
49023 (tga_mod_CFLAGS): Likewise.
49024 (tga_mod_LDFLAGS): Likewise.
49026 * include/grub/video.h (grub_video_blit_operators): New enum type.
49027 (grub_video_render_target): Changed as forward declaration and moved
49028 actual definition to be video driver specific.
49029 (grub_video_adapter.blit_bitmap): Added blitting operator.
49030 (grub_video_adapter.blit_render_target): Likewise.
49031 (grub_video_blit_bitmap): Likewise.
49032 (grub_video_blit_render_target): Likewise.
49034 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49035 driver specific render target definition.
49036 (grub_video_vbe_map_rgba): Added driver internal helper.
49037 (grub_video_vbe_unmap_color): Updated to use
49038 grub_video_i386_vbeblit_info.
49039 (grub_video_vbe_get_video_ptr): Likewise.
49041 * include/grub/i386/pc/vbeblit.h
49042 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49043 grub_video_i386_vbeblit_info.
49044 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49045 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49046 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49047 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49048 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49049 (grub_video_i386_vbeblit_index_index): Likewise.
49050 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49051 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49052 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49053 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49055 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49058 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49059 include/grub/i386/pc/vbeblit.h.
49061 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49062 Updated to use grub_video_i386_vbeblit_info.
49063 (grub_video_i386_vbefill_R8G8B8): Likewise.
49064 (grub_video_i386_vbefill_index): Likewise.
49065 (grub_video_i386_vbefill): Added generic filler.
49067 * video/i386/pc/vbefill.c: Updated to reflect changes on
49068 include/grub/i386/pc/vbefill.h.
49070 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49071 grub_video_i386_vbeblit_info.
49072 (grub_video_vbe_unmap_color): Likewise.
49073 (grub_video_vbe_blit_glyph): Likewise.
49074 (grub_video_vbe_scroll): Likewise.
49075 (grub_video_vbe_draw_pixel): Removed function.
49076 (grub_video_vbe_get_pixel): Likewise.
49077 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49078 updated code to use it.
49079 (common_blitter): Added common blitter for render target and bitmap.
49080 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49081 (grub_video_vbe_blit_render_target): Likewise.
49083 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49085 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49086 is in text mode if there is no console control protocol instance
49089 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49091 * include/grub/video.h: Code cleanup.
49093 * include/grub/i386/pc/vbe.h: Likewise.
49095 * video/i386/pc/vbe.c: Likewise.
49097 * video/i386/pc/vbeblit.c: Likewise.
49099 * video/i386/pc/vbefill.c: Likewise.
49101 * video/video.c: Likewise. Also added more comments.
49103 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49105 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49106 (struct grub_biosdisk_dap): Likewise.
49108 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49109 linkage settings for all functions.
49111 2006-07-12 Marco Gerards <marco@gnu.org>
49113 * configure.ac (--enable-mm-debug): Fix typo.
49115 * genkernsyms.sh.in: Use proper quoting for `CC'.
49117 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49119 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49120 (normal_mod_ASFLAGS): Remove "-m32".
49122 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49124 * util/misc.c: Include config.h.
49125 [!HAVE_MEMALIGN]: Do not include malloc.h.
49126 (grub_memalign): Use posix_memalign, if present. Then, use
49127 memalign, if present. Otherwise, emit an error.
49129 * util/grub-emu.c: Do not include malloc.h.
49131 * include/grub/util/misc.h: Include unistd.h. This is required for
49132 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49133 D. Eades III <hde@foobar-qux.org>.
49135 * configure.ac (AC_GNU_SOURCE): Added.
49136 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49139 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49141 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49142 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49144 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49146 * include/grub/types.h (grub_host_addr_t): Rename to
49147 grub_target_addr_t.
49148 (grub_host_off_t): Rename to grub_target_off_t.
49149 (grub_host_size_t): Rename to grub_target_size_t.
49150 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49151 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49153 * include/grub/kernel.h (struct grub_module_header): Change type
49154 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49155 (grub_module_info): Likewise.
49157 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49159 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49160 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49161 Velazquez <jesus.velazquez@gmail.com>.
49163 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49165 Count partitions from 1 instead of 0 in the string representation
49166 of partitions. Still use 0-based internally.
49168 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49169 (sun_partition_map_iterate): Use grub_partition_t instead of
49170 struct grub_partition *. Cast DESC->START_CYLINDER to
49171 grub_uint64_t after converting the endian.
49172 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49173 (sun_partition_map_get_name): Add 1 to P->INDEX.
49175 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49177 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49179 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49180 zero instead of one.
49181 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49182 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49184 * partmap/apple.c (apple_partition_map_iterate): Change the type
49185 of POS to unsigned.
49186 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49187 (apple_partition_map_get_name): Add 1 into P->INDEX.
49189 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49190 of POS to unsigned.
49191 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49192 calculate the offset of a partition.
49193 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49194 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49196 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49197 SECTOR to grub_disk_addr_t.
49198 (acorn_partition_map_iterate): Likewise.
49199 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49200 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49202 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49204 * kern/i386/pc/init.c (make_install_device): Add 1 into
49205 GRUB_INSTALL_DOS_PART.
49207 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49210 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49212 Clean up the code to support 64-bit addressing in disks and
49213 files. This change is not enough for filesystems yet.
49215 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49216 type of "start" to grub_uint64_t.
49217 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49218 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49219 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49222 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49223 to grub_disk_addr_t.
49225 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49228 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49230 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49233 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49235 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49237 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49239 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49240 to grub_off_t, to detect an error from grub_file_seek.
49241 (grub_multiboot_load_elf32): Likewise.
49243 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49244 maximum unsigned long value when an overflow is detected.
49245 (grub_strtoull): New function.
49246 (grub_divmod64): Likewise.
49247 (grub_lltoa): use grub_divmod64.
49249 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49251 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49252 the pointer to next character. Use grub_strtoull instead of
49254 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49255 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49258 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49259 return value is signed.
49260 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49261 test if OFFSET is less than zero, as OFFSET is unsigned now.
49263 * kern/disk.c (struct grub_disk_cache): Change the type of
49264 "sector" to grub_disk_addr_t.
49265 (grub_disk_cache_get_index): Change the type of SECTOR to
49266 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49267 unsigned after shifting.
49268 (grub_disk_cache_invalidate): Change the type of SECTOR to
49270 (grub_disk_cache_unlock): Likewise.
49271 (grub_disk_cache_store): Likewise.
49272 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49273 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49274 grub_disk_addr_t and grub_uint64_t, respectively.
49275 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49276 body, as the value of OFFSET is tweaked by
49277 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49278 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49280 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49281 body, as the value of OFFSET is tweaked by
49282 grub_disk_check_range. Change the types of LEN and N to
49285 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49286 and "saved_offset" to grub_off_t.
49287 (test_header): Cast BUF to char *.
49288 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49290 (grub_gzio_read): Change the types of OFFSET and SIZE to
49291 grub_off_t and grub_size_t, respectively.
49293 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49295 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49296 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49297 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49298 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49299 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49301 * include/grub/types.h (grub_off_t): Unconditionally set to
49303 (grub_disk_addr_t): Changed to grub_uint64_t.
49305 * include/grub/partition.h (struct grub_partition): Change the
49306 types of "start", "len" and "offset" to grub_disk_addr_t,
49307 grub_uint64_t and grub_disk_addr_t, respectively.
49308 (grub_partition_get_start): Return grub_disk_addr_t.
49309 (grub_partition_get_len): Return grub_uint64_t.
49311 * include/grub/misc.h (grub_strtoull): New prototype.
49312 (grub_divmod64): Likewise.
49314 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49315 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49316 grub_off_t, respectively.
49317 All callers and references changed.
49319 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49320 grub_size_t in "read".
49321 All callers and references changed.
49323 * include/grub/file.h (struct grub_file): Change the types of
49324 "offset" and "size" to grub_off_t and grub_off_t,
49325 respectively. Change the type of SECTOR to grub_disk_addr_t in
49327 (grub_file_read): Change the type of LEN to grub_size_t.
49328 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49330 (grub_file_size): Return grub_off_t.
49331 (grub_file_tell): Likewise.
49332 All callers and references changed.
49334 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49335 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49337 (struct grub_disk): Change the type of "total_sectors" to
49338 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49340 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49341 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49342 (grub_disk_write): Likewise.
49343 All callers and references changed.
49345 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49346 char * for grub_strncmp to silence gcc.
49347 (grub_iso9660_mount): Likewise.
49348 (grub_iso9660_mount): Likewise.
49349 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49351 (grub_iso9660_iterate_dir): Likewise.
49352 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49354 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49355 LEN to grub_disk_addr_t and grub_size_t, respectively.
49357 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49359 * fs/jfs.c (grub_jfs_read_file): Likewise.
49361 * fs/minix.c (grub_jfs_read_file): Likewise.
49363 * fs/sfs.c (grub_jfs_read_file): Likewise.
49365 * fs/ufs.c (grub_jfs_read_file): Likewise.
49367 * fs/xfs.c (grub_jfs_read_file): Likewise.
49369 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49370 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49373 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49374 BLKNR to -1 instead of returning GRUB_ERRNO.
49375 (grub_ext2_read_file): Change the types of SECTOR and
49376 LEN to grub_disk_addr_t and grub_size_t, respectively.
49378 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49379 LEN to grub_disk_addr_t and grub_size_t, respectively.
49381 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49384 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49385 string. Do not cast SECTOR explicitly.
49387 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49388 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49389 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49390 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49391 over 2TB and LBA mode is not supported, raise an error.
49392 (get_safe_sectors): New function.
49393 (grub_biosdisk_read): Use get_safe_sectors.
49394 (grub_biosdisk_write): Likewise.
49396 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49397 (grub_efidisk_write): Likewise.
49399 * disk/loopback.c (delete_loopback): Cosmetic changes.
49400 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49402 (grub_loopback_open): Likewise.
49403 (grub_loopback_read): Likewise. Also, change the type of POS to
49404 grub_off_t, and fix the usage of grub_memset.
49406 * commands/i386/pc/play.c: Include grub/machine/time.h.
49408 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49411 * commands/configfile.c: Include grub/env.h.
49413 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49414 GRUB_ERRNO directly instead. Change the type of POS to
49415 grub_off_t. Follow the coding standard.
49417 * commands/blocklist.c: Include grub/partition.h.
49418 (grub_cmd_blocklist): Return an error if the underlying device is
49419 not a disk. Take the starting sector of a partition into account,
49420 if a partition is used.
49422 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49424 (lba_mode): Support 64-bit addresses.
49425 (chs_mode): Likewise.
49426 (copy_buffer): Adapted to the new offsets of a length field and a
49428 (blocklist_default_start): Allocate 64-bit space.
49430 * boot/i386/pc/boot.S (force_lba): Removed.
49431 (boot_drive): Moved to under KERNEL_SECTOR.
49432 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49434 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49436 (lba_mode): Refactored to support a 64-bit address. More size
49438 (setup_sectors): Likewise.
49440 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49442 * DISTLIST: Added include/grub/i386/linux.h. Removed
49443 include/grub/i386/pc/linux.h
49445 * configure.ac (AC_INIT): Bumped to 1.94.
49447 * config.guess: Updated from gnulib.
49448 * config.sub: Likewise.
49449 * install-sh: Likewise.
49450 * mkinstalldirs: Likewise.
49452 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49454 * conf/common.rmk (grub_modules_init.lst): Depended on
49455 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49458 * genmk.rb (PModule::rule): Reverted the previous change.
49460 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49462 * conf/common.rmk (grub_modules_init.lst): Depends on
49463 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49464 that the target does not exist before producing.
49465 (grub_modules_init.h): Remove the target before generating.
49466 (grub_emu_init.c): Likewise.
49468 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49470 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49472 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49473 for the target-specific tests. Make sure that we also have the
49474 up-to-date target variables for those tests.
49476 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49478 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49479 (PModule::rule): Likewise.
49481 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49483 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49484 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49485 target-specific flags should be prefixed.
49486 (PModule::rule): Likewise.
49488 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49490 * configure.ac (CMP): Check if cmp is available explicitly.
49492 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49494 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49495 (target_cpu): New variable.
49496 (pkglibdir): Use target_cpu instead of host_cpu.
49498 * util/i386/pc/grub-install.in (host_cpu): Removed.
49499 (target_cpu): New variable.
49500 (pkglibdir): Use target_cpu instead of host_cpu.
49502 * util/genmoddep.c: Removed.
49504 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49505 instead of GRUB_HOST_SIZEOF_VOID_P.
49506 * kern/dl.c: Likewise.
49508 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49512 (GRUB_TARGET_SIZEOF_LONG): ... this.
49513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49515 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49517 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49518 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49519 (GRUB_TARGET_SIZEOF_LONG): ... this.
49520 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49521 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49522 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49524 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49525 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49526 (GRUB_TARGET_SIZEOF_LONG): ... this.
49527 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49528 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49530 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49531 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49532 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49533 instead of GRUB_HOST_SIZEOF_LONG.
49534 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49535 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49536 GRUB_CPU_WORDS_BIGENDIAN.
49537 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49538 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49541 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49542 (genmoddep_SOURCES): Likewise.
49543 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49544 (genmoddep_SOURCES): Likewise.
49545 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49546 (genmoddep_SOURCES): Likewise.
49547 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49549 (genmoddep_SOURCES): Likewise.
49551 * genmoddep.awk: New file.
49553 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49554 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49555 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49556 (PModule::rule): Likewise.
49557 (Program::rule): Likewise.
49558 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49559 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49562 * configure.ac: Rewritten intensively to use host and target
49563 instead of build and host, respectively.
49565 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49566 (host_cpu): Removed.
49567 (target_cpu): New variable.
49568 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49569 (BUILD_CC): Removed.
49570 (BUILD_CFLAGS): Likewise.
49571 (BUILD_CPPFLAGS): Likewise.
49572 (TARGET_CC): New variable.
49573 (TARGET_CFLAGS): Likewise.
49574 (TARGET_CPPFLAGS): Likewise.
49575 (TARGET_LDFLAGS): Likewise.
49577 (include): Use target_cpu instead of host_cpu.
49578 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49580 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49582 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49584 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49585 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49586 field 'false' to 'exec_on_false'.
49587 (grub_script_create_cmdif): Renamed argument names to reflect above
49590 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49592 * normal/script.c (grub_script_create_cmdif): Likewise.
49594 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49596 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49598 (grub_hfsplus_btree_recptr): Likewise.
49599 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49600 FILEBLOCK both to pass a block number and store next block
49602 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49603 overflow file correctly. Specify errors appropriately, because
49604 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49605 grub_hfsplus_btree_recptr to get the pointer to a found key.
49606 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49609 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49611 (_linux_mod_SOURCES): New variable.
49612 (_linux_mod_CFLAGS): Likewise.
49613 (_linux_mod_LDFLAGS): Likewise.
49614 (linux_mod_SOURCES): Likewise.
49615 (linux_mod_CFLAGS): Likewise.
49616 (linux_mod_LDFLAGS): Likewise.
49618 * DISTLIST: Added loader/i386/efi/linux.c,
49619 loader/i386/efi/linux_normal.c and
49620 include/grub/i386/efi/loader.h.
49622 * loader/i386/efi/linux.c: New file.
49623 * loader/i386/efi/linux_normal.c: Likewise.
49624 * include/grub/i386/efi/loader.h: Likewise.
49626 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49628 * commands/blocklist.c: New file.
49630 * DISTLIST: Added commands/blocklist.c.
49632 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49633 color for the background, and a darker color for the foreground.
49634 (grub_console_checkkey): Return READ_KEY.
49635 (grub_console_cls): Set the background to
49636 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49638 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49640 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49641 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49643 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49646 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49647 BG. The spec is wrong again.
49649 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49651 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49653 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49654 commands/blocklist.c.
49655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49657 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49658 (blocklist_mod_SOURCES): New variable.
49659 (blocklist_mod_CFLAGS): Likewise.
49660 (blocklist_mod_LDFLAGS): Likewise.
49662 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49664 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49666 (lba_mode): Use %eax more intensively to reduce the code size.
49668 2006-05-20 Marco Gerards <marco@gnu.org>
49670 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49672 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49674 (script): Accept leading newlines.
49675 (newlines): New rule to describe 0 or more newlines.
49676 (commands): Accept `command' with trailing newline. Fixed the
49677 order in which arguments were passed to `grub_script_add_cmd'.
49678 Accept commands separated by newlines.
49679 (function): Changed to accept newlines.
49680 (menuentry) Rewritten.
49682 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49683 front of the list, instead of to the end.
49685 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49687 * util/i386/pc/grub-install.in (bindir): New variable.
49688 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49689 Shaver <lbgwjl@gmail.com>.
49691 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49693 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49694 grub/machine/linux.h
49695 * loader/i386/pc/linux.c: Likewise.
49697 * include/grub/i386/pc/linux.h: Moved to ...
49698 * include/grub/i386/linux.h: ... here.
49700 * include/grub/i386/linux.h (struct linux_kernel_params): New
49703 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49705 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49707 (grub_video_vbe_blit_glyph): Likewise.
49708 (grub_video_vbe_blit_bitmap): Likewise.
49709 (grub_video_vbe_blit_render_target): Likewise.
49711 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49713 * configure.ac (--with-platform): Properly quote the square
49716 2006-05-08 Marco Gerards <marco@gnu.org>
49718 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49720 (kernel_elf_HEADERS): ...to this. Updated all users.
49721 (grubof_symlist.c): Renamed from this...
49722 (kernel_elf_symlist.c): ...to this. Updated all users.
49723 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49724 (grubof_SOURCES): Renamed from this...
49725 (kernel_elf_SOURCES): ...to this.
49726 (grubof_HEADERS): Renamed from this...
49727 (kernel_elf_HEADERS): ...to this.
49728 (grubof_CFLAGS): Renamed from this...
49729 (kernel_elf_CFLAGS): ...to this.
49730 (grubof_ASFLAGS): Renamed from this...
49731 (kernel_elf_ASFLAGS): ...to this.
49732 (grubof_LDFLAGS): Renamed from this...
49733 (kernel_elf_LDFLAGS): ...to this.
49735 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49737 (kernel_elf_HEADERS): ...to this. Updated all users.
49738 (grubof_symlist.c): Renamed from this...
49739 (kernel_elf_symlist.c): ...to this. Updated all users.
49740 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49741 (grubof_SOURCES): Renamed from this...
49742 (kernel_elf_SOURCES): ...to this.
49743 (grubof_HEADERS): Renamed from this...
49744 (kernel_elf_HEADERS): ...to this.
49745 (grubof_CFLAGS): Renamed from this...
49746 (kernel_elf_CFLAGS): ...to this.
49747 (grubof_ASFLAGS): Renamed from this...
49748 (kernel_elf_ASFLAGS): ...to this.
49749 (grubof_LDFLAGS): Renamed from this...
49750 (kernel_elf_LDFLAGS): ...to this.
49752 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49753 `kernel.elf' instead of `grubof'.
49755 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49757 Add --with-platform to configure. Use pkglibdir instead of
49758 pkgdatadir. This is reported by Roger Leigh.
49760 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49761 (host_vendor): Likewise.
49762 (host_os): Likewise.
49763 (pkgdatadir): Likewise.
49764 (platform): New variable.
49765 (pkglibdir): Likewise.
49766 Use PKGLIBDIR instead of PKGDATADIR.
49768 * util/i386/pc/grub-install.in (datadir): Removed.
49769 (host_vendor): Likewise.
49770 (host_os): Likewise.
49771 (pkgdatadir): Likewise.
49772 (platform): New variable.
49773 (pkglibdir): Likewise.
49774 Use PKGLIBDIR instead of PKGDATADIR.
49776 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49777 instead of GRUB_DATADIR.
49779 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49781 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49784 * configure.ac (--with-platform): New option.
49785 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49787 * Makefile.in: Include a makefile based on PLATFORM instead of
49789 (pkgdatadir): Not appended by the machine type.
49790 (pkglibdir): Appended by the machine type.
49791 (host_vendor): Removed.
49792 (platform): New variable.
49793 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49794 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49795 (uninstall): Likewise.
49797 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49799 Use the environment context in the menu. Remove the commands
49800 "default" and "timeout", and use variables instead.
49802 * normal/menu.c: Include grub/env.h.
49803 (print_entry): Cast TITLE to silence gcc.
49804 (get_timeout): New function.
49805 (set_timeout): Likewise.
49806 (get_entry_number): Likewise.
49807 (run_menu): Use a default entry, a fallback entry and a timeout
49808 in the environment variables "default", "fallback" and
49809 "timeout". Also, tweak the default entry if it is not within the
49810 current menu entries.
49811 (grub_menu_run): Use a fallback entry in the environment variable
49814 * normal/main.c (read_config_file): Do not initialize
49815 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49817 (grub_normal_execute): Use a data slot to store the menu.
49819 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49820 fallback_entry and timeout.
49821 (struct grub_menu_list): Removed.
49822 (grub_menu_list_t): Likewise.
49823 (struct grub_context): Likewise.
49824 (grub_context_t): Likewise.
49825 (grub_context_get): Likewise.
49826 (grub_context_get_current_menu): Likewise.
49827 (grub_context_push_menu): Likewise.
49828 (grub_context_pop_menu): Likewise.
49829 (grub_default_init): Likewise.
49830 (grub_default_fini): Likewise.
49831 (grub_timeout_init): Likewise.
49832 (grub_timeout_fini): Likewise.
49834 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49836 (normal_mod_SOURCES): Removed normal/context.c.
49838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49839 commands/default.c, commands/timeout.c and normal/context.c.
49840 (normal_mod_SOURCES): Removed normal/context.c.
49842 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49843 commands/timeout.c and normal/context.c.
49844 (normal_mod_SOURCES): Removed normal/context.c.
49846 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49847 commands/default.c, commands/timeout.c and normal/context.c.
49848 (normal_mod_SOURCES): Removed normal/context.c.
49850 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49852 (default_mod_SOURCES): Removed.
49853 (default_mod_CFLAGS): Likewise.
49854 (default_mod_LDFLAGS): Likewise.
49855 (timeout_mod_SOURCES): Removed.
49856 (timeout_mod_CFLAGS): Likewise.
49857 (timeout_mod_LDFLAGS): Likewise.
49859 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49862 * commands/default.c: Removed.
49863 * commands/timeout.c: Likewise.
49864 * normal/context.c: Likewise.
49866 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49868 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49870 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49872 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49873 "next" to "prev" for readability.
49874 (struct grub_env_sorted_var): New struct.
49875 (grub_env_context): Renamed to ...
49876 (initial_context): ... this.
49877 (grub_env_var_context): Renamed to ...
49878 (current_context): ... this.
49879 (grub_env_find): Look only at CURRENT_CONTEXT.
49880 (grub_env_context_open): Rewritten to copy exported variables from
49882 (grub_env_context_close): Rewritten according to the new
49883 scheme. Also, add an assertion to prevent the initial context from
49885 (grub_env_insert): Removed the code for the sorted list.
49886 (grub_env_remove): Likewise.
49887 (grub_env_export): Simply mark the variable with
49888 GRUB_ENV_VAR_GLOBAL.
49889 (grub_env_set): A cosmetic change for naming consistency.
49890 (grub_env_get): Likewise.
49891 (grub_env_unset): Likewise.
49892 (grub_env_iterate): Rewritten to sort variables within this
49894 (grub_register_variable_hook): Fixed for naming consistency. Call
49895 grub_env_find again, only if NAME is not found at the first time.
49896 (mangle_data_slot_name): New function.
49897 (grub_env_set_data_slot): Likewise.
49898 (grub_env_get_data_slot): Likewise.
49899 (grub_env_unset_data_slot): Likewise.
49901 * include/grub/env.h (grub_env_var_type): New enum.
49902 (GRUB_ENV_VAR_LOCAL): New constant.
49903 (GRUB_ENV_VAR_GLOBAL): Likewise.
49904 (GRUB_ENV_VAR_DATA): Likewise.
49905 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49907 (grub_env_set): Replace VAR with NAME for consistency.
49908 (grub_register_variable_hook): Likewise.
49909 (grub_env_export): Specify the name of the argument.
49910 (grub_env_set_data_slot): New prototype.
49911 (grub_env_get_data_slot): Likewise.
49912 (grub_env_unset_data_slot): Likewise.
49914 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49916 Extend the loader so that GRUB can accept a loader which comes
49917 back to GRUB when a loaded image exits. Also, this change adds
49918 support for a chainloader on EFI.
49920 * term/efi/console.c: Include grub/misc.h.
49921 (grub_console_checkkey): Display a scan code on the top for
49922 debugging. This will be removed once the EFI port gets stable.
49923 Correct the scan code mapping.
49925 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49926 allocate memory from larger regions, in order to reduce the number
49927 of allocated regions. Otherwise, the MacOSX loader panics.
49928 (filter_memory_map): Avoid less than 1MB for compatibility with
49930 (add_memory_regions): Allocate from the tail of a region, if
49931 possible, to avoid allocating a region near to 1MB, for the MacOSX
49934 * kern/efi/init.c (grub_efi_set_prefix): Specify
49935 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49937 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49938 argument IMAGE_HANDLE and specify it to get a loaded image.
49939 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49940 grub_efi_get_loaded_image.
49941 (grub_efi_get_filename): Divide the length by the size of
49943 (grub_efi_get_device_path): New function.
49944 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49945 the length by the size of grub_efi_char16_t for a file path device
49948 * kern/loader.c (grub_loader_noreturn): New variable.
49949 (grub_loader_set): Accept a new argument NORETURN. Set
49950 GRUB_LOADER_NORETURN to NORETURN.
49951 All callers changed.
49952 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49955 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49957 (grub_efi_get_loaded_image): Take an argument to specify an image
49960 * include/grub/loader.h (grub_loader_set): Added one more argument
49963 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49964 instead of grub_efi_open_protocol.
49965 (grub_efidisk_get_device_name): Likewise.
49966 (grub_efidisk_close): Print a newline.
49967 (grub_efidisk_get_device_handle): Fixed to use
49968 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49969 GRUB_EFI_DEVICE_PATH_TYPE.
49971 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49972 * kern/efi/efi.c (device_path_guid): ... here.
49974 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49976 (kernel_mod_HEADERS): Added efi/disk.h.
49977 (_chain_mod_SOURCES): New variable.
49978 (_chain_mod_CFLAGS): Likewise.
49979 (_chain_mod_LDFLAGS): Likewise.
49980 (chain_mod_SOURCES): Likewise.
49981 (chain_mod_CFLAGS): Likewise.
49982 (chain_mod_LDFLAGS): Likewise.
49984 * DISTLIST: Added include/grub/efi/chainloader.h,
49985 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49987 * include/grub/efi/chainloader.h: New file.
49988 * loader/efi/chainloader.c: Likewise.
49989 * loader/efi/chainloader_normal.c: Likewise.
49991 2006-04-30 Marco Gerards <marco@gnu.org>
49993 * commands/configfile.c (grub_cmd_source): New function.
49994 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49995 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49997 2006-04-30 Marco Gerards <marco@gnu.org>
49999 * normal/execute.c (grub_script_execute_cmd): Change the return
50000 type to `grub_err_t'. Correctly return the error.
50001 (grub_script_execute_cmdline): In case a command line is not a
50002 command or a function, try to interpret it as an assignment.
50004 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50006 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50007 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50008 skip a node whose name is obviously invalid as UTF-16,
50009 i.e. contains a NUL character. Stop the iteration when the last
50010 directory entry is found. Instead of using the return value of
50011 grub_hfsplus_btree_iterate_node, store the value in RET and use
50012 it, because the iterator can be stopped by the last directory
50015 2006-04-30 Marco Gerards <marco@gnu.org>
50017 * include/grub/env.h (grub_env_export): New prototype. Reported
50018 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50020 2006-04-30 Marco Gerards <marco@gnu.org>
50022 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50023 size of the extents in a catalog file record.
50025 2006-04-29 Marco Gerards <marco@gnu.org>
50027 * commands/configfile.c (grub_cmd_configfile): Execute the
50028 configfile within its own context.
50030 * include/grub/env.h (grub_env_context_open): New prototype.
50031 (grub_env_context_close): Likewise.
50033 * kern/env.c (grub_env): Removed.
50034 (grub_env_sorted): Likewise.
50035 (grub_env_context): New variable.
50036 (grub_env_var_context): Likewise.
50037 (grub_env_find): Search both the active context and the global
50039 (grub_env_context_open): New function.
50040 (grub_env_context_close): Likewise.
50041 (grub_env_insert): Likewise.
50042 (grub_env_remove): Likewise.
50043 (grub_env_export): Likewise.
50044 (grub_env_set): Changed to use helper functions to avoid code
50046 (grub_env_iterate): Rewritten so both the current context and the
50047 global context are being used.
50049 * normal/command.c (export_command): New function.
50050 (grub_command_init): Register the `export' function.
50052 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50054 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50055 explicitly to suppress gcc's warnings.
50056 * fs/fat.c (grub_fat_find_dir): Likewise.
50057 (grub_fat_label): Likewise.
50058 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50059 (grub_xfs_mount): Likewise.
50060 (grub_xfs_label): Likewise.
50061 * fs/affs.c (grub_affs_mount): Likewise.
50062 (grub_affs_label): Likewise.
50063 (grub_affs_iterate_dir): Likewise.
50064 * fs/sfs.c (grub_sfs_mount): Likewise.
50065 (grub_sfs_iterate_dir): Likewise.
50066 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50067 * fs/hfs.c (grub_hfs_mount): Likewise.
50068 (grub_hfs_cmp_catkeys): Likewise.
50069 (grub_hfs_find_dir): Likewise.
50070 (grub_hfs_dir): Likewise.
50071 (grub_hfs_label): Likewise.
50072 * fs/jfs.c (grub_jfs_mount): Likewise.
50073 (grub_jfs_opendir): Likewise.
50074 (grub_jfs_getent): Likewise.
50075 (grub_jfs_lookup_symlink): Likewise.
50076 (grub_jfs_label): Likewise.
50077 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50078 (grub_hfsplus_iterate_dir): Likewise.
50079 (grub_hfsplus_btree_iterate_node): Made static.
50081 * util/grub-emu.c (prefix): New variable.
50082 (grub_machine_set_prefix): New function.
50083 (main): Do not set the environment variable "prefix" here. Only
50084 set PREFIX, which is used later by grub_machine_set_prefix.
50086 * include/grub/video.h: Do not include grub/symbol.h.
50087 (grub_video_register): Not exported. This symbol is not defined in
50089 (grub_video_unregister): Likewise.
50090 (grub_video_iterate): Likewise.
50091 (grub_video_setup): Likewise.
50092 (grub_video_restore): Likewise.
50093 (grub_video_get_info): Likewise.
50094 (grub_video_get_blit_format): Likewise.
50095 (grub_video_set_palette): Likewise.
50096 (grub_video_get_palette): Likewise.
50097 (grub_video_set_viewport): Likewise.
50098 (grub_video_get_viewport): Likewise.
50099 (grub_video_map_color): Likewise.
50100 (grub_video_map_rgb): Likewise.
50101 (grub_video_map_rgba): Likewise.
50102 (grub_video_fill_rect): Likewise.
50103 (grub_video_blit_glyph): Likewise.
50104 (grub_video_blit_bitmap): Likewise.
50105 (grub_video_blit_render_target): Likewise.
50106 (grub_video_scroll): Likewise.
50107 (grub_video_swap_buffers): Likewise.
50108 (grub_video_create_render_target): Likewise.
50109 (grub_video_delete_render_target): Likewise.
50110 (grub_video_set_active_render_target): Likewise.
50112 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50114 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50116 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50117 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50118 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50119 instead of $(srcdir)/genkernsyms.sh.
50121 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50122 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50123 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50124 instead of $(srcdir)/genkernsyms.sh.
50126 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50127 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50128 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50129 instead of $(srcdir)/genkernsyms.sh.
50131 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50132 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50133 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50134 instead of $(srcdir)/genkernsyms.sh.
50136 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50139 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50141 (gensymlist.sh): New target.
50142 (genkernsyms.sh): Likewise.
50144 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50145 genkernsyms.sh.in and gensymlist.sh.in.
50147 * genkernsyms.sh: Removed.
50148 * gensymlist.sh: Likewise.
50150 * genkernsyms.sh.in: New file.
50151 * gensymlist.sh.in: Likewise.
50153 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50155 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50156 clobber "prefix", since we may have already set it manually.
50158 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50160 * kern/misc.c (abort): New alias for grub_abort.
50162 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50164 A new machine-specific function "grub_machine_set_prefix" is
50165 defined. This is called after loading modules, so that a prefix
50166 initialization can use modules. Also, this change adds an
50167 intensive debugging feature for the memory manager via the
50168 configure option "--enable-mm-debug".
50170 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50173 * kern/sparc64/ieee1275/init.c (abort): Removed.
50174 (grub_stop): Likewise.
50175 (grub_exit): New function.
50176 (grub_set_prefix): Renamed to ...
50177 (grub_machine_set_prefix): ... this.
50178 (grub_machine_init): Do not call grub_set_prefix.
50180 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50181 (grub_machine_set_prefix): ... this.
50182 (grub_machine_init): Do not call grub_set_prefix.
50184 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50185 (grub_machine_init): Do not set the prefix here.
50187 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50189 * kern/efi/init.c: Include grub/mm.h.
50190 (grub_efi_set_prefix): New function.
50192 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50193 (grub_efi_get_filename): New function.
50194 (grub_print_device_path): Renamed to ...
50195 (grub_efi_print_device_path): ... this.
50197 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50198 [MM_DEBUG] (grub_realloc): Likewise.
50199 [MM_DEBUG] (grub_free): Likewise.
50200 [MM_DEBUG] (grub_memalign): Likewise.
50201 [MM_DEBUG] (grub_mm_debug): New variable.
50202 [MM_DEBUG] (grub_debug_malloc): New function.
50203 [MM_DEBUG] (grub_debug_free): New function.
50204 [MM_DEBUG] (grub_debug_realloc): New function.
50205 [MM_DEBUG] (grub_debug_memalign): New function.
50207 * kern/misc.c (grub_abort): Print a newline to distinguish
50210 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50211 grub_set_root_dev after loading modules. This is necessary when
50212 setting a prefix depends on modules.
50214 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50215 (grub_efi_print_device_path): ... this.
50216 (grub_efi_get_filename): New prototype.
50217 (grub_efi_set_prefix): Likewise.
50219 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50221 (grub_efidisk_get_device_handle): New prototype.
50222 (grub_efidisk_get_device_name): Likewise.
50224 * include/grub/mm.h: Include config.h.
50225 (MM_DEBUG): Removed.
50226 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50227 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50228 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50229 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50230 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50231 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50232 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50233 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50234 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50236 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50238 * disk/efi/efidisk.c: Include grub/partition.h.
50239 (iterate_child_devices): New function.
50240 (add_device): First, compare only last device path nodes, so that
50241 devices are sorted by the types.
50242 (grub_efidisk_get_device_handle): New function.
50243 (grub_efidisk_get_device_name): Likewise.
50245 * configure.ac (--enable-mm-debug): New option to enable the
50246 memory manager debugging feature. This makes the binary much
50247 bigger, so is disabled by default.
50249 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50251 Use grub_abort instead of grub_stop, and grub_exit must be
50252 define in each architecture now. Also, this change adds support
50255 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50256 (grub_getkey): New function.
50257 (grub_term_get_current): Likewise.
50259 * util/i386/pc/grub-setup.c: Include grub/term.h.
50260 (grub_getkey): New function.
50261 (grub_term_get_current): Likewise.
50263 * util/misc.c (grub_stop): Renamed to ...
50264 (grub_exit): ... this.
50266 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50267 (grub_exit): ... this.
50268 (grub_machine_init): Use grub_abort instead of abort.
50269 (grub_stop): Removed.
50271 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50274 * kern/i386/pc/startup.S (grub_exit): New function.
50275 (cold_reboot): New label.
50277 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50278 (grub_efi_init): Call grub_efidisk_init.
50279 (grub_efi_fini): Call grub_efidisk_fini.
50281 * kern/efi/efi.c: Include grub/mm.h.
50282 (grub_efi_console_control_guid): Renamed to ...
50283 (console_control_guid): ... this.
50284 (grub_efi_loaded_image_guid): Renamed to ...
50285 (loaded_image_guid): ... this.
50286 (grub_efi_locate_handle): New function.
50287 (grub_efi_open_protocol): Likewise.
50288 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50289 GRUB_EFI_CONSOLE_CONTROL_GUID.
50290 (grub_efi_exit): Removed.
50291 (grub_stop): Likewise.
50292 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50293 (grub_exit): New function.
50294 (grub_print_device_path): Likewise.
50296 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50297 (grub_enter_rescue_mode): Register "exit".
50299 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50300 (grub_abort): New function.
50302 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50304 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50306 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50308 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50309 (grub_print_device_path): New prototype.
50310 (grub_efi_locate_handle): Likewise.
50311 (grub_efi_open_protocol): Likewise.
50313 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50314 * disk/efi/efidisk.c: Likewise.
50316 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50318 * include/grub/efi/console_control.h
50319 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50321 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50322 last 8 bytes as an array.
50323 (GRUB_EFI_DISK_IO_GUID): New macro.
50324 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50325 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50326 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50328 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50329 (struct grub_efi_device_path): Rename the member "sub_type" to
50331 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50332 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50333 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50334 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50335 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50336 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50337 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50338 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50339 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50340 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50341 (struct grub_efi_pci_device_path): New structure.
50342 (grub_efi_pci_device_path_t): New type.
50343 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50344 (struct grub_efi_pccard_device_path): New structure.
50345 (grub_efi_pccard_device_path_t): New type.
50346 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50347 (struct grub_efi_memory_mapped_device_path): New structure.
50348 (grub_efi_memory_mapped_device_path_t): New type.
50349 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50350 (struct grub_efi_vendor_device_path): New structure.
50351 (grub_efi_vendor_device_path_t): New type.
50352 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50353 (struct grub_efi_controller_device_path): New structure.
50354 (grub_efi_controller_device_path_t): New type.
50355 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50356 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50357 (struct grub_efi_acpi_device_path): New structure.
50358 (grub_efi_acpi_device_path_t): New type.
50359 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50360 (struct grub_efi_expanded_acpi_device_path): New structure.
50361 (grub_efi_expanded_acpi_device_path_t): New type.
50362 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50363 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50364 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50365 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50366 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50367 (struct grub_efi_atapi_device_path): New structure.
50368 (grub_efi_atapi_device_path_t): New type.
50369 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50370 (struct grub_efi_fibre_channel_device_path): New structure.
50371 (grub_efi_fibre_channel_device_path_t): New type.
50372 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50373 (struct grub_efi_1394_device_path): New structure.
50374 (grub_efi_1394_device_path_t): New type.
50375 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50376 (struct grub_efi_usb_device_path): New structure.
50377 (grub_efi_usb_device_path_t): New type.
50378 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50379 (struct grub_efi_usb_class_device_path): New structure.
50380 (grub_efi_usb_class_device_path_t): New type.
50381 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50382 (struct grub_efi_i2o_device_path): New structure.
50383 (grub_efi_i2o_device_path_t): New type.
50384 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50385 (struct grub_efi_mac_address_device_path): New structure.
50386 (grub_efi_mac_address_device_path_t): New type.
50387 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50388 (struct grub_efi_ipv4_device_path): New structure.
50389 (grub_efi_ipv4_device_path_t): New type.
50390 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50391 (struct grub_efi_ipv6_device_path): New structure.
50392 (grub_efi_ipv6_device_path_t): New type.
50393 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50394 (struct grub_efi_infiniband_device_path): New structure.
50395 (grub_efi_infiniband_device_path_t): New type.
50396 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50397 (struct grub_efi_uart_device_path): New structure.
50398 (grub_efi_uart_device_path_t): New type.
50399 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50400 (struct grub_efi_vendor_messaging_device_path): New structure.
50401 (grub_efi_vendor_messaging_device_path_t): New type.
50402 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50403 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50404 (struct grub_efi_hard_drive_device_path): New structure.
50405 (grub_efi_hard_drive_device_path_t): New type.
50406 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50407 (struct grub_efi_cdrom_device_path): New structure.
50408 (grub_efi_cdrom_device_path_t): New type.
50409 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50410 (struct grub_efi_vendor_media_device_path): New structure.
50411 (grub_efi_vendor_media_device_path_t): New type.
50412 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50413 (struct grub_efi_file_path_device_path): New structure.
50414 (grub_efi_file_path_device_path_t): New type.
50415 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50416 (struct grub_efi_protocol_device_path): New structure.
50417 (grub_efi_protocol_device_path_t): New type.
50418 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50419 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50420 (struct grub_efi_bios_device_path): New structure.
50421 (grub_efi_bios_device_path_t): New type.
50422 (struct grub_efi_disk_io): New structure.
50423 (grub_efi_disk_io_t): New type.
50424 (struct grub_efi_block_io_media): New structure.
50425 (grub_efi_block_io_media_t): New type.
50426 (struct grub_efi_block_io): New structure.
50427 (grub_efi_block_io_t): New type.
50429 * include/grub/misc.h (grub_stop): Removed.
50430 (grub_exit): New prototype.
50431 (grub_abort): Likewise.
50433 * include/grub/disk.h (enum grub_disk_dev_id): Added
50434 GRUB_DISK_DEVICE_EFIDISK_ID.
50436 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50437 disk/efi/efidisk.c.
50438 (kernel_syms.lst): Remove the target if an error occurs.
50440 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50442 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50443 as it was simply too buggy.
50445 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50447 * kern/misc.c (grub_lltoa): New function.
50448 (grub_vsprintf): Added support for the long long suffix,
50451 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50453 * Makefile.in (LDFLAGS): Add variable.
50454 (LD): Remove variable.
50455 * configure.ac: Add -m32 to LDFLAGS.
50456 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50457 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50458 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50459 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50460 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50462 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50463 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50464 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50466 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50468 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50469 length for unknown glyph.
50471 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50473 Add support for pre-loaded modules into the EFI port.
50475 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50476 completely. Accept one more argument DIR. The caller has changed.
50478 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50480 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50481 (grub_efi_loaded_image_guid): New variable.
50482 (grub_efi_get_loaded_image): New function.
50483 (grub_arch_modules_addr): Likewise.
50485 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50488 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50489 (struct grub_efi_loaded_image): New structure.
50490 (grub_efi_loaded_image_t): New type.
50492 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50494 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50495 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50496 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50498 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50500 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50502 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50504 * DISTLIST: Added include/grub/efi/console.h,
50505 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50506 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50508 * include/grub/efi/console.h: New file.
50509 * include/grub/efi/time.h: Likewise.
50510 * include/grub/i386/efi/kernel.h: Likewise.
50511 * kern/efi/init.c: Likewise.
50512 * kern/efi/mm.c: Likewise.
50513 * term/efi/console.c: Likewise.
50515 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50516 (grub_stop): Removed.
50517 (grub_get_rtc): Likewise.
50518 (grub_machine_init): Simply call grub_efi_init.
50519 (grub_machine_fini): Call grub_efi_fini.
50521 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50522 (grub_efi_output_string): Removed.
50523 (grub_efi_stall): New function.
50524 (grub_stop): Likewise.
50525 (grub_get_rtc): Likewise.
50527 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50528 (grub_efi_stall): New prototype.
50529 (grub_efi_allocate_pages): Likewise.
50530 (grub_efi_free_pages): Likewise.
50531 (grub_efi_get_memory_map): Likewise.
50532 (grub_efi_mm_init): Likewise.
50533 (grub_efi_mm_fini): Likewise.
50534 (grub_efi_init): Likewise.
50535 (grub_efi_fini): Likewise.
50537 * include/grub/i386/efi/time.h: Do not include
50538 grub/symbol.h. Include grub/efi/time.h.
50539 (GRUB_TICKS_PER_SECOND): Removed.
50540 (grub_get_rtc): Likewise.
50542 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50543 Added padding. The EFI spec is buggy.
50544 (GRUB_EFI_BLACK): New macro.
50545 (GRUB_EFI_BLUE): Likewise.
50546 (GRUB_EFI_GREEN): Likewise.
50547 (GRUB_EFI_CYAN): Likewise.
50548 (GRUB_EFI_RED): Likewise.
50549 (GRUB_EFI_MAGENTA): Likewise.
50550 (GRUB_EFI_BROWN): Likewise.
50551 (GRUB_EFI_LIGHTGRAY): Likewise.
50552 (GRUB_EFI_BRIGHT): Likewise.
50553 (GRUB_EFI_DARKGRAY): Likewise.
50554 (GRUB_EFI_LIGHTBLUE): Likewise.
50555 (GRUB_EFI_LIGHTGREEN): Likewise.
50556 (GRUB_EFI_LIGHTCYAN): Likewise.
50557 (GRUB_EFI_LIGHTRED): Likewise.
50558 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50559 (GRUB_EFI_YELLOW): Likewise.
50560 (GRUB_EFI_WHITE): Likewise.
50561 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50562 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50563 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50564 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50565 (GRUB_EFI_BACKGROUND_RED): Likewise.
50566 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50567 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50568 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50569 (GRUB_EFI_TEXT_ATTR): Likewise.
50571 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50572 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50573 (kernel_mod_HEADERS): Added efi/time.h.
50575 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50577 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50578 include/grub/efi/api.h, include/grub/efi/console_control.h,
50579 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50580 include/grub/i386/efi/time.h, kern/efi/efi.c,
50581 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50582 and util/i386/efi/grub-mkimage.c.
50584 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50586 * genmk.rb (PModule#rule): Do not export symbols if
50587 #{prefix}_EXPORTS is set to "no".
50589 * conf/i386-efi.mk: New file.
50590 * conf/i386-efi.rmk: Likewise.
50591 * include/grub/efi/api.h: Likewise.
50592 * include/grub/efi/console_control.h: Likewise.
50593 * include/grub/efi/efi.h: Likewise.
50594 * include/grub/efi/pe32.h: Likewise.
50595 * include/grub/i386/efi/time.h: Likewise.
50596 * kern/efi/efi.c: Likewise.
50597 * kern/i386/efi/init.c: Likewise.
50598 * kern/i386/efi/startup.S: Likewise.
50599 * util/i386/efi/grub-mkimage.c: Likewise.
50601 2006-04-17 Marco Gerards <marco@gnu.org>
50603 * include/grub/script.h: Include <grub/parser.h> and
50604 "grub_script.tab.h".
50605 (struct grub_lexer_param): New struct.
50606 (struct grub_parser_param): Likewise.
50607 (grub_script_create_arglist): Pass the state in an argument.
50608 (grub_script_add_arglist): Likewise.
50609 (grub_script_create_cmdline): Likewise.
50610 (grub_script_create_cmdblock): Likewise.
50611 (grub_script_create_cmdif): Likewise.
50612 (grub_script_create_cmdmenu): Likewise.
50613 (grub_script_add_cmd): Likewise.
50614 (grub_script_arg_add): Likewise.
50615 (grub_script_lexer_ref): Likewise.
50616 (grub_script_lexer_deref): Likewise.
50617 (grub_script_lexer_record_start): Likewise.
50618 (grub_script_lexer_record_stop): Likewise.
50619 (grub_script_mem_record): Likewise.
50620 (grub_script_mem_record_stop): Likewise.
50621 (grub_script_malloc): Likewise.
50622 (grub_script_yylex): Likewise.
50623 (grub_script_yyparse): Likewise.
50624 (grub_script_yyerror): Likewise.
50625 (grub_script_yylex): Likewise.
50626 (grub_script_lexer_init): Return the state.
50628 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50629 (grub_script_lexer_done): Likewise.
50630 (grub_script_lexer_getline): Likewise.
50631 (grub_script_lexer_refs): Likewise.
50632 (script): Likewise.
50633 (newscript): Likewise.
50634 (record): Likewise.
50635 (recording): Likewise.
50636 (recordpos): Likewise.
50637 (recordlen): Likewise.
50638 (grub_script_lexer_init): Return the state instead of setting
50640 (grub_script_lexer_ref): Use the newly added argument for state
50641 instead of globals.
50642 (grub_script_lexer_deref): Likewise.
50643 (grub_script_lexer_record_start): Likewise.
50644 (grub_script_lexer_record_stop): Likewise.
50645 (recordchar): Likewise.
50646 (nextchar): Likewise.
50647 (grub_script_yylex2): Likewise.
50648 (grub_script_yylex): Likewise.
50649 (grub_script_yyerror): Likewise.
50651 * normal/parser.y (func_mem): Removed variable.
50652 (menu_entry): Likewise.
50654 (%lex-param): New parser option.
50655 (%parse-param): Likewise.
50656 (script): Always return the AST.
50657 (argument): Pass the state around.
50658 (arguments): Likewise.
50659 (grubcmd): Likewise.
50660 (commands): Likewise.
50661 (function): Likewise.
50662 (menuentry): Likewise.
50663 (if_statement): Likewise.
50666 * normal/script.c (grub_script_memused): Removed variable.
50667 (grub_script_parsed): Likewise.
50668 (grub_script_malloc): Added a state argument. Use that instead of
50670 (grub_script_mem_record): Likewise.
50671 (grub_script_mem_record_stop): Likewise.
50672 (grub_script_arg_add): Likewise.
50673 (grub_script_add_arglist): Likewise.
50674 (grub_script_create_cmdline): Likewise.
50675 (grub_script_create_cmdif): Likewise.
50676 (grub_script_create_cmdmenu): Likewise.
50677 (grub_script_add_cmd): Likewise.
50678 (grub_script_parse): Setup the state before calling the parser.
50680 2006-04-16 Marco Gerards <marco@gnu.org>
50682 * normal/command.c (grub_command_init): Remove the title command.
50684 * normal/lexer.c (grub_script_yylex): Renamed from this...
50685 (grub_script_yylex2): ... to this.
50686 (grub_script_yylex): New function. Temporary
50687 introduced to filter some tokens.
50688 (grub_script_yyerror): Print a newline.
50690 * normal/main.c (read_config_file): Output information about the
50691 lines that contain errors. Wait for a key after all lines have
50692 been processed. Don't return an empty menu.
50694 * normal/parser.y (func_mem): Don't initialize.
50695 (menu_entry): Likewise.
50696 (err): New variable.
50697 (script): Don't return anything when an error was encountered.
50698 (ws, returns): Removed rules.
50699 (argument): Disabled concatenated variable support.
50700 (arguments): Remove explicit separators.
50701 (grubcmd): Likewise.
50702 (function): Likewise.
50703 (menuentry): Likewise.
50705 (commands): Likewise. Add error handling.
50707 * normal/script.c (grub_script_create_cmdline): If
50708 `grub_script_parsed' is 0, assume the parser encountered an error.
50710 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50712 * configure.ac: Add support for EFI. Fix the typo
50713 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50715 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50717 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50718 foreign multibyte characters should be shown correctly.
50720 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50722 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50724 (read_config_file): Made it to close file before returning.
50726 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50728 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50729 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50730 video/i386/pc/vbefill.c.
50732 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50733 video/i386/pc/vbefill.c.
50735 * include/grub/video.h (grub_video_blit_format): New enum.
50736 (grub_video_mode_info): Added new member blit_format.
50737 (grub_video_get_blit_format): New function prototype.
50739 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50740 function prototype.
50741 (grub_video_vbe_map_rgb): Likewise.
50742 (grub_video_vbe_unmap_color): Likewise.
50744 * include/grub/i386/pc/vbeblit.h: New file.
50746 * include/grub/i386/pc/vbefill.h: New file.
50748 * video/video.c (grub_video_get_blit_format): New function.
50749 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50750 (grub_video_vbe_map_rgb): Likewise.
50751 (grub_video_vbe_unmap_color): Likewise.
50753 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50755 (grub_video_vbe_blit_render_target): Changed to use more optimized
50757 (grub_video_vbe_setup): Added detection for optimized settings.
50758 (grub_video_vbe_create_render_target): Likewise.
50760 * video/i386/pc/vbeblit.c: New file.
50762 * video/i386/pc/vbefill.c: New file.
50764 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50766 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50769 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50770 parsing to support both hex and dec ranges. If filename was missing
50771 show usage information.
50773 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50775 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50776 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50778 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50779 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50780 (video_mod_SOURCES): Added.
50781 (video_mod_CFLAGS): Likewise.
50782 (video_mod_LDFLAGS): Likewise.
50783 (gfxterm_mod_SOURCES): Likewise.
50784 (gfxterm_mod_CFLAGS): Likewise.
50785 (gfxterm_mod_LDFLAGS): Likewise.
50786 (videotest_mod_SOURCES): Likewise.
50787 (videotest_mod_CFLAGS): Likewise.
50788 (videotest_mod_LDFLAGS): Likewise.
50789 (vesafb_mod_SOURCES): Removed.
50790 (vesafb_mod_CFLAGS): Likewise.
50791 (vesafb_mod_LDFLAGS): Likewise.
50792 (vga_mod_SOURCES): Likewise.
50793 (vga_mod_CFLAGS): Likewise.
50794 (vga_mod_LDFLAGS): Likewise.
50796 * commands/videotest.c: New file.
50798 * font/manager.c (fill_with_default_glyph): Modified to use
50800 (grub_font_get_glyph): Likewise.
50801 (fontmanager): Renamed from this...
50802 (font_manager): ... to this.
50804 * include/grub/font.h (grub_font_glyph): Added new structure.
50805 (grub_font_get_glyph): Modified to use grub_font_glyph.
50807 * include/grub/misc.h (grub_abs): Added as inline function.
50809 * include/grub/video.h: New file.
50811 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50812 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50813 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50814 (grub_vbe_get_controller_info): Renamed from this...
50815 (grub_vbe_bios_get_controller_info): ... to this.
50816 (grub_vbe_get_mode_info): Renamed from this...
50817 (grub_vbe_bios_get_mode_info): ... to this.
50818 (grub_vbe_set_mode): Renamed from this...
50819 (grub_vbe_bios_set_mode): ... to this.
50820 (grub_vbe_get_mode): Renamed from this...
50821 (grub_vbe_bios_get_mode): ... to this.
50822 (grub_vbe_set_memory_window): Renamed from this...
50823 (grub_vbe_bios_set_memory_window): ... to this.
50824 (grub_vbe_get_memory_window): Renamed from this...
50825 (grub_vbe_bios_get_memory_window): ... to this.
50826 (grub_vbe_set_scanline_length): Renamed from this...
50827 (grub_vbe_set_scanline_length): ... to this.
50828 (grub_vbe_get_scanline_length): Renamed from this...
50829 (grub_vbe_bios_get_scanline_length): ... to this.
50830 (grub_vbe_set_display_start): Renamed from this...
50831 (grub_vbe_bios_set_display_start): ... to this.
50832 (grub_vbe_get_display_start): Renamed from this...
50833 (grub_vbe_bios_get_display_start): ... to this.
50834 (grub_vbe_set_palette_data): Renamed from this...
50835 (grub_vbe_bios_set_palette_data): ... to this.
50836 (grub_vbe_set_pixel_rgb): Removed.
50837 (grub_vbe_set_pixel_index): Likewise.
50839 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50841 (grub_vbe_bios_get_controller_info): ... to this.
50842 (grub_vbe_get_mode_info): Renamed from this...
50843 (grub_vbe_bios_get_mode_info): ... to this.
50844 (grub_vbe_set_mode): Renamed from this...
50845 (grub_vbe_bios_set_mode): ... to this.
50846 (grub_vbe_get_mode): Renamed from this...
50847 (grub_vbe_bios_get_mode): ... to this.
50848 (grub_vbe_set_memory_window): Renamed from this...
50849 (grub_vbe_bios_set_memory_window): ... to this.
50850 (grub_vbe_get_memory_window): Renamed from this...
50851 (grub_vbe_bios_get_memory_window): ... to this.
50852 (grub_vbe_set_scanline_length): Renamed from this...
50853 (grub_vbe_set_scanline_length): ... to this.
50854 (grub_vbe_get_scanline_length): Renamed from this...
50855 (grub_vbe_bios_get_scanline_length): ... to this.
50856 (grub_vbe_set_display_start): Renamed from this...
50857 (grub_vbe_bios_set_display_start): ... to this.
50858 (grub_vbe_get_display_start): Renamed from this...
50859 (grub_vbe_bios_get_display_start): ... to this.
50860 (grub_vbe_set_palette_data): Renamed from this...
50861 (grub_vbe_bios_set_palette_data): ... to this.
50862 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50863 getting corrupted after calling it. Added more pushes and pops.
50864 (grub_vbe_bios_set_mode): Likewise.
50865 (grub_vbe_bios_get_mode): Likewise.
50866 (grub_vbe_bios_get_memory_window): Likewise.
50867 (grub_vbe_bios_set_scanline_length): Likewise.
50868 (grub_vbe_bios_get_scanline_length): Likewise.
50869 (grub_vbe_bios_get_display_start): Likewise.
50870 (grub_vbe_bios_set_palette_data): Likewise.
50872 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50873 (cl_insert): Likewise.
50874 (cl_delete): Likewise.
50876 * term/gfxterm.c: New file.
50878 * term/i386/pc/vesafb.c: Removed file.
50880 * video/video.c: New file.
50882 * video/i386/pc/vbe.c (real2pm): Added new function.
50883 (grub_video_vbe_draw_pixel): Likewise.
50884 (grub_video_vbe_get_video_ptr): Likewise.
50885 (grub_video_vbe_get_pixel): Likewise
50886 (grub_video_vbe_init): Likewise.
50887 (grub_video_vbe_fini): Likewise.
50888 (grub_video_vbe_setup): Likewise.
50889 (grub_video_vbe_get_info): Likewise.
50890 (grub_video_vbe_set_palette): Likewise.
50891 (grub_video_vbe_get_palette): Likewise.
50892 (grub_video_vbe_set_viewport): Likewise.
50893 (grub_video_vbe_get_viewport): Likewise.
50894 (grub_video_vbe_map_color): Likewise.
50895 (grub_video_vbe_map_rgb): Likewise.
50896 (grub_video_vbe_map_rgba): Likewise.
50897 (grub_video_vbe_unmap_color): Likewise.
50898 (grub_video_vbe_fill_rect): Likewise.
50899 (grub_video_vbe_blit_glyph): Likewise.
50900 (grub_video_vbe_blit_bitmap): Likewise.
50901 (grub_video_vbe_blit_render_target): Likewise.
50902 (grub_video_vbe_scroll): Likewise.
50903 (grub_video_vbe_swap_buffers): Likewise.
50904 (grub_video_vbe_create_render_target): Likewise.
50905 (grub_video_vbe_delete_render_target): Likewise.
50906 (grub_video_vbe_set_active_render_target): Likewise.
50907 (grub_vbe_set_pixel_rgb): Remove function.
50908 (grub_vbe_set_pixel_index): Likewise.
50909 (index_color_mode): Remove static variable.
50910 (active_mode): Likewise.
50911 (framebuffer): Likewise.
50912 (bytes_per_scan_line): Likewise.
50913 (grub_video_vbe_adapter): Added new static variable.
50914 (framebuffer): Likewise.
50915 (render_target): Likewise.
50916 (initial_mode): Likewise.
50917 (mode_in_use): Likewise.
50918 (mode_list): Likewise.
50920 2006-03-10 Marco Gerards <marco@gnu.org>
50922 * configure.ac (AC_INIT): Bumped to 1.93.
50924 * DISTLIST: Added `include/grub/hfs.h'.
50926 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50928 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50929 18H, which might help the BIOS falling back to next boot media.
50931 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50933 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50934 Poe Chen <poe.poechen@gmail.com>.
50936 2006-01-17 Marco Gerards <marco@gnu.org>
50938 * include/grub/normal.h: Include <grub/script.h>.
50939 (grub_command_list): Removed struct.
50940 (grub_command_list_t): Removed type.
50941 (grub_menu_entry): Remove members `num' and `command_list'. Add
50942 members `commands' and `sourcecode'.
50943 * include/grub/script.h: Add inclusion guards.
50944 (grub_script_cmd_menuentry): New struct.
50945 (grub_script_execute_menuentry): New prototype.
50946 (grub_script_lexer_record_start): Likewise.
50947 (grub_script_lexer_record_stop): Likewise.
50948 * normal/execute.c (grub_script_execute_menuentry): New function.
50949 * normal/lexer.c (record, recording, recordpos, recordlen): New
50951 (grub_script_lexer_record_start): New function.
50952 (grub_script_lexer_record_stop): Likewise.
50953 (recordchar): Likewise.
50954 (nextchar): Likewise.
50955 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50956 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50957 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50958 (current_menu): New variable.
50959 (free_menu): Mainly rewritten.
50960 (grub_normal_menu_addentry): New function.
50961 (read_config_file): Rewritten.
50962 * normal/menu.c (run_menu_entry): Mainly rewritten.
50963 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50965 (run): Mainly rewritten.
50966 * normal/parser.y (menu_entry): New variable.
50967 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50968 (menuentry): New rule.
50969 (command): Add `menuentry'.
50970 (if_statement): Allow additional returns before `fi'.
50971 * normal/script.c (grub_script_create_cmdmenu): New function.
50973 2006-01-03 Marco Gerards <marco@gnu.org>
50975 * INSTALL: GNU Bison is required.
50976 * configure.ac: Rewritten the test to detect Bison.
50977 * Makefile.in (YACC): New variable. Reported by Xun Sun
50978 <xun.sun.cn@gmail.com>.
50980 2006-01-03 Marco Gerards <marco@gnu.org>
50982 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50983 the HFS+ filesystem to filesystem blocks.
50984 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50985 GCC warning is silenced.
50987 2006-01-03 Marco Gerards <marco@gnu.org>
50989 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50990 read from disk from big endian to host byte order.
50992 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50994 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50996 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50997 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50998 embedded HFS+ filesystem.
50999 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51000 (grub_hfs_sblock): Move from here...
51001 * include/grub/hfs.h: To here... New file.
51002 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51004 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51006 (grub_hfsplus_volheader): Change type of member `magic' to
51008 (grub_hfsplus_data): Add new member `embedded_offset'.
51009 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51011 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51012 Calculate the offset.
51014 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51016 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51018 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51020 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51022 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51023 ENV->NAME is NULL after allocating ENV->VALUE.
51025 2005-12-25 Marco Gerards <marco@gnu.org>
51027 * kern/env.c (grub_env_set): Rewritten the error handling code.
51029 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51031 * geninit.sh: Made more robust, and more portable.
51033 2005-12-25 Marco Gerards <marco@gnu.org>
51035 Add support for Apple HFS+ filesystems.
51037 * fs/hfsplus.c: New file.
51039 * DISTLIST: Added `fs/hfsplus.c'.
51041 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51042 (hfsplus_mod_SOURCES): New variable.
51043 (hfsplus_mod_CFLAGS): Likewise.
51044 (hfsplus_mod_LDFLAGS): Likewise.
51045 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51046 (grub_setup_SOURCES): Likewise.
51047 (grub_mkdevicemap_SOURCES): Likewise.
51048 (grub_emu_SOURCES): Likewise.
51049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51051 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51053 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51055 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51057 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51058 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51059 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51060 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51061 normal/lexer.c, normal/parser.y, normal/script.c, and
51063 Removed kern/sparc64/cache.c.
51065 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51066 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51069 * configure.ac (AC_INIT): Bumped to 1.92.
51071 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51073 * kern/err.c (grub_error_push): Added new function to support error
51075 (grub_error_pop): Likewise.
51076 (grub_error_stack_items): New local variable to support error stacks.
51077 (grub_error_stack_pos): Likewise.
51078 (grub_error_stack_assert): Likewise.
51079 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51081 (grub_print_error): Added support to print errors from error stack.
51083 * include/grub/err.h (grub_error_push): Added function prototype.
51084 (grub_error_pop): Likewise.
51086 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51088 * configure.ac: Accept `powerpc64' as host_cpu.
51089 (amd64): Rename to `biarch32'.
51091 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51092 non-cacheline-aligned addresses.
51094 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51095 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51096 if `size' is non-zero.
51098 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51100 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51101 and `cd' to make sure the filename is not prefixed with a
51103 (pkgdata_MODULES): Add `gpt.mod'.
51104 (gpt_mod_SOURCES): New variable.
51105 (gpt_mod_CFLAGS): Likewise.
51106 (gpt_mod_LDFLAGS): Likewise.
51108 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51110 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51113 * partmap/gpt.c: New file.
51115 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51116 GPT partition map is detected.
51118 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51120 * commands/i386/pc/play.c: New file.
51121 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51122 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51125 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51127 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51128 ((unused))' to silence gcc warning.
51130 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51132 * configure.ac: Correct `AC_PROG_YACC' test.
51134 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51136 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51137 check before installing files.
51139 2005-11-22 Mike Small <smallm@panix.com>
51141 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51142 number regex so multidigit numbers are recognized correctly.
51144 2005-11-22 Mike Small <smallm@panix.com>
51146 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51147 debugging message before attempting to claim memory.
51148 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51149 multiple addresses in case of failure.
51151 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51153 * term/tparm.c (get_space): Remove empty `if' statement.
51155 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51157 * kern/parser.c (check_varstate): Rename `state' to 's'.
51159 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51161 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51162 variable definitions to the beginning of each function. Sort stack
51164 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51165 `buf' argument to `char *'.
51167 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51169 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51170 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51171 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51172 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51173 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51174 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51175 configfile.mod, search.mod, gzio.mod and test.mod.
51176 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51177 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51178 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51179 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51180 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51181 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51182 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51183 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51184 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51185 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51186 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51187 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51188 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51189 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51190 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51191 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51192 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51193 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51194 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51195 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51196 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51197 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51198 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51200 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51202 (pkgdata_MODULES): Add test.mod.
51204 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51206 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51207 appending to variables with "+=".
51208 (PModule): Use full pathname to generate *.lst filenames.
51210 * Makefile.in: Fixed list rules moved from genmk.rb.
51211 (.DELETE_ON_ERROR): New special target.
51212 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51214 * conf/i386-pc.rmk: Include conf/common.mk.
51215 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51216 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51217 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51218 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51219 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51220 configfile.mod, search.mod, gzio.mod and test.mod.
51221 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51222 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51223 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51224 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51225 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51226 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51227 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51228 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51229 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51230 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51231 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51232 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51233 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51234 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51235 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51236 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51237 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51238 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51239 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51240 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51241 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51242 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51243 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51245 * conf/common.rmk: ... to here. New file.
51247 * conf/common.mk: New file.
51249 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51251 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51252 (grub_script.tab.c): ... here.
51254 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51255 (grub_script.tab.c): ... here.
51257 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51258 (grub_script.tab.c): ... here.
51260 * normal/command.c (grub_command_find): Fixed a memory leak of
51261 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51263 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51265 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51266 "@" which marks the start of a comment on ARM.
51267 (VARIABLE): Likewise.
51269 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51271 Add support for Linux/ADFS partition tables.
51273 * partmap/acorn.c: New file.
51275 * include/grub/acorn_filecore.h: Likewise.
51277 * DISTLIST: Added `partmap/acorn.c' and
51278 `include/grub/acorn_filecore.h'.
51280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51282 (pkgdata_MODULES): Add `acorn.mod'.
51283 (acorn_mod_SOURCES): New variable.
51284 (acorn_mod_CFLAGS): Likewise.
51286 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51288 (pkgdata_MODULES): Add `acorn.mod'.
51289 (acorn_mod_SOURCES): New variable.
51290 (acorn_mod_CFLAGS): Likewise.
51292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51293 (pkgdata_MODULES): Add `acorn.mod'.
51294 (acorn_mod_SOURCES): New variable.
51295 (acorn_mod_CFLAGS): Likewise.
51296 (acorn_mod_LDFLAGS): Likewise.
51298 * include/types.h (grub_disk_addr_t): New typedef.
51300 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51302 * geninit.sh: New file.
51304 * geninitheader.sh: Likewise.
51306 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51307 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51308 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51309 * commands/configfile.c (grub_configfile_init)
51310 (grub_configfile_fini): Likewise.
51311 * commands/default.c (grub_default_init, grub_default_fini):
51313 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51314 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51315 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51316 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51318 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51319 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51321 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51322 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51324 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51326 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51328 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51329 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51330 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51331 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51332 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51333 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51334 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51335 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51336 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51337 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51338 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51339 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51340 * partmap/amiga.c (grub_amiga_partition_map_init)
51341 (grub_amiga_partition_map_fini): Likewise.
51342 * partmap/apple.c (grub_apple_partition_map_init)
51343 (grub_apple_partition_map_fini): Likewise.
51344 * partmap/pc.c (grub_pc_partition_map_init)
51345 (grub_pc_partition_map_fini): Likewise.
51346 * partmap/sun.c (grub_sun_partition_map_init,
51347 grub_sun_partition_map_fini): Likewise.
51348 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51351 * util/grub-emu.c: Include <grub_modules_init.h>.
51352 (main): Don't initialize and de-initialize any modules directly,
51353 use `grub_init_all' and `grub_fini_all' instead.
51355 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51356 `grub_vesafb_mod_init'.
51357 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51359 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51360 `grub_vga_mod_init'. Updated all users.
51361 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51363 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51364 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51367 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51368 Generate a function to initialize the module in utilities.
51369 Updated all callers.
51370 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51371 initialize the module in utilities. Updated all callers.
51373 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51375 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51376 escape sequence and a literal ^L to clear the screen.
51378 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51379 when returning from Open Firmware.
51381 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51383 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51384 (grub_ofconsole_height): Likewise.
51385 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51386 manually insert a '\n'.
51387 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51388 `grub_ofconsole_height'. Return early if these are already set.
51390 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51392 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51393 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51394 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51395 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51396 and `normal/script.c'.
51397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51399 (test_mod_SOURCES): New variable.
51400 (test_mod_CFLAGS): Likewise.
51401 (test_mod_LDFLAGS): Likewise.
51402 (pkgdata_MODULES): Add `test.mod'.
51403 (grub_script.tab.c): New rule.
51404 (grub_script.tab.h): Likewise.
51406 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51409 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51410 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51411 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51412 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51413 (test_mod_SOURCES): New variable.
51414 (test_mod_CFLAGS): Likewise.
51415 (pkgdata_MODULES): Add `test.mod'.
51416 (grub_script.tab.c): New rule.
51417 (grub_script.tab.h): Likewise.
51419 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51421 Add initial scripting support.
51423 * commands/test.c: New file.
51424 * include/grub/script.h: Likewise.
51425 * normal/execute.c: Likewise.
51426 * normal/function.c: Likewise.
51427 * normal/lexer.c: Likewise.
51428 * normal/parser.y: Likewise.
51429 * normal/script.c: Likewise.
51431 * configure.ac: Add `AC_PROG_YACC' test.
51433 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51434 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51435 `normal/function.c' and `normal/script.c'.
51436 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51437 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51438 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51440 (pkgdata_MODULES): Add `test.mod'.
51441 (grub_script.tab.c): New rule.
51442 (grub_script.tab.h): Likewise.
51444 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51446 * include/grub/normal.h (grub_test_init): New prototype.
51447 (grub_test_fini): Likewise.
51449 * normal/command.c: Include <grub/script.h>.
51450 (grub_command_execute): Rewritten.
51452 * util/grub-emu.c (main): Call `grub_test_init' and
51455 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51457 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51459 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51460 there are no pending characters.
51462 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51464 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51465 `grub_strndup' to drop device arguments. Replace unnecessary
51466 `grub_strndup' with `grub_strdup'.
51468 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51470 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51471 `debug' environment variable has been set.
51473 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51475 * Makefile.in (install-local): Use $(DATA).
51476 (uninstall): Likewise.
51477 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51478 (sbin_UTILITIES): ... to here.
51479 (sbin_SCRIPTS): New variable.
51480 (grub_install_SOURCES): New variable.
51481 * util/powerpc/ieee1275/grub-install.in: New file.
51482 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51484 (add_segments): Call `grub_util_get_path'.
51486 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51488 From Timothy Baldwin:
51489 * commands/ls.c (grub_ls_list_files): Close FILE with
51491 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51493 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51495 * include/grub/parser.h: New file.
51497 * kern/parser.c: Likewise.
51499 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51500 (grub_setup_SOURCES): Likewise.
51501 (grub_probefs_SOURCES): Likewise.
51502 (grub_emu_SOURCES): Likewise.
51503 (kernel_img_HEADERS): Add `parser.h'.
51505 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51506 (grub_emu_SOURCES): Add `kern/parser.c'.
51507 (grubof_SOURCES): Likewise.
51509 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51510 (grubof_SOURCES): Add `kern/parser.c'.
51512 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51514 * kern/misc.c (grub_split_cmdline): Removed function.
51516 * kern/rescue.c: Include <grub/parser.h>.
51517 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51518 of `grub_split_cmdline'.
51520 * normal/command.c: Include <grub/parser.h>.
51521 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51522 of `grub_split_cmdline'.
51524 * normal/completion.c: Include <grub/parser.h>.
51525 (cmdline_state): New variable.
51526 (iterate_dir): End the filename with a quote depending on the
51527 command line state.
51528 (get_state): new function.
51529 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51530 split the arguments and determine the current argument. When the
51531 argument string is not quoted, escape all spaces.
51533 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51535 * normal/sparc64/setjmp.S: New file.
51537 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51539 * include/grub/sparc64/libgcc.h: New file.
51540 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51541 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51542 normal/sparc64/setjmp.c.
51544 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51546 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51547 * kern/sparc64/cache.S: New file.
51548 * kern/sparc64/cache.c: Removed.
51549 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51550 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51552 (COMMON_LDFLAGS): Add -melf64_sparc.
51553 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51554 (grubof_SOURCES): Use cache.S instead of cache.c.
51555 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51556 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51557 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51559 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51560 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51561 (linux_mod_CFLAGS): Commented out.
51562 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51563 out because module isn't built.
51564 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51565 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51566 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51567 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51568 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51569 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51570 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51571 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51572 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51573 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51574 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51575 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51576 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51577 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51579 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51581 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51582 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51583 longer, because HFS should not be used on PC.
51585 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51587 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51588 consistently within the loop.
51590 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51592 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51593 directory can not be read.
51595 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51597 * configure.ac (AC_INIT): Increase the version number to 1.91.
51599 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51600 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51601 term/i386/pc/serial.c.
51603 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51605 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51606 file size must be permitted.
51608 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51609 between %ah and %al.
51611 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51613 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51615 Call the hook with a NUL-terminated filename.
51616 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51619 * kern/term.c (cursor_state): New variable.
51620 (grub_term_set_current): Reset the cursor state on a new
51622 (grub_setcursor): Rewritten to use CURSOR_STATE.
51623 (grub_getcursor): New function.
51625 * include/grub/term.h (grub_getcursor): New prototype.
51627 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51628 integers on ARM. Reported by Timothy Baldwin
51629 <T.E.Baldwin99@members.leeds.ac.uk>.
51631 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51633 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51635 (grub_sfs_dir): Likewise.
51637 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51639 Add support for the SFS filesystem.
51641 * fs/sfs.c: New file.
51643 * DISTLIST: Added `fs/sfs.c'.
51645 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51646 (grub_probefs_SOURCES): Likewise.
51647 (grub_emu_SOURCES): Likewise.
51648 (pkgdata_MODULES): Add `sfs.mod'.
51649 (sfs_mod_SOURCES): New variable.
51650 (sfs_mod_CFLAGS): Likewise.
51651 (sfs_mod_LDFLAGS): Likewise.
51653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51654 (pkgdata_MODULES): Add `sfs.mod'.
51655 (sfs_mod_SOURCES): New variable.
51656 (sfs_mod_CFLAGS): Likewise.
51658 * util/grub-emu.c (main): Call `grub_sfs_init' and
51661 * include/grub/fs.h (grub_sfs_init): New prototype.
51662 (grub_sfs_fini): Likewise.
51664 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51666 Add support for the AFFS filesystem.
51668 * fs/affs.c: New file.
51670 * DISTLIST: Added `fs/affs.c'.
51672 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51673 (grub_probefs_SOURCES): Likewise.
51674 (grub_emu_SOURCES): Likewise.
51675 (pkgdata_MODULES): Add `affs.mod'.
51676 (affs_mod_SOURCES): New variable.
51677 (affs_mod_CFLAGS): Likewise.
51678 (affs_mod_LDFLAGS): Likewise.
51680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51681 (pkgdata_MODULES): Add `affs.mod'.
51682 (affs_mod_SOURCES): New variable.
51683 (affs_mod_CFLAGS): Likewise.
51685 * util/grub-emu.c (main): Call `grub_affs_init' and
51688 * include/grub/fs.h (grub_affs_init): New prototype.
51689 (grub_affs_fini): Likewise.
51691 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51693 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51695 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51697 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51700 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51703 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51704 (COMMON_LDFLAGS): New variable.
51705 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51706 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51707 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51708 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51709 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51710 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51711 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51712 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51713 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51714 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51715 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51716 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51717 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51718 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51719 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51721 (normal_mod_ASFLAGS): Add `-m32'.
51723 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51724 (grub_host_size_t, grub_host_ssize_t): New types.
51725 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51726 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51727 `GRUB_HOST_SIZEOF_VOID_P'.
51729 * include/grub/kernel.h (struct grub_module_header): Type of
51730 member offset changed to `grub_host_off_t'. Type of member size
51731 changed to `grub_host_size_t'.
51732 (struct grub_module_info): Type of member offset changed to
51733 `grub_host_off_t'. Type of member size changed to
51734 `grub_host_size_t'.
51736 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51738 Make GRUB's kernel compliant to Multiboot Specification.
51740 * kern/i386/pc/startup.S (multiboot_header): New label.
51741 (multiboot_entry): Likewise.
51742 (multiboot_trampoline): Likewise.
51744 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51745 Increased to 0x4A0.
51747 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51748 put parentheses after a question mark.
51749 [!GRUB_UTIL] (my_mod): New variable.
51751 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51753 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51755 Adds support for the XFS filesystem. Btrees are not supported
51758 * fs/xfs.c: New file.
51760 * DISTLIST: Added `fs/xfs.c'.
51762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51763 (grub_probefs_SOURCES): Likewise.
51764 (grub_emu_SOURCES): Likewise.
51765 (pkgdata_MODULES): Add `xfs.mod'.
51766 (xfs_mod_SOURCES): New variable.
51767 (xfs_mod_CFLAGS): Likewise.
51769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51770 (pkgdata_MODULES): Add `xfs.mod'.
51771 (xfs_mod_SOURCES): New variable.
51772 (xfs_mod_CFLAGS): Likewise.
51774 * util/grub-emu.c (main): Call `grub_xfs_init' and
51777 * include/grub/fs.h (grub_xfs_init): New prototype.
51778 (grub_xfs_fini): Likewise.
51781 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51783 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51784 color modes, allow greater than 16 colors to be configured as
51787 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51789 * normal/completion.c (complete_arguments): Add the qualifier
51790 const into OPTIONS.
51792 From Omniflux <omniflux+lists@omniflux.com>:
51793 * include/grub/terminfo.h: New file.
51794 * include/grub/tparm.h: Likewise.
51795 * include/grub/i386/pc/serial.h: Likewise.
51796 * term/terminfo.c: Likewise.
51797 * term/tparm.c: Likewise.
51798 * term/i386/pc/serial.c: Likewise.
51799 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51801 (terminfo_mod_SOURCES): New variable.
51802 (terminfo_mod_CFLAGS): Likewise.
51803 (serial_mod_SOURCES): Likewise.
51804 (serial_mod_CFLAGS): Likewise.
51806 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51808 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51809 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51810 and kern/powerpc/ieee1275/cmain.c, respectively.
51812 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51813 * kern/powerpc/ieee1275/crt0.S: ... here.
51815 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51816 * kern/powerpc/ieee1275/cmain.c: ... here.
51818 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51819 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51820 instead of boot/powerpc/ieee1275/crt0.S and
51821 boot/powerpc/ieee1275/cmain.c, respectively.
51823 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51824 sectors. It was not used anyway.
51826 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51828 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51829 `unused parameter' warning.
51831 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51833 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51835 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51838 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51840 * include/grub/normal.h (enum grub_completion_type): Added
51841 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51843 * normal/cmdline.c (print_completion): Handle
51844 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51845 * normal/menu_entry.c (store_completion): Likewise.
51847 * normal/completion.c (complete_arguments): New function.
51848 (grub_normal_do_completion): Call `complete_arguments' when the
51849 current words start with a dash.
51851 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51853 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51854 `gzio.mod' instead of `io.mod').
51856 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51858 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51859 (DISTDIRS): Added io and video.
51860 Rewrite the search routine to make an output consistently.
51862 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51863 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51864 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51865 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51866 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51867 util/powerpc/ieee1275/misc.c.
51869 * include/grub/gzio.h: New file.
51870 * io/gzio.c: Likewise.
51872 * kern/file.c (grub_file_close): Call grub_device_close only if
51873 FILE->DEVICE is not NULL.
51875 * include/grub/mm.h [!NULL] (NULL): New macro.
51877 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51880 (pkgdata_MODULES): Added gzio.mod.
51881 (gzio_mod_SOURCES): New variable.
51882 (gzio_mod_CFLAGS): Likewise.
51884 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51885 (pkgdata_MODULES): Added gzio.mod.
51886 (gzio_mod_SOURCES): New variable.
51887 (gzio_mod_CFLAGS): Likewise.
51889 * commands/cat.c: Include grub/gzio.h.
51890 (grub_cmd_cat): Use grub_gzfile_open instead of
51893 * commands/cmp.c: Include grub/gzio.h.
51894 (grub_cmd_cmp): Use grub_gzfile_open instead of
51897 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51898 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51900 (grub_rescue_cmd_module): Likewise.
51902 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51904 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51905 kern/sparc64/ieee1275/init.c because it contains _start.
51906 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51908 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51910 * configure.ac: Add support for sparc64 host with ieee1275
51912 * configure: Generated from configure.ac.
51913 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51915 (grub_ofdisk_read): Likewise.
51916 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51917 pointers as (void *) to remove a warning.
51918 (grub_ofdisk_close): Likewise.
51919 (grub_ofdisk_read): Likewise.
51920 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51921 returns, so make it return void to remove a warning.
51922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51923 Corresponding prototype change.
51924 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51925 values, and cast the pointers as (void *) to remove a warning.
51926 (grub_mm_dump): Likewise.
51927 * conf/sparc64-ieee1275.mk: New file.
51928 * conf/sparc64-ieee1275.rmk: Likewise.
51929 * include/grub/sparc64/setjmp.h: Likewise.
51930 * include/grub/sparc64/types.h: Likewise.
51931 * include/grub/sparc64/ieee1275/console.h: Likewise.
51932 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51933 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51934 * include/grub/sparc64/ieee1275/time.h: Likewise.
51935 * kern/sparc64/cache.c: Likewise.
51936 * kern/sparc64/dl.c: Likewise.
51937 * kern/sparc64/ieee1275/init.c: Likewise.
51938 * kern/sparc64/ieee1275/openfw.c: Likewise.
51940 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51942 * util/console.c (grub_ncurses_putchar): If C is greater than
51943 0x7f, set C to a question mark.
51944 (grub_ncurses_getcharwidth): New function.
51945 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51948 * normal/menu.c (print_entry): Made aware of Unicode. First,
51949 convert TITLE to UCS-4, and predict the cursor position by
51952 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51954 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51956 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51958 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51959 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51962 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51963 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51964 grub_strcpy and grub_strlen. Take it into account that a space
51965 character is inserted as a delimiter.
51967 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51969 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51970 invalid magic in the error.
51972 * commands/search.c: New file.
51974 * util/grub-emu.c (main): Call grub_search_init and
51977 * kern/rescue.c (grub_rescue_print_disks): Removed.
51978 (grub_rescue_print_devices): New function.
51979 (grub_rescue_cmd_ls): Use grub_device_iterate with
51980 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51981 grub_rescue_print_disks.
51983 * kern/partition.c (grub_partition_iterate): Return the result of
51984 PARTMAP->ITERATE instead of GRUB_ERRNO.
51986 * kern/device.c: Include grub/partition.h.
51987 (grub_device_iterate): New function.
51989 * include/grub/partition.h (grub_partition_iterate): Return int
51990 instead of grub_err_t.
51992 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51994 [GRUB_UTIL] (grub_search_fini): Likewise.
51996 * include/grub/device.h (grub_device_iterate): New prototype.
51998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52000 (pkgdata_MODULES): Added search.mod.
52001 (search_mod_SOURCES): New variable.
52002 (search_mod_CFLAGS): Likewise.
52004 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52005 (pkgdata_MODULES): Added search.mod.
52006 (search_mod_SOURCES): New variable.
52007 (search_mod_CFLAGS): Likewise.
52009 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52010 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52011 All callers changed.
52013 * DISTLIST: Added commands/search.c.
52015 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52017 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52019 (grub_getcharwidth): New function.
52021 * kern/misc.c (grub_utf8_to_ucs4): New function.
52023 * include/grub/term.h (struct grub_term): Added a new member
52025 (grub_getcharwidth): New prototype.
52027 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52029 * term/i386/pc/console.c (map_char): New function. Segregated from
52030 grub_console_putchar.
52031 (grub_console_putchar): Use map_char.
52032 (grub_console_getcharwidth): New function.
52033 (grub_console_term): Specified grub_console_getcharwidth as
52036 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52037 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52039 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52041 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52042 on grub_strtoul completely.
52043 (write_char): Declare local variables in the beginning of the
52045 (grub_vesafb_getcharwidth): New function.
52046 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52049 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52051 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52052 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52053 commands/i386/pc/vbetest.c.
52055 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52056 call grub_vbe_get_controller_info again, because the returned
52057 information is volatile.
52058 (grub_vbe_set_video_mode): Mostly rewritten.
52059 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52060 grub_vbe_status_t correctly.
52061 (grub_vbe_get_video_mode_info): Likewise.
52062 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52063 several if statements.
52065 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52066 * commands/i386/pc/vbeinfo.c: ... this.
52068 * commands/i386/pc/vbe_test.c: Renamed to ...
52069 * commands/i386/pc/vbetest.c: ... this.
52071 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52073 (grub_cmd_vbeinfo): ... this. Save video modes before
52074 iterating. Skip a video mode, if it is not available, not enough
52075 information is given or it is monochrome. Show the memory
52076 model. Leave the interpretation of MODEVAR to grub_strtoul
52078 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52079 (GRUB_MOD_FINI): Likewise.
52081 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52082 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52083 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52084 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52085 grub_strtoul completely.
52086 (real2pm): Removed.
52087 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52088 (GRUB_MOD_FINI): Likewise.
52090 * normal/misc.c: Include grub/mm.h.
52092 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52093 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52094 (vbe_list_modes_mod_SOURCES): Removed.
52095 (vbe_list_modes_mod_CFLAGS): Likewise.
52096 (vbe_test_mod_SOURCES): Likewise.
52097 (vbe_test_mod_CFLAGS): Likewise.
52098 (vbeinfo_mod_SOURCES): New variable.
52099 (vbeinfo_mod_CFLAGS): Likewise.
52100 (vbetest_mod_SOURCES): Likewise.
52101 (vbetest_mod_CFLAGS): Likewise.
52103 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52105 * normal/misc.c: New file.
52107 * DISTLIST: Added normal/misc.c.
52109 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52110 DISK to HOOK. Call HOOK with DISK.
52111 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52112 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52113 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52115 * normal/menu_entry.c (struct screen): Added a new member
52116 "completion_shown".
52117 (completion_buffer): New global variable.
52118 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52119 (store_completion): New function.
52120 (complete): Likewise.
52121 (clear_completions): Likewise.
52122 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52123 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52124 a tab, call complete.
52126 * normal/completion.c (disk_dev): Removed.
52127 (print_simple_completion): Likewise.
52128 (print_partition_completion): Likewise.
52129 (print_func): New global variable.
52130 (add_completion): Do not take the arguments WHAT or PRINT any
52131 longer. Added a new argument TYPE. Instead of printing directly,
52132 call PRINT_FUNC if not NULL.
52133 All callers changed.
52134 (complete_device): Use a local variable DEV instead of
52135 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52136 (grub_normal_do_completion): Take a new argument HOOK. Do not
52137 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52138 empty string, return NULL instead.
52139 All callers changed.
52141 * normal/cmdline.c (print_completion): New function.
52143 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52145 All callers changed.
52147 * kern/disk.c (grub_print_partinfo): Removed.
52149 * include/grub/partition.h (struct grub_partition_map): Add a new
52150 argument DISK into HOOK of ITERATE.
52151 (grub_partition_iterate): Add a new argument DISK to HOOK.
52153 * include/grub/normal.h (enum grub_completion_type): New enum.
52154 (grub_completion_type_t): New type.
52155 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52156 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52157 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52158 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52159 (grub_normal_do_completion): Added a new argument HOOK.
52160 (grub_normal_print_device_info): New prototype.
52162 * include/grub/disk.h (grub_print_partinfo): Removed.
52164 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52165 (normal_mod_SOURCES): Likewise.
52166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52167 (normal_mod_SOURCES): Likewise.
52169 * commands/ls.c (grub_ls_list_disks): Use
52170 grub_normal_print_device_info instead of grub_print_partinfo. Free
52172 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52173 duplicating the code.
52175 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52177 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52178 follow GCS more precisely.
52179 * commands/i386/pc/vbe_test.c: Likewise.
52180 * include/grub/i386/pc/vbe.h: Likewise.
52181 * term/i386/pc/vesafb.c: Likewise.
52182 * video/i386/pc/vbe.c: Likewise.
52184 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52186 * DISTLIST: Added term/i386/pc/vesafb.c
52187 DISTLIST: Added video/i386/pc/vbe.c
52188 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52189 DISTLIST: Added commands/i386/pc/vbe_test.c.
52190 * commands/i386/pc/vbe_list_modes.c: New file.
52191 * commands/i386/pc/vbe_test.c: Likewise.
52192 * term/i386/pc/vesafb.c: Likewise.
52193 * video/i386/pc/vbe.c: Likewise.
52194 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52195 (grub_vbe_probe) Added prototype.
52196 (grub_vbe_set_video_mode) Likewise.
52197 (grub_vbe_get_video_mode) Likewise.
52198 (grub_vbe_get_video_mode_info) Likewise.
52199 (grub_vbe_set_pixel_rgb) Likewise.
52200 (grub_vbe_set_pixel_index) Likewise.
52201 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52202 (pkgdata_MODULES): Added vesafb.mod.
52203 (pkgdata_MODULES): Added vbe_list_modes.mod.
52204 (pkgdata_MODULES): Added vbe_test.mod.
52205 (vbe_mod_SOURCES): Added.
52206 (vbe_mod_CFLAGS): Likewise.
52207 (vesafb_mod_SOURCES): Likewise.
52208 (vesafb_mod_CFLAGS): Likewise.
52209 (vbe_list_modes_mod_SOURCES): Likewise.
52210 (vbe_list_modes_mod_CFLAGS): Likewise.
52211 (vbe_test_mod_SOURCES): Likewise.
52212 (vbe_test_mod_CFLAGS): Likewise.
52214 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52216 * normal/command.c (grub_command_execute): If INTERACTIVE is
52217 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52218 CMDLINE. Disable the pager if INTERACTIVE is true.
52219 All callers are changed.
52221 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52222 before reading a config file.
52223 * normal/main.c (read_config_file): Even if a command is not
52224 found, register it if it is within an entry.
52226 * util/grub-emu.c: Include sys/types.h and unistd.h.
52227 (options): Added --hold.
52228 (struct arguments): Added a new member "hold".
52229 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52231 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52232 cleared by a debugger, if it is not zero.
52234 * include/grub/normal.h (grub_command_execute): Add an argument
52237 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52239 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52241 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52243 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52244 program with another one, because the old one didn't detect a bug
52245 in gcc-3.4. Always use regparm 2, because the new test is still
52246 not enough for gcc-4.0. Someone must investigate a simple test
52247 case which detects a bug in gcc-4.0.
52249 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52251 * DISTLIST: Added normal/completion.c.
52253 * normal/completion.c: New file.
52255 * term/i386/pc/console.c (grub_console_getwh): New function.
52256 (grub_console_term): Assign grub_console_getwh to getwh.
52258 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52259 function is defined in normal/completion.c as
52260 grub_normal_do_completion.
52261 (grub_cmdline_get): Use grub_normal_do_completion instead of
52264 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52265 returns non-zero, otherwise return 0.
52266 (grub_partition_iterate): First, probe the partition map. Then,
52267 call ITERATE only for this partition map.
52269 * kern/misc.c (grub_strncmp): Rewritten.
52271 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52272 returns non-zero. Otherwise return 0.
52274 * include/grub/partition.h (grub_partition_map_iterate): Return
52275 int instead of void.
52277 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52279 * include/grub/misc.h (grub_strncmp): Change the type of N to
52282 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52285 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52286 unsigned explicitly before comparing it with I.
52288 * kern/main.c (grub_env_write_root): Add the attribute unused into
52291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52292 normal/completion.c.
52293 (normal_mod_SOURCES): Likewise.
52294 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52295 (normal_mod_SOURCES): Likewise.
52297 * normal/command.c (grub_iterate_commands): If ITERATE returns
52298 non-zero, return one immediately.
52300 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52302 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52303 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52305 (grub_vbe_get_controller_info): New function.
52306 (grub_vbe_get_mode_info): Likewise.
52307 (grub_vbe_set_mode): Likewise.
52308 (grub_vbe_get_mode): Likewise.
52309 (grub_vbe_set_memory_window): Likewise.
52310 (grub_vbe_get_memory_window): Likewise.
52311 (grub_vbe_set_scanline_length): Likewise.
52312 (grub_vbe_get_scanline_length): Likewise.
52313 (grub_vbe_set_display_start): Likewise.
52314 (grub_vbe_get_display_start): Likewise.
52315 (grub_vbe_set_palette_data): Likewise.
52316 * include/grub/i386/pc/vbe.h: New file.
52318 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52320 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52321 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52322 * DISTLIST: Likewise.
52323 * kern/ieee1275/of.c: Moved to ...
52324 * kern/ieee1275/ieee1275.c: ... here.
52326 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52328 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52329 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52330 Pass 0 as `end' parameter to grub_strtoul().
52332 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52334 * include/grub/powerpc/ieee1275/console.h: Do not include
52335 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52337 (grub_console_cur_color): Remove i386-specific prototype.
52338 (grub_console_real_putchar): Likewise.
52339 (grub_console_checkkey): Likewise.
52340 (grub_console_getkey): Likewise.
52341 (grub_console_getxy): Likewise.
52342 (grub_console_gotoxy): Likewise.
52343 (grub_console_cls): Likewise.
52344 (grub_console_setcursor): Likewise.
52345 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52346 Include <grub/machine/console.h>.
52347 * term/ieee1275/ofconsole.c: Likewise.
52349 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52351 * Makefile.in (LIBLZO): New variable.
52353 * configure.ac: Check for LZO version 2.
52355 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52356 lzo/lzo1x.h instead of lzo1x.h.
52358 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52361 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52362 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52364 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52365 copying the data from PARTITION to P.
52367 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52369 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52370 negative, unload the module.
52372 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52373 map is "pc_partition_map" but not "pc".
52374 (usage): Fix the description. The options are --boot-image and
52375 --core-image but not --boot-file or --core-file.
52376 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52377 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52380 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52381 --core-file. Specify INSTALL_DEVICE as an argument.
52383 * util/console.c: Include config.h.
52384 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52385 [HAVE_NCURSES_H]: Include ncurses.h.
52386 [HAVE_CURSES_H]: Include curses.h.
52387 [!A_NORMAL] (A_NORMAL): Defined as zero.
52388 [!A_STANDOUT] (A_STANDOUT): Likewise.
52390 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52392 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52394 * configure.ac: Check for curses libraries and headers.
52396 * Makefile.in (LIBCURSES): New variable.
52398 * genmk.rb (Script::rule): Set the executable bits.
52400 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52401 name of the PC partition map is "pc_partition_map" but not "pc".
52403 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52405 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52406 (modules): Likewise.
52407 (usage): Added descriptions for --modules and --grub-probefs.
52408 Handle --modules and --grub-probefs. Save the arguments in MODULES
52409 and GRUB_PROBEFS, respectively.
52410 Auto-detect a filesystem module against GRUBDIR. If the result is
52411 empty and modules are not specified explicitly, abort the
52412 installation. Add the result to MODULES.
52414 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52415 disk/powerpc/ieee1275/ofdisk.c,
52416 include/grub/powerpc/ieee1275/init.h and
52417 term/powerpc/ieee1275/ofconsole.c.
52418 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52419 term/ieee1275/ofconsole.c.
52421 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52423 * COPYING: Upgraded to the latest version. Only the address of the
52424 FSF office has changed.
52426 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52428 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52429 kern/ieee1275.c with kern/ieee1275/of.c.
52431 * kern/ieee1275.c: Moved to ...
52432 * kern/ieee1275/of.c: ... here.
52434 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52436 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52439 * config.guess: Updated to the latest version from gnulib.
52440 * config.sub: Likewise.
52441 * install.sh: Likewise.
52442 * mkinstalldirs: Likewise.
52444 * include/grub/console.h: Removed. This file is arch-specific. Do
52445 not put this in include/grub.
52447 * include/grub/i386/pc/console.h: Resurrected.
52449 * util/console.c: Include grub/machine/console.h instead of
52451 * util/grub-emu.c: Likewise.
52453 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52455 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52458 From Vincent Pelletier <subdino2004@yahoo.fr>
52459 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52460 Redefined to use grub_getwh.
52461 (grub_term): New member named getwh.
52462 (grub_getwh): New prototype.
52463 * kern/term.c (grub_getwh): New function.
52464 * term/i386/pc/console.c (grub_console_getwh): New function.
52465 (grub_console_term): New member `getwh'.
52466 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52467 (grub_vga_term): New member `getwh'.
52468 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52470 (grub_ofconsole_getw): New function.
52471 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52472 (grub_ofconsole_term): New field named getwh and new initial
52475 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52477 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52478 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52479 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52480 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52481 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52482 of <grub/machine/ieee1275.h>.
52483 * commands/ieee1275/reboot.c: Likewise.
52484 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52485 * kern/ieee1275.c: ... to here. All users updated. Change all
52486 parameter structs to use new type `grub_ieee1275_cell_t'.
52487 * term/powerpc/ieee1275/ofconsole.c: Move ...
52488 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52489 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52490 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52491 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52493 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52494 Remove unused prototypes. All users updated.
52495 * include/grub/powerpc/ieee1275/console.h: Removed.
52496 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52497 `grub_ieee1275_cell_t'.
52498 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52499 Cast comparisons with -1 to the correct type.
52500 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52501 type to match `grub_ieee1275_entry_fn'.
52503 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52505 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52507 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52508 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52510 (grub_probefs_SOURCES): New variable.
52512 * util/i386/pc/grub-probefs.c: New file.
52514 * util/i386/pc/grub-setup.c (main): Call
52515 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52516 grub_hfs_init and grub_jfs_init to initialize the system. Call
52517 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52518 grub_pc_partition_map_fini to finish the system.
52520 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52522 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52524 (grub_multiboot_load_elf32): Likewise.
52525 (grub_multiboot_is_elf64): Likewise.
52526 (grub_multiboot_load_elf64): Likewise.
52527 (grub_multiboot_load_elf): Likewise.
52528 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52529 an ELF32 or ELF64 file.
52530 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52532 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52533 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52534 NULL before calling FS->LABEL.
52535 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52536 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52537 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52538 before calling FS->LABEL.
52540 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52542 * util/i386/pc/grub-install.in (datadir): New variable.
52544 (pkgdatadir): New variable.
52545 (pkglibdir): Removed.
52547 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52549 * DISTLIST: Added util/i386/pc/grub-install.in.
52551 * util/i386/pc/grub-install.in: New file.
52553 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52554 (grub_install_SOURCES): Likewise.
52556 * genmk.rb: Added support for scripts.
52557 (Script): New class.
52558 (scripts): New variable.
52560 * Makefile.in (install-local): Install sbin_SCRIPTS by
52562 (uninstall): Remove sbin_SCRIPTS.
52564 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52565 device, try to get a GRUB device by
52566 grub_util_biosdisk_get_grub_dev.
52569 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52570 description for --device-map.
52572 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52574 Change the semantics of variable hooks. They now return strings
52575 instead of error values.
52577 * util/i386/pc/grub-setup.c: Include grub/env.h.
52578 (setup): Use grub_device_set_root instead of grub_env_set.
52580 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52581 grub_env_get instead of grub_device_set_root and
52582 grub_device_get_root, respectively.
52584 * kern/main.c (grub_env_write_root): New function.
52585 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52586 grub_env_set instead of grub_device_set_root.
52588 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52590 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52591 rather than calling ENV->WRITE_HOOK afterwards.
52592 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52593 passing a pointer of a pointer.
52594 (grub_register_variable_hook): Change the types of "read_hook" and
52595 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52597 Allocate the default empty string on the heap, because this string
52598 may be freed later.
52600 * kern/device.c: Include grub/env.h.
52601 (grub_device_set_root): Removed.
52602 (grub_device_get_root): Likewise.
52603 (grub_device_open): Use grub_env_get instead of
52604 grub_device_get_root.
52606 * include/grub/env.h (grub_env_read_hook_t): New type.
52607 (grub_env_write_hook_t): Likewise.
52608 (grub_env_var): Change the types of "read_hook" and "write_hook"
52609 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52610 (grub_register_variable_hook): Likewise.
52612 * include/grub/device.h (grub_device_set_root): Removed.
52613 (grub_device_set_root): Likewise.
52615 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52616 make sure that DIRNAME terminates with '/', so that
52617 grub_fat_find_dir will fail if PATH is not a directory.
52619 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52621 Use the qualifier auto for print_files and print_files_long.
52622 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52624 Put a newline only if there is no error.
52625 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52628 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52630 * kern/partition.c (grub_partition_probe): Initialize PART to
52631 NULL. Otherwise, when no partition map is registered, this returns
52634 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52636 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52637 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52640 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52642 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52643 information on each device, if it does not have partitions. Print
52644 "Device" instead of "Disk", because this function is not specific
52647 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52648 static to ensure that it is put on the memory rather than a
52651 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52653 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52654 (grub_cat_init): Likewise.
52655 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52656 (options): Likewise.
52657 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52658 (grub_configfile_init): Likewise.
52659 * font/manager.c (GRUB_MOD_INIT): Likewise.
52660 * commands/help.c (GRUB_MOD_INIT): Likewise.
52661 (grub_help_init): Likewise.
52662 * normal/command.c (grub_command_init): Likewise.
52663 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52664 * disk/loopback.c (grub_loop_init): Likewise.
52665 (GRUB_MOD_INIT): Likewise.
52666 * commands/ls.c (grub_ls_init): Likewise.
52667 (GRUB_MOD_INIT): Likewise.
52668 (options): Likewise.
52669 * commands/boot.c (grub_boot_init): Likewise.
52670 (GRUB_MOD_INIT): Likewise.
52671 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52672 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52673 (GRUB_MOD_INIT): Likewise.
52674 * commands/cmp.c (grub_cmp_init): Likewise.
52675 (GRUB_MOD_INIT): Likewise.
52677 * normal/arg.c: Use <> instead of "" to include header files.
52678 (SHORT_ARG_HELP): New macro.
52679 (SHORT_ARG_USAGE): Likewise.
52680 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52681 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52683 (find_short): Check if C is 'h' or 'u' explicitly.
52684 (grub_arg_show_help): Use space characters instead of tabs. Treat
52685 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52686 are shown with --help and --usage only if they are not used for
52687 the command itself.
52688 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52691 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52692 const into "longarg". Change the type of "shortarg" to int.
52694 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52696 * boot/i386/pc/boot.S (boot_drive_check): New label.
52698 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52701 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52702 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52704 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52706 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52707 When turning off Gate A20, skip the check and return immediately,
52708 because this is not fatal usually.
52710 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52712 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52713 be 0x7C00 instead of 0x8000.
52715 * boot/i386/pc/pxeboot.S: Rewritten.
52717 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52719 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52722 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52724 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52725 robustness. This routine now supports a BIOS call and System
52726 Control Port A to modify the gate A20.
52728 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52729 Increased to 0x440.
52731 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52733 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52734 device path and resulting ihandle.
52735 (grub_ofdisk_close): dprintf the ihandle being closed.
52736 (grub_ofdisk_read): dprintf function parameters.
52737 * kern/mm.c (grub_mm_init_region): Likewise.
52738 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52739 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52740 size, and boot arguments.
52741 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52742 before loading into memory.
52743 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52744 before loading into memory.
52746 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52748 * kern/mm.c: Added much documentation.
52749 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52750 8, set to 5 instead of 8.
52752 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52754 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52756 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52757 (grub_mkdevicemap_SOURCES): New variable.
52759 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52760 lib/device.c of GRUB Legacy.
52762 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52764 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52765 instead of PATH is NULL.
52767 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52769 * commands/cmp.c (BUFFER_SIZE): New macro.
52770 (grub_cmd_cmp): Close the right file at the right time. Compare
52771 only data just read. Don't report files of different size as
52772 identical. Dynamically allocate buffers. Move variable
52773 declarations at the beginning of function.
52775 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52777 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52780 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52782 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52783 when backspace is pressed at beginning of line.
52785 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52787 * DISTLIST: Added genfslist.sh.
52789 * normal/main.c (fs_module_list): New variable.
52790 (autoload_fs_module): New function.
52791 (read_fs_list): Likewise.
52792 (grub_normal_execute): Call read_fs_list.
52794 * kern/fs.c (grub_fs_autoload_hook): New variable.
52795 (grub_fs_probe): Added support for auto-loading.
52797 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52798 (grub_fs_module_list_t): New type.
52800 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52801 (grub_fs_autoload_hook): New prototype.
52803 * genfslist.sh: New file.
52805 * genmk.rb: Added a rule to generate a filesystem list.
52807 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52809 * configure.ac: Fix the test for cross-compiling.
52811 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52812 define GRUB_UTIL anymore.
52814 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52815 so this function works on other systems than just big endian.
52816 (load_modules): Likewise.
52817 (add_segments): Likewise.
52819 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52821 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52822 contains `l' modifier, get a long from va_arg().
52824 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52826 * kern/mm.c (grub_free): If the next free block which is being
52827 merged is the first free block, set the first block to the block
52829 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52831 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52833 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52834 `grub_ieee1275_chosen'.
52836 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52838 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52839 (grub_ieee1275_chosen): New variable.
52840 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52842 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52843 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52844 Rename first argument to `phandle' for consistency.
52845 (grub_ieee1275_get_property_length): Likewise.
52846 (grub_ieee1275_next_property): Likewise. Change type of first argument
52847 to grub_ieee1275_phandle_t.
52848 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52849 Move export next to declaration.
52850 (grub_ieee1275_chosen): New variable.
52851 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52852 Correct cosmetic typo.
52853 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52854 `grub_ieee1275_chosen'.
52855 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52856 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52857 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52858 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52859 `grub_ieee1275_chosen'.
52861 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52863 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52865 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52866 /chosen/bootargs as "variable=value" pairs.
52868 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52870 * include/grub/misc.h (grub_dprintf): New macro.
52871 (grub_real_dprintf): New prototype.
52872 (grub_strword): Likewise.
52873 (grub_iswordseparator): Likewise.
52874 * kern/misc.c (grub_real_dprintf): New function.
52875 (grub_strword): Likewise.
52876 (grub_iswordseparator): Likewise.
52878 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52880 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52881 (roundup): Remove macro.
52882 (grub_ieee1275_flags): Make static.
52883 (grub_ieee1275_realmode): Remove.
52884 (grub_ieee1275_test_flag): New function.
52885 (grub_ieee1275_set_flag): Likewise.
52886 (find_options): Rename to `grub_ieee1275_find_options'; update
52887 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52888 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52889 (cmain): New prototype.
52890 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52891 `grub_ieee1275_flags' directly.
52892 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52893 machine/biosdisk.h.
52894 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52895 Don't include grub/machine/init.h.
52896 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52897 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52899 (grub_ieee1275_realmode): Likewise.
52900 (grub_ieee1275_flag): New enum.
52901 (grub_ieee1275_test_flag): New prototype.
52902 (grub_ieee1275_set_flag): New prototype.
52903 * include/grub/powerpc/ieee1275/init.h: Remove file.
52904 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52905 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52906 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52907 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52909 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52910 `grub_ieee1275_test_flag'.
52911 (grub_ieee1275_encode_devname): Likewise.
52913 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52915 * include/grub/powerpc/ieee1275/ieee1275.h
52916 (grub_ieee1275_encode_devname): New prototype.
52917 (grub_ieee1275_get_filename): Likewise.
52918 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52920 (grub_set_prefix): Likewise.
52921 (grub_machine_init): Call grub_set_prefix.
52922 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52923 (grub_parse_type): New enum.
52924 (grub_ieee1275_get_devargs): New function.
52925 (grub_ieee1275_get_devname): Likewise.
52926 (grub_ieee1275_parse_args): Likewise.
52927 (grub_ieee1275_get_filename): Likewise.
52928 (grub_ieee1275_encode_devname): Likewise.
52930 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52932 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52933 `grub_loader_unset'.
52935 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52937 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52938 instead of grub_ieee1275_interpret.
52939 (grub_halt_init): New function.
52940 (grub_halt_fini): Likewise.
52941 (GRUB_MOD_INIT): Correct message grammar.
52942 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52943 instead of grub_ieee1275_interpret.
52944 (grub_reboot_init): New function.
52945 (grub_reboot_fini): Likewise.
52946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52947 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52948 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52949 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52950 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52952 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52954 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52956 (grub_halt): Likewise.
52957 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52958 (cmain): Remove __attribute__((unused)).
52959 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52960 (grub_heap_len): Likewise.
52961 (grub_machine_fini): New function.
52962 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52963 (grub_halt): Likewise.
52964 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52966 * util/powerpc/ieee1275/misc.c: New file.
52968 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52970 * DISTLIST: New file.
52971 * gendistlist.sh: Likewise.
52973 * Makefile.in (COMMON_DISTFILES): Removed.
52974 (BOOT_DISTFILES): Likewise.
52975 (CONF_DISTFILES): Likewise.
52976 (DISK_DISTFILES): Likewise.
52977 (FS_DISTFILES): Likewise.
52978 (INCLUDE_DISTFILES): Likewise.
52979 (KERN_DISTFILES): Likewise.
52980 (LOADER_DISTFILES): Likewise.
52981 (TERM_DISTFILES): Likewise.
52982 (UTIL_DISTFILES): Likewise.
52983 (DISTFILES): Likewise.
52984 (uninstall): Uninstall files in $(pkgdata_DATA).
52985 (DISTLIST): New target.
52986 (distdir): Use the contents of the file DISTLIST to get a list of
52989 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52991 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52992 descriptor. This is ported from GRUB Legacy.
52994 * gencmdlist.sh: Added an extra semicolon to make it work with
52995 old sed versions. Reported by Robert Bihlmeyer
52996 <robbe@orcus.priv.at>.
52998 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53000 Automatic loading of commands is supported.
53002 * normal/main.c (read_command_list): New function.
53003 (grub_normal_execute): Call read_command_list.
53005 * normal/command.c (grub_register_command): Return zero or CMD.
53006 Allocate CMD->NAME from the heap.
53007 Initialize CMD->MODULE_NAME to zero.
53008 Find the same name as well. If the same command is found and it is
53009 a dummy command, overwrite members. If it is not a dummy command,
53011 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53012 (grub_command_find): If a dummy command is found, load a module
53013 and retry to find a command only once.
53015 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53016 make sure that each command is loaded.
53018 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53020 (struct grub_command): Remove const from the member `name'.
53021 Add a new member `module_name'.
53022 (grub_register_command): Return grub_command_t.
53024 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53025 sure that each command is loaded.
53027 * genmk.rb (PModule::rule): Specify a module name without the
53028 suffix ".mod" to gencmdlist.sh.
53030 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53032 * gencmdlist.sh: New file.
53034 * genmk.rb (PModule::rule): Generate a rule for a command list.
53036 Generate command.lst from $(COMMANDFILES).
53038 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53039 (DATA): Added $(pkgdata_DATA).
53040 (install-local): Install files in $(pkgdata_DATA).
53042 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53044 * term/i386/pc/vga.c (debug_command): Removed.
53045 (GRUB_MOD_INIT): Do not register the command "debug".
53047 From Hollis Blanchard:
53048 * commands/configfile.c: New file.
53049 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53050 commands/configfile.c.
53051 (pkgdata_MODULES): Added configfile.mod.
53052 (configfile_mod_SOURCES): New variable.
53053 (configfile_mod_CFLAGS): Likewise.
53054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53055 commands/configfile.c.
53056 (pkgdata_MODULES): Added configfile.mod.
53057 (configfile_mod_SOURCES): New variable.
53058 (configfile_mod_CFLAGS): Likewise.
53059 * util/grub-emu.c (main): Call grub_configfile_init and
53060 grub_configfile_fini.
53061 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53063 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53065 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53067 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53070 * commands/help.c (grub_cmd_help): Do not print newlines after
53071 the last command in print_command_help.
53073 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53075 * commands/default.h: New file.
53076 * commands/timeout.h: Likewise.
53077 * normal/context.c: Likewise.
53079 * util/misc.c: Do not include sys/times.h.
53080 Include sys/time.h and grub/machine/time.h.
53081 (grub_get_rtc): Rewritten with gettimeofday.
53083 * util/grub-emu.c (main): Call grub_default_init and
53084 grub_timeout_init before grub_normal_init, and call
53085 grub_timeout_fini and grub_default_fini after grub_main.
53087 * util/console.c (grub_ncurses_checkkey): Return the read
53090 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53093 * normal/main.c (read_config_file): Push MENU. If this fails,
53094 print an error and wait for a user input.
53095 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53096 If a menu is empty or an error occurs, pop MENU.
53097 (grub_normal_execute): Pop and free MENU after grub_menu_run
53100 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53102 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53104 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53106 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53108 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53111 * include/grub/normal.h (struct grub_menu_list): New struct.
53112 (grub_menu_list_t): New type.
53113 (struct grub_context): New struct.
53114 (grub_context_t): New type.
53115 (grub_register_command): Got rid of EXPORT_FUNC.
53116 (grub_unregister_command): Likewise.
53117 (grub_context_get): New prototype.
53118 (grub_context_get_current_menu): Likewise.
53119 (grub_context_push_menu): Likewise.
53120 (grub_context_pop_menu): Likewise.
53121 [GRUB_UTIL] (grub_default_init): Likewise.
53122 [GRUB_UTIL] (grub_default_fini): Likewise.
53123 [GRUB_UTIL] (grub_timeout_init): Likewise.
53124 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53126 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53127 commands/timeout.c and normal/context.c.
53128 (pkgdata_MODULES): Added default.mod and timeout.mod.
53129 (normal_mod_SOURCES): Added normal/context.c.
53130 (default_mod_SOURCES): New variable.
53131 (default_mod_CFLAGS): Likewise.
53132 (timeout_mod_SOURCES): Likewise.
53133 (timeout_mod_CFLAGS): Likewise.
53134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53136 (pkgdata_MODULES): Added default.mod and timeout.mod.
53137 (normal_mod_SOURCES): Added normal/context.c.
53138 (default_mod_SOURCES): New variable.
53139 (default_mod_CFLAGS): Likewise.
53140 (timeout_mod_SOURCES): Likewise.
53141 (timeout_mod_CFLAGS): Likewise.
53143 * Makefile.in (all-local): Added $(MKFILES).
53145 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53148 (grub_emu_SOURCES): Likewise.
53149 (pkgdata_MODULES): Add `sun.mod'.
53150 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53153 (pkgdata_MODULES): Add `sun.mod'.
53154 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53155 * include/grub/partition.h (grub_sun_partition_map_init): New
53157 (grub_sun_partition_map_fini): Likewise.
53158 * partmap/sun.c: New file.
53159 * util/grub-emu.c (main): Initialize and de-initialize the sun
53160 partitionmap support.
53162 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53164 This implements an Emacs-like menu entry editor.
53166 * normal/menu_entry.c: New file.
53168 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53169 characters to ASCII.
53170 (saved_char): New variable.
53171 (grub_ncurses_checkkey): Rewritten completely.
53172 (grub_ncurses_getkey): Likewise.
53173 (grub_ncurses_init): Call raw instead of cbreak.
53175 * normal/menu.c (print_entry): Do not put a space.
53176 (init_page): Renamed to ...
53177 (grub_menu_init_page): ... this. All callers changed.
53178 (edit_menu_entry): Removed.
53179 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53181 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53183 * kern/misc.c (grub_vprintf): Call grub_refresh.
53185 * normal/menu.c (DISP_LEFT): Renamed to ...
53186 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53187 * normal/menu.c (DISP_UP): Renamed to ...
53188 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53189 * normal/menu.c (DISP_RIGHT): Renamed to ...
53190 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53191 * normal/menu.c (DISP_DOWN): Renamed to ...
53192 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53193 * normal/menu.c (DISP_HLINE): Renamed to ...
53194 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53195 * normal/menu.c (DISP_VLINE): Renamed to ...
53196 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53197 * normal/menu.c (DISP_UL): Renamed to ...
53198 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53199 * normal/menu.c (DISP_UR): Renamed to ...
53200 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53201 * normal/menu.c (DISP_LL): Renamed to ...
53202 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53203 * normal/menu.c (DISP_LR): Renamed to ...
53204 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53205 * normal/menu.c (TERM_WIDTH): Renamed to ...
53206 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53207 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53208 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53209 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53210 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53211 * normal/menu.c (TERM_MARGIN): Renamed to ...
53212 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53213 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53214 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53215 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53216 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53217 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53218 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53219 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53220 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53221 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53222 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53223 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53224 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53225 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53226 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53227 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53228 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53229 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53230 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53231 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53232 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53233 All callers changed.
53235 * include/grub/normal.h: New prototype.
53237 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53238 normal/menu_entry.c.
53239 (normal_mod_SOURCES): Likewise.
53240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53241 (normal_mod_SOURCES): Likewise.
53243 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53245 * include/grub/normal.h (grub_halt_init): New prototype.
53246 (grub_halt_fini): Likewise.
53247 (grub_reboot_init): Likewise.
53248 (grub_reboot_fini): Likewise.
53250 * util/grub-emu.c: Include signal.h.
53251 (main_env): New global variable.
53252 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53254 (grub_machine_fini): New function.
53255 (main): Call grub_halt_init and grub_reboot_init before
53256 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53257 Call setjmp with MAIN_ENV to go back afterwards.
53258 Call grub_machine_fini right before return.
53260 * include/grub/util/misc.h: Include setjmp.h.
53261 (main_env): New prototype.
53263 * include/grub/kernel.h (grub_machine_fini): New prototype.
53264 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53265 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53267 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53268 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53269 * term/i386/pc/console.c (grub_console_fini): Likewise.
53271 * util/i386/pc/misc.c: New file.
53273 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53274 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53275 commands/i386/pc/reboot.c.
53277 2005-02-14 Guillem Jover <guillem@hadrons.org>
53279 * include/grub/dl.h (grub_dl_check_header): New prototype.
53280 (grub_arch_dl_check_header): Change return type to grub_err_t,
53281 remove size parameter and export function. Update all callers.
53282 * kern/dl.c (grub_dl_check_header): New function.
53283 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53284 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53285 are inside the core.
53286 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53287 independent ELF header checks.
53288 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53289 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53290 `grub_dl_check_header' instead of explicit checks. Check for the
53292 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53293 `grub_dl_check_header' instead of explicit checks. Remove arch
53294 specific ELF header checks.
53296 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53299 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53301 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53302 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53304 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53306 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53307 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53308 (part_map_iterate): Clear `grub_errno' and return 0 if
53309 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53310 * partmap/amiga.c (amiga_partition_map_iterate): Return
53311 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53312 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53314 2005-02-01 Guillem Jover <guillem@hadrons.org>
53316 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53319 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53321 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53323 (grub_rescue_cmd_linux): New prototype.
53324 (grub_rescue_cmd_initrd): Likewise.
53325 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53327 (grub_linux_release_mem): Release the memory for the initrd.
53328 (grub_load_linux): Renamed from this...
53329 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53330 Changed `entry' not to be static. Loop over memory regions to
53331 find another one when the default fails.
53332 (grub_rescue_cmd_initrd): New function.
53333 (grub_linux_init): Remove function.
53334 (grub_linux_fini): Likewise.
53335 (GRUB_MOD_INIT): Register `initrd'.
53336 (GRUB_MOD_FINI): Unregister `initrd'.
53337 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53339 (grub_linux_normal_fini): Likewise.
53340 (GRUB_MOD_INIT): Register `initrd'.
53341 (GRUB_MOD_FINI): Unregister `initrd'.
53343 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53345 * commands/help.c: New file.
53346 * normal/arg.c (show_help): Renamed to...
53347 (grub_arg_show_help): ... this.
53348 * commands/i386/pc/halt.c: New file.
53349 * commands/i386/pc/reboot.c: Likewise.
53350 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53351 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53352 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53353 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53357 (pkgdata_MODULES): Add `help.mod'.
53358 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53359 * grub/i386/pc/init.h (grub_reboot): New prototype.
53360 (grub_halt): Likewise.
53361 * include/grub/normal.h (grub_arg_show_help): New prototype.
53362 (grub_help_init): Likewise.
53363 (grub_help_fini): Likewise.
53364 * util/grub-emu.c (main): Initialize and deinitialize the help
53367 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53369 * normal/command.c (grub_command_init): Fixed the description of
53370 the `set' and `unset' commands.
53372 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53374 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53376 * commands/ieee1275/halt.c: New file.
53377 * commands/ieee1275/reboot.c: Likewise.
53378 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53379 `__attribute__ ((unused))'. Some GCS related fixed.
53380 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53381 (grub_suspend_fini): Likewise.
53382 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53384 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53385 (halt_mod_CFLAGS): New variables.
53386 * include/grub/powerpc/ieee1275/ieee1275.h
53387 (grub_ieee1275_interpret): New prototype.
53389 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53391 * include/grub/misc.h (memmove): New prototype.
53392 (memcpy): Likewise.
53394 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53396 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53397 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53399 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53401 * kern/misc.c (grub_strndup): Function rewritten.
53403 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53405 * normal/menu.c (TERM_WIDTH): Macro redefined.
53406 (TERM_TOP_BORDER_Y): Likewise.
53407 (draw_border): Replaced while-loop by a for-loop. Make the number
53408 of lines consistent with the number of lines displayed in
53409 print_entries. Added a margin below the rectangle.
53410 (print_entry): Make the entry fit in the rectangle.
53411 (print_entries): Display the scroll arrows next to the right
53414 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53416 * fs/minix.c (grub_minix_find_file): Reserve more space for
53417 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53418 `grub_strncpy' to copy `path' into it.
53420 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53422 Add the loopback device, a device via which files can be accessed
53425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53426 (pkgdata_MODULES): Add loopback.mod.
53427 (loopback_mod_SOURCES): New variable.
53428 (loopback_mod_CFLAGS): Likewise.
53429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53431 (pkgdata_MODULES): Add loopback.mod.
53432 (loopback_mod_SOURCES): New variable.
53433 (loopback_mod_CFLAGS): Likewise.
53434 * disk/loopback.c: new file.
53435 * include/grub/normal.h (grub_loop_init): New prototype.
53436 (grub_loop_fini): New prototype.
53437 * util/grub-emu.c (main): Initialize and de-initialize loopback
53439 * include/grub/disk.h (grub_disk_dev_id): Add
53440 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53442 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53444 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53446 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53447 (suspend_mod_SOURCES): New variable.
53448 (suspend_mod_CFLAGS): Likewise.
53449 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53451 * commands/ieee1275/suspend.c: New file.
53453 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53455 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53456 ((unused))' to `__attribute__ ((used))'.
53457 (GRUB_MOD_FINI): Likewise.
53458 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53459 * genmk.rb (PModule): Assign space to common symbols when linking
53462 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53464 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53465 `unsigned' arguments to `grub_size_t'.
53466 (grub_malloc): Likewise.
53467 (grub_realloc): Likewise.
53468 (grub_memalign): Likewise.
53469 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53470 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53471 * util/misc.c (grub_malloc): Likewise.
53472 (grub_realloc): Likewise.
53473 * kern/mm.c (get_header_from_pointer): Change the casts to
53474 `unsigned' into a cast to `grub_size_t'.
53476 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53477 point to `currnode' when `currnode' is changed.
53479 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53480 Schottelius <nico-linux@schottelius.org>.
53482 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53484 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53485 (note_path): Remove variable.
53486 (GRUB_IEEE1275_NOTE_NAME): New macro.
53487 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53488 (grub_ieee1275_note_hdr): New structure.
53489 (grub_ieee1275_note_desc): Likewise.
53490 (grub_ieee1275_note): Likewise.
53491 (load_note): Remove `dir' argument. All callers updated. Remove
53492 `note_img' and `path'. Do not load a file from `note_path'.
53493 Initialize a struct grub_ieee1275_note and write that to `out'.
53494 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53496 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53498 * util/misc.c (grub_util_read_image): Revert last change. It
53499 called `grub_util_read_at', which seeks from the beginning of the
53502 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53504 * TODO: Add note about endianness in grub-mkimage.
53505 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53507 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53508 (grub_mkimage_SOURCES): New target.
53509 * include/grub/kernel.h (grub_start_addr): Remove variable.
53510 (grub_end_addr): Likewise.
53511 (grub_total_module_size): Likewise.
53512 (grub_kernel_image_size): Likewise.
53513 (GRUB_MODULE_MAGIC): New constant.
53514 (grub_module_info): New structure.
53515 (grub_arch_modules_addr): New prototype.
53516 (grub_get_end_addr): Remove prototype.
53517 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53518 * include/grub/powerpc/ieee1275/kernel.h: New file.
53519 * include/grub/util/misc.h (grub_util_get_fp_size): New
53521 (grub_util_read_at): Likewise.
53522 (grub_util_write_image_at): Likewise.
53523 * kern/main.c (grub_get_end_addr): Remove function.
53524 (grub_load_modules): Call grub_arch_modules_addr instead of using
53525 grub_end_addr. Look for a grub_module_info struct in memory. Use
53526 the grub_module_info fields instead of calling grub_get_end_addr
53527 as loop conditions. Move grub_add_unused_region code here.
53528 (grub_add_unused_region): Remove function.
53529 * kern/i386/pc/init.c: Include grub/cache.h.
53530 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53531 one call to add_mem_region.
53532 (grub_arch_modules_addr): New function.
53533 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53534 (grub_total_module_size): Likewise.
53535 Include grub/machine/kernel.h.
53536 (grub_arch_modules_addr): New function.
53537 * util/grub-emu.c (grub_end_addr): Remove variable.
53538 (grub_total_module_size): Likewise.
53539 (grub_arch_modules_addr): New function.
53540 * util/misc.c: Include unistd.h.
53541 (grub_util_get_fp_size): New function.
53542 (grub_util_read_at): Likewise.
53543 (grub_util_write_image_at): Likewise.
53544 (grub_util_read_image): Call grub_util_read_at.
53545 (grub_util_write_image): Call grub_util_write_image_at.
53546 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53547 additional memory in kernel_img for a struct grub_module_info.
53548 Fill in that grub_module_info.
53549 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53551 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53553 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53555 * include/grub/powerpc/ieee1275/ieee1275.h
53556 (grub_ieee1275_milliseconds): New prototype.
53557 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53559 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53560 grub_ieee1275_milliseconds.
53562 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53564 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53566 (find_options): New function.
53567 (cmain): Call find_options.
53568 * include/grub/powerpc/ieee1275/ieee1275.h
53569 (grub_ieee1275_realmode): New extern variable.
53570 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53571 grub_map if grub_ieee1275_realmode is false.
53573 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53575 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53576 lines are inserted and make it work like readline. Reported by
53577 Vincent Pelletier <subdino2004@yahoo.fr>.
53579 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53581 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53584 `kern/powerpc/cache.S'.
53586 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53588 * genmk.rb: Handle the `Program' class in the main loop. Written
53589 by Johan Rydberg <jrydberg@gnu.org>.
53590 (Program): New class.
53591 (programs): New variable.
53592 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53593 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53594 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53595 (help_arch): Function removed.
53596 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53597 `powerpc/libgcc.h' and `loader.h'.
53598 (pkgdata_PROGRAMS): New variable.
53599 (sbin_UTILITIES): Variable removed.
53600 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53601 (grubof_SOURCES): Variable re-defined so it only includes the
53602 core functionality.
53603 (grubof_CFLAGS): Remove `-DGRUBOF'.
53604 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53605 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53606 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53607 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53608 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53609 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53610 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53611 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53612 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53613 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53614 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53615 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53616 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53617 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53618 (pc_mod_CFLAGS): New variables.
53619 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53620 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53621 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53622 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53624 * include/grub/i386/pc/init.h (grub_os_area_addr)
53625 (rub_os_area_size): ... to here.
53626 * include/grub/powerpc/ieee1275/ieee1275.h
53627 (grub_ieee1275_entry_fn): Export symbol.
53628 * include/grub/powerpc/ieee1275/init.h: New file.
53629 * include/grub/powerpc/libgcc.h: Likewise.
53630 * include/grub/cache.h: Likewise.
53631 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53632 <hollis@penguinppc.org>.
53633 * kern/dl.c: Include <grub/cache.h>.
53634 (grub_dl_flush_cache): New function.
53635 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53637 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53638 (grub_console_init): Removed prototypes.
53639 (grub_machine_init): Don't initialize the modules anymore.
53640 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53642 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53643 Macro undef removed.
53644 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53645 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53646 relocation `R_PPC_REL32'. Return an error when the relocation is
53648 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53649 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53650 * util/misc.c (grub_arch_sync_caches): Likewise.
53652 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53654 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53655 `symlist.c', add `grubof_symlist.c'.
53656 (symlist.c): Variable removed.
53657 (grubof_HEADERS): Variable added.
53658 (grubof_symlist.c): New target.
53659 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53660 `kernel_img_HEADERS'.
53661 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53662 * kern/powerpc/dl.c: New file.
53663 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53665 (grub_arch_dl_relocate_symbols): Likewise.
53666 (grub_register_exported_symbols): Likewise.
53668 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53670 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53671 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53672 to fail instead. Reported by Vincent Pelletier
53673 <subdino2004@yahoo.fr>.
53675 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53676 it is not allocated. Reported by Vincent Pelletier
53677 <subdino2004@yahoo.fr>.
53679 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53680 output so the output looks better.
53682 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53684 Modulize the partition map support and add support for the amiga
53687 * commands/ls.c: Include <grub/partition.h> instead of
53688 <grub/machine/partition.h>.
53689 * kern/disk.c: Likewise.
53690 * kern/rescue.c: Likewise.
53691 * loader/i386/pc/chainloader.c: Likewise.
53692 * normal/cmdline.c: Likewise.
53693 * kern/powerpc/ieee1275/init.c: Likewise.
53694 (grub_machine_init): Call `grub_pc_partition_map_init',
53695 `grub_amiga_partition_map_init' and
53696 `grub_apple_partition_map_init'.
53697 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53698 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53699 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53700 `partition.h' and `pc_partition.h'.
53701 (grub_setup_SOURCES): Remove
53702 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53703 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53704 (grub_emu_SOURCES): Likewise.
53705 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53706 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53707 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53709 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53710 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53711 (grubof_SOURCES): Likewise.
53712 * disk/i386/pc/partition.c: File removed.
53713 * disk/powerpc/ieee1275/partition.c: Likewise.
53714 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53715 * include/grub/i386/pc/partition.h: Likewise.
53716 * kern/partition.c: New file.
53717 * partmap/amiga.c: Likewise.
53718 * partmap/apple.c: Likewise.
53719 * partmap/pc.c: Likewise.
53720 * include/grub/partition.h: Likewise..
53721 * include/grub/pc_partition.h: Likewise.
53722 * util/grub-emu.c: Include <grub/partition.h> instead of
53723 <grub/machine/partition.h>.
53724 (main): Call `grub_pc_partition_map_init',
53725 `grub_amiga_partition_map_init' and
53726 `grub_apple_partition_map_init' and deinitialize afterwards.
53727 * util/i386/pc/biosdisk.c: Include `#include
53728 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53729 `<grub/machine/partition.h>'.
53730 * util/i386/pc/grub-setup.c: Likewise.
53731 * util/i386/pc/biosdisk.c: Likewise.
53732 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53733 partition information in case of a PC partition.
53734 * util/i386/pc/grub-setup.c: Include `#include
53735 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53736 `<grub/machine/partition.h>'.
53737 (setup): Only access the PC specific partition information in case
53740 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53742 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53743 (grub_longjmp): Likewise.
53744 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53746 * normal/powerpc/setjmp.S: New file.
53747 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53748 `normal/powerpc/setjmp.S'.
53749 (grubof_CFLAGS): Add `-DGRUBOF'.
53750 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53751 [GRUB_UTIL && !GRUBOF].
53753 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53755 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53756 property named `name'. Correctly handle the error returned by
53757 `grub_ieee1275_finddevice' if a device can not be opened.
53759 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53761 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53762 `actual' for negativity.
53763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53766 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53768 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53769 (PAGE_OFFSET): New macro.
53770 (CRTC_ADDR_PORT): Likewise.
53771 (CRTC_DATA_PORT): Likewise.
53772 (START_ADDR_HIGH_REGISTER): Likewise.
53773 (START_ADDR_LOW_REGISTER): Likewise.
53774 (GRAPHICS_ADDR_PORT): Likewise.
53775 (GRAPHICS_DATA_PORT): Likewise.
53776 (READ_MAP_REGISTER): Likewise.
53777 (INPUT_STATUS1_REGISTER): Likewise.
53778 (INPUT_STATUS1_VERTR_BIT): Likewise.
53779 (page): New variable.
53780 (wait_vretrace): New function.
53781 (set_read_map): Likewise.
53782 (set_start_address): Likewise.
53783 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53785 (check_vga_mem): Take the page into account.
53786 (write_char): Likewise.
53787 (write_cursor): Likewise.
53788 (scroll_up): Likewise. Copy the page to the page that is not
53789 shown and switch between both pages.
53790 (grub_vga_putchar): Fix off by one error.
53791 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53794 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53796 Add support for iso9660 (including rockridge).
53798 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53799 (iso9660_mod_SOURCES): New variable.
53800 (iso9660_mod_CFLAGS): Likewise.
53801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53802 * include/grub/fs.h (grub_iso9660_init): New prototype.
53803 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53804 * fs/iso9660.c: New file.
53806 * include/grub/misc.h (grub_strncat): New prototype.
53807 * kern/misc.c (grub_strncat): New function.
53809 * fs/hfs.c (grub_hfs_mount): Translate the error
53810 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53811 * fs/jfs.c (grub_jfs_mount): Likewise.
53812 * fs/ufs.c (grub_ufs_mount): Likewise.
53814 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53816 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53817 which initialized BAT registers.
53818 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53819 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53821 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53822 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53824 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53825 (grub_mapclaim): Likewise.
53826 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53827 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53830 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53832 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53833 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53834 -ffreestanding and -msoft-float.
53836 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53838 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53839 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53840 set in grub_ieee1275_flags.
53842 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53844 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53846 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53847 grub_console_init first.
53848 Change the memory range used for grub_ieee1275_claim and
53849 grub_mm_init_region.
53850 Print an error message if the claim fails.
53851 Include <grub/misc.h>.
53853 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53855 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53856 Call grub_children_iterate for device nodes of type `scsi',
53858 (grub_ofdisk_open): Remove manual device alias resolution.
53859 Fix memory leak when device cannot be opened.
53860 * include/grub/powerpc/ieee1275/ieee1275.h
53861 (grub_children_iterate): New prototype.
53862 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53864 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53865 Return -1 if args.size was -1.
53867 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53869 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53870 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53871 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53872 Open Firmware's memory for it; claim memory from _start to _end.
53873 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53874 (_end): New extern.
53875 (_start): Zero BSS from __bss_start to _end.
53876 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53878 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53880 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53882 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53883 -1 if args.base was -1.
53885 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53887 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53888 escape sequence instead of a literal ^L. Also call
53889 grub_ofconsole_gotoxy.
53891 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53893 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53894 void * arguments to grub_addr_t. All callers updated. Also make
53895 the `result' argument optional.
53896 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53897 All callers updated.
53899 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53901 * commands/ls.c (grub_ls_list_files): Use the string following the
53902 initial ')', if present, as the filesystem path.
53903 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53905 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53907 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53909 Make the source code of the menu interface more readable.
53911 * normal/menu.c: Include grub/mm.h.
53912 (TERM_WIDTH): New macro.
53913 (TERM_HEIGHT): Likewise.
53914 (TERM_INFO_HEIGHT): Likewise.
53915 (TERM_MARGIN): Likewise.
53916 (TERM_SCROLL_WIDTH): Likewise.
53917 (TERM_TOP_BORDER_Y): Likewise.
53918 (TERM_LEFT_BORDER_X): Likewise.
53919 (TERM_BORDER_WIDTH): Likewise.
53920 (TERM_MESSAGE_HEIGHT): Likewise.
53921 (TERM_BORDER_HEIGHT): Likewise.
53922 (TERM_NUM_ENTRIES): Likewise.
53923 (TERM_FIRST_ENTRY_Y): Likewise.
53924 (TERM_ENTRY_WIDTH): Likewise.
53925 (TERM_CURSOR_X): Likewise.
53926 (draw_border): Use macros instead of magic numbers.
53927 (print_entry): Likewise.
53928 (print_entries): Likewise.
53929 (run_menu): Likewise. Also, handle the key 'e'.
53930 (run_menu_entry): Ignore empty command lines.
53931 (print_message): Added a new argument EDIT. If EDIT is true,
53932 print a different message.
53933 (init_page): Likewise.
53934 (edit_menu_entry): New function. Not implemented yet.
53936 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53938 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53939 can be loaded from normal mode.
53941 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53943 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53944 (multiboot_mod_CFLAGS): New variables.
53945 * loader/i386/pc/linux_normal.c: New file.
53946 * loader/i386/pc/multiboot_normal.c: Likewise.
53948 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53949 attribute `unused'.
53951 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53952 `fdiro' to read the mode information from instead of `diro'.
53954 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53955 looking up a symlink.
53957 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53959 * normal/command.c (grub_command_execute): Don't parse the
53960 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53961 flags of the command.
53963 * normal/menu.c (grub_menu_run): Fix typo.
53965 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53967 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53969 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53970 `y + 1' instead of `y - 1'.
53972 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53974 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53976 From Hollis Blanchard <hollis@penguinppc.org>:
53977 * kern/misc.c (memmove): New alias for grub_memmove.
53978 (memcmp): New alias for grub_memcmp.
53979 (memset): New alias for grub_memset.
53980 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53981 Change "int handle" to "grub_ieee1275_phandle_t handle".
53982 * include/grub/powerpc/ieee1275/ieee1275.h
53983 (grub_ieee1275_get_property): Likewise.
53985 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53987 Added normal mode command `chainloader' as module chain.mod, which
53988 depends on normal.mod and _chain.mod.
53990 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53991 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53992 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53994 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53995 but arguments parsing moved to ...
53996 (grub_chainloader_cmd): ... here. New function.
53997 * include/grub/i386/pc/chainloader.h: New file.
53998 * loader/i386/pc/chainloader_normal.c: Likewise.
54000 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54002 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54003 (grub_mkimage_LDFLAGS): Likewise.
54004 (grub_emu_SOURCES): Likewise.
54005 (kernel_img_HEADERS): Added fshelp.h.
54006 * fs/ext2.c: Include <grub/fshelp.h>.
54007 (FILETYPE_REG): New macro.
54008 (FILETYPE_INO_REG): Likewise.
54009 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54011 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54013 (grub_fshelp_node): New struct.
54014 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54016 (grub_ext2_get_file_block): Removed function.
54017 (grub_ext2_read_block): New function.
54018 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54019 This function was written.
54020 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54021 (grub_ext2_find_file): Removed function.
54022 (grub_ext2_read_symlink): New function.
54023 (grub_ext2_iterate_dir): Likewise.
54024 (grub_ext2_open): Rewritten.
54025 (grub_ext2_dir): Rewritten.
54026 * include/grub/fshelp.h: New file.
54027 * fs/fshelp.c: Likewise.
54029 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54031 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54032 (print_message): Add a missing newline.
54033 (run_menu): Added timeout support.
54034 (run_menu_entry): New local function.
54035 (grub_menu_run): Added support for booting.
54037 * kern/loader.c (grub_loader_is_loaded): New function.
54039 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54040 (grub_get_rtc): Exported.
54042 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54043 (grub_get_rtc): Exported.
54045 * include/grub/normal.h (struct grub_command_list): Remove
54046 constant from the member `command'.
54048 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54050 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54052 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54054 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54056 Add support for the JFS filesystem.
54058 * fs/jfs.c: New file.
54059 * include/grub/fs.h (grub_jfs_init): New prototype.
54060 (grub_jfs_fini): New prototype.
54061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54062 (grub_emu_SOURCES): Likewise.
54063 (pkgdata_MODULES): Add jfs.mod.
54064 (jfs_mod_SOURCES): New variable.
54065 (jfs_mod_CFLAGS): Likewise.
54066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54067 (grubof_SOURCES): Likewise.
54068 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54070 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54071 endian to the host endian.
54072 (grub_fat_utf16_to_utf8): Move function from there...
54073 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54074 the endianness of the source string anymore.
54075 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54077 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54079 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54080 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54081 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54082 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54084 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54085 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54086 for `node_found' and `it_dir'.
54087 (grub_hfs_dir): Add prototype for `dir_hook'.
54089 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54090 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54091 and `indir32' to silence a gcc warning.
54093 * include/grub/fs.h (grub_hfs_init): New prototype.
54094 (grub_hfs_fini): Likewise.
54097 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54099 Each disk device has its own id now. This is useful to make use
54100 of multiple disk devices.
54102 * include/grub/disk.h (grub_disk_dev_id): New enum.
54103 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54104 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54106 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54107 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54109 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54110 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54112 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54113 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54115 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54116 "id" which is used by the cache manager.
54118 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54121 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54123 * fs/hfs.c: New file.
54124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54125 (grub_emu_SOURCES): Likewise.
54126 (pkgdata_MODULES): Add hfs.mod.
54127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54128 (grubof_SOURCES): Likewise.
54129 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54131 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54132 * kern/misc.c (grub_strncasecmp): Add function.
54134 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54136 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54139 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54140 (grub_ext2_dir): In case the directory entry type is unknown, read
54143 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54145 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54146 grub_load_linux instead of grub_rescue_cmd_linux as second
54147 argument of grub_rescue_register_command.
54149 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54151 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54153 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54155 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54156 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54157 `loader/powerpc/ieee1275/linux.c',
54158 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54159 * include/grub/powerpc/ieee1275/ieee1275.h
54160 (grub_ieee1275_release): New prototype.
54161 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54162 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54163 normal, boot, linux and linux_normal.
54164 * loader/powerpc/ieee1275/linux.c: New file.
54165 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54167 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54169 * normal/arg.c (grub_arg_parse): Correct error handling after
54170 reallocating the argumentlist (check if `argl' is not null instead
54171 of checking if `args' is not null).
54172 * kern/mm.c (grub_realloc): Return the same pointer when using the
54173 same region, instead of returning the header address.
54175 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54177 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54178 one block instead of two when looking for the initial partition.
54179 (grub_partition_probe): Initialize the local variable `p' with 0.
54180 Use base 10 for the grub_strtoul call.
54181 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54182 need for one local variable.
54183 (grub_strtoul): Don't add the new value to `num', instead of that
54186 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54188 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54189 (pxeboot_img_SOURCES): New variable.
54190 (pxeboot_img_ASFLAGS): Likewise.
54191 (pxeboot_img_LDFLAGS): Likewise.
54192 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54193 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54194 <lode_leroy@hotmail.com>.
54196 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54198 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54199 there was no input.
54201 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54203 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54204 the history buffer logic.
54206 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54208 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54209 (FILETYPE_INO_SYMLINK): New macros.
54210 (grub_ext2_find_file): Check if the node is a directory using the
54211 inode stat information instead of using the filetype in the
54212 dirent. Exclude the first character of an absolute symlink.
54213 (grub_ext2_dir): Mask out the filetype part of the mode member of
54216 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54218 Add support for UFS version 1 and 2. Add support for the minix
54219 filesystem version 1 and 2, both the variants with 14 and 30 long
54222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54224 (grub_emu_SOURCES): Likewise.
54225 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54226 (ufs_mod_SOURCES): New variable.
54227 (ufs_mod_CFLAGS): Likewise.
54228 (minix_mod_SOURCES): Likewise.
54229 (minix_mod_CFLAGS): Likewise.
54230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54232 (grubof_SOURCES): Likewise.
54233 * fs/ufs.c: New file.
54234 * fs/minix.c: New file.
54235 * include/grub/fs.h (grub_ufs_init): New prototype.
54236 (grub_ufs_fini): Likewise.
54237 (grub_minix_init): Likewise.
54238 (grub_minix_fini): Likewise.
54239 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54242 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54245 commands/ls.c, commands/terminal.c, commands/boot.c,
54246 commands/cmp.c and commands/cat.c.
54247 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54249 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54252 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54254 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54255 and grub_, respectively. Because the conversion is trivial and
54256 mechanical, I omit the details here. Please refer to the CVS
54257 if you need more information.
54259 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54261 * include/pupa: Renamed to ...
54262 * include/grub: ... this.
54263 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54264 * util/i386/pc/grub-mkimage.c: ... this.
54265 * util/i386/pc/pupa-setup.c: Renamed to ...
54266 * util/i386/pc/grub-setup.c: ... this.
54267 * util/pupa-emu.c: Renamed to ...
54268 * util/grub-emu.c: ... this.
54270 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54272 Add support for the newworld apple macintosh (PPC). This has been
54273 tested on the powerbook 2000 only. It only adds support for
54274 generic ieee1275 functions, console and disk support. This should
54275 be easy to port to other architectures with support for Open
54278 * configure.ac: Accept the powerpc as host_cpu. In the case of
54279 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54280 specific tests are only executed while building for the i386.
54281 Inverse test for crosscompile.
54282 * genmk.rb (Utility): Allow assembler files.
54283 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54284 * conf/powerpc-ieee1275.rmk: New file.
54285 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54286 * disk/powerpc/ieee1275/partition.c: Likewise.
54287 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54288 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54289 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54290 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54291 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54292 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54293 * include/pupa/powerpc/ieee1275/loader.h
54294 * include/pupa/powerpc/setjmp.h: Likewise.
54295 * include/pupa/powerpc/types.h: Likewise.
54296 * kern/powerpc/ieee1275/init.c: Likewise.
54297 * kern/powerpc/ieee1275/openfw.c: Likewise.
54298 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54300 These files were written by Johan Rydberg
54301 (jrydberg@night.trouble.net) and I only modified them slightly.
54303 * boot/powerpc/ieee1275/cmain.c: New file.
54304 * boot/powerpc/ieee1275/crt0.S: Likewise.
54305 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54306 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54308 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54310 * Makefile.in: Update copyright.
54311 * genmodsrc.sh: Likewise.
54312 * gensymlist.sh: Likewise.
54313 * term/i386/pc/vga.c: Indent correctly.
54315 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54316 bugreporting address.
54317 * util/i386/pc/pupa-setup.c (usage): Likewise,
54318 (main): Call pupa_ext2_init and pupa_ext2_fini.
54320 * fs/fat.c (log2): Renamed to ...
54321 (fat_log2): ... this.
54322 All callers changed.
54323 * kern/misc.c (memcpy): Alias to pupa_memmove.
54324 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54326 * util/console.c (pupa_ncurses_fini): Return 0.
54328 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54329 Move fail label here.
54330 [__GNU__]: Don't warn when using stat.
54331 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54332 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54333 long int. Use strtol instead of strtoul.
54335 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54337 * commands/boot.c: New file.
54338 * commands/cat.c: Likewise.
54339 * commands/cmp.c: Likewise.
54340 * commands/ls.c: Likewise.
54341 * commands/terminal.c: Likewise.
54342 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54343 (pupa_register_command): Changed interface to match the new
54345 (pupa_command_execute): Changed (almost rewritten) so it uses
54346 pupa_split_command. Added support for setting variables using the
54348 (rescue_command): Changed to work with the new argument parser.
54349 (terminal_command): Moved from here to commands/terminal.c.
54350 (set_command): New function.
54351 (unset_command): New function.
54352 (insmod_command): New function.
54353 (rmmod_command): New function.
54354 (lsmod_command): New function.
54355 (pupa_command_init): Don't initialize the command terminal
54356 anymore. Initialize the commands set, unset, insmod, rmmod and
54358 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54359 (kernel_img_HEADERS): Add arg.h and env.h.
54360 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54361 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54362 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54364 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54366 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54367 (boot_mod_SOURCES): New variable.
54368 (terminal_mod_SOURCES): Likewise.
54369 (ls_mod_SOURCES): Likewise.
54370 (cmp_mod_SOURCES): Likewise.
54371 (cat_mod_SOURCES): Likewise.
54373 * normal/arg.c: New file.
54374 * kern/env.c: Likewise.
54375 * include/pupa/arg.h: Likewise.
54376 * include/pupa/env.h: Likewise.
54377 * font/manager.c (font_command): Changed to match argument parsing
54379 (PUPA_MOD_INIT): Likewise.
54380 * hello/hello.c (pupa_cmd_hello): Likewise.
54381 (PUPA_MOD_INIT): Likewise.
54382 * include/pupa/disk.h: Include <pupa/device.h>.
54383 (pupa_print_partinfo): New prototype.
54384 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54385 (pupa_dl_get_prefix): Likewise.
54386 * include/pupa/misc.h: Include <pupa/err.h>.
54387 (pupa_isgraph): New prototype.
54388 (pupa_isdigit): Likewise.
54389 (pupa_split_cmdline): Likewise.
54390 * include/pupa/normal.h: Include <pupa/arg.h>.
54391 (pupa_command): Changed the prototype of the member `func' to
54392 match the argument parsing interface. Added member `options'.
54393 (pupa_register_command): Updated to match function.
54394 (pupa_arg_parse): New prototype.
54395 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54396 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54397 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54398 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54399 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54400 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54401 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54402 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54403 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54404 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54405 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54406 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54407 * kern/disk.c: Include <pupa/file.h>.
54408 (pupa_print_partinfo): New function.
54409 * kern/dl.c: Include <pupa/env.h>.
54410 (pupa_dl_dir): Variable removed.
54411 (pupa_dl_load): Use the environment variable `prefix' instead of
54412 the variable pupa_dl_dir.
54413 (pupa_dl_set_prefix): Function removed.
54414 (pupa_dl_get_prefix): Likewise.
54415 * kern/i386/pc/init.c: Include <pupa/env.h>.
54416 (pupa_machine_init): Use the environment variable `prefix' instead of
54417 using pupa_dl_set_prefix to set the prefix.
54418 * kern/main.c: Include <pupa/env.h>.
54419 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54420 using pupa_dl_get_prefix to get the prefix.
54421 * kern/misc.c: Include <pupa/env.h>.
54422 (pupa_isdigit): New function.
54423 (pupa_isgraph): Likewise.
54424 (pupa_ftoa): Likewise.
54425 (pupa_vsprintf): Added support for printing values of the type
54426 `double'. Make it possible to format variable output when using
54427 formatting like `%1.2%f'.
54428 (pupa_split_cmdline): New function.
54429 * kern/rescue.c: Include <pupa/env.h>.
54430 (next_word): Removed function.
54431 (pupa_rescue_cmd_prefix): Likewise.
54432 (pupa_rescue_cmd_set): New function.
54433 (pupa_rescue_cmd_unset): New function.
54434 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54435 split the command line instead of splitting it here. Added
54436 support for setting variables using the syntax `foo=bar'. Don't
54437 initialize the prefix command anymore. Initialized the set and
54439 * normal/cmdline.c: Include <pupa/env.h>.
54440 (pupa_tab_complete): Added prototypes for print_simple_completion,
54441 print_partition_completion, add_completion, iterate_commands,
54442 iterate_dev, iterate_part and iterate_dir. Moved code to print
54443 partition information from here to kern/disk.c.
54444 (pupa_cmdline_run): Don't check if the function exists anymore.
54445 * normal/main.c: Include <pupa/env.h>.
54446 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54447 instead of using pupa_dl_get_prefix to get the prefix.
54448 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54449 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54451 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54452 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54453 ((unused))' to silence a gcc warning.
54454 (pupa_vga_setcolor): Likewise.
54455 (debug_command): Changed to match argument parsing
54457 * util/pupa-emu.c: Include <pupa/env.h>.
54458 (options): Added 0's for unused fields to silence a gcc warning.
54460 (main): Use the environment variable `prefix' instead of using
54461 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54462 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54465 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54466 * util/misc.c: Include <malloc.h>.
54467 (pupa_malloc): Rewritten so errors are correctly reported.
54468 (pupa_realloc): Likewise.
54469 (pupa_memalign): Likewise.
54470 (pupa_mm_init_region): Declare unused variables with
54471 `__attribute__ ((unused))' to silence a gcc warning.
54472 * normal/i386/setjmp.S: Remove tab at the end of the file to
54473 silence a gcc warning.
54474 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54475 variables with `__attribute__ ((unused))' to silence a gcc
54477 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54478 local variable i unsigned to silence a gcc warning.
54480 * kern/term.c: Include <pupa/misc.h>.
54481 (pupa_more_lines): New variable.
54482 (pupa_more): Likewise.
54483 (pupa_putcode): When the pager is active pause at the end of every
54485 (pupa_set_more): New function.
54486 * include/pupa/term.h (pupa_set_more): New prototype.
54489 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54491 Now this project is GRUB 2 rather than PUPA. The location of
54492 the CVS repository was moved to GRUB's.
54494 * configure.ac: Use bug-grub as the reporting address.
54495 Use GRUB instead of PUPA.
54496 Change the version number to 1.90.
54498 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54500 * genkernsyms.sh: Updated copyright information.
54501 * genmk.rb: Likewise.
54502 * genmodsrc.sh: Likewise.
54503 * gensymlist.sh: Likewise.
54504 * boot/i386/pc/boot.S: Likewise.
54505 * boot/i386/pc/diskboot.S: Likewise.
54506 * disk/i386/pc/biosdisk.c: Likewise.
54507 * disk/i386/pc/partition.c: Likewise.
54508 * font/manager.c: Likewise.
54509 * fs/ext2.c: Likewise.
54510 * fs/fat.c: Likewise.
54511 * include/pupa/boot.h: Likewise.
54512 * include/pupa/device.h: Likewise.
54513 * include/pupa/disk.h: Likewise.
54514 * include/pupa/dl.h: Likewise.
54515 * include/pupa/elf.h: Likewise.
54516 * include/pupa/err.h: Likewise.
54517 * include/pupa/file.h: Likewise.
54518 * include/pupa/font.h: Likewise.
54519 * include/pupa/fs.h: Likewise.
54520 * include/pupa/kernel.h: Likewise.
54521 * include/pupa/loader.h: Likewise.
54522 * include/pupa/misc.h: Likewise.
54523 * include/pupa/mm.h: Likewise.
54524 * include/pupa/net.h: Likewise.
54525 * include/pupa/normal.h: Likewise.
54526 * include/pupa/rescue.h: Likewise.
54527 * include/pupa/setjmp.h: Likewise.
54528 * include/pupa/symbol.h: Likewise.
54529 * include/pupa/term.h: Likewise.
54530 * include/pupa/types.h: Likewise.
54531 * include/pupa/i386/setjmp.h: Likewise.
54532 * include/pupa/i386/types.h: Likewise.
54533 * include/pupa/i386/pc/biosdisk.h: Likewise.
54534 * include/pupa/i386/pc/boot.h: Likewise.
54535 * include/pupa/i386/pc/console.h: Likewise.
54536 * include/pupa/i386/pc/init.h: Likewise.
54537 * include/pupa/i386/pc/kernel.h: Likewise.
54538 * include/pupa/i386/pc/linux.h: Likewise.
54539 * include/pupa/i386/pc/loader.h: Likewise.
54540 * include/pupa/i386/pc/memory.h: Likewise.
54541 * include/pupa/i386/pc/multiboot.h: Likewise.
54542 * include/pupa/i386/pc/partition.h: Likewise.
54543 * include/pupa/i386/pc/time.h: Likewise.
54544 * include/pupa/i386/pc/vga.h: Likewise.
54545 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54546 * include/pupa/util/getroot.h: Likewise.
54547 * include/pupa/util/misc.h: Likewise.
54548 * include/pupa/util/resolve.h: Likewise.
54549 * kern/device.c: Likewise.
54550 * kern/disk.c: Likewise.
54551 * kern/dl.c: Likewise.
54552 * kern/err.c: Likewise.
54553 * kern/file.c: Likewise.
54554 * kern/fs.c: Likewise.
54555 * kern/loader.c: Likewise.
54556 * kern/main.c: Likewise.
54557 * kern/misc.c: Likewise.
54558 * kern/mm.c: Likewise.
54559 * kern/rescue.c: Likewise.
54560 * kern/term.c: Likewise.
54561 * kern/i386/dl.c: Likewise.
54562 * kern/i386/pc/init.c: Likewise.
54563 * kern/i386/pc/lzo1x.S: Likewise.
54564 * kern/i386/pc/startup.S: Likewise.
54565 * loader/i386/pc/chainloader.c: Likewise.
54566 * loader/i386/pc/linux.c: Likewise.
54567 * loader/i386/pc/multiboot.c: Likewise.
54568 * normal/cmdline.c: Likewise.
54569 * normal/command.c: Likewise.
54570 * normal/main.c: Likewise.
54571 * normal/menu.c: Likewise.
54572 * normal/i386/setjmp.S: Likewise.
54573 * term/i386/pc/console.c: Likewise.
54574 * term/i386/pc/vga.c: Likewise.
54575 * util/console.c: Likewise.
54576 * util/genmoddep.c: Likewise.
54577 * util/misc.c: Likewise.
54578 * util/pupa-emu.c: Likewise.
54579 * util/resolve.c: Likewise.
54580 * util/unifont2pff.rb: Likewise.
54581 * util/i386/pc/biosdisk.c: Likewise.
54582 * util/i386/pc/getroot.c: Likewise.
54583 * util/i386/pc/pupa-mkimage.c: Likewise.
54584 * util/i386/pc/pupa-setup.c: Likewise.
54586 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54588 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54589 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54590 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54591 reading and reset it after reading.
54592 (pupa_ext2_close): Return PUPA_ERR_NONE.
54594 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54596 (struct linux_kernel_header): Add kernel_version and
54598 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54599 pupa_file_read succeeds.
54600 (pupa_rescue_cmd_initrd): Implement.
54602 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54604 * fs/ext2.c (pupa_ext2_label): New function.
54605 (pupa_ext2_fs): Added label.
54606 * fs/fat.c (pupa_fat_label): New function.
54607 (pupa_fat_fs): Added label.
54608 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54610 * kern/misc.c (pupa_strndup): New function.
54611 * include/pupa/misc.h (pupa_strndup): New prototype.
54613 * include/pupa/normal.h: Include <pupa/err.h>.
54614 (pupa_set_history): New prototype.
54615 (pupa_iterate_commands): New prototype.
54616 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54617 <pupa/disk.h>, <pupa/file.h>.
54618 (hist_size): New variable.
54619 (hist_lines): Likewise.
54620 (hist_end): Likewise.
54621 (hist_used): Likewise.
54622 (pupa_set_history): New function.
54623 (pupa_history_get): Likewise.
54624 (pupa_history_add): Likewise.
54625 (pupa_history_replace): Likewise.
54626 (pupa_tab_complete): Likewise.
54627 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54628 completion shows partitionnames while completing partitions, this
54629 feature was suggested by Jeff Bailey.
54630 * normal/command.c (pupa_iterate_commands): New function.
54631 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54632 (pupa_normal_init): Initialize history buffer.
54633 (PUPA_MOD_INIT): Likewise.
54634 (pupa_normal_fini): Free the history buffer.
54635 (PUPA_MOD_FINI): Likewise.
54637 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54640 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54641 * configure.ac [i386]: Check for regparam bug.
54642 (NESTED_FUNC_ATTR) [! i386]: Defined.
54644 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54646 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54647 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54648 (pupa_emu_SOURCES): New variable.
54649 (pupa_emu_LDFLAGS): Likewise.
54650 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54651 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54652 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54653 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54654 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54655 (pupa_jmp_buf): New typedef.
54656 (pupa_setjmp) [PUPA_UTIL]: New macro.
54657 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54658 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54659 (pupa_refresh): New prototype.
54660 * include/pupa/util/getroot.h: New file.
54661 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54663 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54664 (pupa_rescue_cmd_cat): Likewise.
54665 (pupa_rescue_cmd_ls): Likewise.
54666 (pupa_rescue_cmd_testload): Likewise.
54667 (pupa_rescue_cmd_lsmod): Likewise.
54668 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54669 * normal/menu.c (run_menu): Likewise.
54670 * kern/term.c (pupa_cls): Likewise.
54671 (pupa_refresh): New function.
54672 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54673 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54674 * util/console.c: New file.
54676 * util/i386/pc/getroot.c: New file.
54677 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54678 (pupa_putchar): New function.
54679 (pupa_refresh): Likewise.
54680 (xgetcwd): Function moved to ...
54681 (strip_extra_slashes): Likewise.
54682 (get_prefix): Likewise.
54683 * util/i386/pc/getroot.c: ... here.
54684 (find_root_device): Function moved and renamed to...
54685 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54686 Changed all callers.
54687 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54689 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54690 Changed all callers.
54691 * util/misc.c (pupa_memalign): New function.
54692 (pupa_mm_init_region): Likewise.
54693 (pupa_register_exported_symbols): Likewise.
54694 (pupa_putchar): Function removed.
54695 * util/pupa-emu.c: New file.
54697 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54699 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54700 (_multiboot_mod_SOURCES): New variable.
54701 (_multiboot_mod_CFLAGS): Likewise.
54702 * loader/i386/pc/multiboot.c: New file.
54703 * include/pupa/i386/pc/multiboot.h: Likewise.
54704 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54705 (pupa_multiboot_real_boot): New function.
54706 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54707 (pupa_multiboot_real_boot): New prototype.
54708 (pupa_rescue_cmd_multiboot): Likewise
54709 (pupa_rescue_cmd_module): Likewise.
54711 * kern/loader.c (pupa_loader_set): Continue when
54712 pupa_loader_unload_func() fails.
54713 (pupa_loader_unset): New function.
54714 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54716 * kern/misc.c (pupa_stpcpy): New function.
54717 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54719 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54721 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54722 for available extensions.
54724 * include/pupa/i386/pc/time.h: New file.
54725 * kern/disk.c: Include <pupa/machine/time.h>.
54726 (PUPA_CACHE_TIMEOUT): New macro.
54727 (pupa_last_time): New variable.
54728 (pupa_disk_open): Flush the cache when there was a timeout.
54729 (pupa_disk_close): Reset the timer.
54730 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54732 * util/misc.c: Include <sys/times.h>
54733 (pupa_get_rtc): New function.
54735 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54737 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54739 (pupa_ext2_get_file_block): Use blocks member.
54741 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54742 first block. Return -1 instead of pupa_errno on error.
54744 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54746 * README: In the pupa-mkimage example use _chain instead of chain
54747 and ext2 instead of fat.
54748 * TODO: Replace ext2fs with jfs as an example. Add an item for
54749 adding journal playback for ext2fs.
54750 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54751 (pkgdata_MODULES): Added ext2.mod.
54752 (ext2_mod_SOURCES): New variable.
54753 (ext2_mod_CFLAGS): Likewise.
54754 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54755 * include/pupa/misc.h (pupa_strncpy): New prototype.
54756 (pupa_strcat): Likewise.
54757 (pupa_strncmp): Likewise.
54758 * kern/misc.c (pupa_strcat): Enable function.
54759 (pupa_strncpy): New function.
54760 (pupa_strncmp): Likewise.
54761 * fs/ext2.c: New file.
54763 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54764 when the read failed before retrying.
54765 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54766 (_FILE_OFFSET_BITS): Likewise.
54767 * configure.ac: Added AC_SYS_LARGEFILE.
54769 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54771 * genmk.rb (PModule#rule): Make sure to get only symbol names
54772 from the output of nm.
54773 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54775 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54777 I forgot to check in these changes for a long time. This adds
54778 incomplete support for VGA console, and this is still very
54779 buggy. Also, a lot of consideration is required for I18N,
54780 UNICODE, and VGA font issues. Therefore, assume that this is
54781 such that "better than nothing".
54783 * font/manager.c: New file.
54784 * include/pupa/font.h: Likewise.
54785 * include/pupa/i386/pc/vga.h: Likewise.
54786 * term/i386/pc/vga.c: Likewise.
54787 * util/unifont2pff.rb: Likewise.
54789 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54790 (pkgdata_MODULES): Added vga.mod and font.mod.
54791 (vga_mod_SOURCES): New variables.
54792 (vga_mod_CFLAGS): Likewise.
54793 (font_mod_SOURCES): Likewise.
54794 (font_mod_CFLAGS): Likewise.
54796 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54798 * include/pupa/term.h: Include pupa/err.h.
54799 (struct pupa_term): Added init and fini.
54800 Changed the argument of putchar to pupa_uint32_t.
54802 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54803 (pupa_console_real_putchar): New prototype.
54804 (pupa_console_putchar): Removed.
54805 (pupa_console_checkkey): Exported.
54806 (pupa_console_getkey): Likewise.
54808 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54811 * kern/term.c (pupa_term_set_current): Rewritten.
54812 (pupa_putchar): Likewise.
54813 (pupa_putcode): New function.
54815 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54816 (pupa_console_real_putchar): ... this.
54817 (pupa_vga_set_mode): New function.
54818 (pupa_vga_get_font): Likewise.
54820 * normal/command.c: Include pupa/term.h.
54821 (terminal_command): New function.
54822 (pupa_command_init): Register the command "terminal".
54824 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54825 (DISP_UP): Likewise.
54826 (DISP_RIGHT): Likewise.
54827 (DISP_DOWN): Likewise.
54828 (DISP_HLINE): Likewise.
54829 (DISP_VLINE): Likewise.
54830 (DISP_UL): Likewise.
54831 (DISP_UR): Likewise.
54832 (DISP_LL): Likewise.
54833 (DISP_LR): Likewise.
54835 * term/i386/pc/console.c (pupa_console_putchar): New function.
54837 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54839 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54840 FIX. Reverse the path_list.
54842 * include/pupa/normal.h: Export pupa_register_command and
54843 pupa_unregister_command.
54845 * hello/hello.c (pupa_cmd_hello): New module.
54846 * conf/i386-pc.rmk: Added hello.mod.
54848 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54850 * kern/i386/pc/lzo1x.S: New file.
54852 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54853 (compress_kernel): New variable.
54854 (generate_image): Heavily modified to support compressing a
54855 large part of the core image.
54857 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54859 (pupa_util_load_image): New function.
54861 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54862 (pupa_compressed_size): New variable.
54863 (codestart): Enable Gate A20 here.
54864 Decompress the compressed part of the core image.
54865 Rearrange the code to put functions and variables which are
54866 required for initialization in the non-compressed part.
54869 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54872 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54874 * include/pupa/i386/pc/kernel.h
54875 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54876 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54877 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54878 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54879 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54881 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54883 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54884 (Utility#rule): Likewise.
54886 * configure.ac: Check if LZO is available.
54888 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54890 * include/pupa/normal.h: New file.
54891 * include/pupa/setjmp.h: Likewise.
54892 * include/pupa/i386/setjmp.h: Likewise.
54893 * normal/cmdline.c: Likewise.
54894 * normal/command.c: Likewise.
54895 * normal/main.c: Likewise.
54896 * normal/menu.c: Likewise.
54897 * normal/i386/setjmp.S: Likewise.
54899 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54900 (pupa_rescue_cmd_initrd): Likewise.
54902 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54905 * kern/i386/pc/startup.S (translation_table): New variable.
54906 (translate_keycode): New function.
54907 (pupa_console_getkey): Call translate_keycode.
54909 * kern/rescue.c (attempt_normal_mode): New function.
54910 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54911 it failed, print a message.
54913 * kern/mm.c (pupa_real_malloc): Print more information when a
54914 free magic is broken.
54915 (pupa_free): If the first free header is not free actually, set
54918 * kern/main.c (pupa_load_normal_mode): Just load the module
54920 (pupa_main): Don't print the message
54921 "Entering into rescue mode..." here.
54923 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54925 (pupa_rescue_cmd_initrd): Likewise.
54926 (pupa_rescue_cmd_initrd): Likewise.
54928 * include/pupa/symbol.h (FUNCTION): Specify the type.
54929 (VARIABLE): Likewise.
54931 * include/pupa/err.h (pupa_err_t): Added
54932 PUPA_ERR_UNKNOWN_COMMAND.
54934 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54935 (pupa_dl_get_prefix): Likewise.
54937 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54938 Added _chain.mod and _linux.mod instead of chain.mod and
54940 (chain_mod_SOURCES): Renamed to ...
54941 (_chain_mod_SOURCES): ... this.
54942 (chain_mod_CFLAGS): Renamed to ...
54943 (_chain_mod_CFLAGS): ... this.
54944 (linux_mod_SOURCES): Renamed to ...
54945 (_linux_mod_SOURCES): ... this.
54946 (linux_mod_CFLAGS): Renamed to ...
54947 (_linux_mod_CFLAGS): ... this.
54948 (normal_mod_SOURCES): New variable.
54949 (normal_mod_CFLAGS): Likewise.
54950 (normal_mod_ASFLAGS): Likewise.
54952 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54954 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54957 * kern/dl.c (pupa_dl_ref): Refer depending modules
54959 (pupa_dl_unref): Unrefer depending modules recursively.
54960 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54961 a module is unloaded before one depending on that module is
54963 (pupa_dl_unload): Unload depending modules explicitly,
54966 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54968 * include/pupa/i386/pc/linux.h: New file.
54969 * loader/i386/pc/linux.c: Likewise.
54971 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54973 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54974 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54975 of PUPA_CHAINLOADER_BOOT_SECTOR.
54977 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54978 (pupa_linux_prot_size): New variable.
54979 (pupa_linux_tmp_addr): Likewise.
54980 (pupa_linux_real_addr): Likewise.
54981 (pupa_linux_boot_zimage): New function.
54982 (pupa_linux_boot_bzimage): Likewise.
54984 * kern/i386/pc/init.c (struct mem_region): New structure.
54985 (MAX_REGIONS): New macro.
54986 (mem_regions): New variable.
54987 (num_regions): Likewise.
54988 (pupa_os_area_addr): Likewise.
54989 (pupa_os_area_size): Likewise.
54990 (pupa_lower_mem): Likewise.
54991 (pupa_upper_mem): Likewise.
54992 (add_mem_region): New function.
54993 (compact_mem_regions): Likewise.
54994 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54995 the size of the conventional memory and that of so-called upper
54996 memory (before the first memory hole).
54997 Instead of adding each found region to free memory, use
54998 add_mem_region and add them after removing overlaps.
54999 Also, add only 1/4 of the upper memory to free memory. The rest
55000 is used for loading OS images. Maybe this is ad hoc, but this
55001 makes it much easier to relocate OS images when booting.
55003 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55004 (pupa_enter_rescue_mode): Don't register initrd and module.
55006 * kern/mm.c: Include pupa/dl.h.
55008 * kern/main.c: Include pupa/file.h and pupa/device.h.
55010 * kern/loader.c (pupa_loader_load_module_func): Removed.
55011 (pupa_loader_load_module): Likewise.
55013 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55016 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55017 (pupa_linux_tmp_addr): Likewise.
55018 (pupa_linux_real_addr): Likewise.
55019 (pupa_linux_boot_zimage): Likewise.
55020 (pupa_linux_boot_bzimage): Likewise.
55022 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55023 (pupa_upper_mem): Likewise.
55024 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55025 module is too dangerous.
55027 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55028 (pupa_os_area_size): Likewise.
55029 (pupa_loader_set): Remove the first argument. Loader doesn't
55030 manage modules or initrd any longer.
55031 (pupa_loader_load_module): Removed.
55033 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55034 (linux_mod_SOURCES): New variable.
55035 (linux_mod_CFLAGS): Likewise.
55037 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55039 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55040 the length of a blocklist correctly.
55042 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55043 Use ioctl only if the OS file is a block device.
55044 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55045 not very useful for normal files.
55047 * kern/main.c (pupa_set_root_dev): New function.
55048 (pupa_load_normal_mode): Likewise.
55049 (pupa_main): Call those above.
55051 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55054 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55056 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55058 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55059 (setup): Configure the installed partition information and the
55062 * loader/i386/pc/chainloader.c (my_mod): New variable.
55063 (pupa_chainloader_unload): New function.
55064 (pupa_rescue_cmd_chainloader): Refer itself.
55065 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55067 * kern/i386/pc/startup.S (install_partition): Removed.
55068 (version_string): Likewise.
55069 (config_file): Likewise.
55070 (pupa_install_dos_part): New variable.
55071 (pupa_install_bsd_part): Likewise.
55072 (pupa_prefix): Likewise.
55073 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55075 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55077 (make_install_device): New function.
55078 (pupa_machine_init): Set the dl prefix.
55080 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55081 (buf): Renamed to ...
55082 (linebuf): ... this.
55083 (pupa_rescue_cmd_prefix): New function.
55084 (pupa_rescue_cmd_insmod): Likewise.
55085 (pupa_rescue_cmd_rmmod): Likewise.
55086 (pupa_rescue_cmd_lsmod): Likewise.
55087 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55090 * kern/mm.c (pupa_memalign): If failed even after invalidating
55091 disk caches, unload unneeded modules and retry.
55093 * kern/misc.c (pupa_memmove): New function.
55094 (pupa_memcpy): Removed.
55095 (pupa_strcpy): New function.
55096 (pupa_itoa): Made static.
55098 * kern/dl.c (pupa_dl_iterate): New function.
55099 (pupa_dl_ref): Likewise.
55100 (pupa_dl_unref): Likewise.
55101 (pupa_dl_unload): Return if succeeded or not.
55102 (pupa_dl_unload_unneeded): New function.
55103 (pupa_dl_unload_all): Likewise.
55104 (pupa_dl_init): Renamed to ...
55105 (pupa_dl_set_prefix): ... this.
55106 (pupa_dl_get_prefix): New function.
55108 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55109 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55110 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55111 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55112 (pupa_install_dos_part): Declared.
55113 (pupa_install_bsd_part): Likewise.
55114 (pupa_prefix): Likewise.
55115 (pupa_boot_drive): Likewise.
55117 * include/pupa/types.h: Fix a typo.
55119 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55121 (pupa_memmove): Declared.
55122 (pupa_strcpy): Likewise.
55124 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55125 pupa_mod_init takes one argument, its own module.
55126 (pupa_dl_unload_unneeded): Declared.
55127 (pupa_dl_unload_all): Likewise.
55128 (pupa_dl_ref): Likewise.
55129 (pupa_dl_unref): Likewise.
55130 (pupa_dl_iterate): Likewise.
55131 (pupa_dl_init): Renamed to ...
55132 (pupa_dl_set_prefix): ... this.
55133 (pupa_dl_get_prefix): Declared.
55135 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55136 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55138 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55139 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55141 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55142 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55144 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55146 * util/i386/pc/pupa-setup.c (setup): Define the internal
55147 function find_first_partition_start at the top level, because GCC
55148 3.0.x cannot compile internal functions in deeper scopes
55150 (find_root_device): Use lstat instead of stat.
55151 Don't follow symbolic links.
55152 Fix the path-constructing code.
55154 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55155 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55156 by a BLKGETSIZE ioctl first, because block devices don't fill
55157 the member st_mode of the structure stat on Linux.
55158 [__linux__] (linux_find_partition): Use a temporary buffer
55159 REAL_DEV for the working space. Copy it to DEV before returning.
55160 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55161 buffer cache consistent.
55162 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55163 strncmp. The previous value was merely wrong.
55164 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55166 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55167 FAT size is 12. The previous value was merely wrong.
55169 * kern/main.c (pupa_main): Don't split the starting message from
55172 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55173 LF, because BIOS goes crazy about character attributes in this
55176 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55178 * include/i386/pc/util/biosdisk.h: New file.
55179 * util/i386/pc/biosdisk.c: Likewise.
55180 * util/i386/pc/pupa-setup.c: Likewise.
55182 * Makefile.in (INCLUDE_DISTFILES): Added
55183 include/pupa/i386/pc/util/biosdisk.h.
55184 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55185 directory util/i386/pc.
55186 (install-local): Added a rule for sbin_UTILITIES.
55187 (uninstall): Likewise.
55189 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55191 * util/misc.c (xrealloc): New function.
55192 (pupa_malloc): Likewise.
55193 (pupa_free): Likewise.
55194 (pupa_realloc): Likewise.
55195 (pupa_stop): Likewise.
55196 (pupa_putchar): Likewise.
55198 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55200 * include/pupa/util/misc.h (xrealloc): Declared.
55202 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55204 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55205 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55207 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55208 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55210 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55211 way should be implemented.
55212 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55214 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55215 the size of NAME for safety.
55216 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55219 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55220 (pupa_setup_SOURCES): Likewise.
55222 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55224 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55226 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55227 bunch of pushl's from pusha, because this destroys the return
55230 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55232 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55233 This means that any missing prototypes could be fatal. Also, you
55234 must take care when writing assembly code. See the comments at
55235 the beginning of startup.S, for more details.
55237 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55238 compilation mechanism.
55239 (pupa_chainloader_real_boot): Likewise.
55240 (pupa_biosdisk_rw_int13_extensions): Likewise.
55241 (pupa_biosdisk_rw_standard): Likewise.
55242 (pupa_biosdisk_check_int13_extensions): Likewise.
55243 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55244 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55245 (pupa_get_memsize): Likewise.
55246 (pupa_get_mmap_entry): Likewise.
55247 (pupa_console_putchar): Likewise.
55248 (pupa_console_setcursor): Likewise.
55249 (pupa_getrtsecs): Use pushl instead of push.
55251 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55252 memory instead of the stack for a mmap entry, because some
55253 BIOSes may ignore the maximum size and overflow.
55255 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55257 * genmk.rb (PModule#rule): Compile automatically generated
55258 sources with module-specific CFLAGS as well as other sources.
55260 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55262 * configure.ac: Check ld.
55263 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55264 respectively, before checking endianness and sizes.
55266 * Makefile.in (LD): New variable.
55268 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55270 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55272 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55274 * Changelog: New file.